Gentoo Archives: gentoo-commits

From: Panagiotis Christopoulos <pchrist@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] dev/pchrist:master commit in: dev-lang/gnu-smalltalk/files/, dev-lang/gnu-smalltalk/
Date: Mon, 01 Jul 2013 20:35:21
Message-Id: 1372710856.b3b8a4ed2130267e520ddf5ef8687e575fa3bdd4.pchrist@gentoo
1 commit: b3b8a4ed2130267e520ddf5ef8687e575fa3bdd4
2 Author: Panagiotis Christopoulos (pchrist) <pchrist <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jul 1 20:34:16 2013 +0000
4 Commit: Panagiotis Christopoulos <pchrist <AT> gentoo <DOT> org>
5 CommitDate: Mon Jul 1 20:34:16 2013 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=dev/pchrist.git;a=commit;h=b3b8a4ed
7
8 dev-lang/gnu-smalltalk: some preliminary work on 3.2.5
9
10 Package-Manager: portage-2.1.12.11
11 Manifest-Sign-Key: 3AC579B91BC03656
12
13 ---
14 dev-lang/gnu-smalltalk/Manifest | 18 +++++
15 .../gnu-smalltalk/files/50gnu-smalltalk-gentoo.el | 7 ++
16 .../files/SequenceableCollection-size-3.2.4.patch | 23 +++++++
17 dev-lang/gnu-smalltalk/gnu-smalltalk-3.2.4.ebuild | 73 ++++++++++++++++++++
18 dev-lang/gnu-smalltalk/gnu-smalltalk-3.2.5.ebuild | 80 ++++++++++++++++++++++
19 dev-lang/gnu-smalltalk/metadata.xml | 14 ++++
20 6 files changed, 215 insertions(+)
21
22 diff --git a/dev-lang/gnu-smalltalk/Manifest b/dev-lang/gnu-smalltalk/Manifest
23 new file mode 100644
24 index 0000000..22a688a
25 --- /dev/null
26 +++ b/dev-lang/gnu-smalltalk/Manifest
27 @@ -0,0 +1,18 @@
28 +-----BEGIN PGP SIGNED MESSAGE-----
29 +Hash: SHA256
30 +
31 +AUX 50gnu-smalltalk-gentoo.el 268 SHA256 acfa1581fd8871a0a7ab610afbf678ecbfbe1b2c7b844316b96aebf43dd5b141 SHA512 0341a9a35c17987ab7b93badf1b7ebf31b5a38df66d372d6a26eb49f5a9fec881e1886024a1b5ffa87cafb37aaef483201bb10827c121c782e4f554961bb9c41 WHIRLPOOL a1b1589288688191d2b3988662967557b04f3ffe02dc8cebcf35ff4c7290589792f6832a22e79dca8a77ff8aee1d489cb3d3c73cbffc8d5d2b6a91206649515f
32 +AUX SequenceableCollection-size-3.2.4.patch 418 SHA256 3a00b682b511427a2ad116e624e23c25a010e0390947af301c97fe78e7b01fc7 SHA512 999362b5b9a809194f8dca6463d6a870038c5c9ae37172f49634a8895afc78872d614f356468a8f02190d2d1fdeddbbd6ab664a317daf6f45bd055beb4b22f82 WHIRLPOOL 9c0b186e5e08ad3441b5fdfed04d515b925a29fc08a5de7e2969d6e3fda8760a52f238bc9e804ba151fc92555afec12c3ec372cb7af813a647f9199c3073183d
33 +DIST smalltalk-3.2.4.tar.gz 5877496 SHA256 901cc7090a1fa44bc60900a970d207de4aa3bdfdce72bea55114e243bc1eb1b3 SHA512 0854e95fb29c79a9844304651e9b2e3997ced88d7f1a704345f72aedfbae1562df0a2a2cc92ed7909e0ce22e275bb37d1592fe16079e3895cd8b79f3212cea3e WHIRLPOOL 461f07278737fbb0e5f08d18ef4f5c3678a19aef61c895e7ede7c1f74720e99bc44d347730e68a94827abfaf24c69317e2acc67ccc4bdc8cdb05ec164d5894cb
34 +DIST smalltalk-3.2.5.tar.gz 5779293 SHA256 06e574e818ec49f0555d948ae53b1453d8c1df59ef597dad911a4fd1ffba1cce SHA512 385e5fba2acb8870759e5178282210c09c45685d0cf776bc50f4ed10c9afacf9164547ba8099ea3ed9a92a2a253aa9c2b011a7a9f2dff47ea9cfdf3b42029ebc WHIRLPOOL 3c7f1bd451eae1372d06196e1dc8408a83d8a717e67f09be4b6172d0243bca71a11d298ac9e5946a2599c6322b2ef7c204fd54d41c818151661c04af4aa89f08
35 +EBUILD gnu-smalltalk-3.2.4.ebuild 1698 SHA256 153ba04b4144ca739e2f02275b932866e5acf31f3bb8cf6c7752d374907d1804 SHA512 41f1ae6462d610b2cbbba0fac5ecb772c80596d6c1fbf2fd5e93f48bfb8ec4791798ee1841aafcba7d2f7acf4d059ec99963d10cc4376f5e9396fd7a71f47041 WHIRLPOOL 033e742e8ce40f45fcdcc0e0a8403b8820bd842681554b3671af211d00bdf9b9e4c5dce66f43385624826e2e8230925ab22974f952007921a1574d5d81b9527f
36 +EBUILD gnu-smalltalk-3.2.5.ebuild 1816 SHA256 6ae9d3959a57508de7208f76251a6b723957372fc6a9fba1c61c45f9829ff3a0 SHA512 0cdbe4486d7a14a0b92592c0be9d55097480ef5144226952c7f991966e86660ad9581594c28251fc398f244f0fca1d9478bb6fbcbd24c5efae89511f44906d46 WHIRLPOOL 7281d7f3041459209264be0abe0ebd6dd64c5108852751738d331dbedb620feb7b2e20efbf4c7e5a12b6d9722f99651fd685ad5162acafa5c0cd08e9a377151d
37 +MISC metadata.xml 538 SHA256 275f25b6537ecf6cb500b326347ce348d27f1767b0a74cb865d1f3774666c7a4 SHA512 041d8e2ac1dbc7e7ad8f9101b860ff5c1e0b48019c87abced1973c4a3d9e68762537a91ba9366a8727fe6dd07a877aa3da1cbc12105e8ac3d5ef4d298018dc1d WHIRLPOOL 8878829d4b51bf733b08175a5ec400009c00e4b7f6f482775772bef7fd14af427323b751d8e07836a74e4224d4c727ec0abb6efa6131c69b230265b816cbd26a
38 +-----BEGIN PGP SIGNATURE-----
39 +Version: GnuPG v2.0.20 (GNU/Linux)
40 +
41 +iIoEAREIAEoFAlHR58hDFIAAAAAAEgAocGNocmlzdEBnZW50b28ub3JnMEE4ODEw
42 +MzBDRDQ0RkRCMkEwMDFFNzZFM0FDNTc5QjkxQkMwMzY1NgAKCRA6xXm5G8A2VvWx
43 +AJwM7cOGtjPHnInv+mei5T1tcFNLrgCeKAhbuLezn9zsNU9SCGTagnFjJVo=
44 +=KSHH
45 +-----END PGP SIGNATURE-----
46
47 diff --git a/dev-lang/gnu-smalltalk/files/50gnu-smalltalk-gentoo.el b/dev-lang/gnu-smalltalk/files/50gnu-smalltalk-gentoo.el
48 new file mode 100644
49 index 0000000..e9e18d4
50 --- /dev/null
51 +++ b/dev-lang/gnu-smalltalk/files/50gnu-smalltalk-gentoo.el
52 @@ -0,0 +1,7 @@
53 +
54 +;;; gnu-smalltalk site-lisp configuration
55 +
56 +(add-to-list 'load-path "@SITELISP@")
57 +(autoload 'smalltalk-mode "smalltalk-mode" "Autoload for smalltalk-mode" t)
58 +(autoload 'gst "gst-mode" "Autoload for gst" t)
59 +(add-to-list 'auto-mode-alist '("\\.st\\'" . smalltalk-mode))
60
61 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
62 new file mode 100644
63 index 0000000..1842e46
64 --- /dev/null
65 +++ b/dev-lang/gnu-smalltalk/files/SequenceableCollection-size-3.2.4.patch
66 @@ -0,0 +1,23 @@
67 +--- a/kernel/SeqCollect.st
68 ++++ b/kernel/SeqCollect.st
69 +@@ -1104,9 +1104,16 @@ some access and manipulation methods.'>
70 + ^count
71 + ]
72 +
73 ++ size [
74 ++ "Answer a dummy size of 0, so that SequenceableCollection>>#do: works."
75 ++
76 ++ <category: 'testing collections'>
77 ++ ^0
78 ++ ]
79 ++
80 + growSize [
81 + <category: 'private methods'>
82 +- ^self size
83 ++ ^(self size max: 8)
84 + ]
85 +
86 + swap: anIndex with: anotherIndex [
87 +--
88 +1.7.2.5
89 +
90
91 diff --git a/dev-lang/gnu-smalltalk/gnu-smalltalk-3.2.4.ebuild b/dev-lang/gnu-smalltalk/gnu-smalltalk-3.2.4.ebuild
92 new file mode 100644
93 index 0000000..fd21cde
94 --- /dev/null
95 +++ b/dev-lang/gnu-smalltalk/gnu-smalltalk-3.2.4.ebuild
96 @@ -0,0 +1,73 @@
97 +# Copyright 1999-2012 Gentoo Foundation
98 +# Distributed under the terms of the GNU General Public License v2
99 +# $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 $
100 +
101 +EAPI="3"
102 +
103 +inherit elisp-common flag-o-matic eutils multilib
104 +
105 +DESCRIPTION="GNU Smalltalk"
106 +HOMEPAGE="http://smalltalk.gnu.org"
107 +SRC_URI="mirror://gnu/smalltalk/smalltalk-${PV}.tar.gz"
108 +LICENSE="GPL-2"
109 +SLOT="0"
110 +KEYWORDS="~amd64 ~x86"
111 +IUSE="tk readline emacs gtk gmp"
112 +
113 +DEPEND="app-arch/zip
114 + sys-libs/gdbm
115 + sys-apps/debianutils
116 + dev-libs/libsigsegv
117 + virtual/libffi
118 + emacs? ( virtual/emacs )
119 + readline? ( sys-libs/readline )
120 + tk? ( dev-lang/tk )
121 + gtk? ( =x11-libs/gtk+-2* )
122 + gmp? ( dev-libs/gmp )"
123 +RDEPEND=""
124 +
125 +S="${WORKDIR}/smalltalk-${PV}"
126 +
127 +SITEFILE=50gnu-smalltalk-gentoo.el
128 +
129 +src_prepare() {
130 + epatch "${FILESDIR}"/SequenceableCollection-size-3.2.4.patch
131 +}
132 +
133 +src_configure() {
134 + replace-flags '-O3' '-O2'
135 + econf \
136 + --libdir=/usr/$(get_libdir) \
137 + --with-system-libsigsegv \
138 + --with-system-libffi \
139 + --with-system-libltdl \
140 + $(use_with emacs emacs) \
141 + $(use_with readline readline) \
142 + $(use_with gmp gmp) \
143 + $(use_with tk tcl /usr/$(get_libdir)) \
144 + $(use_with tk tk /usr/$(get_libdir)) \
145 + $(use_enable gtk gtk)
146 +}
147 +
148 +src_compile() {
149 + emake || die "emake failed"
150 + use emacs && elisp-compile *.el
151 +}
152 +
153 +src_install() {
154 + emake DESTDIR="${D}" install || die
155 + dodoc AUTHORS COPYING* ChangeLog NEWS README THANKS TODO
156 + if use emacs; then
157 + elisp-install "${PN}" *.el *.elc
158 + elisp-site-file-install "${FILESDIR}/${SITEFILE}"
159 + fi
160 + fperms 0444 /usr/share/smalltalk/packages.xml
161 +}
162 +
163 +pkg_postinst() {
164 + use emacs && elisp-site-regen
165 +}
166 +
167 +pkg_postrm() {
168 + use emacs && elisp-site-regen
169 +}
170
171 diff --git a/dev-lang/gnu-smalltalk/gnu-smalltalk-3.2.5.ebuild b/dev-lang/gnu-smalltalk/gnu-smalltalk-3.2.5.ebuild
172 new file mode 100644
173 index 0000000..496daf8
174 --- /dev/null
175 +++ b/dev-lang/gnu-smalltalk/gnu-smalltalk-3.2.5.ebuild
176 @@ -0,0 +1,80 @@
177 +# Copyright 1999-2013 Gentoo Foundation
178 +# Distributed under the terms of the GNU General Public License v2
179 +# $Header: $
180 +
181 +EAPI="3"
182 +
183 +inherit elisp-common flag-o-matic eutils multilib
184 +
185 +DESCRIPTION="GNU Smalltalk"
186 +HOMEPAGE="http://smalltalk.gnu.org"
187 +SRC_URI="mirror://gnu/smalltalk/smalltalk-${PV}.tar.gz"
188 +LICENSE="GPL-2"
189 +SLOT="0"
190 +# don't forget to keyword on more arches ???
191 +KEYWORDS="~amd64 ~x86"
192 +IUSE="tk readline emacs gtk gmp"
193 +
194 +DEPEND="app-arch/zip
195 + sys-libs/gdbm
196 + sys-apps/debianutils
197 + dev-libs/libsigsegv
198 + virtual/libffi
199 + emacs? ( virtual/emacs )
200 + readline? ( sys-libs/readline )
201 + tk? ( dev-lang/tk )
202 + gtk? ( =x11-libs/gtk+-2* )
203 + gmp? ( dev-libs/gmp )"
204 +RDEPEND=""
205 +
206 +# TODO:
207 +# need to check dependencies and automagic stuff
208 +# need to check all flags. With tk on it fails to compile.
209 +# need to check what is the old patch (3.2.4)
210 +# pchrist, 01Jul13
211 +
212 +S="${WORKDIR}/smalltalk-${PV}"
213 +
214 +SITEFILE=50gnu-smalltalk-gentoo.el
215 +
216 +#src_prepare() {
217 +# epatch "${FILESDIR}"/SequenceableCollection-size-3.2.4.patch
218 +#}
219 +
220 +src_configure() {
221 + replace-flags '-O3' '-O2'
222 + econf \
223 + --libdir=/usr/$(get_libdir) \
224 + --with-system-libsigsegv \
225 + --with-system-libffi \
226 + --with-system-libltdl \
227 + $(use_with emacs emacs) \
228 + $(use_with readline readline) \
229 + $(use_with gmp gmp) \
230 + $(use_with tk tcl /usr/$(get_libdir)) \
231 + $(use_with tk tk /usr/$(get_libdir)) \
232 + $(use_enable gtk gtk)
233 +}
234 +
235 +src_compile() {
236 + emake || die "emake failed"
237 + use emacs && elisp-compile *.el
238 +}
239 +
240 +src_install() {
241 + emake DESTDIR="${D}" install || die
242 + dodoc AUTHORS COPYING* ChangeLog NEWS README THANKS TODO
243 + if use emacs; then
244 + elisp-install "${PN}" *.el *.elc
245 + elisp-site-file-install "${FILESDIR}/${SITEFILE}"
246 + fi
247 + fperms 0444 /usr/share/smalltalk/packages.xml
248 +}
249 +
250 +pkg_postinst() {
251 + use emacs && elisp-site-regen
252 +}
253 +
254 +pkg_postrm() {
255 + use emacs && elisp-site-regen
256 +}
257
258 diff --git a/dev-lang/gnu-smalltalk/metadata.xml b/dev-lang/gnu-smalltalk/metadata.xml
259 new file mode 100644
260 index 0000000..4b95812
261 --- /dev/null
262 +++ b/dev-lang/gnu-smalltalk/metadata.xml
263 @@ -0,0 +1,14 @@
264 +<?xml version="1.0" encoding="UTF-8"?>
265 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
266 +<pkgmetadata>
267 + <maintainer>
268 + <email>pchrist@g.o</email>
269 + </maintainer>
270 + <longdescription>
271 + GNU Smalltalk is a free implementation of the Smalltalk-80
272 + language which runs on most versions on Unix and, in general,
273 + everywhere you can find a POSIX-compliance library. An uncommon
274 + feature of it is that it is well-versed to scripting tasks and
275 + headless processing.
276 + </longdescription>
277 +</pkgmetadata>