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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Sun Mar 25 17:26:43 2007 UTC (13 years ago) by wltjr
Branch: MAIN
Initial ebuild, should be pretty identical to bcprov ebuild. Ideal to keep both in sync. Still to do, junit/test stuff, optional dep/compile test run
(Portage version: 2.1.2.2)

1 wltjr 1.1 # Copyright 1999-2007 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3     # $Header: /var/cvsroot/gentoo-x86/dev-java/itext/itext-2.0.0.ebuild,v 1.2 2007/03/23 13:12:26 betelgeuse Exp $
4    
5     JAVA_PKG_IUSE="doc source"
6    
7     inherit java-pkg-2 java-ant-2
8    
9     MY_P="${PN}-jdk14-${PV/./}"
10     DESCRIPTION="Java cryptography APIs"
11     HOMEPAGE="http://www.bouncycastle.org/java.html"
12     SRC_URI="http://www.bouncycastle.org/download/${MY_P}.tar.gz"
13    
14     LICENSE="BSD"
15     SLOT="0"
16     KEYWORDS="~amd64 ~x86"
17    
18     COMMON_DEPEND="~dev-java/bcprov-${PV}
19     dev-java/junit
20     dev-java/sun-javamail"
21     DEPEND=">=virtual/jdk-1.4
22     app-arch/unzip
23     ${COMMON_DEPEND}"
24     RDEPEND=">=virtual/jre-1.4
25     ${COMMON_DEPEND}"
26    
27     S="${WORKDIR}/${MY_P}"
28    
29     src_unpack() {
30     unpack ${A}
31     cd "${S}"
32     unpack ./src.zip
33     }
34    
35     src_compile() {
36     mkdir "${S}/classes"
37    
38     find org -name "*.java" > "${T}/src.list"
39     ejavac -d "${S}/classes" \
40     -classpath $(java-pkg_getjars bcprov,junit,sun-javamail) \
41     "@${T}/src.list"
42    
43     cd "${S}/classes"
44     jar -cf "${S}/${PN}.jar" * || die "failed to create jar"
45     }
46    
47     src_install() {
48     java-pkg_dojar "${S}/${PN}.jar"
49    
50     use source && java-pkg_dosrc org
51     use doc && java-pkg_dojavadoc docs
52     }

  ViewVC Help
Powered by ViewVC 1.1.20