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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations) (download)
Sat Jan 20 19:00:16 2007 UTC (13 years, 2 months ago) by nixnut
Branch: MAIN
Changes since 1.2: +2 -2 lines
Stable on ppc wrt bug 162068
(Portage version: 2.1.1-r2)

1 ticho 1.2 # Copyright 1999-2007 Gentoo Foundation
2 nichoj 1.1 # Distributed under the terms of the GNU General Public License v2
3 nixnut 1.3 # $Header: /var/cvsroot/gentoo-x86/dev-java/nanoxml/nanoxml-2.2.3-r1.ebuild,v 1.2 2007/01/16 01:06:55 ticho Exp $
4 nichoj 1.1
5     inherit java-pkg-2 java-ant-2
6    
7     DESCRIPTION="NanoXML is a small non-validating parser for Java. "
8    
9     HOMEPAGE="http://nanoxml.sourceforge.net/"
10     MY_P=NanoXML-${PV}
11     SRC_URI="http://nanoxml.cyberelf.be/downloads/${MY_P}.tar.gz"
12     LICENSE="ZLIB"
13     SLOT="0"
14 nixnut 1.3 KEYWORDS="~amd64 ppc x86"
15 nichoj 1.1 IUSE="doc"
16     DEPEND=">=virtual/jdk-1.3
17     ${RDEPEND}"
18     RDEPEND=">=virtual/jre-1.3
19     dev-java/sax"
20    
21     S=${WORKDIR}/${MY_P}
22    
23     src_unpack() {
24     unpack ${A}
25     cd ${S}/ThirdParty/SAX
26     java-pkg_jar-from sax
27     cd ${S}
28     # Use the right arguments for javac/javadoc
29     sed -e "s:/tmp/:${T}:g" \
30     -e "s/javac/javac $(java-pkg_javac-args)/" \
31     -e "s/javadoc/javadoc -source $(java-pkg_get-source)/" \
32     -i build.sh || die "failed to sed"
33     }
34    
35     src_compile() {
36     ./build.sh || die "failed to build"
37     }
38    
39     src_install() {
40     java-pkg_dojar Output/*.jar
41    
42     use doc && java-pkg_dohtml -r Documentation/*
43     }

  ViewVC Help
Powered by ViewVC 1.1.20