diff options
Diffstat (limited to 'dev-java/dynalang')
-rw-r--r-- | dev-java/dynalang/Manifest | 6 | ||||
-rw-r--r-- | dev-java/dynalang/dynalang-0.4-r1.ebuild | 64 | ||||
-rw-r--r-- | dev-java/dynalang/files/build.xml | 179 | ||||
-rw-r--r-- | dev-java/dynalang/metadata.xml | 11 |
4 files changed, 260 insertions, 0 deletions
diff --git a/dev-java/dynalang/Manifest b/dev-java/dynalang/Manifest new file mode 100644 index 000000000000..6f3a8d89c5b5 --- /dev/null +++ b/dev-java/dynalang/Manifest @@ -0,0 +1,6 @@ +AUX build.xml 6721 SHA256 58cd371b785eb31ff1ae4728d947c043df401227f22890530e676e0bb90d2888 SHA512 e18fcef8b62ef09a55063afed6beeb484fe98e2d3fee904bb68eb776d6d11e8d5055b5b2160ef57576247ee2fcc7e7db059ac3e7c69360b0e27790ad1ffba40e WHIRLPOOL 8d18afdf52a5e023ffe500deda9de579fc6886b710736fccfb6059e50381c1c26e2cec88b0b2f5513c3bd2a754fdf37ae6e3513c8841705835079c14bfdb7394 +DIST dynalang-mop-0.4.tgz 227338 SHA256 b241b763d8178f7ba74123ed6145df4f255f78df39757665f3569e3ccd11d5cb SHA512 b7501fbc44ae29e10cf3eb55002420d88d83226f790861f43f59aaddc0cd1bd5021fed207d831d5c3adb14ceab01dc17ff53cd31cb6a93c0fc00240b8e3e9797 WHIRLPOOL ad5f558a105a78625d7c7c55b1c7f7b185aae30fb7ab917e27aedfa083ee99191223fb76ea22f3f573da576655d8612ccf21bba807a6488ae5344ce9705c22d4 +EBUILD dynalang-0.4-r1.ebuild 1377 SHA256 b2782f1230b9018b686863f1c586bcc363a242b9f5de0c4e5c78bf2a281f8c41 SHA512 d65bce327e3e95e7a210fc5779836942eaea635746cc3aa8b4eb53e600663c8347195b2f9faa3ae9b3e9bd3a5673f03a48b98d0791f726324750c1fd042f56df WHIRLPOOL c73622b37106ba991c54ad8ffe98b88b7e81cf4a9aebb753d042a21054b012169ede761480666c4a633aa7cc62826b37be142920d40ee7a53ca43ef25026ced7 +MISC ChangeLog 3390 SHA256 8340b55ea3747cdaf623780af146fdb4989365912625cba66b720d5db94a4d40 SHA512 a04abaabc96a4457b497a4060377ea92f1fdabf3b9f24ca1075e53533e3798e860156f24c8c7672b7ce55d70babbf992a7271c09c74fe4d3bb2f534059ea07e6 WHIRLPOOL 529251290a09b6927d874d44d0d4760f97b463aa2b1c93564d0b48e9709a8388250262c3fffcfa8acf9140b51757452fbefd2deba478050cff3b407842e4f979 +MISC ChangeLog-2015 683 SHA256 e77bed6c6b90d5fb0bf0ec8d24b76fcce35461d4af516ab2ca44a1d7f2dfd78c SHA512 9211a259448d8804bc07e1b35f1e86c79e5bb5da65987cd822e08dc8cc68402279490ee9330e0920a16c2cb16382f7f98df0343447b521e7e5e88725a972929b WHIRLPOOL ada05d8590d5da694b16c01e2874b95522fde4c9bf78e5382c2514dd4191c8610686edb9f5eb05532622457816d0db3e609609250272f5178498fe48f3918a2e +MISC metadata.xml 314 SHA256 b74b054534bdb88c7ce014c947f02ab3459e34066f1cc9af0dedbf3498800474 SHA512 6c6f4b185b8a3c8c677de4d759060151a07692c0629f7da13601dc082dd18e733e3b956fc34ad4f8d8092aeeecaa5cdefe8e51cbe0ab093e74ab9c11f7dcfa42 WHIRLPOOL e5c122a46d04249b93f14760e545fedd4b56292c723e0ecab0d62e105b5adb56dd9a2502edad415cea1ea43203a98bf6fef75a118ea08c2a597617c9974f788a diff --git a/dev-java/dynalang/dynalang-0.4-r1.ebuild b/dev-java/dynalang/dynalang-0.4-r1.ebuild new file mode 100644 index 000000000000..2e6b4bd63b98 --- /dev/null +++ b/dev-java/dynalang/dynalang-0.4-r1.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +JAVA_PKG_IUSE="doc source" +JAVA_PKG_BSFIX="off" + +inherit java-pkg-2 java-ant-2 + +MY_P="${PN}-mop-${PV}" + +DESCRIPTION="Library of interoperable metaobject protocols for dynamic languages" +HOMEPAGE="https://sourceforge.net/projects/dynalang/" +SRC_URI="mirror://sourceforge/${PN}/${PN}/${MY_P}.tgz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="amd64" + +IUSE="test" + +RDEPEND=">=virtual/jre-1.6" +DEPEND=">=virtual/jdk-1.6 + test? ( + dev-java/emma:0 + dev-java/junit:0 + dev-java/ant-junit:0 + )" + +S="${WORKDIR}/${MY_P}" + +# This one test fails. +JAVA_RM_FILES=( + testsrc/org/dynalang/mop/impl/test/TestStandardMetaobjectProtocolFactory.java +) + +java_prepare() { + cp "${FILESDIR}/build.xml" build.xml || die + + find . -iname '*.jar' -delete + + sed -i -e '/ivy:retrieve/d' build.xml || die + sed -i -e 's_\.\./ivy_ivy_' build.xml || die + sed -i -e \ + 's/clazz.getConstructors/(Constructor<T>[])clazz.getConstructors/' \ + src/org/dynalang/mop/beans/BeanMetaobjectProtocol.java || die + + mkdir -p build/lib/test +} + +EANT_DOC_TARGET="doc" + +src_test() { + java-pkg_jar-from --into build/lib/test emma,junit + + ANT_TASKS="ant-junit" eant test +} + +src_install() { + java-pkg_newjar "build/${MY_P}.jar" + use doc && java-pkg_dojavadoc build/doc/javadoc + use source && java-pkg_dosrc src/org +} diff --git a/dev-java/dynalang/files/build.xml b/dev-java/dynalang/files/build.xml new file mode 100644 index 000000000000..d8e5e19954f0 --- /dev/null +++ b/dev-java/dynalang/files/build.xml @@ -0,0 +1,179 @@ +<project name="org.dynalang.mop" basedir=".">
+<!--
+ Copyright 2007 Attila Szegedi
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+ <property name="project.name" value="JVM Dynamic Languages Metaobject Protocol"/>
+ <property name="artifact.name" value="dynalang-mop"/>
+ <property name="revision" value="0.4"/>
+ <property name="build.dir" location="build"/>
+
+ <target name="clean">
+ <mkdir dir="${build.dir}"/>
+ <delete dir="${build.dir}"/>
+ </target>
+
+ <target name="resolve">
+ </target>
+
+ <path id="compile.classpath">
+ <fileset dir="build/lib/default"/>
+ </path>
+
+ <target name="compile" depends="resolve">
+ <mkdir dir="build/lib/default"/>
+ <property name="classes.dir" location="${build.dir}/classes"/>
+ <mkdir dir="${classes.dir}"/>
+ <javac srcdir="src" destdir="${classes.dir}" deprecation="off"
+ debug="on" optimize="off" target="1.5" source="1.5"
+ classpathref="compile.classpath"/>
+ <copy toDir="${classes.dir}">
+ <fileset dir="src"
+ excludes="**/CVS/**,**/*.bak,**/*.java,**/*.jj,**/package.html,overview.html"/>
+ </copy>
+ </target>
+
+ <target name="jar" depends="compile">
+ <property name="jarfile" location="build/${artifact.name}-${revision}.jar"/>
+ <jar destfile="${jarfile}" basedir="${classes.dir}">
+ <manifest>
+ <attribute name="Implementation-Vendor" value="Attila Szegedi"/>
+ <attribute name="Implementation-Version" value="${revision}"/>
+ <attribute name="Implementation-Title" value="${project.name}"/>
+ <attribute name="Implementation-URL" value="http://sourceforge.net/projects/dynalang"/>
+ </manifest>
+ </jar>
+ </target>
+
+ <target depends="" name="doc">
+ <mkdir dir="${build.dir}/doc/javadoc"/>
+ <delete includeEmptyDirs="yes">
+ <fileset dir="${build.dir}/doc/javadoc" includes="**/*" />
+ </delete>
+ <javadoc author="true"
+ destdir="${build.dir}/doc/javadoc"
+ doctitle="${project.name} ${revision}"
+ packagenames="org.dynalang.*"
+ sourcepath="src"
+ version="true"
+ windowtitle="${project.name} ${revision} API"
+ overview="src/overview.html"
+ use="true">
+ </javadoc>
+ <copy todir="${build.dir}/doc">
+ <fileset dir="src/doc" includes="**/*"/>
+ </copy>
+ </target>
+
+ <target name="coverage-instrument" depends="compile">
+ <property name="coverage.dir" location="${build.dir}/coverage"/>
+ <property name="coverage.classes.dir" location="${build.dir}/coverage/classes"/>
+ <mkdir dir="${coverage.classes.dir}"/>
+ <path id="emma.lib">
+ <pathelement location="build/lib/test/emma.jar" />
+ <pathelement location="build/lib/test/emma_ant.jar" />
+ </path>
+ <taskdef resource="emma_ant.properties" classpathref="emma.lib" />
+ <property name="coverage.instrumentationfile" location="${coverage.dir}/instrumentation"/>
+ <emma enabled="true">
+ <instr
+ instrpath="${classes.dir}" outdir="${coverage.classes.dir}"
+ outfile="${coverage.instrumentationfile}" mode="copy"/>
+ </emma>
+ <copy todir="${coverage.classes.dir}">
+ <fileset dir="src" excludes="**/*.java"/>
+ </copy>
+ <copy todir="${coverage.classes.dir}">
+ <fileset dir="${classes.dir}"/>
+ </copy>
+ <property name="coverage.outfile" location="${coverage.dir}/coverage"/>
+ </target>
+
+ <target name="test-compile" depends="compile">
+ <property name="test.classes.dir" location="${build.dir}/test/classes"/>
+ <mkdir dir="${test.classes.dir}"/>
+ <javac srcdir="testsrc" destdir="${test.classes.dir}" deprecation="off"
+ debug="on" optimize="off" target="1.5" source="1.5">
+ <classpath>
+ <pathelement path="${classes.dir}" />
+ <pathelement path="build/lib/test/junit.jar" />
+ </classpath>
+ </javac>
+ <copy toDir="${test.classes.dir}">
+ <fileset dir="testsrc"
+ excludes="**/CVS/**,**/*.bak,**/*.java,**/*.jj,**/package.html"/>
+ </copy>
+ </target>
+
+ <target name="test-run" depends="test-compile, coverage-instrument">
+ <junit printsummary="on" fork="true" forkmode="once"
+ showoutput="true" haltonerror="true" haltonfailure="true">
+ <sysproperty key="emma.coverage.out.file" value="${coverage.outfile}"/>
+ <classpath>
+ <pathelement path="${coverage.classes.dir}" />
+ <pathelement path="${test.classes.dir}" />
+ <pathelement path="build/lib/test/emma.jar"/>
+ <pathelement path="build/lib/test/junit.jar"/>
+ </classpath>
+ <batchtest todir="build/test">
+ <fileset dir="${test.classes.dir}" includes="**/Test*.class"/>
+ </batchtest>
+ <formatter type="plain" usefile="false" />
+ <formatter type="xml"/>
+ </junit>
+ <mkdir dir="build/test/report"/>
+ <junitreport todir="build/test">
+ <fileset dir="build/test" includes="TEST-*.xml"/>
+ <report todir="build/test/report"/>
+ </junitreport>
+ </target>
+
+ <target name="test" depends="test-run">
+ <property name="coverage.report.dir" location="${build.dir}/coverage/report"/>
+ <mkdir dir="${coverage.report.dir}"/>
+ <delete dir="${coverage.report.dir}"/>
+ <mkdir dir="${coverage.report.dir}"/>
+ <emma enabled="true">
+ <report>
+ <fileset dir="${basedir}">
+ <include name="build/coverage/instrumentation"/>
+ <include name="build/coverage/coverage"/>
+ </fileset>
+ <sourcepath>
+ <dirset dir="${basedir}">
+ <include name="src"/>
+ </dirset>
+ </sourcepath>
+ <html outfile="${coverage.report.dir}/index.html"/>
+ </report>
+ </emma>
+ </target>
+
+ <target name="dist" depends="clean,test-run,jar,doc">
+ <mkdir dir="build/${artifact.name}-${revision}"/>
+ <copy todir="build/${artifact.name}-${revision}">
+ <fileset dir="." excludes="build/**/*"/>
+ </copy>
+ <copy todir="build/${artifact.name}-${revision}">
+ <fileset dir="."
+ includes="
+ build/doc/**/*
+ build/${artifact.name}-${revision}.jar"
+ />
+ </copy>
+ <tar destfile="build/${artifact.name}-${revision}.tgz"
+ compression="gzip" basedir="build"
+ includes="${artifact.name}-${revision}/**/*"/>
+ </target>
+</project>
diff --git a/dev-java/dynalang/metadata.xml b/dev-java/dynalang/metadata.xml new file mode 100644 index 000000000000..47aef07ebea6 --- /dev/null +++ b/dev-java/dynalang/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">dynalang</remote-id> + </upstream> +</pkgmetadata> |