/[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.2 - (hide annotations) (download)
Tue Jan 16 01:06:55 2007 UTC (13 years, 2 months ago) by ticho
Branch: MAIN
Changes since 1.1: +3 -3 lines
Stable on x86, bug #162068.
(Portage version: 2.1.2_rc4-r8)

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 ticho 1.2 # $Header: /var/cvsroot/gentoo-x86/dev-java/nanoxml/nanoxml-2.2.3-r1.ebuild,v 1.1 2006/08/04 03:31:04 nichoj 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 ticho 1.2 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