summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Baidakou <the.dmol@gmail.com>2012-10-06 13:14:37 +0300
committerIvan Baidakou <the.dmol@gmail.com>2012-10-06 13:14:37 +0300
commit1962c63aa47432e2346bd4f9daf4624d95cf6274 (patch)
treef4c978ac31ada480abc95e2e3443d72c6b42cf91 /dev-java
parentfix typo (diff)
downloaddmol-1962c63aa47432e2346bd4f9daf4624d95cf6274.tar.gz
dmol-1962c63aa47432e2346bd4f9daf4624d95cf6274.tar.bz2
dmol-1962c63aa47432e2346bd4f9daf4624d95cf6274.zip
owasp-antisamy-1.4.4 ebuild wrt#437392
Diffstat (limited to 'dev-java')
-rw-r--r--dev-java/owasp-antisamy/Manifest3
-rw-r--r--dev-java/owasp-antisamy/metadata.xml7
-rw-r--r--dev-java/owasp-antisamy/owasp-antisamy-1.4.4.ebuild57
3 files changed, 67 insertions, 0 deletions
diff --git a/dev-java/owasp-antisamy/Manifest b/dev-java/owasp-antisamy/Manifest
new file mode 100644
index 0000000..4f3c148
--- /dev/null
+++ b/dev-java/owasp-antisamy/Manifest
@@ -0,0 +1,3 @@
+DIST antisamy-1.4.4-src.jar 80182 SHA256 521d65b870651709082e2f24fb173e7c523d8e512bbae501a309096d670795c1 SHA512 a12d29926c87bbbdbd140898d42672e8f320680d085a6ad823c4d2f9e6d82e018c5ffcc812544041501263d4398993ba7c01305020f6676373a263af16f27faf WHIRLPOOL 0bc0b5e3743414c2886cd70ced44d42810f1148aa73ec077717168466b21efe9baf32c405753d4757a9b60c23fe03abfd3446ff6151eea0916310c46fd0fdd82
+EBUILD owasp-antisamy-1.4.4.ebuild 1297 SHA256 efa20825171e2319c39f763b242eb44ed9ba288581ccf288232b9b7ba118332e SHA512 d18fa3ca588eebf9fbeff7ff81086cf8144e793c4aab5d161cdc950ad85ed7f1f412f6944023028582024ad372f350841084022fe25fe9b95152711c9cca1fce WHIRLPOOL 2df6a1e39c3e9b6a1dd247111e96b2f297a83b6f742f32feb2fe1cb6eff5681f7f30e2fbfb1ac318df9befcac4d4bb8be3a2677ef97d63763f41fa0e1d7fc068
+MISC metadata.xml 205 SHA256 2ff0740a5424b0e10c7888541a248d1bd363a60911b0921b4cfe5c36590498ce SHA512 e7c77c724739d0af43cc338ded09dcbeee2a710eb0e49f1e656dc4c891bee85bfd6935bf70a191a1c5823f473643e676d64970416e5f1820ea466681016757c5 WHIRLPOOL 5b7f0c2a5243244fa06b072c8f0d9f53e7b6f45c7e1b74a0d945bdcc28b7137fddfd58e85b0d3e721e80963916ceae0d4cca59f48114ba26c47b24a91d6abb27
diff --git a/dev-java/owasp-antisamy/metadata.xml b/dev-java/owasp-antisamy/metadata.xml
new file mode 100644
index 0000000..80859ae
--- /dev/null
+++ b/dev-java/owasp-antisamy/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>the.dmol@gmail.com</email>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-java/owasp-antisamy/owasp-antisamy-1.4.4.ebuild b/dev-java/owasp-antisamy/owasp-antisamy-1.4.4.ebuild
new file mode 100644
index 0000000..46b7f17
--- /dev/null
+++ b/dev-java/owasp-antisamy/owasp-antisamy-1.4.4.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="4"
+
+JAVA_PKG_IUSE="source"
+
+inherit java-pkg-2
+
+MY_PN="antisamy"
+
+DESCRIPTION="OWASP AntiSamy allows users to supply their own HTML and CSS without exposure to XSS vulnerabilities"
+HOMEPAGE="https://code.google.com/p/owaspantisamy/"
+SRC_URI="http://owaspantisamy.googlecode.com/files/${MY_PN}-1.4.4-src.jar"
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+CDEPEND="dev-java/batik:1.7
+ dev-java/commons-httpclient:3
+ dev-java/nekohtml:0
+ =dev-java/xml-commons-external-1.4*
+ dev-java/xerces:2
+ "
+RDEPEND=">=virtual/jre-1.6
+ ${CDEPEND}"
+DEPEND=">=virtual/jdk-1.6
+ ${CDEPEND}"
+
+S="${WORKDIR}"
+
+src_unpack() {
+ unpack ${A}
+ mkdir "${S}/src"
+ mv "${S}"/{*.{properties,xsd},META-INF,org} "${S}/src"
+}
+
+java_prepare() {
+ mkdir "${S}/classes"
+}
+
+src_compile() {
+ find src/org -name "*.java" > "${T}/src.list"
+ ejavac -d "${S}/classes" \
+ -classpath $(java-pkg_getjars xml-commons-external-1.4,xerces-2,nekohtml,commons-httpclient-3,batik-1.7) \
+ "@${T}/src.list"
+ cp -r src/{*.{properties,xsd},META-INF} classes
+ cd "${S}/classes"
+ jar -cf "${S}/${PN}.jar" * || die "failed to create jar"
+}
+
+src_install() {
+ java-pkg_dojar ${PN}.jar
+ use source && java-pkg_dosrc src/org
+}