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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Thu Aug 6 17:24:10 2015 UTC (4 years, 7 months ago) by monsieurp
Branch: MAIN
CVS Tags: HEAD
Remove java-virtuals/javamail dependency and replace it with oracle-javamail. Also, convert two ebuilds to EAPI 5 and rely on java-pkg-simple to do away with hacks. Fixes bug 553186.

Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 93491BB8)

1 monsieurp 1.1 # Copyright 1999-2015 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.52.ebuild,v 1.1 2015/08/01 16:33:30 monsieurp Exp $
4    
5     EAPI=5
6    
7     JAVA_PKG_IUSE="doc source test"
8    
9     inherit java-pkg-2 java-pkg-simple
10    
11     MY_P="${PN}-jdk15on-${PV/./}"
12    
13     DESCRIPTION="Java cryptography APIs"
14     HOMEPAGE="http://www.bouncycastle.org/java.html"
15     SRC_URI="http://www.bouncycastle.org/download/${MY_P}.tar.gz"
16    
17     LICENSE="BSD"
18     SLOT="0"
19     KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos"
20    
21     CDEPEND="dev-java/bcprov:0[test?]
22     dev-java/bcpkix:0[test?]
23     dev-java/sun-jaf:0
24     dev-java/junit:0
25     dev-java/oracle-javamail:0"
26    
27     DEPEND=">=virtual/jdk-1.6
28     app-arch/unzip
29     ${CDEPEND}"
30    
31     RDEPEND=">=virtual/jre-1.6
32     ${CDEPEND}"
33    
34     S="${WORKDIR}/${MY_P}"
35    
36     JAVA_GENTOO_CLASSPATH="
37     junit
38     bcprov
39     bcpkix
40     sun-jaf
41     oracle-javamail
42     "
43    
44     # Package can't be build with test as bcprov and bcpkix can't be built with test.
45     RESTRICT="test"
46    
47     src_unpack() {
48     default
49     cd "${S}"
50     unpack ./src.zip
51     }
52    
53     java_prepare() {
54     JAVA_RM_FILES=(
55     org/bouncycastle/mail/smime/test/*
56     org/bouncycastle/mail/smime/examples/CreateSignedMail.java
57     )
58     }
59    
60     src_compile() {
61     java-pkg-simple_src_compile
62     }
63    
64     src_install() {
65     java-pkg-simple_src_install
66     use source && java-pkg_dosrc org
67     }

  ViewVC Help
Powered by ViewVC 1.1.20