diff options
Diffstat (limited to 'dev-java/jsoup')
-rw-r--r-- | dev-java/jsoup/Manifest | 5 | ||||
-rw-r--r-- | dev-java/jsoup/jsoup-1.8.3.ebuild | 48 | ||||
-rw-r--r-- | dev-java/jsoup/metadata.xml | 20 |
3 files changed, 73 insertions, 0 deletions
diff --git a/dev-java/jsoup/Manifest b/dev-java/jsoup/Manifest new file mode 100644 index 000000000000..35370f8343be --- /dev/null +++ b/dev-java/jsoup/Manifest @@ -0,0 +1,5 @@ +DIST jsoup-1.8.3a.zip 370626 SHA256 3a2dd962eb3f3bf0ef14f526d89795836d06bff411e68f0adfcc4a8dd5915876 SHA512 d044231fc70ff6d5428707d56853db77feedbb29a4ea1a501e6fcbaaecb2743bdeeaa8dcf4c76f7d278905b31e83707ad2644e7876a44c9d2325537d647aab85 WHIRLPOOL e1b5d4ed64b4460223b38aea43466465638236edf0ef6bd987430e16bb2bd12796a4900da797320c5bebcd8de0f823533f2a40bfb6cc50ad30183912eb34eee7 +EBUILD jsoup-1.8.3.ebuild 1172 SHA256 4ef9149925a8d6561e7bf13cb8f741b8498dbb1cbdf853989583d868e433fbae SHA512 5f4de990ce860a2ea95da8ca86eee940c7e56f93dd2d2c6561ab9ebc180b56845935b46d69af74e260de561a90e4aaa764b2ae9b1b736693150b01b812d7f8ff WHIRLPOOL 954359983e8eadd3c229ef7fc61e4be65ddcc14b17d40e290157a7762a73b544c9995f73f88b26e2400872e41d026e72f2091503a72ea9298c3a6e590b8782ff +MISC ChangeLog 3729 SHA256 6cf866d736dcbb80a5582a31e25b9709ab579fe9d87c34d859cd817e896471e9 SHA512 2b5c2dc0028c1e93296c207f4e8c80829a200dcf9e309750a18f14ad8d9bfe3c4110076b7a615795861eaea9bb8c996b2726ee821363dc831f751a6996ab433d WHIRLPOOL 4ab8812706c035c155efe77eac7e1d423362edf7726f182864d7bdb633812c3782ee5afb1e9b3951283d46d0912966b52c41a128a6ee0ca4bd60101b687c176b +MISC ChangeLog-2015 709 SHA256 dbbade21f6258c1434683efdb400efa09f2f06341889a89f9cd8ffd495abda2c SHA512 e7addaf8a2f743ae9039e68172471fd70a1952454dc73708e84466ed0c950b357b8cf47ec2fcc0543edcc41343ae2c3e0e5f01cda92251c0495b49d0a7032491 WHIRLPOOL 9099c4e7442f6b4f9acbc8016255731cacdde1ea9e91f403ceaf2e40875ff07d078c7aa7d7174e7a5eafb7ffe0921f1d38019ac0f3ca10e70c30c20d40381b6f +MISC metadata.xml 832 SHA256 ccd651bdc5abcf2303ed430f5b97f09025803011576b00b9169ae4f636da8d58 SHA512 795f0cfdf9dddeb803b917a4383e5b5d6626f3ba7e9ba1c9a3225c253860e8f66934863cb6d718a6eb96ce8e49b552beb849bb9dd33880166e37c93ba3a0e0c8 WHIRLPOOL 76ef4a9f011e7316567cc557980f407a9f60cc393dda5f60a00b8be2d797fc77e3b52fdaa3d03dbf17dcc04285996819527aa7db20641d3d66ab78b435a488f2 diff --git a/dev-java/jsoup/jsoup-1.8.3.ebuild b/dev-java/jsoup/jsoup-1.8.3.ebuild new file mode 100644 index 000000000000..dd2cf1cba978 --- /dev/null +++ b/dev-java/jsoup/jsoup-1.8.3.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +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} +} diff --git a/dev-java/jsoup/metadata.xml b/dev-java/jsoup/metadata.xml new file mode 100644 index 000000000000..423272137d7f --- /dev/null +++ b/dev-java/jsoup/metadata.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>java@gentoo.org</email> + <name>Java</name> + </maintainer> + <upstream> + <remote-id type="github">jhy/jsoup</remote-id> + </upstream> + <longdescription> + jsoup is a Java library for working with real-world HTML. It provides a + very convenient API for extracting and manipulating data, using the best + of DOM, CSS, and jquery-like methods. + It implements the WHATWG HTML5 specification (http://whatwg.org/html), + and parses HTML to the same DOM as modern browsers do. It's designed to + deal with all varieties of HTML found in the wild; from pristine and + validating, to invalid tag-soup; jsoup will create a sensible parse tree. + </longdescription> +</pkgmetadata> |