/[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.9 - (show annotations) (download)
Sun Aug 3 10:15:54 2014 UTC (5 years, 8 months ago) by sera
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +1 -1 lines
Error occurred while calculating annotation data.
FILE REMOVED
Remove old

(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 3C5CF75A)

1 # Copyright 1999-2013 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.38-r1.ebuild,v 1.8 2013/07/12 02:42:30 patrick Exp $
4
5 EAPI=1
6
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 KEYWORDS="amd64 ppc ppc64 x86 ~amd64-fbsd ~amd64-linux ~x86-linux"
19
20 COMMON_DEPEND="~dev-java/bcprov-${PV}:0
21 =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 IUSE=""
30
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