diff options
| author | root <root@alpha.trunkmasters.com> | 2026-06-12 19:09:37 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-06-12 19:09:37 -0500 |
| commit | b590c8d7572b727d565cc0b8ff660d43569845de (patch) | |
| tree | 06f7a4102ea4e845df8b66660f252920d52952f9 /sci-mathematics/acl2 | |
| parent | 24f9cbfc4c34fdb6a6e03311674414e881ceab47 (diff) | |
| download | baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.gz baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.xz baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.zip | |
Adding metadata
Diffstat (limited to 'sci-mathematics/acl2')
| -rw-r--r-- | sci-mathematics/acl2/Manifest | 2 | ||||
| -rw-r--r-- | sci-mathematics/acl2/acl2-8.5_p20240307-r1.ebuild | 110 | ||||
| -rw-r--r-- | sci-mathematics/acl2/acl2-8.6.ebuild | 114 | ||||
| -rw-r--r-- | sci-mathematics/acl2/files/50acl2-gentoo.el | 6 | ||||
| -rw-r--r-- | sci-mathematics/acl2/metadata.xml | 19 |
5 files changed, 251 insertions, 0 deletions
diff --git a/sci-mathematics/acl2/Manifest b/sci-mathematics/acl2/Manifest new file mode 100644 index 000000000000..4c6d0768edd5 --- /dev/null +++ b/sci-mathematics/acl2/Manifest @@ -0,0 +1,2 @@ +DIST acl2-8.5_p20240307.tar.gz 228577404 BLAKE2B af7b4f9995b568ba733a1071fa8069798091ea66b91acc9fb839a6f9ba7843762d7130f4d6b653054de4adea91569904ee4c3dcd035350616418c13fa762bc10 SHA512 b5484a49702fa6c657ebf9551dcec2b6a9c0632e137db1480f93ef9aec83fc9bdb9ca95c46ed324b4ff6ab1a428c8ca50bd1750e1bfd6c024d46a4d27728a24e +DIST acl2-8.6.gh.tar.gz 237606779 BLAKE2B ceddaa63aea7ef574e29a40b805c1bd1fd82cfa630679d3eb28854acda7afe138959840a19f6f4c00d24f48eb035008d2a52755aeb29ffb49878159ab61f1244 SHA512 e3ee5baa6b38a316bddb2053a56e3b9f8b040fc41b2d97c0eec268c7b9d5c79b7fa1719891cd8e043675ce8c8fc71a81f50e232aa1c7891e91f0c20957b42f87 diff --git a/sci-mathematics/acl2/acl2-8.5_p20240307-r1.ebuild b/sci-mathematics/acl2/acl2-8.5_p20240307-r1.ebuild new file mode 100644 index 000000000000..438948ce246c --- /dev/null +++ b/sci-mathematics/acl2/acl2-8.5_p20240307-r1.ebuild @@ -0,0 +1,110 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +# NOTICE: Only SBCL (dev-lisp/sbcl) is tested for now, but probably +# more CL implementations can be added as alternative dependencies. +# With ClozureCL (dev-lisp/clozurecl) ACL2 fails to build, +# this might need in-depth investigation... + +EAPI=8 + +inherit elisp-common + +DESCRIPTION="Industrial strength theorem prover, logic and programming language" +HOMEPAGE="https://www.cs.utexas.edu/users/moore/acl2/ + https://github.com/acl2/acl2/" + +if [[ "${PV}" == *9999* ]] ; then + inherit git-r3 + + EGIT_REPO_URI="https://github.com/${PN}/${PN}.git" +else + COMMIT=6ba68b5c8d645ca45185abc4a24ce46e5ae029c5 + SRC_URI="https://github.com/${PN}/${PN}/archive/${COMMIT}.tar.gz + -> ${P}.tar.gz" + S="${WORKDIR}/${PN}-${COMMIT}" + + KEYWORDS="~amd64 ~x86" +fi + +LICENSE="BSD" +SLOT="0" +IUSE="doc emacs" +REQUIRED_USE="emacs? ( doc )" + +RDEPEND=" + dev-lisp/sbcl:= + emacs? ( >=app-editors/emacs-25:* ) +" +BDEPEND=" + ${RDEPEND} + doc? ( dev-lang/perl ) +" + +DOCS=( books/README.md ) +SITEFILE="50${PN}-gentoo.el" + +src_prepare() { + find . -type f -name "*.bak" -delete || die + find . -type f -name "*.orig" -delete || die + rm books/workshops/2003/schmaltz-al-sammane-et-al/support/acl2link || die + + sed -e "s|\"git\" '(\"rev-parse\" \"HEAD\")|\"echo\" '(\"${COMMIT}\")|" \ + -i acl2-init.lisp || die + + default +} + +src_compile() { + emake LISP="sbcl --no-sysinit --no-userinit --disable-debugger" + + if use emacs ; then + local elisp_dir + for elisp_dir in books/emacs books/interface/emacs ; do + BYTECOMPFLAGS="-L ${S}/${elisp_dir}" \ + elisp-compile "${S}/${elisp_dir}"/*.el + done + fi + + if use doc ; then + emake ACL2="${S}/saved_acl2" basic DOC + fi +} + +src_install() { + local saved_name=saved_acl2 + + sed "s|${S}|/usr/share/acl2|g" -i "${saved_name}" || die + sed "5iexport ACL2_SYSTEM_BOOKS=/usr/share/acl2/books/" \ + -i "${saved_name}" || die + + exeinto /usr/share/acl2 + doexe "${saved_name}" + insinto /usr/share/acl2 + doins "${saved_name}.core" + dosym -r "/usr/share/acl2/${saved_name}" /usr/bin/acl2 + + if use emacs ; then + doins TAGS + elisp-install "${PN}" books/emacs/*.el{,c} books/interface/emacs/*.el{,c} + elisp-site-file-install "${FILESDIR}/${SITEFILE}" + fi + + if use doc ; then + doins -r books + + HTML_DOCS=( doc/HTML/. ) + einstalldocs + + # Some binaries in "books". Not needed since the sources are there. + find "${ED}/usr/share/acl2/books" -type f -name "*.elf64" -delete || die + fi +} + +pkg_postinst() { + use emacs && elisp-site-regen +} + +pkg_postrm() { + use emacs && elisp-site-regen +} diff --git a/sci-mathematics/acl2/acl2-8.6.ebuild b/sci-mathematics/acl2/acl2-8.6.ebuild new file mode 100644 index 000000000000..6e387b3f3200 --- /dev/null +++ b/sci-mathematics/acl2/acl2-8.6.ebuild @@ -0,0 +1,114 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +# NOTICE: Only SBCL (dev-lisp/sbcl) is tested for now, but probably +# more CL implementations can be added as alternative dependencies. +# With ClozureCL (dev-lisp/clozurecl) ACL2 fails to build, +# this might need in-depth investigation... + +EAPI=8 + +inherit elisp-common + +DESCRIPTION="Industrial strength theorem prover, logic and programming language" +HOMEPAGE="https://www.cs.utexas.edu/users/moore/acl2/ + https://github.com/acl2/acl2/" + +if [[ "${PV}" == *9999* ]] ; then + inherit git-r3 + + EGIT_REPO_URI="https://github.com/${PN}/${PN}" +else + SRC_URI="https://github.com/${PN}/${PN}/archive/refs/tags/${PV}.tar.gz + -> ${P}.gh.tar.gz" + + KEYWORDS="~amd64 ~x86" +fi + +LICENSE="BSD" +SLOT="0" +IUSE="doc emacs" +REQUIRED_USE="emacs? ( doc )" + +DEPEND=" + dev-lisp/sbcl:= +" +RDEPEND=" + ${DEPEND} + emacs? ( >=app-editors/emacs-25:* ) +" +BDEPEND=" + ${RDEPEND} + doc? ( dev-lang/perl ) +" + +DOCS=( books/README.md ) +SITEFILE="50${PN}-gentoo.el" + +src_prepare() { + find . -type f -name "*.bak" -delete || die + find . -type f -name "*.orig" -delete || die + rm books/workshops/2003/schmaltz-al-sammane-et-al/support/acl2link || die + + sed -e "s|\"git\" '(\"rev-parse\" \"HEAD\")|\"echo\" '(\"${COMMIT}\")|" \ + -i acl2-init.lisp || die + + default +} + +src_compile() { + emake LISP="sbcl --no-sysinit --no-userinit --disable-debugger" + + if use emacs ; then + local elisp_dir="" + for elisp_dir in books/emacs books/interface/emacs ; do + BYTECOMPFLAGS="-L ${S}/${elisp_dir}" elisp-compile "${S}/${elisp_dir}"/*.el + done + fi + + if use doc ; then + emake ACL2="${S}/saved_acl2" basic DOC + fi +} + +src_install() { + local saved_name="saved_acl2" + + sed "s|${S}|/usr/share/acl2|g" -i "${saved_name}" || die + sed "5iexport ACL2_SYSTEM_BOOKS=/usr/share/acl2/books/" \ + -i "${saved_name}" || die + + exeinto /usr/share/acl2 + doexe "${saved_name}" + insinto /usr/share/acl2 + doins "${saved_name}.core" + dosym -r "/usr/share/acl2/${saved_name}" /usr/bin/acl2 + + if use emacs ; then + doins TAGS + elisp-install "${PN}" books/emacs/*.el{,c} books/interface/emacs/*.el{,c} + elisp-site-file-install "${FILESDIR}/${SITEFILE}" + fi + + if use doc ; then + doins -r books + + HTML_DOCS=( doc/HTML/. ) + einstalldocs + + # Some binaries in "books". Not needed since the sources are there. + find "${ED}/usr/share/acl2/books" -type f -iname "*.elf64" -delete || die + fi +} + +pkg_postinst() { + if use emacs ; then + elisp-site-regen + fi +} + +pkg_postrm() { + if use emacs ; then + elisp-site-regen + fi +} diff --git a/sci-mathematics/acl2/files/50acl2-gentoo.el b/sci-mathematics/acl2/files/50acl2-gentoo.el new file mode 100644 index 000000000000..d61224e84506 --- /dev/null +++ b/sci-mathematics/acl2/files/50acl2-gentoo.el @@ -0,0 +1,6 @@ +(add-to-list 'load-path "@SITELISP@") +(defvar *acl2-sources-dir* "/usr/share/acl2/") +(autoload 'inferior-acl2 "inf-acl2.el" + "Run an inferior Acl2 process" t) +(autoload 'run-acl2 "inf-acl2.el" + "Run an inferior Acl2 process" t) diff --git a/sci-mathematics/acl2/metadata.xml b/sci-mathematics/acl2/metadata.xml new file mode 100644 index 000000000000..bb415c124698 --- /dev/null +++ b/sci-mathematics/acl2/metadata.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>sci-mathematics@gentoo.org</email> + <name>Gentoo Mathematics Project</name> + </maintainer> + <longdescription> + ACL2 is a logic and programming language in which you can model computer + systems, together with a tool to help you prove properties of those models. + "ACL2" denotes "A Computational Logic for Applicative Common Lisp". ACL2 is + part of the Boyer-Moore family of provers, for which its authors have + received the 2005 ACM Software System Award. + </longdescription> + <upstream> + <bugs-to>https://github.com/acl2/acl2/issues/</bugs-to> + </upstream> + <origin>baldeagleos-repo</origin> +</pkgmetadata> |
