1 |
weaver 09/10/02 18:15:46 |
2 |
|
3 |
Added: metadata.xml ChangeLog commons-math-2.0.ebuild |
4 |
commons-math-1.2.ebuild |
5 |
Log: |
6 |
Import from Java overlay and rewrite |
7 |
(Portage version: 2.2_rc30/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 dev-java/commons-math/metadata.xml |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/commons-math/metadata.xml?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/commons-math/metadata.xml?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: metadata.xml |
16 |
=================================================================== |
17 |
<?xml version="1.0" encoding="UTF-8"?> |
18 |
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
19 |
<pkgmetadata> |
20 |
<maintainer> |
21 |
<email>weaver@g.o</email> |
22 |
<name>Andrey Kislyuk</name> |
23 |
</maintainer> |
24 |
<herd>java</herd> |
25 |
</pkgmetadata> |
26 |
|
27 |
|
28 |
|
29 |
1.1 dev-java/commons-math/ChangeLog |
30 |
|
31 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/commons-math/ChangeLog?rev=1.1&view=markup |
32 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/commons-math/ChangeLog?rev=1.1&content-type=text/plain |
33 |
|
34 |
Index: ChangeLog |
35 |
=================================================================== |
36 |
# ChangeLog for dev-java/commons-math |
37 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
38 |
# $Header: /var/cvsroot/gentoo-x86/dev-java/commons-math/ChangeLog,v 1.1 2009/10/02 18:15:45 weaver Exp $ |
39 |
|
40 |
*commons-math-2.0 (02 Oct 2009) |
41 |
*commons-math-1.2 (02 Oct 2009) |
42 |
|
43 |
02 Oct 2009; Andrey Kislyuk <weaver@g.o> +metadata.xml, |
44 |
+commons-math-1.2.ebuild, +commons-math-2.0.ebuild: |
45 |
Import from Java overlay and rewrite |
46 |
|
47 |
|
48 |
|
49 |
|
50 |
1.1 dev-java/commons-math/commons-math-2.0.ebuild |
51 |
|
52 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/commons-math/commons-math-2.0.ebuild?rev=1.1&view=markup |
53 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/commons-math/commons-math-2.0.ebuild?rev=1.1&content-type=text/plain |
54 |
|
55 |
Index: commons-math-2.0.ebuild |
56 |
=================================================================== |
57 |
# Copyright 1999-2009 Gentoo Foundation |
58 |
# Distributed under the terms of the GNU General Public License v2 |
59 |
# $Header: /var/cvsroot/gentoo-x86/dev-java/commons-math/commons-math-2.0.ebuild,v 1.1 2009/10/02 18:15:45 weaver Exp $ |
60 |
|
61 |
EAPI="2" |
62 |
|
63 |
WANT_ANT_TASKS="ant-junit" |
64 |
JAVA_PKG_IUSE="doc test source" |
65 |
|
66 |
inherit java-pkg-2 java-ant-2 |
67 |
|
68 |
DESCRIPTION="Lightweight, self-contained mathematics and statistics components" |
69 |
HOMEPAGE="http://commons.apache.org/math/" |
70 |
SRC_URI="mirror://apache/commons/math/source/${P}-src.tar.gz" |
71 |
LICENSE="Apache-2.0" |
72 |
SLOT="2" |
73 |
KEYWORDS="~x86 ~amd64" |
74 |
IUSE="" |
75 |
|
76 |
COMMON_DEP=" |
77 |
>=dev-java/commons-discovery-0.2 |
78 |
>=dev-java/commons-logging-1.0.3" |
79 |
|
80 |
DEPEND=">=virtual/jdk-1.5 |
81 |
>=dev-java/ant-core-1.6 |
82 |
${COMMON_DEP} |
83 |
test? ( dev-java/ant-junit )" |
84 |
|
85 |
RDEPEND=">=virtual/jre-1.5 |
86 |
${COMMON_DEP}" |
87 |
|
88 |
S="${WORKDIR}/${P}-src" |
89 |
|
90 |
src_test() { |
91 |
cd lib || die |
92 |
java-pkg_jar-from junit |
93 |
cd .. |
94 |
ANT_TASKS="ant-junit" eant test |
95 |
} |
96 |
|
97 |
src_install() { |
98 |
java-pkg_newjar target/${P}.jar ${PN}.jar |
99 |
|
100 |
# use doc && java-pkg_dojavadoc dist/docs/api |
101 |
use source && java-pkg_dosrc src/main/java/org |
102 |
} |
103 |
|
104 |
|
105 |
|
106 |
1.1 dev-java/commons-math/commons-math-1.2.ebuild |
107 |
|
108 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/commons-math/commons-math-1.2.ebuild?rev=1.1&view=markup |
109 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/commons-math/commons-math-1.2.ebuild?rev=1.1&content-type=text/plain |
110 |
|
111 |
Index: commons-math-1.2.ebuild |
112 |
=================================================================== |
113 |
# Copyright 1999-2009 Gentoo Foundation |
114 |
# Distributed under the terms of the GNU General Public License v2 |
115 |
# $Header: /var/cvsroot/gentoo-x86/dev-java/commons-math/commons-math-1.2.ebuild,v 1.1 2009/10/02 18:15:45 weaver Exp $ |
116 |
|
117 |
EAPI="2" |
118 |
|
119 |
WANT_ANT_TASKS="ant-junit" |
120 |
EANT_GENTOO_CLASSPATH="commons-discovery,commons-logging,junit" |
121 |
JAVA_ANT_REWRITE_CLASSPATH="true" |
122 |
JAVA_PKG_IUSE="test source" |
123 |
|
124 |
inherit java-pkg-2 java-ant-2 |
125 |
|
126 |
DESCRIPTION="Lightweight, self-contained mathematics and statistics components" |
127 |
HOMEPAGE="http://commons.apache.org/math/" |
128 |
SRC_URI="mirror://apache/commons/math/source/${P}-src.tar.gz" |
129 |
LICENSE="Apache-2.0" |
130 |
SLOT="1" |
131 |
KEYWORDS="~x86 ~amd64" |
132 |
IUSE="" |
133 |
|
134 |
COMMON_DEP=" |
135 |
>=dev-java/commons-discovery-0.2 |
136 |
>=dev-java/commons-logging-1.0.3" |
137 |
|
138 |
DEPEND=">=virtual/jdk-1.5 |
139 |
>=dev-java/ant-core-1.6 |
140 |
${COMMON_DEP} |
141 |
test? ( dev-java/ant-junit )" |
142 |
|
143 |
RDEPEND=">=virtual/jre-1.5 |
144 |
${COMMON_DEP}" |
145 |
|
146 |
S="${WORKDIR}/${P}-src" |
147 |
|
148 |
src_prepare() { |
149 |
sed -i -e 's/depends="get-deps"//' \ |
150 |
-e 's/depends="compile,test"/depends="compile"/' "${S}/build.xml" || die |
151 |
} |
152 |
|
153 |
src_compile() { |
154 |
eant -Duser.home="${WORKDIR}/user_home" |
155 |
} |
156 |
|
157 |
src_test() { |
158 |
eant -Duser.home="${WORKDIR}/user_home" test |
159 |
} |
160 |
|
161 |
src_install() { |
162 |
java-pkg_newjar target/${P}.jar ${PN}.jar |
163 |
use source && java-pkg_dosrc src/java/org |
164 |
} |