From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- dev-lang/gnu-smalltalk/Manifest | 7 ++ .../gnu-smalltalk/files/50gnu-smalltalk-gentoo.el | 7 ++ .../files/gnu-smalltalk-3.2_use-result.patch | 16 +++++ dev-lang/gnu-smalltalk/gnu-smalltalk-3.2.5.ebuild | 80 ++++++++++++++++++++++ dev-lang/gnu-smalltalk/metadata.xml | 14 ++++ 5 files changed, 124 insertions(+) create mode 100644 dev-lang/gnu-smalltalk/Manifest create mode 100644 dev-lang/gnu-smalltalk/files/50gnu-smalltalk-gentoo.el create mode 100644 dev-lang/gnu-smalltalk/files/gnu-smalltalk-3.2_use-result.patch create mode 100644 dev-lang/gnu-smalltalk/gnu-smalltalk-3.2.5.ebuild create mode 100644 dev-lang/gnu-smalltalk/metadata.xml (limited to 'dev-lang/gnu-smalltalk') diff --git a/dev-lang/gnu-smalltalk/Manifest b/dev-lang/gnu-smalltalk/Manifest new file mode 100644 index 000000000000..be0a38ee95fb --- /dev/null +++ b/dev-lang/gnu-smalltalk/Manifest @@ -0,0 +1,7 @@ +AUX 50gnu-smalltalk-gentoo.el 268 SHA256 acfa1581fd8871a0a7ab610afbf678ecbfbe1b2c7b844316b96aebf43dd5b141 SHA512 0341a9a35c17987ab7b93badf1b7ebf31b5a38df66d372d6a26eb49f5a9fec881e1886024a1b5ffa87cafb37aaef483201bb10827c121c782e4f554961bb9c41 WHIRLPOOL a1b1589288688191d2b3988662967557b04f3ffe02dc8cebcf35ff4c7290589792f6832a22e79dca8a77ff8aee1d489cb3d3c73cbffc8d5d2b6a91206649515f +AUX gnu-smalltalk-3.2_use-result.patch 725 SHA256 61b0245337e60951af85b5e0102da47cc1852ed2a1f9338b072426a492fd7ed8 SHA512 df13803c96bea2887a04631a0aa37e58f18aed83b628d1d696aaa6033ca623920714f80badeb0ef678cf984b27a8a7f72b9ddcd97f770ddd870cc0dfbaa10f74 WHIRLPOOL 00701895ca074ac73b4d74b3b1296fc93e71d637c6de35d5f65cd8a41a66ca638dd3726d019ca7394ae746096bcfae9c2e1ec14e7090545589f8079d6d662334 +DIST smalltalk-3.2.5.tar.gz 5779293 SHA256 06e574e818ec49f0555d948ae53b1453d8c1df59ef597dad911a4fd1ffba1cce SHA512 385e5fba2acb8870759e5178282210c09c45685d0cf776bc50f4ed10c9afacf9164547ba8099ea3ed9a92a2a253aa9c2b011a7a9f2dff47ea9cfdf3b42029ebc WHIRLPOOL 3c7f1bd451eae1372d06196e1dc8408a83d8a717e67f09be4b6172d0243bca71a11d298ac9e5946a2599c6322b2ef7c204fd54d41c818151661c04af4aa89f08 +EBUILD gnu-smalltalk-3.2.5.ebuild 1835 SHA256 8991989855c47b56c4ba30489183a55e017abce429ad5e0c1b6bd6c7953a9071 SHA512 18650b26f6e492600b0bf89d0837d9e5d8a969617efde75f66e3fdea56653793e777f0ec1389ae4c3959b847c9a54483b4181dc768a1f7c43a5387118eb5b29f WHIRLPOOL edddbece5f053c6340eb3d5861484513c73f7756d9600431285157e552c1c41d77ed77b5b276445d0a51bd49421b7f9eb49c2063f1489d3acc0878c7bff6b0c5 +MISC ChangeLog 3010 SHA256 41cf772b495cfef9b8b21f6f4ef2d5954025dfb1021b520b09e1d63108bf2a84 SHA512 b38b25189a69603d91b5b4981d23b97f32dd7d5e83c4173a1fed5b27e32ab7f2b014c808e7a245d7706b167ffab2a8c56e9923c2a29d3f6fb32448d8f3635b2e WHIRLPOOL b5776c5d54b029e91f9ad6af0ec58b5328f1f672d241cab10bcc2883d063d498b60c19b2df5c832b78ecbceb1ee0bea3a6be611581118640c6664d2330c793d4 +MISC ChangeLog-2015 9059 SHA256 c9e1fa089bb925823926c10446860c395fd219a73abfec69fa1ef0071affef3f SHA512 a4c5deb273e2a8d981542a837094ebd831323355f04ed1e075d270bf888a29aa4efa047de8e63e5edd127a2eaebfa98142da35ff9ad115c15f4124dfd69ac1d9 WHIRLPOOL 7520e1a7473347ca9977f6857915858c06cafec50aa24081118b9d8f80cd92cb891dc8d957f2556a4900693e301d82e6d66dabd8ef409978f4247aa8a00c1502 +MISC metadata.xml 552 SHA256 7bc76b0b8968ace8fb16c906ffeca43451241a5fc6e50ebebad8cde707acc686 SHA512 7f57e9330d1087032023e2d1b6f01bcea7e2c8126bfe93375b9f1f469eed40deb72680cb4897edaeca6b3650213bf1c2f1fcc47f195c4efd645eaeeec0d86885 WHIRLPOOL c7063fd40c0392bb2aa7b6c42f0623aecbe362e2a07ac805070b943a2e8caace10aed3dd2218e89eee21b891c8237b540508a0a47f8918bcd5346d367aec0fec diff --git a/dev-lang/gnu-smalltalk/files/50gnu-smalltalk-gentoo.el b/dev-lang/gnu-smalltalk/files/50gnu-smalltalk-gentoo.el new file mode 100644 index 000000000000..e9e18d43bb3c --- /dev/null +++ b/dev-lang/gnu-smalltalk/files/50gnu-smalltalk-gentoo.el @@ -0,0 +1,7 @@ + +;;; gnu-smalltalk site-lisp configuration + +(add-to-list 'load-path "@SITELISP@") +(autoload 'smalltalk-mode "smalltalk-mode" "Autoload for smalltalk-mode" t) +(autoload 'gst "gst-mode" "Autoload for gst" t) +(add-to-list 'auto-mode-alist '("\\.st\\'" . smalltalk-mode)) diff --git a/dev-lang/gnu-smalltalk/files/gnu-smalltalk-3.2_use-result.patch b/dev-lang/gnu-smalltalk/files/gnu-smalltalk-3.2_use-result.patch new file mode 100644 index 000000000000..b9f9eb67c75f --- /dev/null +++ b/dev-lang/gnu-smalltalk/files/gnu-smalltalk-3.2_use-result.patch @@ -0,0 +1,16 @@ +--- config.h.in 2013-04-07 22:52:21.000000000 -0700 ++++ config.h.in 2016-06-20 16:46:46.560891256 -0700 +@@ -879,6 +879,13 @@ + #define below would cause a syntax error. */ + #undef _UINT64_T + ++/* Kludgey fix for Gentoo bug #492710, caused by improper use of the Tcl API. ++ * Upstream should be using Tcl_SetObjResult, Tcl_GetObjResult, and/or ++ * Tcl_GetStringResult. This is the simplest way for us to fix it, and should ++ * be removed as soon as GST uses the Tcl interface correctly. ++ */ ++#define USE_INTERP_RESULT 1 ++ + /* Define for Solaris 2.5.1 so the uint8_t typedef from , + , or is not used. If the typedef were allowed, the + #define below would cause a syntax error. */ diff --git a/dev-lang/gnu-smalltalk/gnu-smalltalk-3.2.5.ebuild b/dev-lang/gnu-smalltalk/gnu-smalltalk-3.2.5.ebuild new file mode 100644 index 000000000000..6fe332837688 --- /dev/null +++ b/dev-lang/gnu-smalltalk/gnu-smalltalk-3.2.5.ebuild @@ -0,0 +1,80 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +inherit elisp-common flag-o-matic eutils multilib + +DESCRIPTION="GNU Smalltalk" +HOMEPAGE="http://smalltalk.gnu.org" +SRC_URI="mirror://gnu/smalltalk/smalltalk-${PV}.tar.gz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="tk readline emacs gtk gmp" + +DEPEND="app-arch/zip + sys-libs/gdbm + sys-apps/debianutils + dev-libs/libsigsegv + virtual/libffi + emacs? ( virtual/emacs ) + readline? ( sys-libs/readline ) + tk? ( dev-lang/tk ) + gtk? ( =x11-libs/gtk+-2* ) + gmp? ( dev-libs/gmp )" +RDEPEND="" + +S="${WORKDIR}/smalltalk-${PV}" + +SITEFILE=50gnu-smalltalk-gentoo.el + +src_prepare() { + # fix misuse of the Tcl API, bug 492710 + epatch "${FILESDIR}"/${PN}-3.2_use-result.patch + default +} + +src_configure() { + replace-flags '-O3' '-O2' + econf \ + --libdir=/usr/$(get_libdir) \ + --with-system-libsigsegv \ + --with-system-libffi \ + --with-system-libltdl \ + $(use_with emacs emacs) \ + $(use_with readline readline) \ + $(use_with gmp gmp) \ + $(use_with tk tcl /usr/$(get_libdir)) \ + $(use_with tk tk /usr/$(get_libdir)) \ + $(use_enable gtk gtk) +} + +src_compile() { + emake || die "emake failed" + use emacs && elisp-compile *.el +} + +src_install() { + emake DESTDIR="${D}" install || die + dodoc AUTHORS COPYING* ChangeLog NEWS README THANKS TODO + if use emacs; then + elisp-install "${PN}" *.el *.elc + elisp-site-file-install "${FILESDIR}/${SITEFILE}" + fi + fperms 0444 /usr/share/smalltalk/packages.xml + # Fix QA notice complaining about dangling symlink. + # There's probably a better way to do this but I couldn't find it. + pushd "${D}"/usr/share/man/man1 + rm gst-reload.1 + ln -s $(find . -name "gst-load*") gst-reload.1 + popd +} + +pkg_postinst() { + use emacs && elisp-site-regen +} + +pkg_postrm() { + use emacs && elisp-site-regen +} diff --git a/dev-lang/gnu-smalltalk/metadata.xml b/dev-lang/gnu-smalltalk/metadata.xml new file mode 100644 index 000000000000..c2284a39df7e --- /dev/null +++ b/dev-lang/gnu-smalltalk/metadata.xml @@ -0,0 +1,14 @@ + + + + + pchrist@gentoo.org + + + GNU Smalltalk is a free implementation of the Smalltalk-80 + language which runs on most versions on Unix and, in general, + everywhere you can find a POSIX-compliance library. An uncommon + feature of it is that it is well-versed to scripting tasks and + headless processing. + + -- cgit v1.2.3