/[gentoo-x86]/dev-java/bcmail/bcmail-1.36.ebuild
Gentoo

Contents of /dev-java/bcmail/bcmail-1.36.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (hide annotations) (download)
Thu Jun 14 00:35:39 2007 UTC (12 years, 9 months ago) by angelos
Branch: MAIN
Changes since 1.7: +2 -2 lines
Stable on amd64 wrt bug 181086
(Portage version: 2.1.2.9)

1 wltjr 1.1 # Copyright 1999-2007 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 angelos 1.8 # $Header: /var/cvsroot/gentoo-x86/dev-java/bcmail/bcmail-1.36.ebuild,v 1.7 2007/06/09 20:34:01 nixnut Exp $
4 wltjr 1.1
5     JAVA_PKG_IUSE="doc source"
6    
7     inherit java-pkg-2 java-ant-2
8    
9     MY_P="${PN}-jdk14-${PV/./}"
10     DESCRIPTION="Java cryptography APIs"
11     HOMEPAGE="http://www.bouncycastle.org/java.html"
12     SRC_URI="http://www.bouncycastle.org/download/${MY_P}.tar.gz"
13    
14     LICENSE="BSD"
15     SLOT="0"
16 angelos 1.8 KEYWORDS="amd64 ppc ~ppc64 x86"
17 wltjr 1.1
18     COMMON_DEPEND="~dev-java/bcprov-${PV}
19     dev-java/junit
20 caster 1.3 dev-java/sun-jaf
21 wltjr 1.1 dev-java/sun-javamail"
22     DEPEND=">=virtual/jdk-1.4
23     app-arch/unzip
24     ${COMMON_DEPEND}"
25     RDEPEND=">=virtual/jre-1.4
26     ${COMMON_DEPEND}"
27    
28     S="${WORKDIR}/${MY_P}"
29    
30     src_unpack() {
31     unpack ${A}
32     cd "${S}"
33     unpack ./src.zip
34     }
35    
36     src_compile() {
37     mkdir "${S}/classes"
38    
39     find org -name "*.java" > "${T}/src.list"
40     ejavac -d "${S}/classes" \
41 wltjr 1.2 -classpath $(java-pkg_getjars bcprov,junit,sun-jaf,sun-javamail) \
42 wltjr 1.1 "@${T}/src.list"
43    
44     cd "${S}/classes"
45     jar -cf "${S}/${PN}.jar" * || die "failed to create jar"
46     }
47    
48     src_install() {
49     java-pkg_dojar "${S}/${PN}.jar"
50    
51     use source && java-pkg_dosrc org
52     use doc && java-pkg_dojavadoc docs
53     }

  ViewVC Help
Powered by ViewVC 1.1.20