/[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.1 - (hide annotations) (download)
Fri Aug 4 03:31:04 2006 UTC (13 years, 8 months ago) by nichoj
Branch: MAIN
Revision bump to support new Java system
(Portage version: 2.1.1_pre4)

1 nichoj 1.1 # Copyright 1999-2006 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.ebuild,v 1.1 2005/07/11 21:28:28 axxo Exp $
4    
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     KEYWORDS="~amd64 ~ppc ~x86"
15     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