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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Thu Aug 15 15:55:14 2013 UTC (6 years, 10 months ago) by tomwij
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Revision bump. Slotted bcprov dependency. Dropped old / broken revisions.

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

1 tomwij 1.1 # Copyright 1999-2013 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 tomwij 1.2 # $Header: /var/cvsroot/gentoo-x86/dev-java/bcmail/bcmail-1.45-r1.ebuild,v 1.1 2013/08/15 10:11:10 tomwij Exp $
4 tomwij 1.1
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="1.45"
18     KEYWORDS="amd64 ppc ppc64 x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos"
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