/[gentoo-x86]/dev-java/nanoxml/nanoxml-2.2.3-r2.ebuild
Gentoo

Contents of /dev-java/nanoxml/nanoxml-2.2.3-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Sun Jan 3 21:25:18 2010 UTC (10 years ago) by fauli
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +3 -3 lines
Transfer Prefix keywords
(Portage version: 2.1.6.13/cvs/Linux i686)

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-java/nanoxml/nanoxml-2.2.3-r2.ebuild,v 1.6 2007/08/15 05:49:19 wltjr Exp $
4
5 JAVA_PKG_IUSE="doc source"
6
7 inherit java-pkg-2 java-ant-2
8
9 DESCRIPTION="NanoXML is a small non-validating parser for Java. "
10
11 HOMEPAGE="http://nanoxml.sourceforge.net/"
12 MY_P=NanoXML-${PV}
13 SRC_URI="http://nanoxml.cyberelf.be/downloads/${MY_P}.tar.gz"
14 LICENSE="ZLIB"
15 SLOT="0"
16 KEYWORDS="amd64 ppc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
17 IUSE=""
18
19 COMMON_DEP="dev-java/sax"
20 DEPEND=">=virtual/jdk-1.4
21 ${COMMON_DEP}"
22 RDEPEND=">=virtual/jre-1.4
23 ${COMMON_DEP}"
24
25 S=${WORKDIR}/${MY_P}
26
27 src_unpack() {
28 unpack ${A}
29 cd ${S}/ThirdParty/SAX
30 java-pkg_jar-from sax
31 cd ${S}
32
33 local docsed
34 if use doc; then
35 docsed="javadoc -source $(java-pkg_get-source)"
36 else
37 docsed="true"
38 fi
39
40 # Use the right arguments for javac/javadoc
41 sed -e "s:/tmp/:${T}/:g" \
42 -e "s/javac/javac $(java-pkg_javac-args)/" \
43 -e "s/-target 1.1//" \
44 -e "s/javadoc/${docsed}/" \
45 -i build.sh || die "failed to sed"
46 }
47
48 src_compile() {
49 ./build.sh || die "failed to build"
50 }
51
52 src_install() {
53 java-pkg_dojar Output/*.jar
54
55 dohtml -r Documentation/NanoXML-*
56 use doc && java-pkg_dojavadoc Documentation/JavaDoc
57 }

  ViewVC Help
Powered by ViewVC 1.1.20