/[gentoo-x86]/dev-java/cglib/cglib-2.2.ebuild
Gentoo

Contents of /dev-java/cglib/cglib-2.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Sun Jun 14 15:35:58 2015 UTC (4 years, 7 months ago) by monsieurp
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +1 -1 lines
FILE REMOVED
Drop old.

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

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-java/cglib/cglib-2.2.ebuild,v 1.7 2014/08/10 20:09:21 slyfox Exp $
4
5 EAPI="2"
6 JAVA_PKG_IUSE="test doc examples source"
7
8 inherit eutils java-pkg-2 java-ant-2
9
10 DESCRIPTION="cglib is a powerful, high performance and quality Code Generation Library"
11 SRC_URI="mirror://sourceforge/${PN}/${PN}-src-${PV}.jar"
12 HOMEPAGE="http://cglib.sourceforge.net"
13 LICENSE="Apache-2.0"
14 SLOT="2.2"
15 KEYWORDS="amd64 ppc ppc64 x86 ~amd64-linux ~x86-linux ~sparc-solaris ~x86-solaris"
16 COMMON_DEP="dev-java/asm:3
17 >=dev-java/ant-core-1.7.0"
18 RDEPEND=">=virtual/jre-1.4
19 ${COMMON_DEP}"
20 DEPEND=">=virtual/jdk-1.4
21 app-arch/unzip
22 test? ( dev-java/junit )
23 ${COMMON_DEP}"
24 IUSE=""
25
26 S=${WORKDIR}
27
28 src_prepare() {
29 epatch "${FILESDIR}/${P}-build.patch"
30 # mem leak tests fail on ppc #284316
31 # assuming gc() guarantees to free all memory is wrong, so don't make them fail
32 epatch "${FILESDIR}/${P}-no-leak-test.patch"
33
34 cp "${FILESDIR}/words.txt" "${S}/src/test/net/sf/cglib/util/"
35 }
36
37 src_unpack() {
38 unpack ${A}
39
40 cd "${S}/lib"
41 rm -v *.jar || die
42 java-pkg_jar-from asm-3 asm.jar
43 java-pkg_jar-from asm-3 asm-util.jar
44 java-pkg_jar-from asm-3 asm-commons.jar
45 java-pkg_jar-from ant-core ant.jar
46 }
47
48 EANT_TEST_JUNIT_INTO="lib"
49 EANT_TEST_EXTRA_ARGS="-DdebugLocation=${T}/debug"
50
51 src_test() {
52 java-pkg-2_src_test
53 }
54
55 src_install() {
56 java-pkg_newjar dist/${P}.jar ${PN}.jar
57
58 dodoc NOTICE README || die
59 use doc && java-pkg_dojavadoc docs
60 use source && java-pkg_dosrc src/proxy/net
61 use examples && java-pkg_doexamples --subdir samples src/proxy/samples
62 }

  ViewVC Help
Powered by ViewVC 1.1.20