1 |
tommy 11/07/31 14:21:09 |
2 |
|
3 |
Added: metadata.xml ChangeLog commons-compress-1.1.ebuild |
4 |
Log: |
5 |
Initial commit, fixes bug 172791, thanks for the ebuild to sera from #gentoo-java |
6 |
|
7 |
(Portage version: 2.2.0_alpha47-r1/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 dev-java/commons-compress/metadata.xml |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/commons-compress/metadata.xml?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/commons-compress/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>tommy@g.o</email> |
22 |
<name>Thomas Sachau (Tommy[D])</name> |
23 |
</maintainer> |
24 |
<herd>no-herd</herd> |
25 |
</pkgmetadata> |
26 |
|
27 |
|
28 |
|
29 |
|
30 |
1.1 dev-java/commons-compress/ChangeLog |
31 |
|
32 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/commons-compress/ChangeLog?rev=1.1&view=markup |
33 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/commons-compress/ChangeLog?rev=1.1&content-type=text/plain |
34 |
|
35 |
Index: ChangeLog |
36 |
=================================================================== |
37 |
# ChangeLog for dev-java/commons-compress |
38 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
39 |
# $Header: /var/cvsroot/gentoo-x86/dev-java/commons-compress/ChangeLog,v 1.1 2011/07/31 14:21:09 tommy Exp $ |
40 |
|
41 |
31 Jul 2011; Thomas Sachau (Tommy[D]) <tommy@g.o> |
42 |
+commons-compress-1.1.ebuild, +files/MANIFEST.MF, +files/build.xml, |
43 |
+metadata.xml: |
44 |
Initial commit, fixes bug 172791, thanks for the ebuild to sera from |
45 |
#gentoo-java |
46 |
|
47 |
*commons-compress-1.1 (24 Jul 2011) |
48 |
|
49 |
24 Jul 2011; Ralph Sennhauser <gentoo.sera@×××××××.ch> |
50 |
+commons-cpmpress-1.1.ebuild: |
51 |
Initial package |
52 |
|
53 |
|
54 |
|
55 |
1.1 dev-java/commons-compress/commons-compress-1.1.ebuild |
56 |
|
57 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/commons-compress/commons-compress-1.1.ebuild?rev=1.1&view=markup |
58 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/commons-compress/commons-compress-1.1.ebuild?rev=1.1&content-type=text/plain |
59 |
|
60 |
Index: commons-compress-1.1.ebuild |
61 |
=================================================================== |
62 |
# Copyright 1999-2011 Gentoo Foundation |
63 |
# Distributed under the terms of the GNU General Public License v2 |
64 |
# $Header: /var/cvsroot/gentoo-x86/dev-java/commons-compress/commons-compress-1.1.ebuild,v 1.1 2011/07/31 14:21:09 tommy Exp $ |
65 |
|
66 |
EAPI="4" |
67 |
|
68 |
JAVA_PKG_IUSE="doc source test" |
69 |
|
70 |
inherit java-pkg-2 java-ant-2 |
71 |
|
72 |
DESCRIPTION="Commons Compress defines an API for working with ar, cpio, tar, zip, gzip and bzip2 files." |
73 |
|
74 |
LICENSE="Apache-2.0" |
75 |
SLOT="0" |
76 |
KEYWORDS="~amd64 ~x86" |
77 |
IUSE="" |
78 |
|
79 |
RDEPEND=">=virtual/jre-1.4" |
80 |
DEPEND=">=virtual/jdk-1.4 |
81 |
test? ( dev-java/ant-junit:0 )" |
82 |
|
83 |
S="${WORKDIR}/${P}-src" |
84 |
|
85 |
JAVA_ANT_BSFIX_EXTRA_ARGS="--maven-cleaning" |
86 |
EANT_BUILD_TARGET="compile package" |
87 |
|
88 |
java_prepare() { |
89 |
cp "${FILESDIR}"/build.xml . || die "Failed to copy build.xml" |
90 |
|
91 |
# osgi stuff mvn ant:ant doesn't handle |
92 |
mkdir -p target/osgi || die "Failed to create target dir" |
93 |
cp "${FILESDIR}"/MANIFEST.MF target/osgi/ || die "Failed to copy manifest" |
94 |
|
95 |
if ! use test; then |
96 |
find -name "*.jar" -delete || die "Failed to remove test resources" |
97 |
fi |
98 |
} |
99 |
|
100 |
src_test() { |
101 |
java-pkg_jarfrom junit |
102 |
EANT_TEST_TARGET="compile-tests test" |
103 |
java-pkg-2_src_test |
104 |
} |
105 |
|
106 |
src_install() { |
107 |
java-pkg_newjar target/${P}.jar |
108 |
use doc && java-pkg_dojavadoc target/site/apidocs |
109 |
use source && java-pkg_dosrc src/main/java/* |
110 |
} |