dev-java/ecj-gcj: Drop older versions

Package-Manager: Portage-2.3.19, Repoman-2.3.6
This commit is contained in:
James Le Cuirot
2017-12-24 22:32:30 +00:00
parent 89f39f875c
commit d5b0a115ce
4 changed files with 0 additions and 330 deletions

View File

@@ -1,4 +1 @@
DIST ecjsrc-3.5.2.zip 1298691 BLAKE2B 12da418b8e92c8ab6e9d670d323ec561b01fb387ea5b4cbbd851332f4a1efafb8cd560f3b30afada90fa71d0b75b1939f69608bb05c7ee329cc1b66ae296f5cb SHA512 5fb3a38358511c92c12dfebbb4beb91581de25e2a3e3b4593d0388531dea5bae469f677e5154b69d634ede7395375992ae9f043be36f6b5a0fcfa873dbc98558
DIST ecjsrc-3.6.zip 1310484 BLAKE2B 6b2155abb2e71187138b831aabb3b6716eab3c97ac9f30bf66625cb222aee7257088b494a81e95979fbaf1c5fa67575e3cd0438750e060642aa4e46fba389472 SHA512 23f5be36de85f8a95bf029e42df632aa417ffa58a84b50ab5f6c78dd1fa1882316c61165b4d0d7be2c2568226f1e1c352ea45e391759ca6c5c1fef97e8c5fada
DIST ecjsrc-4.2.1.jar 1417043 BLAKE2B dc6915ec85d96a6ecdafb04485549feeb6ef8329811e294647e9e179ff3b1ec3cea55c29ad23b306ff3489dbfe6f574dc691ee31080a592d71607d3a996e9bb4 SHA512 967b47a722893ea1f9eb17e69d386881dc87516e93c1d7a2a119d6fb2e053faa0d9d6455b6e4b89c3f23a3ec7ae33686f4acc305d7c6e51929ce7837c9c93eaf
DIST ecjsrc-4.4.2.jar 1764959 BLAKE2B 402bcbb040c28fa10dad07c4223daed9976f3246d6984ac74d95087a6cdcd5a742072126a999435eb2d49d49bb2884474461ae8439a9839617b2891297cd7c07 SHA512 53e850fc64994b104d45f58c22f1302ceb1f23bcf69300940be5689dfa6278bea14b4506746fec7b14db6f48c24ccbee16755943fffcdd7f6ad4fe5d9ddc1f20

View File

@@ -1,109 +0,0 @@
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
inherit java-pkg-2 prefix toolchain-funcs
MY_PN="ecj"
DMF="R-${PV}-201002111343"
DESCRIPTION="Subset of Eclipse Compiler for Java compiled by gcj, serving as javac in gcj-jdk"
HOMEPAGE="http://www.eclipse.org/"
SRC_URI="http://download.eclipse.org/eclipse/downloads/drops/${DMF}/${MY_PN}src-${PV}.zip"
LICENSE="EPL-1.0"
SLOT="3.5"
KEYWORDS="~amd64 ~ppc64 ~x86"
IUSE="+native"
RDEPEND="sys-devel/gcc:*[gcj]
app-eselect/eselect-java"
DEPEND="${RDEPEND}
app-arch/unzip
!dev-java/eclipse-ecj:3.5[gcj]"
S="${WORKDIR}"
# for compatibility with java eclass functions
JAVA_PKG_WANT_SOURCE=1.4
JAVA_PKG_WANT_TARGET=1.4
MY_PS="${MY_PN}-${SLOT}"
java_prepare() {
# We don't need the ant adapter here
rm -f org/eclipse/jdt/core/JDTCompilerAdapter.java || die
rm -fr org/eclipse/jdt/internal/antadapter || die
# upstream build.xml excludes this
rm -f META-INF/eclipse.inf || die
# these java6 specific classes cannot compile with ecj
rm -fr org/eclipse/jdt/internal/compiler/{apt,tool}/ || die
}
src_compile() {
local javac_opts javac java jar
local gccbin=$(gcc-config -B)
local gccver=$(gcc-fullversion)
local gcj="${gccbin}/gcj"
javac="${gcj} -C --encoding=ISO-8859-1"
jar="${gccbin}/gjar"
java="${gccbin}/gij"
mkdir -p bootstrap || die
cp -pPR org bootstrap || die
cd "${S}/bootstrap" || die
einfo "bootstrapping ${MY_PN} with ${javac} ..."
${javac} ${javac_opts} $(find org/ -name '*.java') || die
find org/ \( -name '*.class' -o -name '*.properties' -o -name '*.rsc' \) \
-exec ${jar} cf ${MY_PN}.jar {} + || die
cd "${S}" || die
einfo "building ${MY_PN} with bootstrapped ${MY_PN} ..."
${java} -classpath bootstrap/${MY_PN}.jar \
org.eclipse.jdt.internal.compiler.batch.Main \
${javac_opts} -nowarn org || die
find org/ \( -name '*.class' -o -name '*.properties' -o -name '*.rsc' \) \
-exec ${jar} cf ${MY_PN}.jar {} + || die
if use native; then
einfo "Building native ${MY_PS} library, patience needed ..."
${gcj} ${CFLAGS} ${LDFLAGS} -findirect-dispatch -shared -fPIC -Wl,-Bsymbolic \
-o ${MY_PS}.so ${MY_PN}.jar || die
fi
}
src_install() {
java-pkg_dojar ${MY_PN}.jar
sed -e "s|@SLOT@|${SLOT}|" \
"${FILESDIR}/${PN}.in" \
> "${T}"/${PN}-${SLOT} || die
eprefixify "${T}/${PN}-${SLOT}"
dobin "${T}/${PN}-${SLOT}"
use native && dolib.so ${MY_PS}.so
}
pkg_postinst() {
if use native; then
$(gcc-config -B)/gcj-dbtool -a $(gcj-dbtool -p) \
"${EPREFIX}"/usr/share/${PN}-${SLOT}/lib/ecj.jar \
"${EPREFIX}"/usr/$(get_libdir)/${MY_PN}-${SLOT}.so
fi
einfo "To select between slots of ECJ..."
einfo " # eselect ecj"
eselect ecj update ${PN}-${SLOT}
}
pkg_postrm() {
eselect ecj update
}

View File

@@ -1,109 +0,0 @@
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
inherit java-pkg-2 prefix toolchain-funcs
MY_PN="ecj"
DMF="R-${PV}-201006080911"
DESCRIPTION="Subset of Eclipse Compiler for Java compiled by gcj, serving as javac in gcj-jdk"
HOMEPAGE="http://www.eclipse.org/"
SRC_URI="http://download.eclipse.org/eclipse/downloads/drops/${DMF}/${MY_PN}src-${PV}.zip"
LICENSE="EPL-1.0"
SLOT="3.6"
KEYWORDS="~amd64 ~arm ~ppc64 ~x86"
IUSE="+native"
RDEPEND="sys-devel/gcc:*[gcj]
app-eselect/eselect-java"
DEPEND="${RDEPEND}
app-arch/unzip
!dev-java/eclipse-ecj:3.5[gcj]"
S="${WORKDIR}"
# for compatibility with java eclass functions
JAVA_PKG_WANT_SOURCE=1.4
JAVA_PKG_WANT_TARGET=1.4
MY_PS="${MY_PN}-${SLOT}"
java_prepare() {
# We don't need the ant adapter here
rm -f org/eclipse/jdt/core/JDTCompilerAdapter.java || die
rm -fr org/eclipse/jdt/internal/antadapter || die
# upstream build.xml excludes this
rm -f META-INF/eclipse.inf || die
# these java6 specific classes cannot compile with ecj
rm -fr org/eclipse/jdt/internal/compiler/{apt,tool}/ || die
}
src_compile() {
local javac_opts javac java jar
local gccbin=$(gcc-config -B)
local gccver=$(gcc-fullversion)
local gcj="${gccbin}/gcj"
javac="${gcj} -C --encoding=ISO-8859-1"
jar="${gccbin}/gjar"
java="${gccbin}/gij"
mkdir -p bootstrap || die
cp -pPR org bootstrap || die
cd "${S}/bootstrap" || die
einfo "bootstrapping ${MY_PN} with ${javac} ..."
${javac} ${javac_opts} $(find org/ -name '*.java') || die
find org/ \( -name '*.class' -o -name '*.properties' -o -name '*.rsc' \) \
-exec ${jar} cf ${MY_PN}.jar {} + || die
cd "${S}" || die
einfo "building ${MY_PN} with bootstrapped ${MY_PN} ..."
${java} -classpath bootstrap/${MY_PN}.jar \
org.eclipse.jdt.internal.compiler.batch.Main \
${javac_opts} -nowarn org || die
find org/ \( -name '*.class' -o -name '*.properties' -o -name '*.rsc' \) \
-exec ${jar} cf ${MY_PN}.jar {} + || die
if use native; then
einfo "Building native ${MY_PS} library, patience needed ..."
${gcj} ${CFLAGS} ${LDFLAGS} -findirect-dispatch -shared -fPIC -Wl,-Bsymbolic \
-o ${MY_PS}.so ${MY_PN}.jar || die
fi
}
src_install() {
java-pkg_dojar ${MY_PN}.jar
sed -e "s|@SLOT@|${SLOT}|" \
"${FILESDIR}/${PN}.in" \
> "${T}"/${PN}-${SLOT} || die
eprefixify "${T}/${PN}-${SLOT}"
dobin "${T}/${PN}-${SLOT}"
use native && dolib.so ${MY_PS}.so
}
pkg_postinst() {
if use native; then
$(gcc-config -B)/gcj-dbtool -a $(gcj-dbtool -p) \
"${EPREFIX}"/usr/share/${PN}-${SLOT}/lib/ecj.jar \
"${EPREFIX}"/usr/$(get_libdir)/${MY_PN}-${SLOT}.so
fi
einfo "To select between slots of ECJ..."
einfo " # eselect ecj"
eselect ecj update ${PN}-${SLOT}
}
pkg_postrm() {
eselect ecj update
}

