Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 88617

Summary: [NEW] ebuild for nekohtml
Product: Gentoo Linux Reporter: Vibhav Garg (RETIRED) <vgarg>
Component: New packagesAssignee: Java team <java>
Status: RESOLVED FIXED    
Severity: enhancement CC: java, nichoj
Priority: High Keywords: EBUILD
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 93858    
Attachments: Ebuild
build xml patch
License file
Ebuild revisited

Description Vibhav Garg (RETIRED) gentoo-dev 2005-04-10 10:56:45 UTC
New ebuild for version 0.9.4
Comment 1 Vibhav Garg (RETIRED) gentoo-dev 2005-04-10 10:59:30 UTC
Created attachment 55900 [details]
Ebuild
Comment 2 Vibhav Garg (RETIRED) gentoo-dev 2005-04-10 11:00:03 UTC
Comment on attachment 55900 [details]
Ebuild

># Copyright 1999-2005 Gentoo Foundation
># Distributed under the terms of the GNU General Public License v2
># $Header: /var/cvsroot/gentoo-x86/dev-java/commons-logging/commons-logging-1.0.4.ebuild,v 1.13 2005/01/26 21:07:48 corsair Exp $
>
>inherit java-pkg eutils
>
>DESCRIPTION="NekoHTML is a simple HTML scanner and tag balancer that enables
>application programmers to parse HTML documents and access the information using
>standard XML interfaces."
>
>HOMEPAGE="http://people.apache.org/~andyc/neko/doc/html/"
>
>SRC_URI="www.apache.org/~andyc/neko/${PN}-latest.tar.gz"
>DEPEND=""
>RDEPEND=">=virtual/jdk-1.3
>		dev-java/xerces
>		dev-java/xalan"
>LICENSE="CyberNeko Software License-1.0"
>SLOT="0"
>KEYWORDS="~x86 ~amd64"
>IUSE="jikes doc test"
>
>S="${WORKDIR}/${PF}/"
>
>src_unpack() {
>	unpack ${A}
>	cd ${S}
>	rm lib/*.jar
>	epatch ${FILESDIR}/${PF}-build-html.xml.patch
>	echo "xerces.jar=$(java-config -p xerces-2)" > build.properties
>	echo "xalan.jar=$(java-config -p xalan)" >> build.properties
>}
>
>src_compile() {
>	local antflags="-buildfile build-html.xml jar"
>	use jikes && antflags="${antflags} -Dbuild.compiler=jikes"
>	use doc && antflags="${antflags} doc"
>	use test && antflags="${antflags} test"
>	ant ${antflags} || die "compile problem"
>}
>
>src_install() {
>	java-pkg_dojar ${PN}.jar ${PN}Samples.jar ${PN}Xni.jar
>
>    dodoc LICENSE LICENSE_apache README_HTML TODO_html
>	use doc && java-pkg_dohtml -r doc/html
>}
Comment 3 Vibhav Garg (RETIRED) gentoo-dev 2005-04-10 11:01:08 UTC
Created attachment 55903 [details]
build xml patch
Comment 4 Vibhav Garg (RETIRED) gentoo-dev 2005-04-10 11:02:05 UTC
Created attachment 55904 [details]
License file
Comment 5 Josh Nichols (RETIRED) gentoo-dev 2005-05-24 15:05:35 UTC
Created attachment 59744 [details]
Ebuild revisited

I made a few changes to clean it up the ebuild a little:

* Fixed header
* Changed SRC_URI to include a version, instead of latest. You can't tell from
the website, but there is a nekohtml-0.9.4.tar.gz. This will avoid possible
problems if a new release comes out.
* Added ant and jdk to DEPEND, and changed RDEPEND from jdk to jre
* Added version to dependency of xerces (=dev-java/xerces-2* )
* Now deletes prebuilt jars using ant clean, instead of deleting them with rm
* No longer installs LICENSE files
Comment 6 Josh Nichols (RETIRED) gentoo-dev 2005-08-12 05:39:31 UTC
Now maintained in the experimental overlay.
Comment 7 Josh Nichols (RETIRED) gentoo-dev 2006-10-11 21:47:58 UTC
Added to cvs.