/[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.2 - (hide annotations) (download)
Sun Mar 30 17:14:43 2008 UTC (11 years, 10 months ago) by corsair
Branch: MAIN
Changes since 1.1: +2 -2 lines
Added ~ppc64
(Portage version: 2.1.4.4)

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

  ViewVC Help
Powered by ViewVC 1.1.20