Gentoo Archives: gentoo-commits

From: "Robin H. Johnson (robbat2)" <robbat2@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-java/jsr311-api: jsr311-api-1.1.ebuild jsr311-api-1.0-r1.ebuild ChangeLog
Date: Sat, 20 Jun 2009 20:31:59
Message-Id: E1MI7ED-0007gY-13@stork.gentoo.org
1 robbat2 09/06/20 20:31:57
2
3 Modified: ChangeLog
4 Added: jsr311-api-1.1.ebuild jsr311-api-1.0-r1.ebuild
5 Log:
6 Version bump to latest upstream version needed for jersey-1.1.0. Backport ebuild tweaks to 1.0-r1 as well for ease of maintenance.
7 (Portage version: 2.2_rc33/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.3 dev-java/jsr311-api/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/jsr311-api/ChangeLog?rev=1.3&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/jsr311-api/ChangeLog?rev=1.3&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/jsr311-api/ChangeLog?r1=1.2&r2=1.3
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-java/jsr311-api/ChangeLog,v
19 retrieving revision 1.2
20 retrieving revision 1.3
21 diff -p -w -b -B -u -u -r1.2 -r1.3
22 --- ChangeLog 31 Mar 2009 17:33:10 -0000 1.2
23 +++ ChangeLog 20 Jun 2009 20:31:56 -0000 1.3
24 @@ -1,6 +1,16 @@
25 # ChangeLog for dev-java/jsr311-api
26 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-java/jsr311-api/ChangeLog,v 1.2 2009/03/31 17:33:10 betelgeuse Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-java/jsr311-api/ChangeLog,v 1.3 2009/06/20 20:31:56 robbat2 Exp $
29 +
30 +*jsr311-api-1.1 (20 Jun 2009)
31 +*jsr311-api-1.0-r1 (20 Jun 2009)
32 +
33 + 20 Jun 2009; Robin H. Johnson <robbat2@g.o>
34 + +jsr311-api-1.0-r1.ebuild, files/jsr311-api-1.0-manifest,
35 + +jsr311-api-1.1.ebuild, +files/jsr311-api-1.1-build.xml,
36 + +files/jsr311-api-1.1-manifest, +files/jsr311-api-1.1-maven-build.xml:
37 + Version bump to latest upstream version needed for jersey-1.1.0. Backport
38 + ebuild tweaks to 1.0-r1 as well for ease of maintenance.
39
40 31 Mar 2009; Petteri Räty <betelgeuse@g.o> jsr311-api-1.0.ebuild:
41 Migrate to EAPI 2. Fix javadoc installation and cleanup ebuild. Fixes bug
42
43
44
45 1.1 dev-java/jsr311-api/jsr311-api-1.1.ebuild
46
47 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/jsr311-api/jsr311-api-1.1.ebuild?rev=1.1&view=markup
48 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/jsr311-api/jsr311-api-1.1.ebuild?rev=1.1&content-type=text/plain
49
50 Index: jsr311-api-1.1.ebuild
51 ===================================================================
52 # Copyright 1999-2009 Gentoo Foundation
53 # Distributed under the terms of the GNU General Public License v2
54 # $Header: /var/cvsroot/gentoo-x86/dev-java/jsr311-api/jsr311-api-1.1.ebuild,v 1.1 2009/06/20 20:31:56 robbat2 Exp $
55
56 EAPI="2"
57 JAVA_PKG_IUSE="doc source test"
58 PROJ_PN="jsr311"
59 PROJ_PV="${PV}"
60 PROJ_P="${PROJ_PN}-${PROJ_PV}"
61
62 inherit java-pkg-2 java-ant-2
63
64 DESCRIPTION="JAX-RS: Java API for RESTful Web Services"
65 HOMEPAGE="https://jsr311.dev.java.net/"
66 SRC_FILE="${P}-src.tar.bz2"
67 SRC_URI="mirror://gentoo/${SRC_FILE}"
68
69 LICENSE="CDDL"
70 SLOT="0"
71 KEYWORDS="~amd64 ~ppc ~x86"
72 IUSE=""
73
74 DEPEND=">=virtual/jdk-1.5
75 test? ( dev-java/ant-junit:0 dev-java/junit:0 )"
76 RDEPEND=">=virtual/jre-1.5"
77
78 S="${WORKDIR}/${P}/${PN}"
79
80 # Helper to generate the tarball :-)
81 # ( PN=jsr311-api ; PV=1.1 ; P="${PN}-${PV}" ; . ${P}.ebuild ; src_tarball )
82 src_tarball() {
83 SVN_SRC_URI="${HOMEPAGE}/svn/${PROJ_PN}/tags/${P}"
84 tarball="${P}"
85 svn export \
86 --username guest --password '' --non-interactive \
87 ${SVN_SRC_URI} ${tarball} \
88 && \
89 tar cvjf ${SRC_FILE} ${tarball} \
90 && \
91 echo "New tarball located at ${SRC_FILE}"
92 }
93
94 java_prepare() {
95 for i in build.xml maven-build.xml manifest ; do
96 cp -f "${FILESDIR}"/"${P}-${i}" "${i}" \
97 || die "Unable to find ${P}-${i}"
98 done
99 }
100
101 src_install() {
102 dodoc README.txt || die
103 java-pkg_newjar target/${P}.jar ${PN}.jar
104 use doc && java-pkg_dojavadoc target/site/apidocs
105 use source && java-pkg_dosrc src/javax
106 }
107
108 src_test() {
109 EANT_GENTOO_CLASSPATH="junit ant-core" \
110 ANT_TASKS="ant-junit" \
111 eant test
112 }
113
114
115
116 1.1 dev-java/jsr311-api/jsr311-api-1.0-r1.ebuild
117
118 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/jsr311-api/jsr311-api-1.0-r1.ebuild?rev=1.1&view=markup
119 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/jsr311-api/jsr311-api-1.0-r1.ebuild?rev=1.1&content-type=text/plain
120
121 Index: jsr311-api-1.0-r1.ebuild
122 ===================================================================
123 # Copyright 1999-2009 Gentoo Foundation
124 # Distributed under the terms of the GNU General Public License v2
125 # $Header: /var/cvsroot/gentoo-x86/dev-java/jsr311-api/jsr311-api-1.0-r1.ebuild,v 1.1 2009/06/20 20:31:56 robbat2 Exp $
126
127 EAPI="2"
128 JAVA_PKG_IUSE="doc source test"
129 PROJ_PN="jsr311"
130 PROJ_PV="${PV}"
131 PROJ_P="${PROJ_PN}-${PROJ_PV}"
132
133 inherit java-pkg-2 java-ant-2
134
135 DESCRIPTION="JAX-RS: Java API for RESTful Web Services"
136 HOMEPAGE="https://jsr311.dev.java.net/"
137 SRC_FILE="${P}-src.tar.bz2"
138 SRC_URI="mirror://gentoo/${SRC_FILE}"
139
140 LICENSE="CDDL"
141 SLOT="0"
142 KEYWORDS="~amd64 ~ppc ~x86"
143 IUSE=""
144
145 DEPEND=">=virtual/jdk-1.5
146 test? ( dev-java/ant-junit:0 dev-java/junit:0 )"
147 RDEPEND=">=virtual/jre-1.5"
148
149 S="${WORKDIR}/${P}/${PN}"
150
151 # Helper to generate the tarball :-)
152 # ( PN=jsr311-api ; PV=1.1 ; P="${PN}-${PV}" ; . ${P}.ebuild ; src_tarball )
153 src_tarball() {
154 SVN_SRC_URI="${HOMEPAGE}/svn/${PROJ_PN}/tags/${P}"
155 tarball="${P}"
156 svn export \
157 --username guest --password '' --non-interactive \
158 ${SVN_SRC_URI} ${tarball} \
159 && \
160 tar cvjf ${SRC_FILE} ${tarball} \
161 && \
162 echo "New tarball located at ${SRC_FILE}"
163 }
164
165 java_prepare() {
166 for i in build.xml maven-build.xml manifest ; do
167 cp -f "${FILESDIR}"/"${P}-${i}" "${i}" \
168 || die "Unable to find ${P}-${i}"
169 done
170 }
171
172 src_install() {
173 dodoc README.txt || die
174 java-pkg_newjar target/${P}.jar ${PN}.jar
175 use doc && java-pkg_dojavadoc target/site/apidocs
176 use source && java-pkg_dosrc src/javax
177 }
178
179 src_test() {
180 EANT_GENTOO_CLASSPATH="junit ant-core" \
181 ANT_TASKS="ant-junit" \
182 eant test
183 }