/[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.4 - (hide annotations) (download)
Thu Aug 9 20:52:50 2012 UTC (2 years, 4 months ago) by johu
Branch: MAIN
Changes since 1.3: +2 -2 lines
Stable for x86, wrt bug #419325

(Portage version: 2.2.0_alpha120/cvs/Linux x86_64)

1 jlec 1.2 # Copyright 1999-2012 Gentoo Foundation
2 fordfrog 1.1 # Distributed under the terms of the GNU General Public License v2
3 johu 1.4 # $Header: /var/cvsroot/gentoo-x86/net-nds/jxplorer/jxplorer-3.2-r2.ebuild,v 1.3 2012/08/03 11:31:17 hwoarang Exp $
4 fordfrog 1.1
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 johu 1.4 KEYWORDS="amd64 ~ppc x86 ~amd64-linux ~x86-linux"
18 fordfrog 1.1 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 jlec 1.2
74     make_desktop_entry ${PN} JXplorer /usr/share/jxplorer/images/logo_32_trans.gif System
75 fordfrog 1.1 }

  ViewVC Help
Powered by ViewVC 1.1.20