public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: sci-mathematics/cvc3/
@ 2016-10-29 22:30 David Seifert
  0 siblings, 0 replies; 2+ messages in thread
From: David Seifert @ 2016-10-29 22:30 UTC (permalink / raw
  To: gentoo-commits

commit:     6ba8a2fb02fc8056a10a787d789124f4aa69110e
Author:     Matthew Dawson <matthew <AT> mjdsystems <DOT> ca>
AuthorDate: Mon Oct 17 03:09:19 2016 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sat Oct 29 22:29:42 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6ba8a2fb

sci-mathematics/cvc3: Bump EAPI to 6

Make sure to call default in src_prepare, and switch
to new einstalldocs for the HTML documentation.

Package-Manager: portage-2.2.28
Closes: https://github.com/gentoo/gentoo/pull/2575

Signed-off-by: David Seifert <soap <AT> gentoo.org>

 sci-mathematics/cvc3/cvc3-2.4.1-r1.ebuild | 140 ++++++++++++++++++++++++++++++
 1 file changed, 140 insertions(+)

diff --git a/sci-mathematics/cvc3/cvc3-2.4.1-r1.ebuild b/sci-mathematics/cvc3/cvc3-2.4.1-r1.ebuild
new file mode 100644
index 00000000..8531710
--- /dev/null
+++ b/sci-mathematics/cvc3/cvc3-2.4.1-r1.ebuild
@@ -0,0 +1,140 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit elisp-common
+
+DESCRIPTION="CVC3 is a theorem prover for Satisfiability Modulo Theories (SMT) problems"
+HOMEPAGE="http://www.cs.nyu.edu/acsys/cvc3/index.html"
+SRC_URI="http://www.cs.nyu.edu/acsys/cvc3/releases/2.4.1/${P}.tar.gz"
+
+LICENSE="BSD MIT HPND zchaff? ( zchaff )"
+RESTRICT="mirror zchaff? ( bindist )"
+SLOT="0/${PV}"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc emacs isabelle test zchaff"
+
+RDEPEND="dev-libs/gmp:0=
+	isabelle? ( >=sci-mathematics/isabelle-2011.1-r1:= )"
+DEPEND="${RDEPEND}
+	doc? (
+		app-doc/doxygen
+		media-gfx/graphviz
+	)
+	emacs? (
+		virtual/emacs
+	)"
+
+SITEFILE="50${PN}-gentoo.el"
+
+src_prepare() {
+	default
+
+	sed -e 's#prefix=@prefix@#prefix=$(patsubst %/,%,$(DESTDIR))@prefix@#' \
+		-e 's#libdir=@libdir@#libdir=$(patsubst %/,%,$(DESTDIR))@libdir@#' \
+		-e 's#mandir=@mandir@#mandir=$(patsubst %/,%,$(DESTDIR))@mandir@#' \
+		-i "${S}/Makefile.local.in" \
+		|| die "Could not set DESTDIR in Makefile.local.in"
+}
+
+src_configure() {
+	# --enable-static disables building of shared libraries, statically
+	# links /usr/bin/cvc3 and installs static libraries.
+	# --enable-static --enable-sharedlibs behaves the same as just --enable-static
+	econf \
+		--enable-dynamic \
+		$(use_enable zchaff)
+
+	if use test; then
+		sed -e 's@LD_LIBS = @LD_LIBS = -L'"${S}"'/lib -Wl,-R'"${S}"'/lib @' \
+			-i "${S}/test/Makefile" \
+			|| die "Could not set library paths in test/Makefile"
+	fi
+}
+
+src_compile() {
+	emake
+
+	use doc && emake -C doc
+
+	if use emacs; then
+		pushd emacs >/dev/null || die
+		elisp-compile *.el || die "emacs elisp compile failed"
+		popd >/dev/null || die
+	fi
+
+	use test && emake -C test
+}
+
+src_test() {
+	pushd test >/dev/null || die
+	./bin/test || die "Testsuite failed"
+	popd >/dev/null || die
+}
+
+src_install() {
+	use doc && local HTML_DOCS=( doc/html/*.{html,gif,png,css} )
+	default
+
+	if use emacs; then
+		elisp-install ${PN} emacs/*.{el,elc}
+		cp "${FILESDIR}"/${SITEFILE} "${S}" || die "Failed to copy Emacs files"
+		elisp-site-file-install ${SITEFILE}
+	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 >> settings <<- EOF || die "Failed to create Isabelle configuration for CVC3"
+			CVC3_COMPONENT="\$COMPONENT"
+			CVC3_HOME="${EPREFIX}/usr/bin"
+			CVC3_SOLVER="\$CVC3_HOME/cvc3"
+			CVC3_REMOTE_SOLVER="cvc3"
+			CVC3_INSTALLED="yes"
+		EOF
+		insinto "${ISABELLE_HOME}/contrib/${PN}-${PV}/etc"
+		doins settings
+	fi
+}
+
+pkg_postinst() {
+	use emacs && elisp-site-regen
+	if use isabelle; then
+		if [[ -f "${EROOT%/}/etc/isabelle/components" ]]; then
+			if egrep "contrib/${PN}-[0-9.]*" "${EROOT%/}/etc/isabelle/components"; then
+				sed -e "/contrib\/${PN}-[0-9.]*/d" \
+					-i "${EROOT%/}/etc/isabelle/components" || die "Failed to remove old CVC3 registrations in Isabelle"
+			fi
+			cat >> "${EROOT%/}/etc/isabelle/components" <<- EOF || die "Failed to register CVC3 with Isabelle"
+				contrib/${PN}-${PV}
+			EOF
+		fi
+	fi
+	if use zchaff; then
+		einfo "This copy of CVC3 is also configured to use the SAT solver zchaff whose"
+		einfo "copyright is owned by Princeton University and is more restrictive."
+		einfo "Specifically, it may be used for internal, noncommercial, research purposes"
+		einfo "only. See the copyright notices from the zchaff source files which are"
+		einfo "included in the LICENSE file."
+		einfo "To build CVC3 without these files, please build cvc3 without the zchaff"
+		einfo "use flag (note: zchaff is disabled by default):"
+		einfo "USE=-zchaff emerge sci-mathemathematics/cvc3"
+	fi
+}
+
+pkg_postrm() {
+	use emacs && elisp-site-regen
+	if use isabelle; then
+		if [[ ! -f "${EROOT%/}/usr/bin/cvc3" && -f "${EROOT%/}/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 CVC3 being installed during an upgrade.
+			sed -e "/contrib\/${PN}-${PV}/d" \
+				-i "${EROOT%/}/etc/isabelle/components" || die "Failed to unregister CVC3 from Isabelle"
+		fi
+	fi
+}


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: sci-mathematics/cvc3/
@ 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:     8a848ea05b96622f7f155863af4c0f6ca789c543
Author:     Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com>
AuthorDate: Sun Apr  8 16:56:43 2018 +0000
Commit:     Aaron Bauman <bman <AT> gentoo <DOT> org>
CommitDate: Mon Apr  9 00:09:19 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8a848ea0

sci-mathematics/cvc3: remove old

Closes: https://github.com/gentoo/gentoo/pull/7877

 sci-mathematics/cvc3/cvc3-2.4.1.ebuild | 156 ---------------------------------
 1 file changed, 156 deletions(-)

diff --git a/sci-mathematics/cvc3/cvc3-2.4.1.ebuild b/sci-mathematics/cvc3/cvc3-2.4.1.ebuild
deleted file mode 100644
index 4352e6377d2..00000000000
--- a/sci-mathematics/cvc3/cvc3-2.4.1.ebuild
+++ /dev/null
@@ -1,156 +0,0 @@
-# Copyright 1999-2016 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="5"
-
-inherit elisp-common
-
-DESCRIPTION="CVC3 is a theorem prover for Satisfiability Modulo Theories (SMT) problems"
-HOMEPAGE="http://www.cs.nyu.edu/acsys/cvc3/index.html"
-SRC_URI="http://www.cs.nyu.edu/acsys/cvc3/releases/2.4.1/${P}.tar.gz"
-
-LICENSE="BSD MIT HPND zchaff? ( zchaff )"
-RESTRICT="mirror zchaff? ( bindist )"
-SLOT="0/${PV}"
-KEYWORDS="~amd64 ~x86"
-IUSE="doc emacs isabelle test zchaff"
-
-RDEPEND="dev-libs/gmp:0=
-		isabelle? (
-			>=sci-mathematics/isabelle-2011.1-r1:=
-		)"
-DEPEND="${RDEPEND}
-		doc? (
-			app-doc/doxygen
-			media-gfx/graphviz
-		)
-		emacs? (
-			virtual/emacs
-		)"
-
-SITEFILE=50${PN}-gentoo.el
-
-src_prepare() {
-	sed -e 's#prefix=@prefix@#prefix=$(patsubst %/,%,$(DESTDIR))@prefix@#' \
-		-e 's#libdir=@libdir@#libdir=$(patsubst %/,%,$(DESTDIR))@libdir@#' \
-		-e 's#mandir=@mandir@#mandir=$(patsubst %/,%,$(DESTDIR))@mandir@#' \
-		-i "${S}/Makefile.local.in" \
-		|| die "Could not set DESTDIR in Makefile.local.in"
-}
-
-src_configure() {
-	# --enable-static disables building of shared libraries, statically
-	# links /usr/bin/cvc3 and installs static libraries.
-	# --enable-static --enable-sharedlibs behaves the same as just --enable-static
-	econf \
-		--enable-dynamic \
-		$(use_enable zchaff)
-
-	if use test; then
-		sed -e 's@LD_LIBS = @LD_LIBS = -L'"${S}"'/lib -Wl,-R'"${S}"'/lib @' \
-			-i "${S}/test/Makefile" \
-			|| die "Could not set library paths in test/Makefile"
-	fi
-}
-
-src_compile() {
-	emake
-
-	if use doc; then
-		pushd doc || die "Could not cd to doc"
-		emake
-		popd
-	fi
-
-	if use emacs ; then
-		pushd "${S}/emacs" || die "Could change directory to emacs"
-		elisp-compile *.el || die "emacs elisp compile failed"
-		popd
-	fi
-
-	if use test; then
-		pushd test || die "Could not cd to test"
-		emake
-		popd
-	fi
-}
-
-src_test() {
-	pushd test || die "Could not cd to test"
-	./bin/test || die "tests failed"
-	popd
-}
-
-src_install() {
-	emake DESTDIR="${D}" install
-
-	if use doc; then
-		pushd "${S}"/doc/html || die "Could not cd to doc/html"
-		dohtml *.html
-		insinto /usr/share/doc/${PF}/html
-		doins *.css *.gif *.png
-		popd
-	fi
-
-	if use emacs ; then
-		elisp-install ${PN} emacs/*.{el,elc}
-		cp "${FILESDIR}"/${SITEFILE} "${S}"
-		elisp-site-file-install ${SITEFILE}
-	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"
-			CVC3_COMPONENT="\$COMPONENT"
-			CVC3_HOME="${ROOT}usr/bin"
-			CVC3_SOLVER="\$CVC3_HOME/cvc3"
-			CVC3_REMOTE_SOLVER="cvc3"
-			CVC3_INSTALLED="yes"
-		EOF
-		insinto "${ISABELLE_HOME}/contrib/${PN}-${PV}/etc"
-		doins "${S}/settings"
-	fi
-}
-
-pkg_postinst() {
-	use emacs && elisp-site-regen
-	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
-	if use zchaff; then
-		einfo "This copy of CVC3 is also configured to use the SAT solver zchaff whose"
-		einfo "copyright is owned by Princeton University and is more restrictive."
-		einfo "Specifically, it may be used for internal, noncommercial, research purposes"
-		einfo "only. See the copyright notices from the zchaff source files which are"
-		einfo "included in the LICENSE file."
-		einfo "To build CVC3 without these files, please build cvc3 without the zchaff"
-		einfo "use flag (note: zchaff is disabled by default):"
-		einfo "USE=-zchaff emerge sci-mathemathematics/cvc3"
-	fi
-}
-
-pkg_postrm() {
-	use emacs && elisp-site-regen
-	if use isabelle; then
-		if [ ! -f "${ROOT}usr/bin/cvc3" ]; 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 CVC3 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:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-29 22:30 [gentoo-commits] repo/gentoo:master commit in: sci-mathematics/cvc3/ David Seifert
  -- strict thread matches above, loose matches on Subject: below --
2018-04-09  0:15 Aaron Bauman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox