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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Mon May 10 13:15:24 2010 UTC (9 years, 9 months ago) by phajdan.jr
Branch: MAIN
Changes since 1.1: +2 -2 lines
x86 stable wrt bug #317587
(Portage version: 2.1.8.3/cvs/Linux i686)

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-java/bcmail/bcmail-1.45.ebuild,v 1.1 2010/03/28 21:51:13 caster Exp $
4
5 EAPI=2
6
7 JAVA_PKG_IUSE="doc source"
8
9 inherit java-pkg-2 java-ant-2
10
11 MY_P="${PN}-jdk15-${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 KEYWORDS="~amd64 ~ppc ~ppc64 x86 ~amd64-linux ~x86-linux"
19
20 COMMON_DEPEND="~dev-java/bcprov-${PV}
21 =dev-java/junit-3.8*
22 dev-java/sun-jaf
23 java-virtuals/javamail"
24 DEPEND=">=virtual/jdk-1.5
25 app-arch/unzip
26 ${COMMON_DEPEND}"
27 RDEPEND=">=virtual/jre-1.5
28 ${COMMON_DEPEND}"
29
30 S="${WORKDIR}/${MY_P}"
31
32 src_unpack() {
33 default
34 cd "${S}"
35 unpack ./src.zip
36 }
37
38 src_compile() {
39 mkdir "${S}/classes"
40
41 find org -name "*.java" > "${T}/src.list"
42 ejavac -d "${S}/classes" \
43 -classpath $(java-pkg_getjars bcprov,junit,sun-jaf,javamail) \
44 "@${T}/src.list"
45
46 cd "${S}/classes"
47 jar -cf "${S}/${PN}.jar" * || die "failed to create jar"
48 }
49
50 src_install() {
51 java-pkg_dojar "${S}/${PN}.jar"
52
53 use source && java-pkg_dosrc org
54 use doc && java-pkg_dojavadoc docs
55 }

  ViewVC Help
Powered by ViewVC 1.1.20