View File

@@ -1,109 +0,0 @@
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
inherit java-pkg-2 prefix toolchain-funcs
MY_PN="ecj"
DMF="R-${PV}-201209141800"
DESCRIPTION="Subset of Eclipse Compiler for Java compiled by gcj, serving as javac in gcj-jdk"
HOMEPAGE="http://www.eclipse.org/"
SRC_URI="http://download.eclipse.org/eclipse/downloads/drops4/${DMF}/${MY_PN}src-${PV}.jar"
LICENSE="EPL-1.0"
SLOT="4.2"
KEYWORDS="~amd64 ~arm ~ppc64 ~x86"
IUSE="+native"
RDEPEND="sys-devel/gcc:*[gcj]
app-eselect/eselect-java"
DEPEND="${RDEPEND}
app-arch/unzip
!dev-java/eclipse-ecj:3.5[gcj]"
S="${WORKDIR}"
# for compatibility with java eclass functions
JAVA_PKG_WANT_SOURCE=1.4
JAVA_PKG_WANT_TARGET=1.4
MY_PS="${MY_PN}-${SLOT}"
java_prepare() {
# We don't need the ant adapter here
rm -f org/eclipse/jdt/core/JDTCompilerAdapter.java || die
rm -fr org/eclipse/jdt/internal/antadapter || die
# upstream build.xml excludes this
rm -f META-INF/eclipse.inf || die
# these java6 specific classes cannot compile with gcj
rm -fr org/eclipse/jdt/internal/compiler/{apt,tool}/ || die
}
src_compile() {
local javac_opts javac java jar
local gccbin=$(gcc-config -B)
local gccver=$(gcc-fullversion)
local gcj="${gccbin}/gcj"
javac="${gcj} -C --encoding=ISO-8859-1"
jar="${gccbin}/gjar"
java="${gccbin}/gij"
mkdir -p bootstrap || die
cp -pPR org bootstrap || die
cd "${S}/bootstrap" || die
einfo "bootstrapping ${MY_PN} with ${javac} ..."
${javac} ${javac_opts} $(find org/ -name '*.java') || die
find org/ \( -name '*.class' -o -name '*.properties' -o -name '*.rsc' -o -name '*.inf' -o -name '*.props' \) \
-exec ${jar} cf ${MY_PN}.jar {} + || die
cd "${S}" || die
einfo "building ${MY_PN} with bootstrapped ${MY_PN} ..."
${java} -classpath bootstrap/${MY_PN}.jar \
org.eclipse.jdt.internal.compiler.batch.Main \
${javac_opts} -nowarn org || die
find org/ \( -name '*.class' -o -name '*.properties' -o -name '*.rsc' -o -name '*.inf' -o -name '*.props' \) \
-exec ${jar} cf ${MY_PN}.jar {} + || die
if use native; then
einfo "Building native ${MY_PS} library, patience needed ..."
${gcj} ${CFLAGS} ${LDFLAGS} -findirect-dispatch -shared -fPIC -Wl,-Bsymbolic \
-o ${MY_PS}.so ${MY_PN}.jar || die
fi
}
src_install() {
java-pkg_dojar ${MY_PN}.jar
sed -e "s|@SLOT@|${SLOT}|" \
"${FILESDIR}/${PN}.in" \
> "${T}"/${PN}-${SLOT} || die
eprefixify "${T}/${PN}-${SLOT}"
dobin "${T}/${PN}-${SLOT}"
use native && dolib.so ${MY_PS}.so
}
pkg_postinst() {
if use native; then
$(gcc-config -B)/gcj-dbtool -a $(gcj-dbtool -p) \
"${EPREFIX}"/usr/share/${PN}-${SLOT}/lib/ecj.jar \
"${EPREFIX}"/usr/$(get_libdir)/${MY_PN}-${SLOT}.so
fi
einfo "To select between slots of ECJ..."
einfo " # eselect ecj"
eselect ecj update ${PN}-${SLOT}
}
pkg_postrm() {
eselect ecj update
}