/[gentoo-x86]/dev-java/aspectwerkz/aspectwerkz-2.0.ebuild
Gentoo

Contents of /dev-java/aspectwerkz/aspectwerkz-2.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Sun Aug 10 20:08:15 2014 UTC (3 years, 4 months ago) by slyfox
Branch: MAIN
Changes since 1.8: +3 -3 lines
QA: drop trailing '.' from DESCRIPTION

(Portage version: 2.2.11_p9/cvs/Linux x86_64, signed Manifest commit with key 611FF3AA)

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/aspectwerkz/aspectwerkz-2.0.ebuild,v 1.8 2013/09/01 09:33:06 grobian Exp $
4
5 EAPI=2
6
7 JAVA_PKG_IUSE="doc source"
8
9 inherit java-pkg-2 java-ant-2 eutils
10
11 DESCRIPTION="AspectWerkz is a dynamic, lightweight and high-performant AOP/AOSD framework for Java"
12 SRC_URI="http://dist.codehaus.org/${PN}/distributions/${P}.zip"
13 HOMEPAGE="http://aspectwerkz.codehaus.org"
14 LICENSE="LGPL-2.1"
15 SLOT="2"
16 KEYWORDS="~amd64 ~ppc ppc64 ~x86 ~amd64-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
17 IUSE=""
18 # bug 203268
19 RESTRICT="test"
20
21 COMMON_DEP="
22 dev-java/asm:1.5
23 dev-java/concurrent-util:0
24 dev-java/dom4j:1
25 dev-java/jrexx:0
26 dev-java/trove:0
27 dev-java/qdox:1.6
28 dev-java/junit:0"
29 RDEPEND="
30 >=virtual/jre-1.5
31 ${COMMON_DEP}"
32 DEPEND="
33 >=virtual/jdk-1.5
34 ${COMMON_DEP}
35 app-arch/unzip"
36
37 java_prepare() {
38 # unit tests need this
39 chmod +x "bin/${PN}" || die
40 epatch "${FILESDIR}/${P}-gentoo.patch"
41
42 find . -name '*.jar' -delete || die
43
44 cd "${S}/lib"
45 java-pkg_jar-from asm-1.5
46 java-pkg_jar-from concurrent-util
47 java-pkg_jar-from dom4j-1
48 java-pkg_jar-from jrexx
49 java-pkg_jar-from junit
50 java-pkg_jar-from trove
51 java-pkg_jar-from qdox-1.6
52 }
53
54 _eant() {
55 local antflags="-Djava.version=1.5"
56 eant ${antflags} "${@}"
57
58 }
59
60 src_compile() {
61 _eant dist #precompiled javadocs
62 }
63
64 src_test() {
65 _eant test
66 }
67
68 src_install() {
69 use source && java-pkg_dosrc src/*
70 # other stuff besides javadoc here too
71 use doc && java-pkg_dohtml -r docs/*
72
73 cd lib
74 for jar in ${PN}*.jar; do
75 java-pkg_newjar ${jar} ${jar/-${PV}}
76 done
77 }

  ViewVC Help
Powered by ViewVC 1.1.20