source: net-im/jitsi/jitsi-2.0.4506.10553.ebuild @ 614fd62

Revision 614fd62, 1.9 KB checked in by Mario Fetka <mario.fetka@…>, 7 years ago (diff)

redigest and add

  • Property mode set to 100644
Line 
1# Copyright 1999-2012 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2
3# $Header: $
4
5EAPI=4
6
7inherit java-pkg-2 java-ant-2 eutils multilib prefix
8
9DESCRIPTION="An audio/video SIP VoIP phone and instant messenger written in Java"
10HOMEPAGE="http://www.jitsi.org/"
11SRC_URI="https://download.jitsi.org/jitsi/src/${PN}-src-${PV}.zip"
12# This download comes with 30 Mb of useless jars.
13# SVN access is available, but requires an account at java.net.
14
15LICENSE="LGPL-2.1"
16SLOT="0"
17KEYWORDS="~x86 ~amd64"
18IUSE="" # FIXME: Should not use ALSA directly, unless USE="alsa", because e.g. PulseAudio could already use and block it.
19
20RDEPEND=">=virtual/jdk-1.6"
21DEPEND=">=virtual/jdk-1.6
22                dev-java/xalan:0
23                dev-java/ant-nodeps:0"
24
25S="${WORKDIR}/${PN}"
26
27EANT_BUILD_TARGET="rebuild"
28
29src_install() {
30
31        # Netbeans bundles
32        insinto ${EPREFIX}/usr/$(get_libdir)/jitsi/sc-bundles
33        doins sc-bundles/*.jar sc-bundles/os-specific/linux/*.jar
34
35        # Other libraries
36        insinto ${EPREFIX}/usr/$(get_libdir)/jitsi/lib
37        doins lib/* lib/os-specific/linux/*
38        doins -r lib/bundle # Unnecessary?
39
40        # Native libraries
41        insinto ${EPREFIX}/usr/$(get_libdir)/jitsi/lib/native
42        # WARNING: Foreign binaries!
43        if [[ "${ARCH}" = amd64 ]]
44                then doins lib/native/linux-64/*
45                else doins lib/native/linux/*
46                fi
47        # Make sure revdep-rebuild doesn’t complain about them.
48        echo "SEARCH_DIRS_MASK=\"${EPREFIX}/usr/$(get_libdir)/jitsi/lib/native\"" > 50-"${PN}"
49        insinto /etc/revdep-rebuild && doins "50-${PN}"
50
51
52        # Starter item / icon
53        insinto /usr/share/pixmaps
54        doins resources/install/debian/jitsi.svg
55        make_desktop_entry jitsi Jitsi jitsi "AudioVideo;Network;InstantMessaging;Chat;Telephony;VideoConference;Java;"
56
57        # Generate man page from template
58        sed -e 's/_PACKAGE_NAME_/jitsi/g' -e 's/_APP_NAME_/Jitsi/g' \
59                resources/install/debian/jitsi.1.tmpl > jitsi.1 || die
60        doman jitsi.1
61
62        # Install custom runscript
63        dobin "${FILESDIR}/jitsi" || die
64
65}
Note: See TracBrowser for help on using the repository browser.