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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Sun Feb 4 22:29:09 2007 UTC (12 years, 11 months ago) by caster
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Cleanup.
(Portage version: 2.1.2-r7)

1 # Copyright 1999-2005 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.1.2.ebuild,v 1.3 2005/07/31 15:28:05 st_lim Exp $
4
5 inherit eutils java-pkg
6
7 MY_PV=${PV/1./1_}
8 DESCRIPTION="cglib is a powerful, high performance and quality Code Generation Library, It is used to extend JAVA classes and implements interfaces at runtime."
9 SRC_URI="mirror://sourceforge/${PN}/${PN}-src-${MY_PV}.jar"
10 HOMEPAGE="http://cglib.sourceforge.net"
11 LICENSE="Apache-1.1"
12 SLOT="2.1"
13 KEYWORDS="~x86 ~amd64"
14 RDEPEND=">=virtual/jre-1.4
15 jikes? ( >=dev-java/jikes-1.21 )
16 =dev-java/asm-1.5*
17 =dev-java/aspectwerkz-2*
18 dev-java/jarjar"
19 DEPEND=">=virtual/jdk-1.4
20 ${RDEPEND}
21 >=dev-java/ant-core-1.5"
22 IUSE="doc jikes"
23
24 S=${WORKDIR}
25
26 src_unpack() {
27 jar xf ${DISTDIR}/${A} || die "failed to unpack"
28
29 cd ${S}/lib
30 rm -f *.jar
31 java-pkg_jar-from asm-1.5
32 java-pkg_jar-from aspectwerkz-2
33 java-pkg_jar-from jarjar-1
34 }
35
36 src_compile() {
37 local antflags="jar"
38 use doc && antflags="${antflags} javadoc"
39 use jikes && antflags="${antflags} -Dbuild.compiler=jikes"
40 ant ${antflags} || die "builed to build"
41 }
42
43 src_install() {
44 java-pkg_newjar ${S}/dist/${PN}-${MY_PV}.jar ${PN}.jar
45 java-pkg_newjar ${S}/dist/${PN}-nodep-${MY_PV}.jar ${PN}-nodep.jar
46
47 dodoc NOTICE README
48 use doc && java-pkg_dohtml -r docs/*
49 }

  ViewVC Help
Powered by ViewVC 1.1.20