Package-Manager: portage-2.2.0_alpha188
RepoMan-Options: --force
This commit is contained in:
Mario Fetka 2013-08-10 02:15:24 +02:00
parent 496e826855
commit 003b97a061
6 changed files with 230 additions and 2 deletions

10
net-im/jitsi/ChangeLog Normal file
View File

@ -0,0 +1,10 @@
# ChangeLog for net-im/jitsi
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
*jitsi-2.2.4603.9615 (10 Aug 2013)
*jitsi-2.3.4789 (10 Aug 2013)
10 Aug 2013; Mario Fetka <mario.fetka@gmail.com> +files/jitsi-2.3,
+jitsi-2.2.4603.9615.ebuild, +jitsi-2.3.4789.ebuild, files/jitsi:
Bump

View File

@ -1,3 +1,9 @@
AUX jitsi 1254 SHA256 09ad3d02cf3058a6c95226fba6a184380370deba7508db145811da1abf9afde5 SHA512 3121d250ee09c212dc09ce866054526ea6c18806eb9878cda9e86ecee14bba05d86acfba9d7f4a341121a0c70949c0de4c9983e5ccd7161144c6962038fe4720 WHIRLPOOL 042589dedeb6125c6f3057638e12e51ed8d6e962b1a01de27ad8201891486488863cfe29bd45a636e1f211b1e5f37483d4ab4c11dee59eeaefb56bea121ff084 AUX jitsi 1295 SHA256 883788ffe84e327fabbe63ab3d26cd8d3a245c41100d8655e346c01909f07fb4 SHA512 8aa9c49c479432ac4cc93854df307e19f18651e1ef54128a0f5a590e8c12e216ecf99d04cef0f36d8acae000dd761b70650aa9d7e29401627c29a9f97cb2c462 WHIRLPOOL 235609996f80412ea3edb03a53f92d773f0b3c1a6d48ac69ca43096533162dd6453dc0ffe80d67118e2414bd949ec1735828d89653b0773b0d9c03960b1eed9a
AUX jitsi-2.3 1250 SHA256 439b05f184ae20b807b1828fcd648739f57e1adb353fa4fb54d5cbc1e722c19a SHA512 4245a333ebb4c11d335ed941a6a175bf6a4951d306300011e8de21782c2f19547bcc74a2834ceda3d825c99a2c41fbe2704537d534dc7771ff8a55f0548a96a7 WHIRLPOOL 66206eb34b0c4253cfc5b35b688fbd2bcf20e94446d6b354a8b58cc657ba8dc0f1e72d7d92991d8b8a8a197185675b1917cf76e672930d90c772724c8edab5a9
DIST jitsi-src-2.0.4506.10553.zip 61187301 SHA256 939adbda52b5aa19592bcd5edf5c77e1bcbbcaa4d0fcdb59c6b5c9e4a10b1e7d SHA512 b29a6f2af3208e60fcb6f09a7a543a86df521b1bd02c836c3eb5e10bee92a69721a0ccd45e92e035c39d3d632cef14b1fa15e535520b6b253e09107979453564 WHIRLPOOL 65f96e047ab5398cc2359e51ca6b918aff657af0755c2bc7a0d808b38260acb0fd9f93adb7dd6b046ca3782e5a72388a9783077d4a10824b0dd8463166a12f6b DIST jitsi-src-2.0.4506.10553.zip 61187301 SHA256 939adbda52b5aa19592bcd5edf5c77e1bcbbcaa4d0fcdb59c6b5c9e4a10b1e7d SHA512 b29a6f2af3208e60fcb6f09a7a543a86df521b1bd02c836c3eb5e10bee92a69721a0ccd45e92e035c39d3d632cef14b1fa15e535520b6b253e09107979453564 WHIRLPOOL 65f96e047ab5398cc2359e51ca6b918aff657af0755c2bc7a0d808b38260acb0fd9f93adb7dd6b046ca3782e5a72388a9783077d4a10824b0dd8463166a12f6b
DIST jitsi-src-2.2.4603.9615.zip 61195867 SHA256 6ec46cc8f2306f5542c65fc637f70a7fe348b309ecc70a2483e05a745487ad41 SHA512 ec071eed32a1ac7b1b93944f41d6fc97ea39651100cc55d880da56cec2eecb0cd442284968a6e11dc824f13201a8b41909afd18c492d4808f44b357f4a3b05e2 WHIRLPOOL 4b2fb07b7ad76bfa2e31934b00244f2a36e8dc0be380134bafb7ccfd1eb6db602b005d2943f2a5b732e253f3dabfc6c640f680011feb5fa5c0ae7a2fcec1362f
DIST jitsi-src-2.3.4789.zip 63718190 SHA256 981db1aba58742c9bca12c05db50a51e4d2228e0f8fa11fe243f7bd626887309 SHA512 0ed1f42e7b0745242f644b9351636d24722799bf38a6c18c09d9ba322e5f4c28390bc43c8a19eab1751ecbb969b064a60d7664b6400a70c16c17b6d5b3a42c0a WHIRLPOOL 3a2158870ade8088d3e744d8345160e888774b7bf499166dc5444134caf09b6ea3401c0040277de5e3c99dd5e768ad4c84f4f0ba1d6e58fb886f031e65a1ee16
EBUILD jitsi-2.0.4506.10553.ebuild 1943 SHA256 a82f165242d00ca03f2cc418094c9d7cf73ea128c6b98d585a688fbc7f0942a3 SHA512 cb24ba75cd8fab453bf7ff916915d9f6213dfe766a2c8990e184067d66e2319d7a1844a77088e30ae685982f2a9944f0def526322a2f5420dd5fca46ecda012b WHIRLPOOL 8743185aaef02ec0c57031dec50cb15f291d56153804b495902023c62cf20c0675d8c98caf77b9a44cafe4db62e7587aa4db3fc13f7e050b92f18ed85e0e1a51 EBUILD jitsi-2.0.4506.10553.ebuild 1943 SHA256 a82f165242d00ca03f2cc418094c9d7cf73ea128c6b98d585a688fbc7f0942a3 SHA512 cb24ba75cd8fab453bf7ff916915d9f6213dfe766a2c8990e184067d66e2319d7a1844a77088e30ae685982f2a9944f0def526322a2f5420dd5fca46ecda012b WHIRLPOOL 8743185aaef02ec0c57031dec50cb15f291d56153804b495902023c62cf20c0675d8c98caf77b9a44cafe4db62e7587aa4db3fc13f7e050b92f18ed85e0e1a51
EBUILD jitsi-2.2.4603.9615.ebuild 2639 SHA256 2bc739d7f6bd6e882677948413fc1621fbc368611e82134febd119a621001822 SHA512 a4371a0d454d75d3bbc73245d10dcec4729f15d22f1f5c9c677ba2dd64633fb9169e16f2b1cbb621fc4b833ea5594bdfd9611bf0d81313fcd5d42492710092d6 WHIRLPOOL 7af64f6378167ff6906f22819291e5e3ba2b44b50f72c3a381055d00b2b92f6f4c9e00ed3808d96c000cf497f1154dc3625d0594161a34b8e4bbaf70f76db38a
EBUILD jitsi-2.3.4789.ebuild 2601 SHA256 3ac35f386a6f3e6c838f51a78534d26d34318f81fcd18129ae96fee7ea1f29a1 SHA512 4a3f81799a6f0e96cc0bafaafd5607a8be41f633e744889d7fab28c118db7e02bf485c803abb99e60fdb912581e866fb5b2dc1cc8a5a58a946e15a5b68f52068 WHIRLPOOL ff99dc15b57825eb7e3d8c1f2ecec4ccb18250327fcfa38ddcf591171a732d77296934c52fa096002c480c696c92ff8ae70017da5d2575077f2632bfa62f925a
MISC ChangeLog 323 SHA256 7a540a8c131052ed6785d177a3908251d61b351b1ef05ed5699bc448fc91d027 SHA512 f61f74886acd9fd64a2b2951a8f2f570a3741b5394de7978e6bb5ceaf229c4a2420ea5429966d5e9d603ec84cbbdae69bfda0931d6afb0896d40b7658f76d853 WHIRLPOOL 7dc5cbc2d44f448ea40168d643ad184c1c8b9f65ea6a13c68066c2211a486c0c7c7652be20b86a7641dbb09253b0cb9438209a37c52b18edc98f40f93d6c9fc1

