diff options
author | Ulrich Müller <ulm@gentoo.org> | 2024-06-11 21:46:48 +0200 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2024-06-11 21:50:25 +0200 |
commit | 29ca91f7ef44417a7a126bee2bd7765a25f65bd6 (patch) | |
tree | 7479b924d7e9a28c60be48908ffda9043889ec9e /dev-lisp/cmucl | |
parent | dev-php/PEAR-Net_SMTP: add 1.12.1 (diff) | |
download | gentoo-29ca91f7ef44417a7a126bee2bd7765a25f65bd6.tar.gz gentoo-29ca91f7ef44417a7a126bee2bd7765a25f65bd6.tar.bz2 gentoo-29ca91f7ef44417a7a126bee2bd7765a25f65bd6.zip |
dev-lisp/cmucl: add 21e
Closes: https://bugs.gentoo.org/925279
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to 'dev-lisp/cmucl')
-rw-r--r-- | dev-lisp/cmucl/Manifest | 2 | ||||
-rw-r--r-- | dev-lisp/cmucl/cmucl-21e.ebuild | 106 | ||||
-rw-r--r-- | dev-lisp/cmucl/files/cmucl-21e-version.patch | 9 | ||||
-rw-r--r-- | dev-lisp/cmucl/metadata.xml | 1 |
4 files changed, 118 insertions, 0 deletions
diff --git a/dev-lisp/cmucl/Manifest b/dev-lisp/cmucl/Manifest index cd8cafb04080..99b0ed85820d 100644 --- a/dev-lisp/cmucl/Manifest +++ b/dev-lisp/cmucl/Manifest @@ -1,2 +1,4 @@ DIST cmucl-21c-x86-linux.tar.bz2 11127872 BLAKE2B b9089a40b4a0738f9faccdfddb7b33256a561a07cedc3ef9b3ec7afddbbb9de493c2ffb9af4a8d6b6ce70ef857576870901a6b7a607f52bdaf8a0f53ddd2d07e SHA512 9097220aef612aa3d8367a86a86dc62d86d918190d2688f6e90d415c9f9d881f97f0829e9d310f700b014821d30bf5a15f7a05cdb9201c9deab10a7231e0bcb6 +DIST cmucl-21e-x86-linux.tar.bz2 11305452 BLAKE2B d7dde5afb0d6b0a42506c2a7bef09e93ddfb415eea1d41db95d63bdfc3d6f654859dabd641b4fd78c1ba4c36a6f6b5ac6318d4124a0cd21b389dd448e4bc109a SHA512 84193903a75356a28e14b4dc2f6c4dd20d6f0d424a24150c2f9b1094b4a91def4c85b8c5ade326487ca34a7705096c09109329f1eedba728e63e70b1dc011b5d DIST cmucl-src-21c.tar.bz2 6947775 BLAKE2B 828075c71ddf459d09076199af4a02f2294063bd9ef0beb6d4bcbb473dd0ff8cfdff7faa9416f640e125603301fa37c73a280db597bf4301c22fbe88c4cc2dbb SHA512 98ea0516b71af7c6f92b5f67f6c1545949fcd1dc95e1238a989c1c2858a75e2751e5eb765b29812ad5cc5de015333787dac2a63a9ddea9bb83cfd72fef6794f4 +DIST cmucl-src-21e.tar.bz2 7161287 BLAKE2B 1e52643917f05bbd2fa45f3cbed894506458a13047faf077388066035dfcb66440879c8cc4f79592b32dd5eb85679e3bb9fad5d9327f86e1c30e8446ffdda281 SHA512 fc2647fdd9adebe9c9a6a6398ef43203b750ff9c9437fec2b0c9b6fe2a50e430089308f0ff2362c3bc76724df9168c95293191e45489b3a5051942f63c0ed9b2 diff --git a/dev-lisp/cmucl/cmucl-21e.ebuild b/dev-lisp/cmucl/cmucl-21e.ebuild new file mode 100644 index 000000000000..88d5d6bc3cc7 --- /dev/null +++ b/dev-lisp/cmucl/cmucl-21e.ebuild @@ -0,0 +1,106 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs + +MY_PV=${PV:0:3} + +DESCRIPTION="CMU Common Lisp is an implementation of ANSI Common Lisp" +HOMEPAGE="https://www.cons.org/cmucl/" +SRC_URI=" + https://common-lisp.net/project/cmucl/downloads/release/${MY_PV}/cmucl-src-${MY_PV}.tar.bz2 + https://common-lisp.net/project/cmucl/downloads/release/${MY_PV}/cmucl-${MY_PV}-x86-linux.tar.bz2 +" +S="${WORKDIR}" + +LICENSE="public-domain" +SLOT="0" +KEYWORDS="-* ~x86" +IUSE="doc gui source" + +CDEPEND=">=dev-lisp/asdf-2.33-r3:= + x11-libs/motif:0" +DEPEND="${CDEPEND} + app-alternatives/bc + doc? ( virtual/latex-base )" +RDEPEND="${CDEPEND}" + +TARGET=linux-4 + +src_prepare() { + eapply "${FILESDIR}"/${PN}-21c-execstack-fixes.patch + eapply "${FILESDIR}"/${P}-version.patch + eapply_user + #cp "${FILESDIR}"/os-common.h src/lisp/ || die + cp /usr/share/common-lisp/source/asdf/build/asdf.lisp src/contrib/asdf/ || die +} + +src_compile() { + local cmuopts=$(usex gui "" -u) + local buildimage="bin/lisp -batch" + + env CC="$(tc-getCC)" bin/build.sh -v "-gentoo-${PR}" -C "" \ + -o "${buildimage}" ${cmuopts} \ + || die "Cannot build the compiler" + + # Compile up the asdf and defsystem modules + ${TARGET}/lisp/lisp -noinit -nositeinit -batch << EOF || die +(in-package :cl-user) +(setf (ext:search-list "target:") + '("$TARGET/" "src/")) +(setf (ext:search-list "modules:") + '("target:contrib/")) + +(compile-file "modules:asdf/asdf") +(compile-file "modules:defsystem/defsystem") +EOF + + # Documentation + if use doc; then + pushd src/docs/cmu-user > /dev/null \ + || die "directory src/docs/cmu-user does not exist" + emake + cd ../internals || die "directory src/docs/internals does not exist" + emake + popd > /dev/null || die + fi +} + +src_install() { + DOCDIR=share/doc/${PF} bin/make-dist.sh -S -g -G root -O root \ + -M share/man/man1 -V ${MY_PV} -A x86 -o linux ${TARGET} \ + || die "Cannot build installation archive" + # Necessary otherwise tar will fail + dodir /usr + pushd "${D}"/usr > /dev/null || die + tar xzpf "${WORKDIR}"/cmucl-${MY_PV}-x86-linux.tar.gz \ + || die "Cannot install main system" + if use gui ; then + tar xzpf "${WORKDIR}"/cmucl-${MY_PV}-x86-linux.extra.tar.gz \ + || die "Cannot install extra files" + fi + if use source; then + # Necessary otherwise tar will fail + dodir /usr/share/common-lisp/source/${PN} + cd "${D}"/usr/share/common-lisp/source/${PN} || die + tar --strip-components 1 -xzpf "${WORKDIR}"/cmucl-src-${MY_PV}.tar.gz \ + || die "Cannot install sources" + fi + popd > /dev/null || die + + # Install site config file + sed "s,@PF@,${PF},g ; s,@VERSION@,$(date +%F),g" \ + < "${FILESDIR}"/site-init.lisp.in \ + > "${D}"/usr/$(get_libdir)/cmucl/site-init.lisp \ + || die "Cannot fix site-init.lisp" + insinto /etc/common-lisp + doins "${FILESDIR}"/cmuclrc + + # Documentation + if use doc; then + dodoc src/docs/cmu-user/cmu-user.pdf src/docs/internals/design.pdf + docompress -x /usr/share/doc/${PF}/{cmu-user,design}.pdf + fi +} diff --git a/dev-lisp/cmucl/files/cmucl-21e-version.patch b/dev-lisp/cmucl/files/cmucl-21e-version.patch new file mode 100644 index 000000000000..204e1a396593 --- /dev/null +++ b/dev-lisp/cmucl/files/cmucl-21e-version.patch @@ -0,0 +1,9 @@ +--- cmucl/bin/build.sh ++++ cmucl/bin/build.sh +@@ -40,5 +40,5 @@ + ENABLE4="yes" + +-version=21d ++version=21e + SRCDIR=src + BINDIR=bin diff --git a/dev-lisp/cmucl/metadata.xml b/dev-lisp/cmucl/metadata.xml index bf312af3c421..f47933e812b4 100644 --- a/dev-lisp/cmucl/metadata.xml +++ b/dev-lisp/cmucl/metadata.xml @@ -31,6 +31,7 @@ ANSI Common Lisp standard. Here is a summary of its main features: </longdescription> <use> <flag name="doc">Installs package documentation</flag> +<flag name="gui">Build CLX, CLM, or Hemlock</flag> <flag name="source">Include source code for CMUCL in installation</flag> <flag name="X">Build CLX, CLM, or Hemlock</flag> </use> |