public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Andrew Ammerlaan" <andrewammerlaan@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/sci:master commit in: sci-mathematics/acl2/
Date: Mon, 20 Sep 2021 08:52:48 +0000 (UTC)	[thread overview]
Message-ID: <1632127953.748646f321601c12ab799437b9774e158fd902b8.andrewammerlaan@gentoo> (raw)

commit:     748646f321601c12ab799437b9774e158fd902b8
Author:     Lucas Mitrak <lucas <AT> lucasmitrak <DOT> com>
AuthorDate: Sun Sep 19 06:10:09 2021 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Mon Sep 20 08:52:33 2021 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=748646f3

sci-mathematics/acl2: Update 8.3 to the original intended ebuild

* Update 8.3's ebuild to the one originally intended for 8.3

Currently, sci-mathematics/acl2-8.3 will not compile to the fixed bug
755368 [1]. This bug was fixed in PR 1109 on github [2]. However, due
to a version bump, acl2-8.3 remains unchanged. Therefore the ebuild for
8.3 should be updated to the original PR. acl2-8.3 was tested to
work with the latest unstable version of sbcl-2.1.8. With this commit,
acl2-8.3 will install successfully. Without this commit, it will not.

[1] https://bugs.gentoo.org/755368
[2] https://github.com/gentoo/sci/pull/1109

Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Lucas Mitrak <lucas <AT> lucasmitrak.com>
Closes: https://github.com/gentoo/sci/pull/1114
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>

 sci-mathematics/acl2/acl2-8.3-r1.ebuild | 86 +++++++++++++++++++++++++++++++++
 sci-mathematics/acl2/acl2-8.3.ebuild    | 51 -------------------
 2 files changed, 86 insertions(+), 51 deletions(-)

diff --git a/sci-mathematics/acl2/acl2-8.3-r1.ebuild b/sci-mathematics/acl2/acl2-8.3-r1.ebuild
new file mode 100644
index 000000000..d0bb4eade
--- /dev/null
+++ b/sci-mathematics/acl2/acl2-8.3-r1.ebuild
@@ -0,0 +1,86 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit elisp-common
+
+DESCRIPTION="Industrial strength theorem prover"
+HOMEPAGE="https://www.cs.utexas.edu/users/moore/acl2/"
+SRC_URI="https://github.com/acl2/acl2/archive/${PV}/${P}.tar.gz"
+
+SLOT="0"
+LICENSE="BSD"
+KEYWORDS="~amd64 ~x86"
+IUSE="books doc emacs"
+
+BDEPEND="
+	dev-lisp/sbcl
+	emacs? ( >=app-editors/emacs-23.1:* )
+"
+DEPEND="
+	dev-lisp/sbcl:=
+	books? ( dev-lang/perl )
+	doc? ( dev-lang/perl )
+"
+RDEPEND="${DEPEND}"
+
+PATCHES=( "${FILESDIR}"/${PN}-use_make_variable.patch )
+
+src_prepare() {
+	find . -type f -name "*.bak" -delete
+	find . -type f -name "*.orig" -delete
+	# Remove sparc binary inadvertently included in upstream
+	rm books/workshops/2003/schmaltz-al-sammane-et-al/support/acl2link || die
+	default
+}
+
+src_compile() {
+	emake LISP="sbcl --noinform --noprint \
+		--no-sysinit --no-userinit --disable-debugger"
+
+	if use books; then
+		emake "ACL2=${S}/saved_acl2" basic
+	fi
+
+	if use doc; then
+		emake "ACL2=${S}/saved_acl2" DOC
+	fi
+
+	if use emacs; then
+		elisp-compile emacs/*.el
+	fi
+}
+
+src_install() {
+	local SAVED_NAME=saved_acl2
+	sed -e "s:${S}:/usr/share/acl2:g" -i ${SAVED_NAME} || die
+	dobin ${SAVED_NAME}
+
+	insinto /usr/share/acl2
+	doins ${SAVED_NAME}.core
+	if use books; then
+		sed -e "/5/a export ACL2_SYSTEM_BOOKS=/usr/share/acl2/books/" \
+			-i ${SAVED_NAME} || die
+		doins -r books
+	fi
+
+	DOCS=( books/README.md )
+	if use doc; then
+		HTML_DOCS=( doc/HTML/. )
+	fi
+	einstalldocs
+
+	if use emacs; then
+		elisp-install ${PN} emacs/*{.el,elc}
+		doins TAGS
+	fi
+}
+
+pkg_postinst() {
+	use emacs && elisp-site-regen
+}
+
+pkg_postrm() {
+	use emacs && elisp-site-regen
+}

diff --git a/sci-mathematics/acl2/acl2-8.3.ebuild b/sci-mathematics/acl2/acl2-8.3.ebuild
deleted file mode 100644
index 63326e257..000000000
--- a/sci-mathematics/acl2/acl2-8.3.ebuild
+++ /dev/null
@@ -1,51 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit eutils
-
-DESCRIPTION="Industrial strength theorem prover"
-HOMEPAGE="https://www.cs.utexas.edu/users/moore/acl2/"
-MY_PN=${PN}-devel
-SRC_URI="https://github.com/${MY_PN}/${MY_PN}/releases/download/${PV}/${P}.tar.gz"
-
-SLOT="0"
-LICENSE="BSD"
-KEYWORDS="~amd64 ~x86"
-IUSE="books"
-
-BDEPEND="dev-lisp/sbcl"
-DEPEND="
-	dev-lisp/sbcl:=
-	books? ( dev-lang/perl )
-"
-RDEPEND="${DEPEND}"
-
-src_compile() {
-	emake LISP="sbcl --noinform --noprint \
-		--no-sysinit --no-userinit --disable-debugger"
-
-	if use books; then
-		echo
-		einfo "Building certificates ..."
-		einfo "(this may take hours to finish)"
-		emake certify-books
-	fi
-}
-
-src_install() {
-	SAVED_NAME=saved_acl2
-	sed -e "s:${S}:/usr/share/acl2:g" -i ${SAVED_NAME} || die
-	if use books; then
-		sed -e "/5/a export ACL2_SYSTEM_BOOKS=/usr/share/acl2/books/" \
-			-i ${SAVED_NAME} || die
-	fi
-	dobin ${SAVED_NAME}
-
-	insinto /usr/share/acl2
-	doins TAGS ${SAVED_NAME}.core
-	if use books; then
-		doins -r books
-	fi
-}


             reply	other threads:[~2021-09-20  8:52 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-20  8:52 Andrew Ammerlaan [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-10-07 11:20 [gentoo-commits] proj/sci:master commit in: sci-mathematics/acl2/ Andrew Ammerlaan
2021-09-20  8:52 Andrew Ammerlaan
2021-03-20 10:44 Andrew Ammerlaan
2021-01-13 21:06 Andrew Ammerlaan
2020-10-02 15:55 Aisha Tammy
2015-06-16 13:32 Justin Lecher
2015-06-06 10:23 Justin Lecher
2014-11-13  0:15 Christoph Junghans
2013-12-10 16:41 Justin Lecher
2013-12-09 15:06 Justin Lecher
2011-08-15 18:02 Dongxu Li
2011-08-15 17:52 Dongxu Li
2011-08-15 17:14 Kacper Kowalik
2011-07-07 19:19 Dongxu Li
2011-07-07 19:14 Dongxu Li
2011-06-25 17:21 Justin Lecher
2011-04-13 20:16 Dongxu Li
2011-04-12 17:26 Justin Lecher

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1632127953.748646f321601c12ab799437b9774e158fd902b8.andrewammerlaan@gentoo \
    --to=andrewammerlaan@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox