* [gentoo-commits] repo/gentoo:master commit in: sci-mathematics/kodkodi/
@ 2017-01-02 22:56 Mark Wright
0 siblings, 0 replies; 2+ messages in thread
From: Mark Wright @ 2017-01-02 22:56 UTC (permalink / raw
To: gentoo-commits
commit: 19b9e13e55f4af44d2fceaad481c004797a126ec
Author: Mark Wright <gienah <AT> gentoo <DOT> org>
AuthorDate: Mon Jan 2 22:56:34 2017 +0000
Commit: Mark Wright <gienah <AT> gentoo <DOT> org>
CommitDate: Mon Jan 2 22:56:34 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=19b9e13e
sci-mathematics/kodkodi: Update to EAPI="6"
Package-Manager: portage-2.3.3
sci-mathematics/kodkodi/kodkodi-1.5.2-r1.ebuild | 108 ++++++++++++++++++++++++
1 file changed, 108 insertions(+)
diff --git a/sci-mathematics/kodkodi/kodkodi-1.5.2-r1.ebuild b/sci-mathematics/kodkodi/kodkodi-1.5.2-r1.ebuild
new file mode 100644
index 00000000..3a11b01
--- /dev/null
+++ b/sci-mathematics/kodkodi/kodkodi-1.5.2-r1.ebuild
@@ -0,0 +1,108 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="6"
+
+JAVA_PKG_IUSE="doc source"
+
+inherit java-pkg-2 java-pkg-simple multilib
+
+DESCRIPTION="A text front-end for the Kodkod Java library"
+HOMEPAGE="http://www21.in.tum.de/~blanchet/#software"
+SRC_URI="http://www21.in.tum.de/~blanchet/${P}.tgz"
+
+LICENSE="BSD"
+SLOT="0/${PV}"
+KEYWORDS="~amd64 ~x86"
+IUSE="isabelle examples"
+
+COMMON_DEP="dev-java/antlr:3
+ =sci-mathematics/kodkod-1.5*:="
+RDEPEND="${COMMON_DEP}
+ isabelle? (
+ sci-mathematics/isabelle:=
+ )
+ >=virtual/jre-1.6"
+DEPEND="${COMMON_DEP}
+ >=virtual/jdk-1.6
+ app-arch/unzip"
+
+S="${WORKDIR}/${P}"
+
+JAVA_GENTOO_CLASSPATH="kodkod,antlr-3"
+
+src_prepare() {
+ default
+ sed -e 's@exec "$ISABELLE_TOOL" java $KODKODI_JAVA_OPT@java@' \
+ -i "${S}/bin/kodkodi" || die "Could not patch bin/kodkodi"
+ rm -f jar/*.jar || die "Could not rm jar files"
+}
+
+src_compile() {
+ JAVA_SRC_DIR="src"
+ TARGETDIR="/usr/share/${P}"
+ KODKOD_LIBDIR="/usr/"$(get_libdir)"/kodkod"
+
+ java-pkg-simple_src_compile
+
+ pushd "${S}/target/classes" > /dev/null || die
+ jar -uf "${S}"/${PN}.jar $(find -name '*.class') || die
+ popd > /dev/null
+}
+
+src_install() {
+ java-pkg-simple_src_install
+ dodoc README HISTORY manual/${PN}.pdf LICENSES/Kodkodi
+ insinto ${TARGETDIR}
+ if use examples; then
+ doins -r examples
+ fi
+
+ if use isabelle; then
+ ISABELLE_HOME="$(isabelle getenv ISABELLE_HOME | cut -d'=' -f 2)" \
+ || die "isabelle getenv ISABELLE_HOME failed"
+ [[ -n "${ISABELLE_HOME}" ]] || die "ISABELLE_HOME empty"
+ dodir "${ISABELLE_HOME}/contrib/${PN}-${PV}/etc"
+ cat <<- EOF >> "${S}/settings"
+ KODKODI="\$COMPONENT"
+ KODKODI_VERSION="${PV}"
+ KODKODI_PLATFORM=\$ISABELLE_PLATFORM
+ KODKODI_CLASSPATH="$(java-config --classpath=antlr:3):${ROOT}usr/share/${PN}-${SLOT}/lib/kodkodi.jar:$(java-config --classpath=kodkod)"
+ KODKODI_JAVA_LIBRARY_PATH="${KODKOD_LIBDIR}"
+ EOF
+ insinto "${ISABELLE_HOME}/contrib/${PN}-${PV}/etc"
+ doins "${S}/settings"
+ dodir "${ISABELLE_HOME}/contrib/${PN}-${PV}/bin"
+ exeinto "${ISABELLE_HOME}/contrib/${PN}-${PV}/bin"
+ doexe bin/kodkodi
+ fi
+}
+
+pkg_postinst() {
+ if use isabelle; then
+ if [ -f "${ROOT}etc/isabelle/components" ]; then
+ if egrep "contrib/${PN}-[0-9.]*" "${ROOT}etc/isabelle/components"; then
+ sed -e "/contrib\/${PN}-[0-9.]*/d" \
+ -i "${ROOT}etc/isabelle/components"
+ fi
+ cat <<- EOF >> "${ROOT}etc/isabelle/components"
+ contrib/${PN}-${PV}
+ EOF
+ fi
+ fi
+}
+
+pkg_postrm() {
+ if use isabelle; then
+ if [ ! -f "${ROOT}usr/bin/kodkodi" ]; then
+ if [ -f "${ROOT}etc/isabelle/components" ]; then
+ # Note: this sed should only match the version of this ebuild
+ # Which is what we want as we do not want to remove the line
+ # of a new kodkodi being installed during an upgrade.
+ sed -e "/contrib\/${PN}-${PV}/d" \
+ -i "${ROOT}etc/isabelle/components"
+ fi
+ fi
+ fi
+}
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-mathematics/kodkodi/
@ 2018-04-09 0:15 Aaron Bauman
0 siblings, 0 replies; 2+ messages in thread
From: Aaron Bauman @ 2018-04-09 0:15 UTC (permalink / raw
To: gentoo-commits
commit: d9f7daddcc5b6737fe60b7776af9dd3c3c44f9c3
Author: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com>
AuthorDate: Sun Apr 8 16:58:11 2018 +0000
Commit: Aaron Bauman <bman <AT> gentoo <DOT> org>
CommitDate: Mon Apr 9 00:09:20 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d9f7dadd
sci-mathematics/kodkodi: remove old
sci-mathematics/kodkodi/kodkodi-1.5.2.ebuild | 106 ---------------------------
1 file changed, 106 deletions(-)
diff --git a/sci-mathematics/kodkodi/kodkodi-1.5.2.ebuild b/sci-mathematics/kodkodi/kodkodi-1.5.2.ebuild
deleted file mode 100644
index 9041007f4db..00000000000
--- a/sci-mathematics/kodkodi/kodkodi-1.5.2.ebuild
+++ /dev/null
@@ -1,106 +0,0 @@
-# Copyright 1999-2014 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 multilib
-
-DESCRIPTION="A text front-end for the Kodkod Java library"
-HOMEPAGE="http://www21.in.tum.de/~blanchet/#software"
-SRC_URI="http://www21.in.tum.de/~blanchet/${P}.tgz"
-
-LICENSE="BSD"
-SLOT="0/${PV}"
-KEYWORDS="~amd64 ~x86"
-IUSE="isabelle examples"
-
-COMMON_DEP="dev-java/antlr:3
- =sci-mathematics/kodkod-1.5*:="
-RDEPEND="${COMMON_DEP}
- isabelle? (
- >=sci-mathematics/isabelle-2011-r1:=
- )
- >=virtual/jre-1.6"
-DEPEND="${COMMON_DEP}
- >=virtual/jdk-1.6
- app-arch/unzip"
-
-S="${WORKDIR}/${P}"
-
-JAVA_GENTOO_CLASSPATH="kodkod,antlr-3"
-
-java_prepare() {
- sed -e 's@exec "$ISABELLE_TOOL" java $KODKODI_JAVA_OPT@java@' \
- -i "${S}/bin/kodkodi" || die "Could not patch bin/kodkodi"
- rm -f jar/*.jar || die "Could not rm jar files"
-}
-
-src_compile() {
- JAVA_SRC_DIR="src"
- TARGETDIR="/usr/share/${P}"
- KODKOD_LIBDIR="/usr/"$(get_libdir)"/kodkod"
-
- java-pkg-simple_src_compile
-
- pushd "${S}/target/classes" > /dev/null || die
- jar -uf "${S}"/${PN}.jar $(find -name '*.class') || die
- popd > /dev/null
-}
-
-src_install() {
- java-pkg-simple_src_install
- dodoc README HISTORY manual/${PN}.pdf LICENSES/Kodkodi
- insinto ${TARGETDIR}
- if use examples; then
- doins -r examples
- fi
-
- if use isabelle; then
- ISABELLE_HOME="$(isabelle getenv ISABELLE_HOME | cut -d'=' -f 2)" \
- || die "isabelle getenv ISABELLE_HOME failed"
- [[ -n "${ISABELLE_HOME}" ]] || die "ISABELLE_HOME empty"
- dodir "${ISABELLE_HOME}/contrib/${PN}-${PV}/etc"
- cat <<- EOF >> "${S}/settings"
- KODKODI="\$COMPONENT"
- KODKODI_VERSION="${PV}"
- KODKODI_PLATFORM=\$ISABELLE_PLATFORM
- KODKODI_CLASSPATH="$(java-config --classpath=antlr:3):${ROOT}usr/share/${PN}-${SLOT}/lib/kodkodi.jar:$(java-config --classpath=kodkod)"
- KODKODI_JAVA_LIBRARY_PATH="${KODKOD_LIBDIR}"
- EOF
- insinto "${ISABELLE_HOME}/contrib/${PN}-${PV}/etc"
- doins "${S}/settings"
- dodir "${ISABELLE_HOME}/contrib/${PN}-${PV}/bin"
- exeinto "${ISABELLE_HOME}/contrib/${PN}-${PV}/bin"
- doexe bin/kodkodi
- fi
-}
-
-pkg_postinst() {
- if use isabelle; then
- if [ -f "${ROOT}etc/isabelle/components" ]; then
- if egrep "contrib/${PN}-[0-9.]*" "${ROOT}etc/isabelle/components"; then
- sed -e "/contrib\/${PN}-[0-9.]*/d" \
- -i "${ROOT}etc/isabelle/components"
- fi
- cat <<- EOF >> "${ROOT}etc/isabelle/components"
- contrib/${PN}-${PV}
- EOF
- fi
- fi
-}
-
-pkg_postrm() {
- if use isabelle; then
- if [ ! -f "${ROOT}usr/bin/kodkodi" ]; then
- if [ -f "${ROOT}etc/isabelle/components" ]; then
- # Note: this sed should only match the version of this ebuild
- # Which is what we want as we do not want to remove the line
- # of a new kodkodi being installed during an upgrade.
- sed -e "/contrib\/${PN}-${PV}/d" \
- -i "${ROOT}etc/isabelle/components"
- fi
- fi
- fi
-}
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-04-09 0:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-09 0:15 [gentoo-commits] repo/gentoo:master commit in: sci-mathematics/kodkodi/ Aaron Bauman
-- strict thread matches above, loose matches on Subject: below --
2017-01-02 22:56 Mark Wright
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox