/[gentoo-x86]/net-p2p/frostwire/frostwire-4.13.5-r1.ebuild
Gentoo

Contents of /net-p2p/frostwire/frostwire-4.13.5-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Tue Aug 5 18:11:23 2008 UTC (6 years, 3 months ago) by wltjr
Branch: MAIN
Changes since 1.2: +2 -2 lines
Specified slot 0 for icu4j, since it has a new slot 4 version causing problems, but #233544
(Portage version: 2.2_rc3/cvs/Linux 2.6.24-gentoo-r4 x86_64)

1 # Copyright 1999-2008 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-p2p/frostwire/frostwire-4.13.5-r1.ebuild,v 1.2 2008/05/14 04:29:09 wltjr Exp $
4
5 EAPI=1
6 JAVA_PKG_IUSE="source"
7
8 inherit java-pkg-2 java-ant-2
9
10 DESCRIPTION="Frostwire Java Gnutella client"
11 HOMEPAGE="http://www.frostwire.com"
12 SRC_URI="http://www.frostwire.com/frostwire/${PV}/${P}.src.tar.gz"
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="~amd64 ~x86"
16 #IUSE="gtk"
17 IUSE=""
18
19 # dev-java/commons-httpclient
20 # dev-java/commons-pool
21 COMMON_DEP="
22 dev-java/commons-logging
23 dev-java/commons-net
24 dev-java/icu4j:0
25 dev-java/jgoodies-looks:1.2
26 dev-java/jmdns
27 dev-java/jython
28 dev-java/log4j
29 dev-java/xml-commons-external"
30
31 DEPEND=">=virtual/jdk-1.5
32 ${COMMON_DEP}"
33
34 RDEPEND=">=virtual/jre-1.5
35 dev-java/asm
36 ${COMMON_DEP}"
37
38 S="${WORKDIR}/${P}.src"
39
40 PREFIX="/usr/share/${PN}"
41
42 src_unpack() {
43 unpack ${A}
44 cd "${S}"
45
46 #Todo
47 # java-ant_rewrite-classpath
48
49 find . '(' -name '*.bat' -o -name '*.exe' ')' -delete
50 # find ${S} '(' -name '*.class' -o -name '*.jar' ')' -print -delete
51
52 # Tried to remove but seem to be required :(
53 # rm -fR lib/jars/osx lib/jars/windows
54
55 cd lib/jars
56 rm -fR commons-logging.jar commons-net.jar \
57 log4j.jar icu4j.jar jmdns.jar
58
59 # Seems to want a modified version of commons-httpclient
60 # java-pkg_jar-from commons-httpclient
61 java-pkg_jar-from commons-logging
62
63 # Seems to want a modified version of commons-pool
64 # java-pkg_jar-from commons-pool
65 java-pkg_jar-from commons-net
66 java-pkg_jar-from log4j
67 java-pkg_jar-from icu4j
68 java-pkg_jar-from jmdns
69 java-pkg_jar-from jgoodies-looks-1.2
70 java-pkg_jar-from jython
71
72 # bye bye hashes, crude but effective :)
73 cat /dev/null > "${S}/lib/jars/hashes"
74
75 }
76
77 src_compile() {
78 cd "${S}/core"
79 eant
80 cd "${S}/gui"
81 eant
82 eant FrostWireJar
83
84 # Make themes.jar
85 cd "${S}/lib/themes"
86 sh makeThemesJar.sh
87
88 # temp fix/hack for bug #215423 till bug #180755 is resolved
89 # bit noisy when not found, but better than command not found :)
90 [ ! -p native2ascii > /dev/null ] && export PATH="${PATH}:$(java-config -O)/bin"
91
92 # Make message bundles
93 cd "${S}/lib/native_encoded_messagebundles"
94 python create_iso88591_bundles.py
95 cd "${S}/lib/messagebundles"
96 jar -cf MessagesBundles.jar resources totd xml *.properties
97 }
98
99 src_install() {
100 java-pkg_dojar "${S}/gui/lib/FrostWire.jar"
101 java-pkg_dojar "${S}/lib/jars/other/themes.jar"
102 java-pkg_dojar "${S}/lib/jars/id3v2.jar"
103 java-pkg_dojar "${S}/lib/messagebundles/MessagesBundles.jar"
104
105 # Install resources for Frostwire. Don't let the jars deceive ya :)
106 # These are directly required, not sure of source atm
107 insinto ${PREFIX}
108 doins "${S}/gui/xml.war"
109 doins "${S}/gui/update.ver"
110 doins "${S}/lib/messagebundles/MessagesBundle.properties"
111 cd "${D}/usr/share/${PN}"
112 ln -s lib/id3v2.jar
113 ln -s lib/MessagesBundles.jar
114 ln -s lib/themes.jar
115
116 # Bundled jars, yeah I know throw up in your mouth some
117 # but registering them you say, only doing so for launcher
118 bjs="clink.jar daap.jar commons-httpclient.jar commons-pool.jar \
119 jcraft.jar jdic.jar jl011.jar mp3sp14.jar ProgressTabs.jar \
120 tritonus.jar vorbis.jar linux/jdic_stub.jar i18n.jar"
121 for bj in ${bjs} ; do
122 java-pkg_dojar "${S}/lib/jars/${bj}"
123 done
124
125 touch "${D}/${PREFIX}/hashes"
126
127 java-pkg_dolauncher ${PN} \
128 --main com.limegroup.gnutella.gui.Main \
129 --java_args "-Xms64m -Xmx128m -ea -Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.NoOpLog" \
130 --pwd /usr/share/${PN}
131
132 sizes="16x16 32x32 48x48 64x64"
133 for size in ${sizes} ; do
134 insinto /usr/share/icons/hicolor/${size}/apps
135 doins "${S}/lib/icons/hicolor/${size}/apps/${PN}.png"
136 done
137
138 make_desktop_entry frostwire FrostWire
139 }

  ViewVC Help
Powered by ViewVC 1.1.20