/[gentoo-x86]/dev-java/json-simple/json-simple-1.1.ebuild
Gentoo

Contents of /dev-java/json-simple/json-simple-1.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Fri Mar 9 14:22:44 2012 UTC (2 years, 4 months ago) by ranger
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +2 -2 lines
Marking json-simple-1.1 ppc64 for bug 399999

(Portage version: 2.1.10.11/cvs/Linux ppc64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-java/json-simple/json-simple-1.1.ebuild,v 1.5 2012/03/08 11:32:54 phajdan.jr Exp $
4
5 EAPI="2"
6 JAVA_PKG_IUSE="source test"
7
8 inherit java-pkg-2 java-ant-2
9
10 DESCRIPTION="Simple Java toolkit for JSON"
11 HOMEPAGE="http://www.json.org"
12
13 MY_PN="${PN/-/_}"
14 MY_P="${MY_PN}-${PV}-all"
15 SRC_URI="http://json-simple.googlecode.com/files/${MY_P}.zip"
16
17 LICENSE="Apache-2.0"
18 SLOT="0"
19 KEYWORDS="amd64 ppc ppc64 x86"
20 IUSE=""
21
22 DEPEND=">=virtual/jdk-1.4
23 test? ( dev-java/ant-junit )
24 app-arch/unzip"
25 RDEPEND=">=virtual/jre-1.4"
26
27 S="${WORKDIR}/${MY_P}"
28
29 java_prepare() {
30 epatch "${FILESDIR}/${P}-extra-constructors-from-azureus.patch"
31 rm -rv build lib || die
32 }
33
34 #JAVA_ANT_ENCODING="ISO-8859-1"
35 #EANT_BUILD_TARGET="dist"
36
37 JAVA_PKG_BSFIX_NAME+=" test.xml"
38
39 src_test() {
40 java-pkg_jar-from --into lib junit
41 ANT_TASKS="ant-junit" eant -f test.xml
42 }
43
44 src_install() {
45 java-pkg_newjar lib/${MY_P/-all/}.jar ${PN}.jar
46 dodoc README.txt AUTHORS.txt ChangeLog.txt || die
47 use source && java-pkg_dosrc src/org
48 }

  ViewVC Help
Powered by ViewVC 1.1.20