diff options
author | Sebastian Pipping <sebastian@pipping.org> | 2013-06-24 04:40:55 +0200 |
---|---|---|
committer | Sebastian Pipping <sebastian@pipping.org> | 2013-06-24 04:55:06 +0200 |
commit | d7fd266323ab221ebfa0b15d461435cf3e28f452 (patch) | |
tree | b425768f9b2ce8a248cbce349a6e02e72608cf94 /net-im | |
parent | x11-misc/dspdfviewer: 1.10 (diff) | |
download | betagarden-d7fd266323ab221ebfa0b15d461435cf3e28f452.tar.gz betagarden-d7fd266323ab221ebfa0b15d461435cf3e28f452.tar.bz2 betagarden-d7fd266323ab221ebfa0b15d461435cf3e28f452.zip |
net-im/jitsi: 2.2
Diffstat (limited to 'net-im')
-rw-r--r-- | net-im/jitsi/Manifest | 1 | ||||
-rw-r--r-- | net-im/jitsi/jitsi-2.2.ebuild | 98 | ||||
-rw-r--r-- | net-im/jitsi/metadata.xml | 8 |
3 files changed, 107 insertions, 0 deletions
diff --git a/net-im/jitsi/Manifest b/net-im/jitsi/Manifest new file mode 100644 index 0000000..ca0854c --- /dev/null +++ b/net-im/jitsi/Manifest @@ -0,0 +1 @@ +DIST Jitsi-2.2.tar.gz 60890755 SHA256 733f49c147d5955733ca058459efae6b6dc10ab4c7932671b88068a8138cc8b7 SHA512 e706f4130b25da6a2df7cadd50df4d75c5e195b57f0c314a1d35ba2170dc30f94d54098d79f3dc09a38abb686f3d8e1f33ba5ca1352c2afcc448911b74850393 WHIRLPOOL 7f17e9b37e034ade4cc03605c08d8799a6012ffd1377c74b0b783d90b61cce64a85eb6af281df6eb9bbf5842e97eef8ab78ec45d0d702281663883bd8c51d5e0 diff --git a/net-im/jitsi/jitsi-2.2.ebuild b/net-im/jitsi/jitsi-2.2.ebuild new file mode 100644 index 0000000..d4000ab --- /dev/null +++ b/net-im/jitsi/jitsi-2.2.ebuild @@ -0,0 +1,98 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="4" + +inherit eutils java-pkg-2 java-ant-2 + +DESCRIPTION="Open Source Video Calls and Chat" +HOMEPAGE="https://jitsi.org/" +SRC_URI="https://github.com/${PN}/${PN}/archive/${PN^}-${PV}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +DEPEND=">=virtual/jdk-1.6" +RDEPEND=">=virtual/jre-1.6" + +S=${WORKDIR}/${PN}-${PN^}-${PV} +RESTRICT="strip" + +QA_PREBUILT="usr/share/jitsi/lib/native/*" + +src_prepare() { + # Leave linux and mac .jars only (without mac we get build errors from src/net/java/sip/communicator/...) + rm -R lib/os-specific/{freebsd,solaris,windows}/ || die + + # Leave linux-64 .so files only: + rm -R lib/native/{freebsd{,-64},linux,mac,solaris{,-sparc},windows{,-64}}/ || die + + ewarn "Bundled .jar files left to unbundle:" + ewarn "$(find . -type f -name '*.jar')" + ewarn + ewarn "Bundled .so files left to unbundle:" + ewarn "$(find . -type f -name '*.so')" +} + +src_compile() { + eant make deploy-os-specific-bundles || die +} + +src_install() { + # Basically re-create .rpm structure + # .jar files + insinto /usr/share/${PN}/lib/bundle/ + doins lib/bundle/commons-logging.jar + doins lib/bundle/log4j.jar + doins lib/bundle/org.apache.felix.bundlerepository-1.6.4.jar + + insinto /usr/share/${PN}/lib/ + doins lib/felix.jar + doins lib/jdic-all.jar + doins lib/os-specific/linux/jdic_stub.jar + + insinto /usr/share/${PN}/ + doins -r sc-bundles + rm -R "${D}"/usr/share/jitsi/sc-bundles/os-specific/{freebsd,macosx,solaris,windows}/ || die + + java-pkg_regjar /usr/share/${PN}/lib/jdic-all.jar + java-pkg_regjar /usr/share/${PN}/lib/jdic_stub.jar + java-pkg_regjar /usr/share/${PN}/lib/felix.jar + java-pkg_regjar /usr/share/${PN}/sc-bundles/sc-launcher.jar + java-pkg_regjar /usr/share/${PN}/sc-bundles/util.jar + + # *.properties + insinto /usr/share/${PN}/lib/ + doins lib/felix.client.run.properties + doins lib/logging.properties + + # .so files + insinto /usr/share/${PN}/lib/native/ + doins lib/native/linux-64/*.so + java-pkg_regso "${D}"/usr/share/${PN}/lib/native/*.so + + # Icons + insinto /usr/share/pixmaps/ + doins resources/install/debian/${PN}.svg + + # Launchers + local SCDIR=/usr/share/${PN} + local LIBPATH=${SCDIR}/lib + local FELIX_CONFIG=${LIBPATH}/felix.client.run.properties + local LOG_CONFIG=${LIBPATH}/logging.properties + + local JAVA_ARGS="-client -Xmx1024m" + JAVA_ARGS+=" -Djna.library.path=${LIBPATH}/native" + JAVA_ARGS+=" -Dfelix.config.properties=file://${FELIX_CONFIG}" + JAVA_ARGS+=" -Djava.util.logging.config.file=${LOG_CONFIG}" + + java-pkg_dolauncher ${PN} \ + --main net.java.sip.communicator.launcher.SIPCommunicator \ + --java_args "${JAVA_ARGS}" \ + --pwd "${SCDIR}" + + make_desktop_entry ${PN} ${PN^} ${PN} +} diff --git a/net-im/jitsi/metadata.xml b/net-im/jitsi/metadata.xml new file mode 100644 index 0000000..16bcc9f --- /dev/null +++ b/net-im/jitsi/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>sping@gentoo.org</email> + <name>Sebastian Pipping</name> + </maintainer> +</pkgmetadata> |