diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-java/jline |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-java/jline')
-rw-r--r-- | dev-java/jline/Manifest | 9 | ||||
-rw-r--r-- | dev-java/jline/files/maven-build.properties | 13 | ||||
-rw-r--r-- | dev-java/jline/files/maven-build.xml | 199 | ||||
-rw-r--r-- | dev-java/jline/jline-1.0.ebuild | 57 | ||||
-rw-r--r-- | dev-java/jline/jline-2.12.1-r1.ebuild | 65 | ||||
-rw-r--r-- | dev-java/jline/metadata.xml | 12 |
6 files changed, 355 insertions, 0 deletions
diff --git a/dev-java/jline/Manifest b/dev-java/jline/Manifest new file mode 100644 index 000000000000..9904800b6f3f --- /dev/null +++ b/dev-java/jline/Manifest @@ -0,0 +1,9 @@ +AUX maven-build.properties 501 SHA256 ed14880aca9146984f0b988b66e83c1d77e3367003371570855a9ac5d688dac3 SHA512 2e3347c2b53266c7d41cd9f73e79bdfecd28e41e78208b360533414ed551f101d04e4a76d416f061e56bbce43baf96c4c52fdba65ded3c0be18533c2c226ef6f WHIRLPOOL 29ee5d331c7bdf52f0d6f066aa936ff8dcf4b54479aae46d9f30f77e35443646c82588229a12f30fa858d901103913790a5b97227d1078b9874f246e516e9294 +AUX maven-build.xml 8634 SHA256 92c9be86eb0fcff6c3e44cb352f81e615627a96a7f25250ee53c5b9b34f84c0d SHA512 45648b88f3df01e0623483c6c409ce1fb57b6b73e62775064b4bc7762d1dc3a3ead3a4925efe987986081ed34c26195827f3f34a1b631fdf4e7ce227376c2936 WHIRLPOOL 4631c8b7d4475fc67be975669943cf208ad0610f891874eed31678c05ad9139e06a7c62127a981f89c4a69c9fd7ec6393c0dffceadb521a4861a2defaa38dd59 +DIST jline-1.0.zip 463082 SHA256 761458d1541a44e678b3847917116a90001cf5cd22287c24c55dcf2c69ec73ca SHA512 2957e19a3536d89aeaf8f27afb1f8eb4eb8bcc99560244c7f1ba14693a84a2f5e677a6c21d5f85ec519674cc4cd6cb3c9e4725cb4797144168d2f6df3954aba9 WHIRLPOOL d80416660992a9fd6d13f350d7620556f46f48fe9071e939de555bbee35d3e68f6c6eee64ae18e03d826e8928987f4e2193bcf8fee1cb027a1a9791ca89c0cce +DIST jline-2.12.1.tar.gz 97289 SHA256 41c03847f862c7eceb3c5b1cef9bc89f62db43c53f3328e46a6257bebcc7d68d SHA512 368492fa0b28e6aa3827db05d266b332935d9a03c2f6645d039941c61a698e85fd57accfac444503de4cb2f2dae5787496924b8d258faad1c18b6cafe787f99d WHIRLPOOL fdbebc7e16fadced5c0744be0175d47b3a0f12379c588f994d5870f685f421adeeb842192e0c14f855bf0a094ace4d11cb541397b19453324a1e6b031a3f5166 +EBUILD jline-1.0.ebuild 1644 SHA256 2358c9e955ad675a40a0dca177cae9f39d1e50f006d01570a45238880082f23c SHA512 195e08810e2e05ab6c3b2009ae407d3040505dfb12c303164e22110a9695e471d030e513c7cdfeb7bdcf0374e3f2fed3c1330138db0d119ac667e5a25e7ce26b WHIRLPOOL 9fdffa099924830f111060304da194b31381a22370a1da67dd40f761cad8194296981c514dbacb098e9edc880eda3af253e33ec85252343696c76a9d92bb042a +EBUILD jline-2.12.1-r1.ebuild 1261 SHA256 3e71db91f9b6705ab5d72e7e4292aaa1eb7495ce4627baee9dc72cd340554b51 SHA512 5ad7918d7a0daf969d45fdc2c3b3e8355628d331e229e989a0818943a940cd77900a305f5f7c46d2b95333ad2e8fc6b14061128aa5603bfa92352696bbba035a WHIRLPOOL f4d68d46d359743a0a1f2ee9109e4c58f59967b6b81c63fdac7293386397d4716bcb1ca6cd74b0d481e27ce6f5b33f7d5a3e90e7a535cf0a9b2132faba14b439 +MISC ChangeLog 4102 SHA256 9e68bbfd34d5af634d7af0c460ec8847b7c8e546ca78a872b0051ddde8c0c67d SHA512 65815b935e4b670787cac8647fed64ce19d24b87bd9feacdf03d7e5ae321ce37606b8a44b4aed82e2009f03badca709d366cb51bc5db9c010ed9b8cb000c6f50 WHIRLPOOL 27daf1f70b8638260867388f7df5890365feb3dcfb58f780d569eef2a7d70f89f8a37ec4cbf1240fdeea2b09e0970ada4755b8aaee154809751b69d5b7092ffa +MISC ChangeLog-2015 4601 SHA256 a07d790663e275a7dd9ad20e43238d5d4464914dc40ac97ce74d9a2b3bf3cef9 SHA512 46b8da0bfa2fb9dfd6801650ca2e7e27a580d2922ce6f6f672b5e2de1f706e6e5288ea5b4eaa0e71dd9d9ac285e7cc89c43caeb52b04bcef6b331537457b2b27 WHIRLPOOL 69d69c9d38a8931fbe91ef3936e6363e5f3a94c80a23437392cc8f8179945baaa8ea9c2d6efed66395fda9ec32cfe7a9d644d71eae3786cf3c6cb64cb8c6a0a4 +MISC metadata.xml 375 SHA256 efff1585858cf5fbab12fd0c29f6107eab4da9dbe48a00fcdeff37ddce4c6050 SHA512 17a44da075005f0417e99ae638ba547800d799b98375f73c4bf7fc418b12e33e916952812850b63c623234bce98ebfd6eb525f7015e67cdaee16c38ad5f4b684 WHIRLPOOL cb84612b64d00efa67bfcaa86acb03c51240ede84a41f144ad119385365ddb011dcb76fa0cedaaeae021326c4d1db43cf01b6c5e0d5c5a4e2139c46e2ff243d8 diff --git a/dev-java/jline/files/maven-build.properties b/dev-java/jline/files/maven-build.properties new file mode 100644 index 000000000000..66ef7cf2840e --- /dev/null +++ b/dev-java/jline/files/maven-build.properties @@ -0,0 +1,13 @@ +#Generated by Maven Ant Plugin - DO NOT EDIT THIS FILE! +#Sun Jan 21 15:31:06 EET 2007 +maven.build.finalName=jline-0.9.9 +maven.build.outputDir=${maven.build.dir}/classes +maven.build.resourceDir.0=src/main/resources +maven.build.testResourceDir.0=src/test/resources +maven.build.testOutputDir=${maven.build.dir}/test-classes +maven.repo.local=lib +maven.settings.offline=false +maven.build.dir=target +maven.settings.interactiveMode=true +maven.build.srcDir.0=src/main/java +maven.build.testDir.0=src/test/java diff --git a/dev-java/jline/files/maven-build.xml b/dev-java/jline/files/maven-build.xml new file mode 100644 index 000000000000..7be70998ddcc --- /dev/null +++ b/dev-java/jline/files/maven-build.xml @@ -0,0 +1,199 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!-- ====================================================================== --> +<!-- Ant build file (http://ant.apache.org/) for Ant 1.6.2 or above. --> +<!-- ====================================================================== --> + +<!-- ====================================================================== --> +<!-- ===================== - DO NOT EDIT THIS FILE! - ===================== --> +<!-- ====================================================================== --> +<!-- --> +<!-- Any modifications will be overwritten. --> +<!-- --> +<!-- Generated by Maven Ant Plugin on 1/21/07 3:31 PM --> +<!-- See: http://maven.apache.org/plugins/maven-ant-plugin/ --> +<!-- --> +<!-- ====================================================================== --> + +<project name="jline-from-maven" default="dist" basedir="."> + + <!-- ====================================================================== --> + <!-- Build environnement properties --> + <!-- ====================================================================== --> + + <property file="maven-build.properties"/> + + <property name="maven.build.finalName" value="jline-0.9.9"/> + <property name="maven.build.dir" value="target"/> + <property name="maven.build.outputDir" value="${maven.build.dir}/classes"/> + <property name="maven.build.srcDir.0" value="src/main/java"/> + <property name="maven.build.resourceDir.0" value="src/main/resources"/> + <property name="maven.build.testOutputDir" value="${maven.build.dir}/test-classes"/> + <property name="maven.build.testDir.0" value="src/test/java"/> + <property name="maven.build.testResourceDir.0" value="src/main/resources"/> + <property name="maven.test.reports" value="${maven.build.dir}/test-reports"/> + + <property name="maven.settings.offline" value="true"/> + <property name="maven.settings.interactiveMode" value="true"/> + + <!-- ====================================================================== --> + <!-- Defining classpaths --> + <!-- ====================================================================== --> + + <path id="build.classpath"> + <fileset dir="${maven.repo.local}"> + <include name="*.jar"/> + </fileset> + </path> + <path id="build.test.classpath"> + <fileset dir="${maven.repo.local}"> + <include name="*.jar"/> + </fileset> + </path> + + <!-- ====================================================================== --> + <!-- Cleaning up target --> + <!-- ====================================================================== --> + + <target name="clean" description="Clean the output directory"> + <delete dir="${maven.build.dir}"/> + </target> + + <!-- ====================================================================== --> + <!-- Compilation target --> + <!-- ====================================================================== --> + + <target name="compile" depends="get-deps" description="Compile the code"> + <mkdir dir="${maven.build.outputDir}"/> + <javac destdir="${maven.build.outputDir}" + nowarn="false" + debug="true" + optimize="false" + deprecation="true" + target="1.3" + verbose="false" + fork="false" + source="1.3"> + <src> + <pathelement location="${maven.build.srcDir.0}"/> + </src> + <classpath refid="build.classpath"/> + </javac> + <copy todir="${maven.build.outputDir}"> + <fileset dir="${maven.build.resourceDir.0}"/> + </copy> + </target> + + <!-- ====================================================================== --> + <!-- Test-compilation target --> + <!-- ====================================================================== --> + + <target name="compile-tests" + depends="junit-present, compile" + description="Compile the test code" + if="junit.present"> + <mkdir dir="${maven.build.testOutputDir}"/> + <javac destdir="${maven.build.testOutputDir}" + nowarn="false" + debug="true" + optimize="false" + deprecation="true" + target="1.3" + verbose="false" + fork="false" + source="1.3"> + <src> + <pathelement location="${maven.build.testDir.0}"/> + </src> + <classpath> + <path refid="build.test.classpath"/> + <pathelement location="${maven.build.outputDir}"/> + </classpath> + </javac> + <copy todir="${maven.build.testOutputDir}"> + <fileset dir="${maven.build.testResourceDir.0}"/> + </copy> + </target> + + <!-- ====================================================================== --> + <!-- Run all tests --> + <!-- ====================================================================== --> + + <target name="test" + depends="junit-present, compile-tests" + if="junit.present" + description="Run the test cases"> + <mkdir dir="${maven.test.reports}"/> + <junit printSummary="yes" haltonerror="true" haltonfailure="true" fork="true" dir="."> + <sysproperty key="basedir" value="."/> + <formatter type="xml"/> + <formatter type="plain" usefile="false"/> + <classpath> + <path refid="build.test.classpath"/> + <pathelement location="${maven.build.outputDir}"/> + <pathelement location="${maven.build.testOutputDir}"/> + </classpath> + <batchtest todir="${maven.test.reports}"> + <fileset dir="${maven.build.testDir.0}"> + <include name="**/Test*.java"/> + </fileset> + </batchtest> + </junit> + </target> + + <target name="test-junit-present"> + <available classname="junit.framework.Test" property="junit.present"/> + </target> + + <target name="junit-present" + depends="test-junit-present" + unless="junit.present"> + <echo>=================================== WARNING ===================================</echo> + <echo> Junit isn't present in your $ANT_HOME/lib directory. Tests not executed. </echo> + <echo>===============================================================================</echo> + </target> + + <!-- ====================================================================== --> + <!-- Package target --> + <!-- ====================================================================== --> + + <target name="package" depends="compile" description="Package the application"> + <jar jarfile="${maven.build.dir}/${maven.build.finalName}.jar" + compress="true" + index="false" + basedir="${maven.build.outputDir}" + excludes="**/package.html"/> + </target> + + <!-- ====================================================================== --> + <!-- Dist target --> + <!-- ====================================================================== --> + + <target name="dist" depends="package,test" description="Package the application and run tests"/> + + <!-- ====================================================================== --> + <!-- Download dependencies target --> + <!-- ====================================================================== --> + + <target name="test-offline"> + <condition property="maven.mode.offline"> + <equals arg1="${maven.settings.offline}" arg2="true"/> + </condition> + </target> + + <target name="get-deps" + depends="test-offline" + description="Download all dependencies" + unless="maven.mode.offline"> + <mkdir dir="${maven.repo.local}"/> + <mkdir dir="${maven.repo.local}/junit/junit/3.8.1"/> + <get src="http://jline.sourceforge.net/m2repo/junit/junit/3.8.1/junit-3.8.1.jar" + dest="${maven.repo.local}/junit/junit/3.8.1/junit-3.8.1.jar" + usetimestamp="true" + ignoreerrors="true"/> + <get src="http://repo1.maven.org/maven2/junit/junit/3.8.1/junit-3.8.1.jar" + dest="${maven.repo.local}/junit/junit/3.8.1/junit-3.8.1.jar" + usetimestamp="true" + ignoreerrors="true"/> + </target> +</project> diff --git a/dev-java/jline/jline-1.0.ebuild b/dev-java/jline/jline-1.0.ebuild new file mode 100644 index 000000000000..5d846154e3f4 --- /dev/null +++ b/dev-java/jline/jline-1.0.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=2 +JAVA_PKG_IUSE="source test" +inherit java-pkg-2 java-ant-2 + +DESCRIPTION="A Java library for handling console input" +HOMEPAGE="http://jline.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.zip" +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" +IUSE="" + +DEPEND=">=virtual/jdk-1.4 + app-arch/unzip + test? ( dev-java/ant-junit )" +RDEPEND=">=virtual/jre-1.4" + +S="${WORKDIR}/${P}/src" + +java_prepare() { + rm -fv "${WORKDIR}"/${P}/*.jar || die + + # we don't support maven for building yet. this build.xml was generated by: + # - mvn ant:ant + # - tweak build.xml to not load properties from home dir + # - tweak the test target to match the test cases + # - change maven.repo.local from ~/.maven to "lib" in .properties + # - change classpath definitions to "*.jar" + cp "${FILESDIR}/maven-build.xml" build.xml || die + cp "${FILESDIR}/maven-build.properties" . || die + java-ant_ignore-system-classes + + mkdir lib && cd lib || die + use test && java-pkg_jar-from --build-only junit +} + +src_compile() { + # precompiled javadocs (needs maven to generate) + # -Dmaven.build.finalName is needed to override the one defined in the + # build.xml, which because it was generated with 0.9.9, defaults to + # jline-0.9.9 -nichoj + eant package -Dmaven.build.finalName=${P} +} + +src_test() { + ANT_TASKS="ant-junit" eant test -Djunit.present=true +} + +src_install() { + java-pkg_newjar target/${P}.jar + #no api docs in this release + #use doc && java-pkg_dojavadoc ../apidocs + use source && java-pkg_dosrc src/main/java +} diff --git a/dev-java/jline/jline-2.12.1-r1.ebuild b/dev-java/jline/jline-2.12.1-r1.ebuild new file mode 100644 index 000000000000..d1355aaf283f --- /dev/null +++ b/dev-java/jline/jline-2.12.1-r1.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +JAVA_PKG_IUSE="doc source" + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="A Java library for handling console input" +HOMEPAGE="https://github.com/jline/jline2" +SRC_URI="https://github.com/jline/${PN}/archive/${P}.tar.gz" + +LICENSE="BSD" +SLOT="2" +KEYWORDS="amd64 ~arm64 x86" +IUSE="test" + +CDEPEND=" + dev-java/jansi:0 + dev-java/jansi-native:0" + +DEPEND=" + test? ( + dev-java/junit:4 + ) + ${CDEPEND} + >=virtual/jdk-1.6" + +RDEPEND=" + ${CDEPEND} + >=virtual/jre-1.6" + +S="${WORKDIR}/${PN}2-${P}" + +JAVA_SRC_DIR="src/main/java" + +JAVA_GENTOO_CLASSPATH="jansi,jansi-native" + +java_prepare() { + # Easier to use java-pkg-simple. + rm -v pom.xml || die + + # Don't forget the resources! + mkdir -p target/classes || die + cp -r src/main/resources/* target/classes || die +} + +src_install() { + java-pkg-simple_src_install + + dodoc {CHANGELOG,README}.md +} + +src_test() { + cd src/test/java || die + + local CP=".:../resources:${S}/${PN}.jar:$(java-pkg_getjars junit-4,${JAVA_GENTOO_CLASSPATH})" + local TESTS=$(find * -name "*Test.java") + TESTS="${TESTS//.java}" + TESTS="${TESTS//\//.}" + + ejavac -cp "${CP}" -d . $(find * -name "*.java") + ejunit4 -classpath "${CP}" ${TESTS} +} diff --git a/dev-java/jline/metadata.xml b/dev-java/jline/metadata.xml new file mode 100644 index 000000000000..cb172808c6ff --- /dev/null +++ b/dev-java/jline/metadata.xml @@ -0,0 +1,12 @@ +<?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">jline/jline2</remote-id> + <remote-id type="sourceforge">jline</remote-id> + </upstream> +</pkgmetadata> |