summaryrefslogtreecommitdiff
path: root/dev-java/jarjar
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-java/jarjar
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-java/jarjar')
-rw-r--r--dev-java/jarjar/Manifest5
-rw-r--r--dev-java/jarjar/files/0.9-bootclasspath.patch11
-rw-r--r--dev-java/jarjar/files/0.9-system-jars.patch20
-rw-r--r--dev-java/jarjar/jarjar-1.4.ebuild64
-rw-r--r--dev-java/jarjar/metadata.xml11
5 files changed, 111 insertions, 0 deletions
diff --git a/dev-java/jarjar/Manifest b/dev-java/jarjar/Manifest
new file mode 100644
index 000000000000..75b92639f7a0
--- /dev/null
+++ b/dev-java/jarjar/Manifest
@@ -0,0 +1,5 @@
+AUX 0.9-bootclasspath.patch 630 BLAKE2B a4f65fe4d76ca51c5b5f41b707c52e9dcbb579d08d50eb63be54e7ce15ad0516847f1bc0e1d84ee0767ee068d9a5863e93d8bd5ce20d563a4e3b2ce7c340a43c SHA512 07225e41b1497c369fcd924ea6ff612388c020f89181e583bd5dc55d5219fe81a196c76df3bf5b8bdf882bf3a25b5b874110d231c5a3e5d387bdff16b2d0cc27
+AUX 0.9-system-jars.patch 790 BLAKE2B 702240e131e2e22fe5b32e52493d87e6f88c9025f782cc74579f2027b20f6bc44dc2e229dfd8cbd20fcc8bb9310bc87d24d04b9db779059c0a599e329989fb98 SHA512 6dfcd74af809b85e11a4f9c0cf5aea176ef1dff86705346e26a0f4be6f2b9f45dba82d304d83dd5be6e8def37947217bcebe408fd7627f9a1511a3d6d721d992
+DIST jarjar-src-1.4.zip 339014 BLAKE2B 88694826dad529396cd4471aab135782aca7455daa56f2f8d66dbcef2630466b1f3030c95c79ba8cb054f44bbf5dca39652283c41e982eb63f264d5d163ff1d2 SHA512 62af4f07c3fe2b887da959b8251a94fbd1c142e56b3332ad81865eef9ba32ded47883fc37d943c0081a4496ab71ef044022d13f21ccdb8db690638c26fc52c31
+EBUILD jarjar-1.4.ebuild 1242 BLAKE2B 7abfc5cb95ddde03bc4241a2317c21b9d2108527d07bb45a7406f63bc9a6f29dfb1df540247ab2afc5f4a2e9208e9bc628953ce472153753368ddac172af8865 SHA512 0036720b57b00a730ba1f67084205851a5234f179e07e018dadf1098edadbac44d76552ddf5ca588c1084a55763bfe38dceccb6e62b97e89a72db019c0377b10
+MISC metadata.xml 312 BLAKE2B bc12f682c75d74033efbbf7b5a286d8903c59e78bf0733416c29a3d6190c1c95538ce72158ab3a0d1d6c3e644ee8f221ffdc01b25b180c10be2606c682e869c3 SHA512 6e73ffaf397ce44fbfc20a9d676eb0e751da1a48e8c1e6d7bd074704b647cb7f7f87464023d71fc4f27e2cb3468b729aeb005f5d0c66e94a6bde035eeebfb211
diff --git a/dev-java/jarjar/files/0.9-bootclasspath.patch b/dev-java/jarjar/files/0.9-bootclasspath.patch
new file mode 100644
index 000000000000..6a46d1afbd5a
--- /dev/null
+++ b/dev-java/jarjar/files/0.9-bootclasspath.patch
@@ -0,0 +1,11 @@
+--- build.xml 2008-09-13 13:55:40.000000000 +0200
++++ build.xml 2009-10-06 20:51:53.000000000 +0200
+@@ -48,7 +48,7 @@
+ </copy>
+ <javac srcdir="src/@{module}" destdir="build/@{module}"
+ source="${compile.source}"
+- target="${compile.target}" bootclasspath="@{bootclasspath}" extdirs="${compile.extdirs}"
++ target="${compile.target}" extdirs="${compile.extdirs}"
+ debug="${compile.debug}" optimize="${compile.optimize}" deprecation="${compile.deprecation}">
+ <classpath refid="@{refid}"/>
+ <compilerarg value="-Xlint"/>
diff --git a/dev-java/jarjar/files/0.9-system-jars.patch b/dev-java/jarjar/files/0.9-system-jars.patch
new file mode 100644
index 000000000000..c2fcf98f27e7
--- /dev/null
+++ b/dev-java/jarjar/files/0.9-system-jars.patch
@@ -0,0 +1,20 @@
+Index: build.xml
+===================================================================
+--- build.xml (revision 90)
++++ build.xml (working copy)
+@@ -93,6 +93,15 @@
+ </jarjar>
+ </target>
+
++ <target name="jar-nojarjar" depends="compile" description="Create Jar Without running JarJar task on it">
++ <mkdir dir="dist"/>
++ <jar jarfile="${jarfile}" basedir="build/main/">
++ <manifest>
++ <attribute name="Main-Class" value="com.tonicsystems.jarjar.Main"/>
++ <attribute name="Implementation-Version" value="${version}"/>
++ </manifest>
++ </jar>
++ </target>
+ <target name="jar-util" depends="compile" description="Create utility Jar">
+ <mkdir dir="dist"/>
+ <jar jarfile="${jarfile.util}">
diff --git a/dev-java/jarjar/jarjar-1.4.ebuild b/dev-java/jarjar/jarjar-1.4.ebuild
new file mode 100644
index 000000000000..51487a4f2fa2
--- /dev/null
+++ b/dev-java/jarjar/jarjar-1.4.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2018 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-ant-2
+
+DESCRIPTION="Tool for repackaging third-party jars"
+SRC_URI="https://jarjar.googlecode.com/files/${PN}-src-${PV}.zip"
+HOMEPAGE="http://jarjar.sourceforge.net"
+LICENSE="GPL-2"
+SLOT="1"
+KEYWORDS="amd64 ~arm ~arm64 ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris"
+IUSE=""
+RESTRICT="test"
+
+CDEPEND="
+ dev-java/asm:4
+ dev-java/gnu-regexp:1
+ dev-java/java-getopt:1
+ dev-java/ant-core:0"
+
+RDEPEND="
+ ${CDEPEND}
+ >=virtual/jre-1.6"
+
+DEPEND="
+ ${CDEPEND}
+ >=virtual/jdk-1.6
+ app-arch/unzip"
+
+JAVA_ANT_REWRITE_CLASSPATH="yes"
+EANT_BUILD_TARGET="jar-nojarjar"
+EANT_GENTOO_CLASSPATH="
+ asm-4
+ gnu-regexp-1
+ java-getopt-1
+ ant-core
+"
+
+ANT_TASKS="none"
+
+PATCHES=(
+ "${FILESDIR}/0.9-system-jars.patch"
+ "${FILESDIR}/0.9-bootclasspath.patch"
+)
+
+JAVA_RM_FILES=(
+ src/main/com/tonicsystems/jarjar/JarJarMojo.java
+)
+
+java_prepare() {
+ java-pkg_clean
+ epatch "${PATCHES[@]}"
+}
+
+src_install() {
+ java-pkg_newjar dist/${P}.jar ${PN}.jar
+ java-pkg_register-ant-task
+ use doc && java-pkg_dojavadoc dist/javadoc
+ use source && java-pkg_dosrc src/main/*
+}
diff --git a/dev-java/jarjar/metadata.xml b/dev-java/jarjar/metadata.xml
new file mode 100644
index 000000000000..a3e6de3368a5
--- /dev/null
+++ b/dev-java/jarjar/metadata.xml
@@ -0,0 +1,11 @@
+<?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="sourceforge">jarjar</remote-id>
+ </upstream>
+</pkgmetadata>