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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Thu Sep 5 22:34:27 2013 UTC (6 years, 8 months ago) by tomwij
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
Error occurred while calculating annotation data.
FILE REMOVED
Properly SLOT bcprov dependency with one that's exactly the same (except for the SLOT) to resolve a blocker. (http://forums.gentoo.org/viewtopic-p-7389618.html#7389618)

(Portage version: 2.2.1/cvs/Linux x86_64, RepoMan options: --force, signed Manifest commit with key 6D34E57D)

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-r2.ebuild,v 1.2 2013/09/01 11:38:21 grobian 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="1.38"
18 KEYWORDS="amd64 ppc ppc64 x86 ~amd64-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
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