summaryrefslogtreecommitdiff
path: root/dev-java/spring-instrument
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-java/spring-instrument
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-java/spring-instrument')
-rw-r--r--dev-java/spring-instrument/Manifest7
-rw-r--r--dev-java/spring-instrument/files/spring-instrument-3.2.4-build.xml109
-rw-r--r--dev-java/spring-instrument/metadata.xml18
-rw-r--r--dev-java/spring-instrument/spring-instrument-3.2.4.ebuild61
4 files changed, 195 insertions, 0 deletions
diff --git a/dev-java/spring-instrument/Manifest b/dev-java/spring-instrument/Manifest
new file mode 100644
index 000000000000..bef03c591372
--- /dev/null
+++ b/dev-java/spring-instrument/Manifest
@@ -0,0 +1,7 @@
+AUX spring-instrument-3.2.4-build.xml 4010 SHA256 3d475c75e248ba5d9bdfa256eab740fbccea5926af4556c04a03eb2083e8551f SHA512 1c92972268d7889c568942abf40fb202c05c9a7ca14c34162212f54ec73ebd5160acedd99d96dcf576480afda88d82d57dc79ee087eabed321dd7f81e5a7ac32 WHIRLPOOL 7057e80bf6b74cf9d31f179142876fa105d97ddf39c24b1774387ea7b180c2a3942d26ffbdc2921865feb6e354beef1ebcacd0ede58d62541156cb56e2f3ce67
+DIST spring-framework-3.2.4-buildscripts.tar.bz2 2894 SHA256 5a18b76fd55ffca6fbd8957436641287eeead9765de8fe07443fc5d52f03e043 SHA512 003551ffd37501c8b8dceba7ca484709cdf05f96c893d35c33161288770d72f70c092917f79216aa71742e045cb71ddcb17e6b58a2221fe2c153a70e5e0346b9 WHIRLPOOL ae8edd73bf272c3e92e07e5c341110d824703bbb8393a7f4af3ea9b0f306516a025888b2c3433ac0b7a2c3eedaf4236c3e201710e3fd77620290f5c6e28891c7
+DIST spring-framework-3.2.4.tar.gz 8925304 SHA256 0e0ad9631ea17a90fd8bc2565a7fb5b29ad12c1bf9ec9582f77019b5b041d08d SHA512 6a8fe58213f105deaa982b188e7b49a5bd9e0cf32917c568423509fed6b7c708cb5ca42ee7b3818327d673e59e7af7c67c13707e8a635329540b2febddda0f1b WHIRLPOOL f3dba92202402a676d8ad37c0b80d3a7616eecd780477ff21865305e2e2e5048b525ad9d14d36c0c0def96da305e3067e02617e10b949600ba819612f9edf48b
+EBUILD spring-instrument-3.2.4.ebuild 1498 SHA256 72676308aafeb580ad6d0580a2d3a96b216a815495c2786f715f215c2a98e24a SHA512 22f7bf12c27fbaa7042c06d76257108f5d159bc724174860c63de95262f61d90528a22baf84864c24927a7ac5d3749214796d8d9704796d21daab4c165ee5797 WHIRLPOOL 8787e2a6ed5b5f5500bb1c1fb28432d3492f29138d5f64e8eeed7cc087377312ce782f5ccd850753ba17a0df8e2ac73c9af55779a13f5022b4623a72b3e61d05
+MISC ChangeLog 2928 SHA256 fe898bd766303b6707811ff3bf9fbdf240fa78caa7154fd579ce06bdaf67d352 SHA512 a2a8f71fa4d2a619b9d2bd14590e073e41ad5ea0b529f0c0b7f164792b02a445c83ba35c6421d45ef3b307def9a7f96dd2e35613d9aef1ac65d2a51b50db1baf WHIRLPOOL 69dff18d66d907525a9445cde6a8468f714778dda9ec3aff257c740844e21758311b474695f86a42b6777ab3afeca18f30139c12944f3a5dc269d5552055205e
+MISC ChangeLog-2015 623 SHA256 c61d4b2f374bb5ccd77a60781d9030fec540ffa435b6b11e7c496b3bdc3a5c0c SHA512 00f21e3cb0c7d6b501de87ce9281a4e57fc8ebdd6e0e20453b60beaf34e63a5839a56463a638bd951ed09416ec783f0d1b341577d5988e435c3e090c59e6f6b4 WHIRLPOOL 27d24c24cbaad620575e3836ef03bb8d1ea731529d539e1bb0a3cca6237a3e469b7da1abd182c8b5a0f68340cde57cd41457ba89299bd59b0796df588012111e
+MISC metadata.xml 805 SHA256 41a7a1d8d31bd1082ec3fd949b8990a9ae1be44c9e75017f111876ab3153d8be SHA512 76da7349ca93ef13fb154f1531a175e9dba0536614191d9f801c157bdfdbce407eb06a7677224468dc7a19868010604bafd8db2b1348f1fce16b0bd2dd414005 WHIRLPOOL 80d72199bda19ec402b09ba9ff3ddc942f8e47b2dffc0c04f21e198a08eb0c7a49e781a7ccbd975906a3e086f75970f292e4a02e7a09f30ddf24a0a50d2427e2
diff --git a/dev-java/spring-instrument/files/spring-instrument-3.2.4-build.xml b/dev-java/spring-instrument/files/spring-instrument-3.2.4-build.xml
new file mode 100644
index 000000000000..3175f36774f8
--- /dev/null
+++ b/dev-java/spring-instrument/files/spring-instrument-3.2.4-build.xml
@@ -0,0 +1,109 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<project name="spring-instrument" default="jar" basedir=".">
+
+ <property name="src.dir" value="${basedir}/src/main/java" />
+ <property name="resources.dir" value="${basedir}/src/main/resources" />
+
+ <property name="test.src.dir" value="${basedir}/src/test/java" />
+ <property name="test.resources.dir" value="${basedir}/src/test/resources" />
+
+ <property name="reports.tests" value="${basedir}/test-output" />
+ <property name="classes.dir" value="${basedir}/classes" />
+ <property name="classes.dir.test" value="${basedir}/classes-test" />
+ <property name="dist.dir" value="${basedir}/dist" />
+
+ <property name="jar.file" value="${dist.dir}/${ant.project.name}.jar" />
+
+ <target name="clean" description="Clean the output directory">
+ <delete dir="${classes.dir}" />
+ </target>
+
+ <target name="compile" depends="clean">
+ <mkdir dir="${classes.dir}" />
+
+ <javac destdir="${classes.dir}" nowarn="false" debug="true" optimize="true" deprecation="false" target="1.5" verbose="false" fork="false" source="1.5">
+ <src>
+ <pathelement location="${src.dir}" />
+ </src>
+ </javac>
+ </target>
+
+ <!-- this target gets called from the other spring-* build.xml files to compile the required test utils -->
+ <target name="compile-instrument-testutils">
+ <mkdir dir="${classes.dir.test}" />
+ <javac destdir="${classes.dir.test}" nowarn="false" debug="true" optimize="true" deprecation="false" target="1.5" verbose="false" fork="false" source="1.5">
+ <src path="${test.src.dir}" />
+
+ <!-- these excludes are a little bit fuzzy, but they should work -->
+ <exclude name="org/springframework/**/*Tests.java"/>
+ <exclude name="org/springframework/**/*TestCase.java"/>
+
+ <classpath>
+ <pathelement location="${classes.dir}" />
+ </classpath>
+ </javac>
+
+ <copy todir="${classes.dir.test}" verbose="true">
+ <fileset dir="${test.resources.dir}"/>
+ </copy>
+ </target>
+
+ <target name="compile-tests" depends="compile-instrument-testutils">
+ <ant antfile="${basedir}/../spring-core/build.xml" target="compile-core-testutils" dir="${basedir}/../spring-core/" inheritall="false" />
+
+ <mkdir dir="${classes.dir.test}" />
+ <javac destdir="${classes.dir.test}" nowarn="false" debug="true" optimize="true" deprecation="false" target="1.5" verbose="false" fork="false" source="1.5">
+ <src path="${test.src.dir}" />
+ <exclude name="**/DirectFieldAccessorTests.java"/> <!-- tries to instantiate a JPanel which needs an X-Server -->
+
+ <classpath>
+ <pathelement location="${classes.dir}" />
+
+ <pathelement location="${basedir}/../spring-core/classes-test" />
+ </classpath>
+ </javac>
+
+ <copy todir="${classes.dir.test}" verbose="true">
+ <fileset dir="${test.resources.dir}"/>
+ </copy>
+ </target>
+
+ <target name="test" depends="jar, compile-tests">
+ <mkdir dir="${reports.tests}" />
+ <junit printSummary="yes" haltonerror="true" haltonfailure="true" fork="true" dir=".">
+ <sysproperty key="log4j.configuration" value="log4j.xml"/>
+
+ <classpath>
+ <pathelement location="${jar.file}" />
+ <pathelement location="${classes.dir.test}" />
+ <pathelement location="${test.src.dir}" />
+
+ <pathelement location="${basedir}/../spring-core/classes-test" />
+ </classpath>
+
+ <sysproperty key="basedir" value="." />
+
+ <formatter type="xml" />
+ <formatter type="plain" usefile="false" />
+
+ <batchtest todir="${reports.tests}">
+ <fileset dir="${classes.dir.test}">
+ <include name="**/*Tests.class" />
+ <exclude name="**/*Abstract*.*" />
+ <exclude name="**/*$*.class" />
+
+ <exclude name="**/org/springframework/beans/factory/support/security/CallbacksSecurityTests*" />
+ </fileset>
+ </batchtest>
+ </junit>
+ </target>
+
+ <target name="javadoc">
+ <javadoc sourcepath="${src.dir}" packagenames="*" destdir="${dist.dir}/apidocs" />
+ </target>
+
+ <target name="jar" depends="compile">
+ <jar jarfile="${jar.file}" compress="true" index="false" basedir="${classes.dir}" excludes="**/package.html" />
+ </target>
+</project>
diff --git a/dev-java/spring-instrument/metadata.xml b/dev-java/spring-instrument/metadata.xml
new file mode 100644
index 000000000000..73672eec8b78
--- /dev/null
+++ b/dev-java/spring-instrument/metadata.xml
@@ -0,0 +1,18 @@
+<?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>
+ <longdescription>
+ The Spring Framework provides a comprehensive programming and configuration model for
+ modern Java-based enterprise applications - on any kind of deployment platform. A key
+ element of Spring is infrastructural support at the application level: Spring focuses
+ on the "plumbing" of enterprise applications so that teams can focus on application-level
+ business logic, without unnecessary ties to specific deployment environments.
+ </longdescription>
+ <upstream>
+ <remote-id type="github">SpringSource/spring-framework</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-java/spring-instrument/spring-instrument-3.2.4.ebuild b/dev-java/spring-instrument/spring-instrument-3.2.4.ebuild
new file mode 100644
index 000000000000..5e393cf162e4
--- /dev/null
+++ b/dev-java/spring-instrument/spring-instrument-3.2.4.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2017 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="A comprehensive programming and configuration model for enterprise applications"
+HOMEPAGE="http://www.springsource.org/spring-framework"
+SRC_URI="https://github.com/SpringSource/spring-framework/archive/v${PV}.RELEASE.tar.gz -> spring-framework-${PV}.tar.gz
+ https://dev.gentoo.org/~ercpe/distfiles/dev-java/spring-framework/spring-framework-${PV}-buildscripts.tar.bz2"
+
+LICENSE="Apache-2.0"
+SLOT="3.2"
+KEYWORDS="~amd64"
+
+DEPEND=">=virtual/jdk-1.7
+ test? (
+ dev-java/ant-junit4:0
+ dev-java/hamcrest-core:1.3
+ dev-java/hamcrest-library:1.3
+ dev-java/junit:4
+ dev-java/mockito:0
+ dev-java/spring-core:${SLOT}
+ dev-java/xmlunit:1
+ )"
+
+RDEPEND=">=virtual/jre-1.7"
+
+S="${WORKDIR}/spring-framework-${PV}.RELEASE/"
+
+EANT_BUILD_XML=${S}/${PN}/build.xml
+
+JAVA_ANT_REWRITE_CLASSPATH="true"
+EANT_GENTOO_CLASSPATH=""
+EANT_TEST_GENTOO_CLASSPATH="${EANT_GENTOO_CLASSPATH}
+ hamcrest-library-1.3
+ hamcrest-core-1.3
+ junit-4
+ mockito
+ spring-core-${SLOT}
+ xmlunit-1"
+
+java_prepare() {
+ find . -name '*.jar' -print -delete || die
+
+ cp "${FILESDIR}"/${P}-build.xml "${EANT_BUILD_XML}" || die
+}
+
+src_test() {
+ java-pkg-2_src_test
+}
+
+src_install() {
+ java-pkg_dojar "${S}"/${PN}/dist/${PN}.jar
+
+ use source && java-pkg_dosrc "${S}"/${PN}/src/main/java/org/
+ use doc && java-pkg_dojavadoc "${S}"/${PN}/dist/apidocs/
+}