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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (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.3: +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.3.ebuild,v 1.3 2014/08/10 20:09:21 slyfox Exp $
4
5 EAPI=5
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 HOMEPAGE="http://cglib.sourceforge.net"
12 SRC_URI="mirror://sourceforge/${PN}/${PN}.${PV}.zip"
13 LICENSE="Apache-2.0"
14 SLOT="2.2"
15 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-fbsd ~amd64-linux ~x86-linux ~sparc-solaris ~x86-solaris"
16
17 COMMON_DEP="dev-java/asm:3
18 >=dev-java/ant-core-1.7.0:0"
19 RDEPEND=">=virtual/jre-1.4
20 ${COMMON_DEP}"
21 DEPEND=">=virtual/jdk-1.4
22 app-arch/unzip
23 test? ( dev-java/junit:0 )
24 ${COMMON_DEP}"
25
26 S=${WORKDIR}
27
28 EANT_GENTOO_CLASSPATH="asm-3,ant-core"
29 JAVA_ANT_REWRITE_CLASSPATH="true"
30 EANT_TEST_JUNIT_INTO="lib"
31 EANT_TEST_EXTRA_ARGS="-DdebugLocation=${T}/debug"
32
33 src_unpack() {
34 unpack ${A}
35 cd "${S}"
36 unzip -q ${PN}-src-${PV}.jar || die
37 }
38
39 java_prepare() {
40 epatch "${FILESDIR}"/${P}-build.patch
41
42 # fix line endings otherwise patch fails
43 edos2unix src/test/net/sf/cglib/CodeGenTestCase.java
44 # mem leak tests fail on ppc #284316
45 # assuming gc() guarantees to free all memory is wrong, so don't make them fail
46 epatch "${FILESDIR}/${PN}-2.2-no-leak-test.patch"
47
48 cp "${FILESDIR}"/words.txt src/test/net/sf/cglib/util/ || die
49
50 find . -name '*.jar' -delete
51 }
52
53 src_test() {
54 java-pkg-2_src_test
55 }
56
57 src_install() {
58 java-pkg_newjar dist/${P}.jar
59 dodoc NOTICE README
60
61 use doc && java-pkg_dojavadoc docs
62 use source && java-pkg_dosrc src/proxy/net
63 use examples && java-pkg_doexamples --subdir samples src/proxy/samples
64 }

  ViewVC Help
Powered by ViewVC 1.1.20