/[gentoo-x86]/app-admin/389-admin-console/389-admin-console-1.1.7.ebuild
Gentoo

Contents of /app-admin/389-admin-console/389-admin-console-1.1.7.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Tue Jun 14 19:01:03 2011 UTC (3 years, 1 month ago) by lxnay
Branch: MAIN
version bump, fixes Gentoo bug #371633, drop older releases

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

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-admin/389-admin-console/389-admin-console-1.1.5.ebuild,v 1.1 2011/01/11 22:25:07 lxnay Exp $
4
5 EAPI="2"
6
7 JAVA_PKG_IUSE="doc source"
8
9 inherit java-pkg-2 java-ant-2
10
11 MY_PV=${PV/_alpha/.a}
12 MY_PV=${MY_PV/_rc/.rc}
13
14 DESCRIPTION="389 Server Management Console (jar and help files)"
15 HOMEPAGE="http://port389.org/"
16 SRC_URI="http://directory.fedoraproject.org/sources/${P}.tar.bz2"
17
18 LICENSE="LGPL-2.1"
19 SLOT="1.1"
20 KEYWORDS="~amd64 ~x86"
21 IUSE=""
22
23 COMMON_DEP="dev-java/jss:3.4
24 dev-java/ldapsdk:4.1
25 >=dev-java/idm-console-framework-1.1.7"
26 RDEPEND="|| ( >=virtual/jre-1.5 >=virtual/jdk-1.5 )
27 ${COMMON_DEP}"
28 DEPEND="sys-apps/sed
29 >=virtual/jdk-1.5
30 ${COMMON_DEP}"
31 PDEPEND="net-nds/389-admin"
32
33 src_prepare() {
34 # Gentoo java rules say no jars with version number
35 # so sed away the version indicator '-'
36 sed -e "s!-\*!\*!g" -i build.xml
37
38 java-pkg_jar-from ldapsdk-4.1 ldapjdk.jar
39 java-pkg_jar-from jss-3.4 xpclass.jar jss4.jar
40 java-pkg_jar-from idm-console-framework-1.1
41 }
42
43 src_compile() {
44 eant -Dbuilt.dir="${S}"/build \
45 -Dldapjdk.location="${S}" \
46 -Djss.location="${S}" \
47 -Dconsole.location="${S}" ${antflags}
48 use doc && eant -Dbuilt.dir="${S}"/build \
49 -Dldapjdk.location="${S}" \
50 -Djss.location="${S}" \
51 -Dconsole.location="${S}" ${antflags} javadoc
52 }
53
54 src_install() {
55 java-pkg_jarinto /usr/share/dirsrv/html/java
56 # have to install versioned jars, otherwise 389-console will crash
57 java-pkg_newjar "${S}"/build/package/389-admin-${MY_PV}.jar 389-admin-${MY_PV}.jar
58 java-pkg_newjar "${S}"/build/package/389-admin-${MY_PV}_en.jar 389-admin-${MY_PV}_en.jar
59
60 dosym 389-admin-${MY_PV}.jar /usr/share/dirsrv/html/java/389-admin.jar
61 dosym 389-admin-${MY_PV}.jar /usr/share/dirsrv/html/java/389-admin-${SLOT}.jar
62 dosym 389-admin-${MY_PV}_en.jar /usr/share/dirsrv/html/java/389-admin_en.jar
63 dosym 389-admin-${MY_PV}_en.jar /usr/share/dirsrv/html/java/389-admin-${SLOT}_en.jar
64
65 insinto /usr/share/dirsrv/manual/en/admin
66 doins "${S}"/help/en/*.html
67 doins "${S}"/help/en/tokens.map
68
69 insinto /usr/share/dirsrv/manual/en/admin/help
70 doins "${S}"/help/en/help/*.html
71
72 use doc && java-pkg_dojavadoc build/doc
73 use source && java-pkg_dosrc src/com
74 }

  ViewVC Help
Powered by ViewVC 1.1.20