blob: 17a1f2abdb44fce90a557a4aa0432b61258153a0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/ldapsdk/ldapsdk-4.1.7-r3.ebuild,v 1.2 2008/04/28 21:25:20 betelgeuse Exp $
EAPI=1
JAVA_PKG_IUSE="doc source"
inherit eutils java-pkg-2 java-ant-2
DESCRIPTION="Netscape Directory SDK for Java"
HOMEPAGE="http://www.mozilla.org/directory/javasdk.html"
SRC_URI="http://www.mozilla.org/directory/${PN}_java_20020819.tar.gz"
LICENSE="MPL-1.1"
SLOT="4.1"
KEYWORDS="amd64 x86"
IUSE="doc"
RDEPEND=">=virtual/jre-1.4
dev-java/jss:3.4
dev-java/jakarta-oro:2.0"
DEPEND=">=virtual/jdk-1.4
${RDEPEND}"
S=${WORKDIR}/mozilla/directory/java-sdk
src_unpack() {
unpack ${A}
cd "${WORKDIR}"/mozilla
epatch ${FILESDIR}/ldapsdk-gentoo.patch
cd "${S}"
echo "ororegexp.jar=$(java-pkg_getjars jakarta-oro-2.0)" > build.properties
echo "jss.jar=$(java-pkg_getjars jss-3.4)" >> build.properties
cd "${S}"/ldapjdk/lib
rm -f *.jar
java-pkg_jar-from jss-3.4
cd "${S}"/ldapsp/lib
rm *.jar
java-pkg_filter-compiler jikes
}
src_compile() {
eant dist-jdk dist-filter dist-beans dist-jndi $(use_doc build-docs)
}
src_install() {
java-pkg_dojar dist/packages/*.jar
use doc && java-pkg_dojavadoc dist/doc/ldapsp
use source && \
java-pkg_dosrc {ldapsp,ldapjdk}/com {ldapjdk,ldapbeans,ldapfilter}/netscape
}
|