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

Contents of /dev-java/bcmail/bcmail-1.38-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (hide annotations) (download)
Sun Mar 28 21:23:34 2010 UTC (10 years ago) by caster
Branch: MAIN
Changes since 1.6: +5 -2 lines
Use slot dep for bcprov.
(Portage version: 2.2_rc67/cvs/Linux x86_64)

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

  ViewVC Help
Powered by ViewVC 1.1.20