/[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.8 - (hide annotations) (download)
Fri Jul 12 02:42:30 2013 UTC (6 years, 8 months ago) by patrick
Branch: MAIN
Changes since 1.7: +3 -3 lines
QA: Adding ~amd64-fbsd keyword to avoid keyword removal cascade

(Portage version: 2.2.0_alpha188/cvs/Linux x86_64, unsigned Manifest commit)

1 patrick 1.8 # Copyright 1999-2013 Gentoo Foundation
2 caster 1.1 # Distributed under the terms of the GNU General Public License v2
3 patrick 1.8 # $Header: /var/cvsroot/gentoo-x86/dev-java/bcmail/bcmail-1.38-r1.ebuild,v 1.7 2010/03/28 21:23:34 caster Exp $
4 caster 1.7
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 patrick 1.8 KEYWORDS="amd64 ppc ppc64 x86 ~amd64-fbsd ~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