diff options
author | 2013-07-01 23:34:16 +0300 | |
---|---|---|
committer | 2013-07-01 23:34:16 +0300 | |
commit | b3b8a4ed2130267e520ddf5ef8687e575fa3bdd4 (patch) | |
tree | f571a5a8c987e5d7eb22c232aad2697bf330b0d9 | |
parent | test test test (diff) | |
download | pchrist-b3b8a4ed2130267e520ddf5ef8687e575fa3bdd4.tar.gz pchrist-b3b8a4ed2130267e520ddf5ef8687e575fa3bdd4.tar.bz2 pchrist-b3b8a4ed2130267e520ddf5ef8687e575fa3bdd4.zip |
dev-lang/gnu-smalltalk: some preliminary work on 3.2.5
Package-Manager: portage-2.1.12.11
Manifest-Sign-Key: 3AC579B91BC03656
-rw-r--r-- | dev-lang/gnu-smalltalk/Manifest | 18 | ||||
-rw-r--r-- | dev-lang/gnu-smalltalk/files/50gnu-smalltalk-gentoo.el | 7 | ||||
-rw-r--r-- | dev-lang/gnu-smalltalk/files/SequenceableCollection-size-3.2.4.patch | 23 | ||||
-rw-r--r-- | dev-lang/gnu-smalltalk/gnu-smalltalk-3.2.4.ebuild | 73 | ||||
-rw-r--r-- | dev-lang/gnu-smalltalk/gnu-smalltalk-3.2.5.ebuild | 80 | ||||
-rw-r--r-- | dev-lang/gnu-smalltalk/metadata.xml | 14 |
6 files changed, 215 insertions, 0 deletions
diff --git a/dev-lang/gnu-smalltalk/Manifest b/dev-lang/gnu-smalltalk/Manifest new file mode 100644 index 0000000..22a688a --- /dev/null +++ b/dev-lang/gnu-smalltalk/Manifest @@ -0,0 +1,18 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA256 + +AUX 50gnu-smalltalk-gentoo.el 268 SHA256 acfa1581fd8871a0a7ab610afbf678ecbfbe1b2c7b844316b96aebf43dd5b141 SHA512 0341a9a35c17987ab7b93badf1b7ebf31b5a38df66d372d6a26eb49f5a9fec881e1886024a1b5ffa87cafb37aaef483201bb10827c121c782e4f554961bb9c41 WHIRLPOOL a1b1589288688191d2b3988662967557b04f3ffe02dc8cebcf35ff4c7290589792f6832a22e79dca8a77ff8aee1d489cb3d3c73cbffc8d5d2b6a91206649515f +AUX SequenceableCollection-size-3.2.4.patch 418 SHA256 3a00b682b511427a2ad116e624e23c25a010e0390947af301c97fe78e7b01fc7 SHA512 999362b5b9a809194f8dca6463d6a870038c5c9ae37172f49634a8895afc78872d614f356468a8f02190d2d1fdeddbbd6ab664a317daf6f45bd055beb4b22f82 WHIRLPOOL 9c0b186e5e08ad3441b5fdfed04d515b925a29fc08a5de7e2969d6e3fda8760a52f238bc9e804ba151fc92555afec12c3ec372cb7af813a647f9199c3073183d +DIST smalltalk-3.2.4.tar.gz 5877496 SHA256 901cc7090a1fa44bc60900a970d207de4aa3bdfdce72bea55114e243bc1eb1b3 SHA512 0854e95fb29c79a9844304651e9b2e3997ced88d7f1a704345f72aedfbae1562df0a2a2cc92ed7909e0ce22e275bb37d1592fe16079e3895cd8b79f3212cea3e WHIRLPOOL 461f07278737fbb0e5f08d18ef4f5c3678a19aef61c895e7ede7c1f74720e99bc44d347730e68a94827abfaf24c69317e2acc67ccc4bdc8cdb05ec164d5894cb +DIST smalltalk-3.2.5.tar.gz 5779293 SHA256 06e574e818ec49f0555d948ae53b1453d8c1df59ef597dad911a4fd1ffba1cce SHA512 385e5fba2acb8870759e5178282210c09c45685d0cf776bc50f4ed10c9afacf9164547ba8099ea3ed9a92a2a253aa9c2b011a7a9f2dff47ea9cfdf3b42029ebc WHIRLPOOL 3c7f1bd451eae1372d06196e1dc8408a83d8a717e67f09be4b6172d0243bca71a11d298ac9e5946a2599c6322b2ef7c204fd54d41c818151661c04af4aa89f08 +EBUILD gnu-smalltalk-3.2.4.ebuild 1698 SHA256 153ba04b4144ca739e2f02275b932866e5acf31f3bb8cf6c7752d374907d1804 SHA512 41f1ae6462d610b2cbbba0fac5ecb772c80596d6c1fbf2fd5e93f48bfb8ec4791798ee1841aafcba7d2f7acf4d059ec99963d10cc4376f5e9396fd7a71f47041 WHIRLPOOL 033e742e8ce40f45fcdcc0e0a8403b8820bd842681554b3671af211d00bdf9b9e4c5dce66f43385624826e2e8230925ab22974f952007921a1574d5d81b9527f +EBUILD gnu-smalltalk-3.2.5.ebuild 1816 SHA256 6ae9d3959a57508de7208f76251a6b723957372fc6a9fba1c61c45f9829ff3a0 SHA512 0cdbe4486d7a14a0b92592c0be9d55097480ef5144226952c7f991966e86660ad9581594c28251fc398f244f0fca1d9478bb6fbcbd24c5efae89511f44906d46 WHIRLPOOL 7281d7f3041459209264be0abe0ebd6dd64c5108852751738d331dbedb620feb7b2e20efbf4c7e5a12b6d9722f99651fd685ad5162acafa5c0cd08e9a377151d +MISC metadata.xml 538 SHA256 275f25b6537ecf6cb500b326347ce348d27f1767b0a74cb865d1f3774666c7a4 SHA512 041d8e2ac1dbc7e7ad8f9101b860ff5c1e0b48019c87abced1973c4a3d9e68762537a91ba9366a8727fe6dd07a877aa3da1cbc12105e8ac3d5ef4d298018dc1d WHIRLPOOL 8878829d4b51bf733b08175a5ec400009c00e4b7f6f482775772bef7fd14af427323b751d8e07836a74e4224d4c727ec0abb6efa6131c69b230265b816cbd26a +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.20 (GNU/Linux) + +iIoEAREIAEoFAlHR58hDFIAAAAAAEgAocGNocmlzdEBnZW50b28ub3JnMEE4ODEw +MzBDRDQ0RkRCMkEwMDFFNzZFM0FDNTc5QjkxQkMwMzY1NgAKCRA6xXm5G8A2VvWx +AJwM7cOGtjPHnInv+mei5T1tcFNLrgCeKAhbuLezn9zsNU9SCGTagnFjJVo= +=KSHH +-----END PGP SIGNATURE----- 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 0000000..e9e18d4 --- /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/SequenceableCollection-size-3.2.4.patch b/dev-lang/gnu-smalltalk/files/SequenceableCollection-size-3.2.4.patch new file mode 100644 index 0000000..1842e46 --- /dev/null +++ b/dev-lang/gnu-smalltalk/files/SequenceableCollection-size-3.2.4.patch @@ -0,0 +1,23 @@ +--- a/kernel/SeqCollect.st ++++ b/kernel/SeqCollect.st +@@ -1104,9 +1104,16 @@ some access and manipulation methods.'> + ^count + ] + ++ size [ ++ "Answer a dummy size of 0, so that SequenceableCollection>>#do: works." ++ ++ <category: 'testing collections'> ++ ^0 ++ ] ++ + growSize [ + <category: 'private methods'> +- ^self size ++ ^(self size max: 8) + ] + + swap: anIndex with: anotherIndex [ +-- +1.7.2.5 + diff --git a/dev-lang/gnu-smalltalk/gnu-smalltalk-3.2.4.ebuild b/dev-lang/gnu-smalltalk/gnu-smalltalk-3.2.4.ebuild new file mode 100644 index 0000000..fd21cde --- /dev/null +++ b/dev-lang/gnu-smalltalk/gnu-smalltalk-3.2.4.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/gnu-smalltalk/gnu-smalltalk-3.2.4.ebuild,v 1.4 2012/06/06 03:07:09 zmedico Exp $ + +EAPI="3" + +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() { + epatch "${FILESDIR}"/SequenceableCollection-size-3.2.4.patch +} + +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 +} + +pkg_postinst() { + use emacs && elisp-site-regen +} + +pkg_postrm() { + use emacs && elisp-site-regen +} 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 0000000..496daf8 --- /dev/null +++ b/dev-lang/gnu-smalltalk/gnu-smalltalk-3.2.5.ebuild @@ -0,0 +1,80 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="3" + +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" +# don't forget to keyword on more arches ??? +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="" + +# TODO: +# need to check dependencies and automagic stuff +# need to check all flags. With tk on it fails to compile. +# need to check what is the old patch (3.2.4) +# pchrist, 01Jul13 + +S="${WORKDIR}/smalltalk-${PV}" + +SITEFILE=50gnu-smalltalk-gentoo.el + +#src_prepare() { +# epatch "${FILESDIR}"/SequenceableCollection-size-3.2.4.patch +#} + +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 +} + +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 0000000..4b95812 --- /dev/null +++ b/dev-lang/gnu-smalltalk/metadata.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>pchrist@gentoo.org</email> + </maintainer> + <longdescription> + 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. + </longdescription> +</pkgmetadata> |