diff options
author | Andrey Grozin <grozin@gentoo.org> | 2021-03-27 19:05:55 +0700 |
---|---|---|
committer | Andrey Grozin <grozin@gentoo.org> | 2021-03-27 19:05:55 +0700 |
commit | a0315e4ba14e672cbd3410b0fc922af989dc11ff (patch) | |
tree | 469239eef09c2a56956094ab19ea1572c57ea9dd /dev-lisp/gcl | |
parent | sys-apps/sandbox: bump up to 2.22 (diff) | |
download | gentoo-a0315e4ba14e672cbd3410b0fc922af989dc11ff.tar.gz gentoo-a0315e4ba14e672cbd3410b0fc922af989dc11ff.tar.bz2 gentoo-a0315e4ba14e672cbd3410b0fc922af989dc11ff.zip |
dev-lisp/gcl: bump to 2.6.13_pre98
Package-Manager: Portage-3.0.17, Repoman-3.0.2
Signed-off-by: Andrey Grozin <grozin@gentoo.org>
Diffstat (limited to 'dev-lisp/gcl')
-rw-r--r-- | dev-lisp/gcl/Manifest | 1 | ||||
-rw-r--r-- | dev-lisp/gcl/files/gcl-2.6.13_pre98-makefile.patch | 21 | ||||
-rw-r--r-- | dev-lisp/gcl/gcl-2.6.13_pre98.ebuild | 124 |
3 files changed, 146 insertions, 0 deletions
diff --git a/dev-lisp/gcl/Manifest b/dev-lisp/gcl/Manifest index 9694d801852c..1ecaa877a586 100644 --- a/dev-lisp/gcl/Manifest +++ b/dev-lisp/gcl/Manifest @@ -2,3 +2,4 @@ DIST gcl-2.6.10-fedora.tar.bz2 695718 BLAKE2B 151cac372f74a971ffb31191a3614d0f7b DIST gcl-2.6.10.tar.gz 5490689 BLAKE2B 46af0cf8a810a82fe2bc2bd46ca1cbe17b74c71eb4af6a06032040900dcad4dd4338883cd9225f0945ae425eba788ac84db9a0ed454779edd86c74a1bb48a947 SHA512 bbaacce712f15130550bcdf7e53edf4df9ab955e84ec701087034115df1c1e657d956853d5db85d7e88709981f9b7fd4c9df7acf6c8588a8ccf5f05e4e666aed DIST gcl-2.6.12-fedora.tar.bz2 680471 BLAKE2B 0ad96ce0a09bb73ee77456373eb7e50b2325a4f2e042c21120a1c33b2dec2aa10f5485bb1b02e8eb8e77aaaea6e141189d676217f9d139615911d8a77ea5818a SHA512 7640f8370754c889e2db9d047c4476195f949f4d97eafc7ef81761c1a548e24125d6d93381227b55f1840c3d127770995e88bf66f83c6952e121f5fa004e7f1a DIST gcl-2.6.12.tar.gz 7031837 BLAKE2B afd3f81dd8a712d92883a96399a2e0621b0d38a349904707846bd694892510012fde27f94ec36664c249659a480e7f92c412b3790ecb74247a91ba0cb44aa420 SHA512 e82b5bdded6f846de4ea35a83bc8294043ba6d4fe03ff421f8753e78add1e5e87124782f672cd38ad89bbec1ca7c5ff69fe2621be1552b209516b58b6c97fd20 +DIST gcl-Version_2_6_13pre98.tar.gz 6654514 BLAKE2B 26dcfc01bc0d783b5c45561dc975765f573fd75c2da09786e3a305cf91273684ff6f609ecf659365203ba404e7c8aa5ec97ae661190d32ba31e75d19d1ba0050 SHA512 0d074ed27e04d506ea414e58a70bb284c57f681314c8e68281fcc927e964a3489d9ff2fd9099d282e9da1c75888d758cf5b4f7350da6e7ba8cc90eb1667e1eb9 diff --git a/dev-lisp/gcl/files/gcl-2.6.13_pre98-makefile.patch b/dev-lisp/gcl/files/gcl-2.6.13_pre98-makefile.patch new file mode 100644 index 000000000000..f14443ea0168 --- /dev/null +++ b/dev-lisp/gcl/files/gcl-2.6.13_pre98-makefile.patch @@ -0,0 +1,21 @@ +diff -r -U2 gcl.orig/makefile gcl/makefile +--- gcl.orig/makefile 2021-01-11 22:07:14.000000000 +0700 ++++ gcl/makefile 2021-03-27 18:06:12.014870205 +0700 +@@ -189,5 +189,5 @@ + mkdir -p $(DESTDIR)$(prefix)/bin + mkdir -p $(DESTDIR)$(prefix)/share +- cp -a man $(DESTDIR)$(prefix)/share/ ++# cp -a man $(DESTDIR)$(prefix)/share/ + mkdir -p $(DESTDIR)$(INSTALL_LIB_DIR) + MINSTALL_LIB_DIR=`echo $(INSTALL_LIB_DIR) | sed -e 'sX^\([a-z]\):X/\1Xg'` ; \ +@@ -213,7 +213,7 @@ + # (cd $(DESTDIR)$(INSTALL_LIB_DIR)/gcl-tk/demos ; \ + # echo '(load "../tkl.o")(TK::GET-AUTOLOADS (directory "*.lisp"))' | ../../$(PORTDIR)/$(FLISP)$(EXE)) ; fi +- if test "$(EMACS_SITE_LISP)" != "" ; then (cd elisp ; $(MAKE) install DESTDIR=$(DESTDIR)) ; fi +- if test "$(INFO_DIR)" != "unknown"; then (cd info ; $(MAKE) install DESTDIR=$(DESTDIR)) ; fi +- if test "$(INFO_DIR)" != "unknown"; then (cd xgcl-2 ; $(MAKE) install DESTDIR=$(DESTDIR)) ; fi ++# if test "$(EMACS_SITE_LISP)" != "" ; then (cd elisp ; $(MAKE) install DESTDIR=$(DESTDIR)) ; fi ++# if test "$(INFO_DIR)" != "unknown"; then (cd info ; $(MAKE) install DESTDIR=$(DESTDIR)) ; fi ++# if test "$(INFO_DIR)" != "unknown"; then (cd xgcl-2 ; $(MAKE) install DESTDIR=$(DESTDIR)) ; fi + if gcc --version | grep -i mingw >/dev/null 2>&1 ; then cp COPYING.LIB-2.0 readme-bin.mingw $(prefix) ; fi + if gcc --version | grep -i mingw >/dev/null 2>&1 ; then cp gcl.ico $(prefix)/bin ; fi diff --git a/dev-lisp/gcl/gcl-2.6.13_pre98.ebuild b/dev-lisp/gcl/gcl-2.6.13_pre98.ebuild new file mode 100644 index 000000000000..ed7082d42683 --- /dev/null +++ b/dev-lisp/gcl/gcl-2.6.13_pre98.ebuild @@ -0,0 +1,124 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit elisp-common eutils flag-o-matic + +MY_P="${PN}-Version_2_6_13pre98" +DESCRIPTION="GNU Common Lisp" +HOMEPAGE="https://www.gnu.org/software/gcl/gcl.html" +SRC_URI="http://git.savannah.gnu.org/cgit/gcl.git/snapshot/${MY_P}.tar.gz" + +LICENSE="LGPL-2 GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86" +IUSE="+ansi athena emacs +readline tk X" + +# See bug #205803 +RESTRICT="strip" + +RDEPEND="emacs? ( app-editors/emacs:= ) + readline? ( sys-libs/readline:= ) + athena? ( x11-libs/libXaw ) + dev-libs/gmp + tk? ( dev-lang/tk:= ) + X? ( x11-libs/libXt x11-libs/libXext x11-libs/libXmu x11-libs/libXaw ) + virtual/latex-base" +DEPEND="${RDEPEND} + virtual/texi2dvi + app-text/texi2html + >=sys-devel/autoconf-2.52" + +S="${WORKDIR}"/${PN} + +src_unpack() { + tar --strip-components=1 -xaf "${DISTDIR}/${MY_P}.tar.gz" || die +} + +src_prepare() { + find . -type f -perm /0111 | xargs chmod a-x + chmod a+x add-defs add-defs1 config.guess config.sub configure install.sh + chmod a+x bin/info bin/info1 gcl-tk/gcltksrv.in gcl-tk/ngcltksrv mp/gcclab + chmod a+x o/egrep-def utils/replace xbin/* + + eapply "${FILESDIR}"/${PN}-2.6.13_pre98-makefile.patch + eapply_user + + sed -e 's|"-fomit-frame-pointer"|""|' -i configure +} + +src_configure() { + strip-flags + filter-flags -fstack-protector -fstack-protector-all + # breaks linking on multiple defined syms + #append-cflags $(test-flags-CC -fgnu89-inline) + + local tcl="" + if use tk; then + tcl="--enable-tclconfig=/usr/lib --enable-tkconfig=/usr/lib" + fi + + econf --enable-dynsysgmp \ + --disable-xdr \ + --enable-emacsdir=/usr/share/emacs/site-lisp/gcl \ + $(use_enable readline) \ + $(use_enable ansi) \ + $(use_enable athena xgcl) \ + $(use_with X x) \ + ${tcl} +} + +src_compile() { + emake -j1 + if use athena; then + pushd xgcl-2 > /dev/null + pdflatex dwdoc.tex + popd > /dev/null + fi +} + +src_test() { + local make_ansi_tests_clean="rm -f test.out *.fasl *.o *.so *~ *.fn *.x86f *.fasl *.ufsl" + if use ansi; then + cd ansi-tests + + ( make clean && make test-unixport ) \ + || die "make ansi-tests failed!" + + cat "${FILESDIR}/bootstrap-gcl" \ + | ../unixport/saved_ansi_gcl + + cat "${FILESDIR}/bootstrap-gcl" \ + |sed s/bootstrapped_ansi_gcl/bootstrapped_r_ansi_gcl/g \ + | ./bootstrapped_ansi_gcl + + ( ${make_ansi_tests_clean} && \ + echo "(load \"gclload.lsp\")" \ + | ./bootstrapped_r_ansi_gcl ) \ + || die "Phase 2, bootstraped compiler failed in tests" + fi +} + +src_install() { + emake DESTDIR="${D}" install + + rm elisp/add-defaults.el + dodoc readme ChangeLog doc/* info/*.pdf + doman man/man1/gcl.1 + dodoc -r info/gcl-si info/gcl-tk + + if use emacs; then + elisp-site-file-install "${FILESDIR}"/64${PN}-gentoo.el + elisp-install ${PN} elisp/*.el + fi + + use athena && dodoc xgcl-2/*.pdf +} + +pkg_postinst() { + use emacs && elisp-site-regen +} + +pkg_postrm() { + use emacs && elisp-site-regen +} |