2008-01-19 17:22:15 +01:00
|
|
|
# Copyright 1999-2008 Gentoo Foundation
|
2007-10-07 11:27:42 +02:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
2007-10-07 12:58:05 +02:00
|
|
|
# $Header: $
|
2007-10-07 11:27:42 +02:00
|
|
|
|
|
|
|
JAVA_PKG_IUSE="doc examples source"
|
2008-01-19 17:03:04 +01:00
|
|
|
inherit java-pkg-2 eutils java-ant-2
|
2007-10-07 11:27:42 +02:00
|
|
|
|
2008-01-19 17:03:04 +01:00
|
|
|
MY_V=1.1.1
|
2007-10-07 11:27:42 +02:00
|
|
|
|
|
|
|
DESCRIPTION="A Java Management Console framework used for remote server management."
|
|
|
|
HOMEPAGE="http://directory.fedoraproject.org/"
|
2008-01-19 17:03:04 +01:00
|
|
|
SRC_URI="http://directory.fedoraproject.org/sources/${P}.tar.bz2"
|
2007-10-07 11:27:42 +02:00
|
|
|
LICENSE="LGPL-2.1"
|
|
|
|
SLOT="1.1"
|
2008-08-20 13:57:06 +02:00
|
|
|
KEYWORDS="~amd64 ~x86"
|
2007-10-07 11:27:42 +02:00
|
|
|
IUSE=""
|
|
|
|
|
|
|
|
COMMON_DEP="=dev-java/jss-4*
|
|
|
|
dev-java/ldapsdk"
|
2007-10-07 21:35:29 +02:00
|
|
|
RDEPEND=">=virtual/jre-1.5
|
2007-10-07 11:27:42 +02:00
|
|
|
${COMMON_DEP}"
|
|
|
|
DEPEND=">=virtual/jdk-1.5
|
|
|
|
${COMMON_DEP}"
|
2008-08-20 13:57:06 +02:00
|
|
|
|
2007-10-07 11:27:42 +02:00
|
|
|
src_unpack() {
|
|
|
|
unpack ${A}
|
2008-08-20 13:57:06 +02:00
|
|
|
cd "${S}"
|
2007-10-07 11:27:42 +02:00
|
|
|
java-pkg_jarfrom ldapsdk-4.1 ldapjdk.jar
|
|
|
|
java-pkg_jarfrom jss-3.4 xpclass.jar jss4.jar
|
|
|
|
}
|
|
|
|
|
|
|
|
src_compile() {
|
2008-08-20 13:57:06 +02:00
|
|
|
eant -Dbuilt.dir="${S}"/build \
|
|
|
|
-Dldapjdk.local.location="${S}" \
|
|
|
|
-Djss.local.location="${S}" ${antflags}
|
2007-10-07 11:27:42 +02:00
|
|
|
|
2008-08-20 13:57:06 +02:00
|
|
|
use doc && eant -Dbuilt.dir="${S}"/build \
|
|
|
|
-Dldapjdk.local.location="${S}" \
|
|
|
|
-Djss.local.location="${S}" ${antflags} javadoc
|
2007-10-07 11:27:42 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
2008-08-20 13:57:06 +02:00
|
|
|
java-pkg_newjar "${S}"/build/release/jars/idm-console-mcc-${MY_V}.jar idm-console-mcc.jar
|
|
|
|
java-pkg_newjar "${S}"/build/release/jars/idm-console-mcc-${MY_V}_en.jar idm-console-mcc_en.jar
|
|
|
|
java-pkg_newjar "${S}"/build/release/jars/idm-console-nmclf-${MY_V}.jar idm-console-nmclf.jar
|
|
|
|
java-pkg_newjar "${S}"/build/release/jars/idm-console-nmclf-${MY_V}_en.jar idm-console-nmclf_en.jar
|
|
|
|
java-pkg_newjar "${S}"/build/release/jars/idm-console-base-${MY_V}.jar idm-console-base.jar
|
2008-01-19 17:03:04 +01:00
|
|
|
# insinto /usr/share/dirsrv/manual/en/console/help/graphics
|
|
|
|
# doins ${S}/html/en/help/graphics/*.gif
|
|
|
|
# insinto /usr/share/dirsrv/manual/en/console/help
|
|
|
|
# doins ${S}/html/en/help/*.htm
|
2007-10-07 11:27:42 +02:00
|
|
|
|
2007-10-07 21:35:29 +02:00
|
|
|
use doc && java-pkg_dojavadoc build/doc
|
2007-10-07 11:27:42 +02:00
|
|
|
use examples && java-pkg_doexamples examples
|
|
|
|
use source && java-pkg_dosrc src/com
|
|
|
|
}
|