diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /dev-java/jarjar | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'dev-java/jarjar')
-rw-r--r-- | dev-java/jarjar/Manifest | 2 | ||||
-rw-r--r-- | dev-java/jarjar/files/0.9-bootclasspath.patch | 11 | ||||
-rw-r--r-- | dev-java/jarjar/files/0.9-system-jars.patch | 20 | ||||
-rw-r--r-- | dev-java/jarjar/jarjar-0.9.ebuild | 64 | ||||
-rw-r--r-- | dev-java/jarjar/jarjar-1.4.ebuild | 73 | ||||
-rw-r--r-- | dev-java/jarjar/metadata.xml | 5 |
6 files changed, 175 insertions, 0 deletions
diff --git a/dev-java/jarjar/Manifest b/dev-java/jarjar/Manifest new file mode 100644 index 000000000000..cfb68dc02b47 --- /dev/null +++ b/dev-java/jarjar/Manifest @@ -0,0 +1,2 @@ +DIST jarjar-src-0.9.zip 188269 SHA256 da90f1cb07dbd07b8141a4541acc701a0d33abb2808fe2410dd6782c98cb9b2a SHA512 ddfdad65785c9ecd98021cd1eb6226bce182e77421be2608a9e1776164e0e84ec957a453cb54e19fc0cc9cd2fcacb3867f399e1b40bd9696607885f00ab3c917 WHIRLPOOL 1e526ffc0dd4bf3e20e4751d171598028e78c6087bb6a02f070771a855495cbc8b54669c6802a2acb6115204e45e6cf7df1183bc259d978d67f71949c2d96c59 +DIST jarjar-src-1.4.zip 339014 SHA256 54368bb0ec484429243dc5620ce49d428f007c7eb8f3400367cdb2142dcc11ed SHA512 62af4f07c3fe2b887da959b8251a94fbd1c142e56b3332ad81865eef9ba32ded47883fc37d943c0081a4496ab71ef044022d13f21ccdb8db690638c26fc52c31 WHIRLPOOL c5fb411211f303976d3c10c6d3063b50defb7c5e8368d9f4f5faeef17eced530e59fa7d67153d04a9be98f60a28f276800f9e672a044415d69a2e4905222e03f 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-0.9.ebuild b/dev-java/jarjar/jarjar-0.9.ebuild new file mode 100644 index 000000000000..99deccfca80b --- /dev/null +++ b/dev-java/jarjar/jarjar-0.9.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +JAVA_PKG_IUSE="doc source test" + +inherit eutils java-pkg-2 java-ant-2 + +DESCRIPTION="Tool for repackaging third-party jars" +SRC_URI="mirror://sourceforge/jarjar/${PN}-src-${PV}.zip" +HOMEPAGE="http://jarjar.sourceforge.net" +LICENSE="GPL-2" +SLOT="1" +KEYWORDS="amd64 ~arm ppc ppc64 x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris" +IUSE="" +COMMON_DEP=" + =dev-java/asm-2.0* + =dev-java/gnu-regexp-1* + >=dev-java/ant-core-1.7.0 + dev-java/java-getopt" +RDEPEND=">=virtual/jre-1.4 + ${COMMON_DEP}" +DEPEND=">=virtual/jdk-1.4 + test? ( dev-java/ant-junit ) + app-arch/unzip + ${COMMON_DEP}" + +src_unpack() { + unpack ${A} + cd "${S}" + rm -v src/main/com/tonicsystems/jarjar/JarJarMojo.java || die + rm -vr src/main/gnu || die + + epatch "${FILESDIR}/0.9-system-jars.patch" + # bug #191378 + epatch "${FILESDIR}/0.9-bootclasspath.patch" + + cd "${S}/lib" + rm -v *.jar || die + java-pkg_jar-from asm-2 + java-pkg_jar-from gnu-regexp-1 + java-pkg_jar-from ant-core ant.jar + java-pkg_jar-from java-getopt-1 +} + +ANT_TASKS="none" +EANT_BUILD_TARGET="jar-nojarjar" + +src_test() { + # regenerates this + cp -i dist/${P}.jar "${T}" || die + cd lib || die + java-pkg_jar-from junit + cd .. + ANT_TASKS="ant-junit" eant test + cp "${T}/${P}.jar" dist || die +} + +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/jarjar-1.4.ebuild b/dev-java/jarjar/jarjar-1.4.ebuild new file mode 100644 index 000000000000..859e8e70f8fb --- /dev/null +++ b/dev-java/jarjar/jarjar-1.4.ebuild @@ -0,0 +1,73 @@ +# 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 eutils java-pkg-2 java-ant-2 + +DESCRIPTION="Tool for repackaging third-party jars" +#SRC_URI="mirror://sourceforge/jarjar/${PN}-src-${PV}.zip" +SRC_URI="http://jarjar.googlecode.com/files/${PN}-src-${PV}.zip" +HOMEPAGE="http://jarjar.sourceforge.net" +LICENSE="GPL-2" +SLOT="1" +KEYWORDS="~amd64 ~arm ~x86 ~amd64-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris" +IUSE="" + +CDEPEND=" + dev-java/asm:4 + dev-java/gnu-regexp:1 + dev-java/java-getopt:1 + dev-java/ant-core:0" +RDEPEND=">=virtual/jre-1.6 + ${CDEPEND}" +DEPEND=">=virtual/jdk-1.6 + app-arch/unzip + ${CDEPEND}" + +RESTRICT='test' + +# FIXME: tests fail to pass. +#src_test() { +# # regenerates this +# cp -i dist/${P}.jar "${T}" || die +# cd lib || die +# java-pkg_jar-from junit +# cd .. +# ANT_TASKS="ant-junit" eant test +# cp "${T}/${P}.jar" dist || die +#} + +src_unpack() { + unpack ${A} + + cd "${S}" || die + rm -v src/main/com/tonicsystems/jarjar/JarJarMojo.java || die + + cd "${S}/lib" || die + rm -v *.jar || die + + java-pkg_jar-from asm-4 + java-pkg_jar-from gnu-regexp-1 + java-pkg_jar-from ant-core ant.jar + java-pkg_jar-from java-getopt-1 +} + +src_prepare() { + epatch "${FILESDIR}/0.9-system-jars.patch" + + # bug #191378 + epatch "${FILESDIR}/0.9-bootclasspath.patch" +} + +ANT_TASKS="none" +EANT_BUILD_TARGET="jar-nojarjar" + +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..7303cef96964 --- /dev/null +++ b/dev-java/jarjar/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>java</herd> +</pkgmetadata> |