diff options
Diffstat (limited to 'dev-java')
| -rw-r--r-- | dev-java/commons-beanutils/commons-beanutils-1.9.4.ebuild | 69 | ||||
| -rw-r--r-- | dev-java/icu4j/Manifest | 1 | ||||
| -rw-r--r-- | dev-java/icu4j/icu4j-54.1.1-r1.ebuild | 50 | ||||
| -rw-r--r-- | dev-java/jnr-constants/Manifest | 1 | ||||
| -rw-r--r-- | dev-java/jnr-constants/files/jnr-constants_maven-build.xml | 259 | ||||
| -rw-r--r-- | dev-java/jnr-constants/jnr-constants-0.8.6.ebuild | 49 | ||||
| -rw-r--r-- | dev-java/jnr-posix/jnr-posix-3.0.10.ebuild | 53 | ||||
| -rw-r--r-- | dev-java/jython/jython-2.7.0-r2.ebuild | 151 | ||||
| -rw-r--r-- | dev-java/jython/jython-2.7.0-r4.ebuild | 2 |
9 files changed, 1 insertions, 634 deletions
diff --git a/dev-java/commons-beanutils/commons-beanutils-1.9.4.ebuild b/dev-java/commons-beanutils/commons-beanutils-1.9.4.ebuild deleted file mode 100644 index a36a6aea1cef..000000000000 --- a/dev-java/commons-beanutils/commons-beanutils-1.9.4.ebuild +++ /dev/null @@ -1,69 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -# Skeleton command: -# java-ebuilder --generate-ebuild --workdir . --pom pom.xml --download-uri mirror://apache/commons/beanutils/source/1.9.4-src.tar.gz --slot 1.7 --keywords "~amd64 ~x86 ~ppc64 ~amd64-linux ~x86-linux ~x64-macos" --ebuild commons-beanutils-1.9.4.ebuild - -EAPI=7 - -JAVA_PKG_IUSE="doc source test" -MAVEN_ID="commons-beanutils:commons-beanutils:1.9.4" -JAVA_TESTING_FRAMEWORKS="junit-4" - -inherit java-pkg-2 java-pkg-simple - -DESCRIPTION="Provides easy-to-use wrappers around Reflection and Introspection APIs" -HOMEPAGE="https://commons.apache.org/proper/commons-beanutils/" -SRC_URI="mirror://apache/commons/beanutils/source/${P}-src.tar.gz" - -LICENSE="Apache-2.0" -SLOT="1.7" -KEYWORDS="~amd64 ~ppc64 ~x86 ~amd64-linux ~x86-linux ~x64-macos" - -# Common dependencies -# POM: pom.xml -# commons-collections:commons-collections:3.2.2 -> >=dev-java/commons-collections-3.2.2:0 -# commons-logging:commons-logging:1.2 -> >=dev-java/commons-logging-1.2:0 - -CDEPEND=" - dev-java/commons-collections:0 - dev-java/commons-logging:0 -" - -# Compile dependencies -# POM: pom.xml -# test? commons-collections:commons-collections-testframework:3.2.1 -> !!!artifactId-not-found!!! -# test? junit:junit:4.12 -> >=dev-java/junit-4.12:4 - -DEPEND=" - >=virtual/jdk-1.8:* - ${CDEPEND} - test? ( - dev-java/commons-collections:0[test] - ) -" - -RDEPEND=" - >=virtual/jre-1.8:* - ${CDEPEND} -" - -S="${WORKDIR}/${P}-src" - -JAVA_ENCODING="iso-8859-1" - -JAVA_GENTOO_CLASSPATH="commons-collections,commons-logging" -JAVA_SRC_DIR="src/main/java" -# JAVA_RESOURCE_DIRS="src/main/resources" - -JAVA_TEST_GENTOO_CLASSPATH="commons-collections,junit-4" -JAVA_TEST_SRC_DIR="src/test/java" -# JAVA_TEST_RESOURCE_DIRS="src/test/resources" - -JAVA_TEST_EXCLUDES=( - "org.apache.commons.beanutils.TestBeanPublicSubclass" # Invalid test class - "org.apache.commons.beanutils.TestBeanPackageSubclass" # Invalid test class - "org.apache.commons.beanutils.TestResultSetMetaData" # Invalid test class - "org.apache.commons.beanutils.TestResultSet" # Test class can only have one constructor - "org.apache.commons.beanutils.TestBean" # Test class can only have one constructor -) diff --git a/dev-java/icu4j/Manifest b/dev-java/icu4j/Manifest index 4a96af84eb3d..406331bdf46f 100644 --- a/dev-java/icu4j/Manifest +++ b/dev-java/icu4j/Manifest @@ -1,2 +1 @@ -DIST icu4j-54_1_1.tgz 23457651 BLAKE2B f200d170c32065d2f678247d595085283446e401da2c2433b426466fc5c6f93f5ce629bce23d1114cad7d360aa4d127060750d380da8cc3e7fa1e529b454bae9 SHA512 c41f7f9fb0819767da48ac21c4883a628da8397e0ad5b0d75e51d9185b5511608c9a635933c4ae2e0c8911b2cdecf47bc661050935bbae2ba58abfb5ad04dadf DIST icu4j-70.1.tar.gz 65661187 BLAKE2B 9d2d38fa91092d8f2fa39c773b722019f1d0c9b06ba6e8abaf05c3d3b50977232d6f1a37fd5ab6be6461d133dd361dae9b8633e22c9f165ef4e6e4b8029f6b8a SHA512 f1a653452f42605f799de7ec1d5bf27aa4b715f2ec18534cd3b52bd9be7ddbe7a6d18b47e3a5b36c7a63442bc38304ddc80f519ac65b9a91978ab15b462d9456 diff --git a/dev-java/icu4j/icu4j-54.1.1-r1.ebuild b/dev-java/icu4j/icu4j-54.1.1-r1.ebuild deleted file mode 100644 index 640cdc0756f7..000000000000 --- a/dev-java/icu4j/icu4j-54.1.1-r1.ebuild +++ /dev/null @@ -1,50 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -# testdata.jar, icudata.jar and icutzdata.jar do not contain *.class files -# but *.res files. These *.res data files are needed to build the final jar. - -JAVA_PKG_IUSE="doc examples source test" - -inherit java-pkg-2 java-ant-2 - -DESCRIPTION="A set of Java libraries providing Unicode and Globalization support" -HOMEPAGE="http://www.icu-project.org/" -SRC_URI="http://download.icu-project.org/files/${PN}/${PV}/${PN}-${PV//./_}.tgz" - -LICENSE="icu" -SLOT="52" -KEYWORDS="amd64 ~arm64 ~ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~x86-solaris" -IUSE="" - -# the build system does not support java > 1.8 -# also the package does not compile with newer jdks because of missing classes -DEPEND="virtual/jdk:1.8" -RDEPEND=">=virtual/jre-1.8:*" - -S="${WORKDIR}" - -HTML_DOCS="readme.html" - -JAVA_PKG_BSFIX_NAME+=" common-targets.xml" - -EANT_DOC_TARGET="docs" -EANT_TEST_TARGET="check" - -src_test() { - java-pkg-2_src_test -} - -src_install() { - java-pkg_dojar ${PN}.jar - java-pkg_dojar ${PN}-charset.jar - java-pkg_dojar ${PN}-localespi.jar - - einstalldocs - - use doc && java-pkg_dojavadoc doc - use examples && java-pkg_doexamples demos samples - use source && java-pkg_dosrc main/classes/*/src/com -} diff --git a/dev-java/jnr-constants/Manifest b/dev-java/jnr-constants/Manifest index b94cc78461b3..f9acdf1a6917 100644 --- a/dev-java/jnr-constants/Manifest +++ b/dev-java/jnr-constants/Manifest @@ -1,2 +1 @@ DIST jnr-constants-0.10.3-sources.tar.gz 261921 BLAKE2B f8137455c067e774dd30d64fe457dd859692315f43415bdfbffa4870b981db26de23d73fa7682bbd924523ac17dec56caa7078580cf817d8df3eae4d87c61343 SHA512 f7cd6a3778670c9835f8dce87c8470c8b8cfeda6f30d68051c09dae40c4f7dd7db88bed016450c33ab5c8da9a802b4bd050adf358680d5ec6735467e398404dc -DIST jnr-constants-0.8.6.tar.gz 71080 BLAKE2B db86f3c0347b85dd56de72465c4198e74faa877b8a1373ab378728945edaf0c45748ed707e6b591224858f498ae7d43269d8127cb61b7ac2893ef9817e36ca1c SHA512 2098f8e1869b9c018ba3afa70ef386fce2609d9c650ee851dcd7cf7dc9d4d87dbe26886eb2e744d96cc11425f6b66144a018826360b7bab48a4b99e323f3717a diff --git a/dev-java/jnr-constants/files/jnr-constants_maven-build.xml b/dev-java/jnr-constants/files/jnr-constants_maven-build.xml deleted file mode 100644 index 75f8458ee2c2..000000000000 --- a/dev-java/jnr-constants/files/jnr-constants_maven-build.xml +++ /dev/null @@ -1,259 +0,0 @@ -<?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/11/12 12:52 PM --> -<!-- See: http://maven.apache.org/plugins/maven-ant-plugin/ --> -<!-- --> -<!-- ====================================================================== --> - -<project name="jnr-constants-from-maven" default="package" basedir="."> - - <!-- ====================================================================== --> - <!-- Build environment properties --> - <!-- ====================================================================== --> - - <property file="${user.home}/.m2/maven.properties"/> - <property file="maven-build.properties"/> - - <property name="maven.build.finalName" value="jnr-constants-0.8.2"/> - <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/test/resources"/> - <property name="maven.test.reports" value="${maven.build.dir}/test-reports"/> - <property name="maven.reporting.outputDirectory" value="${maven.build.dir}/site"/> - - <property name="maven.repo.local" value="${user.home}/.m2/repository"/> - <property name="maven.settings.offline" value="false"/> - <property name="maven.settings.interactiveMode" value="true"/> - - <!-- ====================================================================== --> - <!-- Defining classpaths --> - <!-- ====================================================================== --> - - <path id="build.classpath"/> - <path id="build.test.classpath"> - <pathelement location="${maven.repo.local}/junit/junit/4.8.2/junit-4.8.2.jar"/> - </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.1" - verbose="false" - fork="false" - source="1.3"> - <src> - <pathelement location="${maven.build.srcDir.0}"/> - </src> - <classpath refid="build.classpath"/> - </javac> - </target> - - <!-- ====================================================================== --> - <!-- Test-compilation target --> - <!-- ====================================================================== --> - - <target name="compile-tests" - depends="compile" - description="Compile the test code" - unless="maven.test.skip"> - <mkdir dir="${maven.build.testOutputDir}"/> - <javac destdir="${maven.build.testOutputDir}" - nowarn="false" - debug="true" - optimize="false" - deprecation="true" - target="1.1" - 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> - </target> - - <!-- ====================================================================== --> - <!-- Run all tests --> - <!-- ====================================================================== --> - - <target name="test" - depends="compile-tests, junit-missing" - unless="junit.skipped" - 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}" unless="test"> - <fileset dir="${maven.build.testDir.0}"> - <include name="**/Test*.java"/> - <include name="**/*Test.java"/> - <include name="**/*TestCase.java"/> - <exclude name="**/*Abstract*Test.java"/> - </fileset> - </batchtest> - <batchtest todir="${maven.test.reports}" if="test"> - <fileset dir="${maven.build.testDir.0}"> - <include name="**/${test}.java"/> - <exclude name="**/*Abstract*Test.java"/> - </fileset> - </batchtest> - </junit> - </target> - - <target name="test-junit-present"> - <available classname="junit.framework.Test" property="junit.present"/> - </target> - - <target name="test-junit-status" - depends="test-junit-present"> - <condition property="junit.missing"> - <and> - <isfalse value="${junit.present}"/> - <isfalse value="${maven.test.skip}"/> - </and> - </condition> - <condition property="junit.skipped"> - <or> - <isfalse value="${junit.present}"/> - <istrue value="${maven.test.skip}"/> - </or> - </condition> - </target> - - <target name="junit-missing" - depends="test-junit-status" - if="junit.missing"> - <echo>=================================== WARNING ===================================</echo> - <echo> JUnit is not present in your $ANT_HOME/lib directory. Tests not executed.</echo> - <echo>===============================================================================</echo> - </target> - - <!-- ====================================================================== --> - <!-- Javadoc target --> - <!-- ====================================================================== --> - - <target name="javadoc" description="Generates the Javadoc of the application"> - <javadoc sourcepath="${maven.build.srcDir.0}" - packagenames="*" - destdir="${maven.reporting.outputDirectory}/apidocs" - access="protected" - old="false" - verbose="false" - version="true" - use="true" - author="true" - splitindex="false" - nodeprecated="false" - nodeprecatedlist="false" - notree="false" - noindex="false" - nohelp="false" - nonavbar="false" - serialwarn="false" - charset="ISO-8859-1" - linksource="false" - breakiterator="false"/> - </target> - - <!-- ====================================================================== --> - <!-- Package target --> - <!-- ====================================================================== --> - - <target name="package" depends="compile,test" 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> - - <!-- ====================================================================== --> - <!-- A dummy target for the package named after the type it creates --> - <!-- ====================================================================== --> - - <target name="jar" depends="package" description="Builds the jar for the application"/> - - <!-- ====================================================================== --> - <!-- 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/4.8.2"/> - <get src="http://repository.jboss.com/maven2/junit/junit/4.8.2/junit-4.8.2.jar" - dest="${maven.repo.local}/junit/junit/4.8.2/junit-4.8.2.jar" - usetimestamp="false" - ignoreerrors="true"/> - <get src="http://snapshots.jboss.org/maven2/junit/junit/4.8.2/junit-4.8.2.jar" - dest="${maven.repo.local}/junit/junit/4.8.2/junit-4.8.2.jar" - usetimestamp="false" - ignoreerrors="true"/> - <get src="http://repository.jboss.org/maven2//junit/junit/4.8.2/junit-4.8.2.jar" - dest="${maven.repo.local}/junit/junit/4.8.2/junit-4.8.2.jar" - usetimestamp="false" - ignoreerrors="true"/> - <get src="https://repository.jboss.org/nexus/content/groups/public-jboss//junit/junit/4.8.2/junit-4.8.2.jar" - dest="${maven.repo.local}/junit/junit/4.8.2/junit-4.8.2.jar" - usetimestamp="false" - ignoreerrors="true"/> - <get src="https://oss.sonatype.org/content/repositories/snapshots/junit/junit/4.8.2/junit-4.8.2.jar" - dest="${maven.repo.local}/junit/junit/4.8.2/junit-4.8.2.jar" - usetimestamp="false" - ignoreerrors="true"/> - <get src="http://repo1.maven.org/maven2/junit/junit/4.8.2/junit-4.8.2.jar" - dest="${maven.repo.local}/junit/junit/4.8.2/junit-4.8.2.jar" - usetimestamp="false" - ignoreerrors="true"/> - </target> - -</project> diff --git a/dev-java/jnr-constants/jnr-constants-0.8.6.ebuild b/dev-java/jnr-constants/jnr-constants-0.8.6.ebuild deleted file mode 100644 index 3f8c33be960e..000000000000 --- a/dev-java/jnr-constants/jnr-constants-0.8.6.ebuild +++ /dev/null @@ -1,49 +0,0 @@ -# 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 set of platform constants (e.g. errno values)" -HOMEPAGE="https://github.com/jnr/jnr-constants" -# SRC_URI="https://github.com/jnr/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" -SRC_URI="https://github.com/jnr/${PN}/archive/${P}.tar.gz" - -LICENSE="|| ( Apache-2.0 LGPL-3 )" -SLOT="0" -KEYWORDS="amd64 ~arm64 x86" - -RDEPEND=" - >=virtual/jre-1.6" - -DEPEND=" - >=virtual/jdk-1.6 - test? ( - dev-java/ant-junit:0 - >=dev-java/junit-4.8:4 - )" - -S="${WORKDIR}/${PN}-${P}" - -java_prepare() { - cp "${FILESDIR}"/${PN}_maven-build.xml build.xml || die -} - -JAVA_ANT_ENCODING="UTF-8" -JAVA_ANT_REWRITE_CLASSPATH="yes" -EANT_EXTRA_ARGS="-Dmaven.build.finalName=${PN}" -EANT_TEST_GENTOO_CLASSPATH="junit-4" - -src_test() { - java-pkg-2_src_test -} - -src_install() { - java-pkg_dojar target/${PN}.jar - - use doc && java-pkg_dojavadoc target/site/apidocs - use source && java-pkg_dosrc src/main/java/* -} diff --git a/dev-java/jnr-posix/jnr-posix-3.0.10.ebuild b/dev-java/jnr-posix/jnr-posix-3.0.10.ebuild deleted file mode 100644 index 908bb554f1a5..000000000000 --- a/dev-java/jnr-posix/jnr-posix-3.0.10.ebuild +++ /dev/null @@ -1,53 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# 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="Lightweight cross-platform POSIX emulation layer for Java" -HOMEPAGE="https://github.com/jnr/jnr-posix" -SRC_URI="https://github.com/jnr/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="|| ( CPL-1.0 GPL-2 LGPL-2.1 )" -SLOT="3.0" -KEYWORDS="amd64 ~arm64 ~ppc64 x86 ~amd64-linux ~x86-linux ~x86-solaris" - -CDEPEND="dev-java/jnr-constants:0 - dev-java/jnr-ffi:2" - -RDEPEND="${CDEPEND} - >=virtual/jre-1.6" - -DEPEND="${CDEPEND} - >=virtual/jdk-1.6 - test? ( - dev-java/ant-junit - dev-java/junit:4 - )" - -java_prepare() { - cp "${FILESDIR}"/${PN}_maven-build.xml build.xml || die -} - -JAVA_ANT_REWRITE_CLASSPATH="yes" -JAVA_ANT_CLASSPATH_TAGS="${JAVA_ANT_CLASSPATH_TAGS} javadoc" -JAVA_ANT_ENCODING="UTF-8" - -EANT_EXTRA_ARGS="-Dmaven.build.finalName=${PN}" -EANT_GENTOO_CLASSPATH="jnr-constants,jnr-ffi-2" -EANT_TEST_GENTOO_CLASSPATH="${EANT_GENTOO_CLASSPATH},junit-4" - -src_test() { - java-pkg-2_src_test -} - -src_install() { - java-pkg_dojar target/${PN}.jar - dodoc README.txt - - use doc && java-pkg_dojavadoc target/site/apidocs - use source && java-pkg_dosrc src/main/java/* -} diff --git a/dev-java/jython/jython-2.7.0-r2.ebuild b/dev-java/jython/jython-2.7.0-r2.ebuild deleted file mode 100644 index f4ecf1593584..000000000000 --- a/dev-java/jython/jython-2.7.0-r2.ebuild +++ /dev/null @@ -1,151 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 -JAVA_PKG_IUSE="doc source" - -inherit eutils java-pkg-2 java-ant-2 python-utils-r1 flag-o-matic - -MY_PV=${PV/_beta/-b} -MY_P=${PN}-${MY_PV} - -DESCRIPTION="An implementation of Python written in Java" -HOMEPAGE="https://www.jython.org" -SRC_URI="https://search.maven.org/remotecontent?filepath=org/python/${PN}/${MY_PV}/${MY_P}-sources.jar" - -LICENSE="PSF-2" -SLOT="2.7" -KEYWORDS="amd64 ~arm64 ~ppc64 x86 ~amd64-linux ~x86-linux" -IUSE="examples test" - -CP_DEPEND="dev-java/antlr:3 - dev-java/netty-transport:0 - >=dev-java/asm-5:4 - dev-java/commons-compress:0 - dev-java/guava:20 - dev-java/jffi:1.2 - dev-java/jline:2 - dev-java/icu4j:52 - dev-java/jnr-constants:0 - dev-java/jnr-posix:3.0 - dev-java/jnr-netdb:1.0 - dev-java/stringtemplate:0 - dev-java/xerces:2 - java-virtuals/script-api:0 - java-virtuals/servlet-api:3.0" -RDEPEND="${CP_DEPEND} - >=virtual/jre-1.7" -DEPEND="${CP_DEPEND} - >=virtual/jdk-1.7 - app-arch/unzip - dev-java/ant-core:0 - test? ( - dev-java/junit:4 - dev-java/ant-junit:0 - )" - -S=${WORKDIR} - -RESTRICT="test" - -JAVA_ANT_REWRITE_CLASSPATH="yes" -JAVA_ANT_CLASSPATH_TAGS+=" java" - -EANT_BUILD_TARGET="developer-build" -EANT_TEST_EXTRA_ARGS="-Dpython.home=dist" - -# jdbc-informix and jdbc-oracle-bin (requires registration) aren't exposed. -# Uncomment and add to CDEPEND if you want either of them -#EANT_GENTOO_CLASSPATH+=",jdbc-informix" EANT_EXTRA_ARGS+=" -Dinformix.present" -#EANT_GENTOO_CLASSPATH+=",jdbc-oracle-bin" EANT_EXTRA_ARGS+=" -Doracle.present" - -PATCHES=( - "${FILESDIR}"/${PN}-2.5.2-distutils_scripts_location.patch - "${FILESDIR}"/${PN}-2.5.2-respect_PYTHONPATH.patch - "${FILESDIR}"/${PN}-2.7_beta1-ant.patch - "${FILESDIR}"/${PN}-2.7_beta1-dont-always-recompile-classes.patch - "${FILESDIR}"/${PN}-2.7_beta2-maxrepeat-import.patch - "${FILESDIR}"/${PN}-2.7.0-build.xml.patch - "${FILESDIR}"/CVE-2016-4000.patch -) - -src_prepare() { - default - - find \( -name '*.jar' -o -name '*.class' \ - -o -name '*.pyc' -o -name '*.exe' \) -delete - - # needed for launchertest - chmod +x tests/shell/test-jython.sh || die - - java-pkg-2_src_prepare -} - -src_configure() { - # apparently this can cause problems - append-flags -fno-stack-protector - - EANT_GENTOO_CLASSPATH_EXTRA="$(java-pkg_getjars --with-dependencies antlr-3,jnr-posix-3.0)" - EANT_GENTOO_CLASSPATH_EXTRA+=":$(java-pkg_getjars --build-only ant-core)" -} - -src_test() { - java-pkg-2_src_test -} - -src_install() { - local instdir=/usr/share/${PN}-${SLOT} - - java-pkg_newjar dist/${PN}-dev.jar - - java-pkg_register-optional-dependency jdbc-mysql - java-pkg_register-optional-dependency jdbc-postgresql - - insinto ${instdir} - doins -r dist/{Lib,registry} - - dodoc ACKNOWLEDGMENTS NEWS README.txt - - use doc && java-pkg_dohtml -r dist/Doc/javadoc - use source && java-pkg_dosrc src/* - use examples && java-pkg_doexamples Demo/* - - local java_args=( - -Dpython.home="${EPREFIX}"/usr/share/${PN}-${SLOT} - -Dpython.executable="${EPREFIX}"/usr/bin/jython${SLOT} - -Dpython.cachedir="\${HOME}/.jythoncachedir" - ) - - java-pkg_dolauncher jython${SLOT} \ - --main org.python.util.jython \ - --java_args "${java_args[*]}" - - # we need a wrapper to help python_optimize - cat <<-EOF > "${T}"/jython - exec java -cp "$(java-pkg_getjars "${EANT_GENTOO_CLASSPATH}"):${EANT_GENTOO_CLASSPATH_EXTRA}:dist/${PN}-dev.jar" \ - -Dpython.home="${ED}${instdir}" \ - -Dpython.cachedir="${T}/.jythoncachedir" \ - -Duser.home="${T}" \ - org.python.util.jython "\${@}" - EOF - chmod +x "${T}"/jython || die - - local -x PYTHON="${T}"/jython - # we can't get the path from the interpreter since it does some - # magic that fails on non-installed copy... - local PYTHON_SITEDIR=${EPREFIX}/usr/share/jython-${SLOT}/Lib/site-packages - python_export jython${SLOT} EPYTHON - - # compile tests (everything else is compiled already) - # we're keeping it quiet since jython reports errors verbosely - # and some of the tests are supposed to trigger compile errors - python_optimize "${ED}${instdir}"/Lib/test &>/dev/null - - # for python-exec - echo "EPYTHON='${EPYTHON}'" > epython.py || die - python_domodule epython.py - - # some of the class files end up with newer timestamps than the files they - # were generated from, make sure this doesn't happen - find "${ED}${instdir}"/Lib/ -name '*.class' | xargs touch -} diff --git a/dev-java/jython/jython-2.7.0-r4.ebuild b/dev-java/jython/jython-2.7.0-r4.ebuild index cd2ac4294edb..06257d2dd02c 100644 --- a/dev-java/jython/jython-2.7.0-r4.ebuild +++ b/dev-java/jython/jython-2.7.0-r4.ebuild @@ -16,7 +16,7 @@ SRC_URI="https://search.maven.org/remotecontent?filepath=org/python/${PN}/${MY_P LICENSE="PSF-2" SLOT="2.7" -KEYWORDS="~amd64 arm64 ~ppc64 x86 ~amd64-linux ~x86-linux" +KEYWORDS="amd64 arm64 ~ppc64 x86 ~amd64-linux ~x86-linux" IUSE="examples test" CP_DEPEND="dev-java/antlr:3 |
