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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations) (download)
Thu Sep 3 15:43:38 2009 UTC (10 years, 5 months ago) by elvanor
Branch: MAIN
Changes since 1.2: +7 -5 lines
Bump to cglib-2.2.
(Portage version: 2.1.6.13/cvs/Linux i686)

1 elvanor 1.3 # Copyright 1999-2009 Gentoo Foundation
2 betelgeuse 1.1 # Distributed under the terms of the GNU General Public License v2
3 elvanor 1.3 # $Header: /var/cvsroot/gentoo-x86/dev-java/cglib/cglib-2.2_beta1-r1.ebuild,v 1.2 2008/03/30 17:14:43 corsair Exp $
4 betelgeuse 1.1
5 elvanor 1.3 EAPI="2"
6 betelgeuse 1.1 JAVA_PKG_IUSE="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 corsair 1.2 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
16 betelgeuse 1.1 COMMON_DEP="dev-java/asm:2.2
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     ${COMMON_DEP}"
23     IUSE=""
24    
25     S=${WORKDIR}
26    
27 elvanor 1.3 src_prepare() {
28     epatch "${FILESDIR}/2.2-beta-nojarjar.patch"
29     }
30    
31 betelgeuse 1.1 src_unpack() {
32     unpack ${A}
33    
34     cd "${S}/lib"
35     rm -v *.jar || die
36     java-pkg_jar-from asm-2.2 asm.jar
37     java-pkg_jar-from asm-2.2 asm-util.jar
38     java-pkg_jar-from asm-2.2 asm-commons.jar
39     java-pkg_jar-from ant-core ant.jar
40     }
41    
42     # Fail giving a NullPointerException
43     RESTRICT="test"
44     EANT_TEST_JUNIT_INTO="lib"
45    
46     src_install() {
47     java-pkg_newjar dist/${P}.jar ${PN}.jar
48    
49     dodoc NOTICE README || die
50     use doc && java-pkg_dojavadoc docs
51     use source && java-pkg_dosrc src/proxy/net
52     use examples && java-pkg_doexamples --subdir samples src/proxy/samples
53     }

  ViewVC Help
Powered by ViewVC 1.1.20