View File

@ -23,7 +23,7 @@ COMMAND=( "$javabin" $CLIENTARGS -classpath "$CLASSPATH" "${SYSPROPS[@]}" net.ja
# Also add "LIBPATH/native" to LD_LIBRARY_PATH. # Also add "LIBPATH/native" to LD_LIBRARY_PATH.
jarch="$( uname -m | sed 's/i.86/i386/; s/x86_64/amd64/' )" jarch="$( uname -m | sed 's/i.86/i386/; s/x86_64/amd64/' )"
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}$(java-config -o)/jre/lib/$jarch:/usr/lib/jni:$LIBPATH/native" export LD_LIBRARY_PATH="${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}${jdir}/jre/lib/${jarch}:${jdir}/jre/lib/${jarch}/client:${jdir}/jre/lib/${jarch}/xawt:$LIBPATH/native"
# Fix font anti-aliasing # Fix font anti-aliasing
export _JAVA_OPTIONS="-Dawt.useSystemAAFontSettings=on" export _JAVA_OPTIONS="-Dawt.useSystemAAFontSettings=on"

View File

@ -0,0 +1,33 @@
#!/bin/bash
# Change memory settings for 32-bit systems
CLIENTARGS=""
uname -m | grep -q 'i.86' && CLIENTARGS="-client -Xmx256m"
# Standard paths
javabin="$(java-config -J)"
SCDIR="/usr/lib/jitsi"
LIBPATH="$SCDIR/lib"
# Configuration files
FELIX_CONFIG="$LIBPATH/felix.client.run.properties"
LOG_CONFIG="$LIBPATH/logging.properties"
# Command assembly
# Add libraries and sip-communicator bundles:
CLASSPATH="$LIBPATH/felix.jar:$LIBPATH/bcprovider.jar:$SCDIR/sc-bundles/sc-launcher.jar:$SCDIR/sc-bundles/util.jar"
# Set the system properties:
SYSPROPS=( -Djna.library.path="$LIBPATH/native" -Dfelix.config.properties="file:$FELIX_CONFIG" -Djava.util.logging.config.file="$LOG_CONFIG" )
# The full command:
COMMAND=( "$javabin" $CLIENTARGS -classpath "$CLASSPATH" "${SYSPROPS[@]}" net.java.sip.communicator.launcher.SIPCommunicator )
# Also add "LIBPATH/native" to LD_LIBRARY_PATH.
jarch="$( uname -m | sed 's/i.86/i386/; s/x86_64/amd64/' )"
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}${jdir}/jre/lib/${jarch}:${jdir}/jre/lib/${jarch}/client:${jdir}/jre/lib/${jarch}/xawt:$LIBPATH/native"
# Fix font anti-aliasing
export _JAVA_OPTIONS="-Dawt.useSystemAAFontSettings=on"
# Run the command
cd "$SCDIR"
exec "${COMMAND[@]}" "$@"

