dev-java/jsoup: Version bump. Fixes security bug 559002.
authorPatrice Clement <monsieurp@gentoo.org>
Sat, 5 Sep 2015 14:50:23 +0000 (14:50 +0000)
committerPatrice Clement <monsieurp@gentoo.org>
Sat, 5 Sep 2015 14:51:06 +0000 (14:51 +0000)
Package-Manager: portage-2.2.18
Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
dev-java/jsoup/Manifest
dev-java/jsoup/jsoup-1.8.1.ebuild
dev-java/jsoup/jsoup-1.8.3.ebuild [new file with mode: 0644]

index f587ebb3ea9bbdf3b89a645ffabde619d10d888a..5f047a04695bf0bceca90d015e312123806f4fa3 100644 (file)
@@ -1,2 +1,3 @@
 DIST jsoup-1.7.2.tar.gz 292926 SHA256 b778e2b3687c4ca2255e9a9f5038f54470c0dfee8f9758937afc1f50fac78b38 SHA512 de400a755b4ecf7962b66f2a3f232895c5ce365c18e9c4af4dc654094357248e7f694217a33b8a0415767c1c50c532f6d70f01e04475ecf0c7d1b5607432967f WHIRLPOOL 67ae0eb1459161a46a5bb2c2ce8c646febe0fe5c8f0cbae8c4d620d713c2d6cf982fd4d8364204c72d07fbef0a9df32b5226cb65a718e3b811912b09b7a15911
 DIST jsoup-1.8.1.a.tar.gz 303388 SHA256 788832a1a3fa639fecb71b52c5b1c062663f5b3a21c1451968910c4731393b60 SHA512 4afcc42187fd034e2c6f45d369c4fdd0cc7523f4aa2f2526a21aebdebb8608e1ced51f3d6c8de02ac519eccd5ef415e9b7619450fb2e958a0f7a4d5bf492ed8a WHIRLPOOL 7c1f8a0db34b8907bbc2ce849d85a845956059520202346a1d608e43cb264d2b478738868a2d183d97eff85b8df085ced10130400f2612a26faff7f688e4e698
+DIST jsoup-1.8.3a.zip 370626 SHA256 3a2dd962eb3f3bf0ef14f526d89795836d06bff411e68f0adfcc4a8dd5915876 SHA512 d044231fc70ff6d5428707d56853db77feedbb29a4ea1a501e6fcbaaecb2743bdeeaa8dcf4c76f7d278905b31e83707ad2644e7876a44c9d2325537d647aab85 WHIRLPOOL e1b5d4ed64b4460223b38aea43466465638236edf0ef6bd987430e16bb2bd12796a4900da797320c5bebcd8de0f823533f2a40bfb6cc50ad30183912eb34eee7
index bac8d54ce0b7c874fd34801b3bef4f33ee04f6aa..15401030f79f83ee67e3fd319d6da35c9d0e21d3 100644 (file)
@@ -6,7 +6,7 @@ EAPI="5"
 
 JAVA_PKG_IUSE="doc source test"
 
-inherit java-pkg-2 java-pkg-simple vcs-snapshot
+inherit java-pkg-2 java-pkg-simple 
 
 MY_PV="${PV}.a"
 
diff --git a/dev-java/jsoup/jsoup-1.8.3.ebuild b/dev-java/jsoup/jsoup-1.8.3.ebuild
new file mode 100644 (file)
index 0000000..49c1eb5
--- /dev/null
@@ -0,0 +1,49 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+JAVA_PKG_IUSE="doc source test"
+
+inherit java-pkg-2 java-pkg-simple
+
+MY_PV="${PV}a"
+MY_P="${PN}-${PN}-${MY_PV}"
+
+DESCRIPTION="Java HTML parser that makes sense of real-world HTML soup"
+HOMEPAGE="http://jsoup.org/"
+SRC_URI="https://github.com/jhy/${PN}/archive/${PN}-${MY_PV}.zip"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+IUSE=""
+
+RDEPEND=">=virtual/jre-1.6"
+DEPEND=">=virtual/jdk-1.6
+       test? ( dev-java/junit:4 )"
+
+S="${WORKDIR}/${MY_P}"
+
+JAVA_SRC_DIR="src/main/java"
+
+java_prepare() {
+       rm pom.xml || die
+       mkdir -p target/classes/org/jsoup/nodes/ || die
+       cp src/main/java/org/jsoup/nodes/*.properties target/classes/org/jsoup/nodes/ || die
+}
+
+src_test() {
+       testcp="${S}/${PN}.jar:$(java-pkg_getjars junit-4):target/tests"
+
+       mkdir target/tests || die
+       ejavac -cp "${testcp}" -d target/tests $(find src/test/java -name "*.java")
+       cp -r src/test/resources/* target/tests || die
+
+       tests=$(find target/tests -name "*Test.class" \
+                       | sed -e 's/target\/tests\///g' -e "s/\.class//" -e "s/\//./g" \
+                       | grep -vP '\$');
+       ejunit4 -cp "${testcp}" ${tests}
+}