/[gentoo-x86]/net-nds/jxplorer/jxplorer-3.2-r2.ebuild
Gentoo

Contents of /net-nds/jxplorer/jxplorer-3.2-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Thu Aug 23 14:40:07 2012 UTC (8 months, 4 weeks ago) by xmw
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +2 -2 lines
ppc stable (bug 419325).

(Portage version: 2.1.11.10/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-nds/jxplorer/jxplorer-3.2-r2.ebuild,v 1.4 2012/08/09 20:52:50 johu Exp $
4
5 EAPI="4"
6 JAVA_PKG_IUSE="doc source"
7
8 inherit eutils java-pkg-2 java-ant-2 prefix
9
10 DESCRIPTION="A fully functional ldap browser written in java."
11 HOMEPAGE="http://jxplorer.org/"
12 SRC_URI="mirror://sourceforge/${PN}/JXv${PV}src.tar.bz2
13 mirror://sourceforge/${PN}/JXv${PV}deploy.tar.bz2"
14 LICENSE="CAOSL"
15 IUSE=""
16 SLOT="0"
17 KEYWORDS="amd64 ppc x86 ~amd64-linux ~x86-linux"
18 RDEPEND=">=virtual/jre-1.4
19 >=dev-java/javahelp-2.0.02_p46
20 >=dev-java/log4j-1.2.8
21 =dev-java/junit-3.8*"
22 DEPEND=">=virtual/jdk-1.4
23 ${RDEPEND}"
24
25 S=${WORKDIR}/${PN}
26
27 src_prepare() {
28 epatch "${FILESDIR}/${PV}-com.ca.level.patch"
29 }
30
31 src_unpack() {
32 unpack ${A}
33 cd "${S}"
34
35 cp "${FILESDIR}/build.xml" ./build.xml || die
36
37 # Contains stuff for javahelp
38 mkdir dist
39 cp jars/help.jar dist || die
40
41 rm -v jars/*.jar || die
42 mkdir lib/ && cd lib/
43 java-pkg_jar-from javahelp
44 java-pkg_jar-from log4j
45 java-pkg_jar-from junit
46 }
47
48 EANT_DOC_TARGET="docs"
49 EANT_FILTER_COMPILER="jikes"
50
51 src_install() {
52 java-pkg_dojar dist/${PN}.jar dist/help.jar
53
54 dodir /usr/share/${PN}
55 for i in "icons images htmldocs language templates security connections.txt log4j.xml"
56 do
57 cp -r ${i} "${ED}/usr/share/${PN}" || die
58 done
59
60 dodoc RELEASE.TXT || die
61
62 # By default the config dir is ${HOME}/jxplorer
63 java-pkg_dolauncher ${PN} \
64 --main com.ca.directory.jxplorer.JXplorer \
65 --pwd '"${HOME}/.jxplorer"' \
66 --pkg_args console \
67 -pre "${FILESDIR}/${PN}-pre-r1"
68
69 eprefixify "${ED}/usr/bin/${PN}"
70
71 use source && java-pkg_dosrc src/com
72 use doc && java-pkg_dojavadoc docs
73
74 make_desktop_entry ${PN} JXplorer /usr/share/jxplorer/images/logo_32_trans.gif System
75 }

  ViewVC Help
Powered by ViewVC 1.1.13