View File

@ -0,0 +1,90 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=5
inherit java-pkg-2 java-ant-2 eutils multilib prefix
DESCRIPTION="An audio/video SIP VoIP phone and instant messenger written in Java"
HOMEPAGE="http://www.jitsi.org/"
SRC_URI="https://download.jitsi.org/jitsi/src/${PN}-src-${PV}.zip"
# This download comes with 30 Mb of useless jars.
# SVN access is available, but requires an account at java.net.
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE="" # FIXME: Should not use ALSA directly, unless USE="alsa", because e.g. PulseAudio could already use and block it.
RDEPEND=">=virtual/jdk-1.6"
DEPEND=">=virtual/jdk-1.6
dev-java/xalan:0
dev-java/ant-nodeps:0
dev-util/patchelf"
S=${WORKDIR}/${PN}-src-${PV}
QA_PREBUILT="usr/lib*/${PN}/lib/native/*"
EANT_BUILD_TARGET="rebuild"
src_prepare() {
# Set RPATH for preserve-libs handling.
local x jarch
if [[ ${ARCH} == amd64 ]] ; then
jarch=amd64
cd lib/native/linux-64 || die
else
jarch=i386
cd lib/native/linux || die
rm *mozembed* || die
fi
local x jarch jdir
jdir=$(java-config -o || die)
for x in * ; do
# Use \x7fELF header to separate ELF executables and libraries
[[ -f ${x} && $(od -t x1 -N 4 "${x}") == *"7f 45 4c 46"* ]] || continue
patchelf --set-rpath "\$ORIGIN:${jdir}/jre/lib/${jarch}:${jdir}/jre/lib/${jarch}/client:${jdir}/jre/lib/${jarch}/xawt:/usr/lib/${PN}/lib/native" "${x}" ||
die "patchelf failed on ${x}"
done
}
src_install() {
# Netbeans bundles
insinto /usr/$(get_libdir)/${PN}/sc-bundles
doins sc-bundles/*.jar sc-bundles/os-specific/linux/*.jar
# Other libraries
insinto /usr/$(get_libdir)/${PN}/lib
doins lib/* lib/os-specific/linux/*
doins -r lib/bundle # Unnecessary?
# Native libraries
exeinto /usr/$(get_libdir)/${PN}/lib/native
# WARNING: Foreign binaries!
if [[ ${ARCH} == amd64 ]] ; then
doexe lib/native/linux-64/*
else
doexe lib/native/linux/*
fi
# Make sure revdep-rebuild doesnt complain about them.
echo "SEARCH_DIRS_MASK=\"${EPREFIX}/usr/$(get_libdir)/${PN}/lib/native\"" > 50-"${PN}"
insinto /etc/revdep-rebuild && doins "50-${PN}"
# Starter item / icon
insinto /usr/share/pixmaps
doins resources/install/debian/${PN}.svg
make_desktop_entry ${PN} Jitsi ${PN} "AudioVideo;Network;InstantMessaging;Chat;Telephony;VideoConference;Java;"
# Generate man page from template
sed -e 's/_PACKAGE_NAME_/jitsi/g' -e 's/_APP_NAME_/Jitsi/g' \
resources/install/debian/jitsi.1.tmpl > "${T}/jitsi.1" || die
doman "${T}/jitsi.1"
# Install custom runscript
exeinto /usr/bin
dobin "${FILESDIR}/jitsi"
}

View File

@ -0,0 +1,89 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=5
inherit java-pkg-2 java-ant-2 eutils multilib prefix
DESCRIPTION="An audio/video SIP VoIP phone and instant messenger written in Java"
HOMEPAGE="http://www.jitsi.org/"
SRC_URI="https://download.jitsi.org/jitsi/nightly/src/${PN}-src-${PV}.zip"
# This download comes with 30 Mb of useless jars.
# SVN access is available, but requires an account at java.net.
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE="" # FIXME: Should not use ALSA directly, unless USE="alsa", because e.g. PulseAudio could already use and block it.
RDEPEND=">=virtual/jdk-1.6"
DEPEND=">=virtual/jdk-1.6
dev-java/xalan:0
dev-java/ant-nodeps:0
dev-util/patchelf"
S=${WORKDIR}/${PN}
QA_PREBUILT="usr/lib*/${PN}/lib/native/*"
EANT_BUILD_TARGET="rebuild"
src_prepare() {
# Set RPATH for preserve-libs handling.
local x jarch
if [[ ${ARCH} == amd64 ]] ; then
jarch=amd64
cd lib/native/linux-64 || die
else
jarch=i386
cd lib/native/linux || die
fi
local x jarch jdir
jdir=$(java-config -o || die)
for x in * ; do
# Use \x7fELF header to separate ELF executables and libraries
[[ -f ${x} && $(od -t x1 -N 4 "${x}") == *"7f 45 4c 46"* ]] || continue
patchelf --set-rpath "\$ORIGIN:${jdir}/jre/lib/${jarch}:${jdir}/jre/lib/${jarch}/client:${jdir}/jre/lib/${jarch}/xawt:/usr/lib/${PN}/lib/native" "${x}" ||
die "patchelf failed on ${x}"
done
}
src_install() {
# Netbeans bundles
insinto /usr/$(get_libdir)/${PN}/sc-bundles
doins sc-bundles/*.jar sc-bundles/os-specific/linux/*.jar
# Other libraries
insinto /usr/$(get_libdir)/${PN}/lib
doins lib/*
doins -r lib/bundle # Unnecessary?
# Native libraries
exeinto /usr/$(get_libdir)/${PN}/lib/native
# WARNING: Foreign binaries!
if [[ ${ARCH} == amd64 ]] ; then
doexe lib/native/linux-64/*
else
doexe lib/native/linux/*
fi
# Make sure revdep-rebuild doesn't complain about them.
echo "SEARCH_DIRS_MASK=\"${EPREFIX}/usr/$(get_libdir)/${PN}/lib/native\"" > 50-"${PN}"
insinto /etc/revdep-rebuild && doins "50-${PN}"
# Starter item / icon
insinto /usr/share/pixmaps
doins resources/install/debian/${PN}.svg
make_desktop_entry ${PN} Jitsi ${PN} "AudioVideo;Network;InstantMessaging;Chat;Telephony;VideoConference;Java;"
# Generate man page from template
sed -e 's/_PACKAGE_NAME_/jitsi/g' -e 's/_APP_NAME_/Jitsi/g' \
resources/install/debian/jitsi.1.tmpl > "${T}/jitsi.1" || die
doman "${T}/jitsi.1"
# Install custom runscript
exeinto /usr/bin
newbin "${FILESDIR}/jitsi-2.3" "jitsi"
}