Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 88617 - [NEW] ebuild for nekohtml
Summary: [NEW] ebuild for nekohtml
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High enhancement (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks: 93858
  Show dependency tree
 
Reported: 2005-04-10 10:56 UTC by Vibhav Garg (RETIRED)
Modified: 2006-10-11 21:47 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Ebuild (nekohtml-0.9.4.ebuild,1.37 KB, text/plain)
2005-04-10 10:59 UTC, Vibhav Garg (RETIRED)
Details
build xml patch (nekohtml-0.9.4-build-html.xml.patch,1.93 KB, text/plain)
2005-04-10 11:01 UTC, Vibhav Garg (RETIRED)
Details
License file (LICENSE,2.16 KB, text/plain)
2005-04-10 11:02 UTC, Vibhav Garg (RETIRED)
Details
Ebuild revisited (nekohtml-0.9.4.ebuild,1.23 KB, text/plain)
2005-05-24 15:05 UTC, Josh Nichols (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
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.