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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations) (download)
Sat Oct 13 10:07:38 2007 UTC (12 years, 5 months ago) by opfer
Branch: MAIN
Changes since 1.2: +2 -2 lines
stable x86, bug 194836
(Portage version: 2.1.3.9)

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

  ViewVC Help
Powered by ViewVC 1.1.20