diff options
author | Krzysztof Pawlik <nelchael@gentoo.org> | 2012-02-23 20:31:30 +0000 |
---|---|---|
committer | Krzysztof Pawlik <nelchael@gentoo.org> | 2012-02-23 20:31:30 +0000 |
commit | 1a14bf8fdb4923a7406db1a4a03579da9d071e73 (patch) | |
tree | 3d125805351be5085a428ea5a684eae820e4c6c1 /dev-java/css-validator/css-validator-20120222.ebuild | |
parent | version bump (diff) | |
download | historical-1a14bf8fdb4923a7406db1a4a03579da9d071e73.tar.gz historical-1a14bf8fdb4923a7406db1a4a03579da9d071e73.tar.bz2 historical-1a14bf8fdb4923a7406db1a4a03579da9d071e73.zip |
Initial version of htmlparser: Check Cascading Style Sheets (CSS) and (X)HTML documents with style sheets.
Package-Manager: portage-2.1.10.47/cvs/Linux x86_64
Diffstat (limited to 'dev-java/css-validator/css-validator-20120222.ebuild')
-rw-r--r-- | dev-java/css-validator/css-validator-20120222.ebuild | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/dev-java/css-validator/css-validator-20120222.ebuild b/dev-java/css-validator/css-validator-20120222.ebuild new file mode 100644 index 000000000000..256185e04150 --- /dev/null +++ b/dev-java/css-validator/css-validator-20120222.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/css-validator/css-validator-20120222.ebuild,v 1.1 2012/02/23 20:31:30 nelchael Exp $ + +EAPI=4 + +JAVA_PKG_IUSE="doc source" + +# How to create the release tarball: +# $ export CVSROOT=":pserver:anonymous@dev.w3.org:/sources/public" +# $ cvs login +# $ cvs get 2002/css-validator +# $ cd 2002 +# $ tar jcf css-validator-$(date "+%Y%m%d") css-validator --exclude=CVS + +inherit java-pkg-2 java-ant-2 eutils + +DESCRIPTION="Check Cascading Style Sheets (CSS) and (X)HTML documents with style sheets" +HOMEPAGE="http://jigsaw.w3.org/css-validator/DOWNLOAD.html" +SRC_URI="mirror://gentoo/${P}.tar.bz2" + +LICENSE="W3C" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +IUSE="" + +COMMON_DEP="java-virtuals/servlet-api:2.5 + dev-java/velocity + dev-java/commons-lang:2.1 + dev-java/tagsoup + dev-java/jigsaw + dev-java/xerces:2 + dev-java/htmlparser + " + +RDEPEND=">=virtual/jre-1.5 + ${COMMON_DEP}" +DEPEND=">=virtual/jdk-1.5 + app-arch/unzip + ${COMMON_DEP}" + +EANT_BUILD_TARGET="jar war" +EANT_DOC_TARGET="javadoc" + +S="${WORKDIR}/${PN}" + +src_prepare() { + rm -f tmp/*.jar + mkdir -p "${S}/lib" || die "mkdir failed" + + epatch "${FILESDIR}/${P}-build.xml.patch" + + java-pkg_jarfrom --into lib/ servlet-api-2.5 + java-pkg_jarfrom --into lib/ velocity + java-pkg_jarfrom --into lib/ commons-lang-2.1 + java-pkg_jarfrom --into lib/ tagsoup + java-pkg_jarfrom --into lib/ jigsaw + java-pkg_jarfrom --into lib/ xerces-2 + java-pkg_jarfrom --into lib/ htmlparser +} + +src_install() { + java-pkg_dojar "${PN}.jar" + + use source && java-pkg_dosrc org + if use doc; then + java-pkg_dojavadoc javadoc + + insinto "/usr/share/${PN}" + doins "${PN}.war" + einfo "Documentation for ${PN} has been installed as:" + einfo " /usr/share/${PN}/${PN}.war" + einfo "You need to deploy this file using one of:" + einfo " * www-servers/tomcat" + einfo " * www-servers/resin" + fi +} |