summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuis Francisco Araujo <araujo@gentoo.org>2006-12-18 08:30:17 +0000
committerLuis Francisco Araujo <araujo@gentoo.org>2006-12-18 08:30:17 +0000
commitcb0928e59578336459ed744fc54df52385e1ffa7 (patch)
treec65721a80b62374844b161fd8de8099fae8fad82 /dev-lang
parentcorrected date of mask for net-p2p/phex (diff)
downloadgentoo-2-cb0928e59578336459ed744fc54df52385e1ffa7.tar.gz
gentoo-2-cb0928e59578336459ed744fc54df52385e1ffa7.tar.bz2
gentoo-2-cb0928e59578336459ed744fc54df52385e1ffa7.zip
Adding new gnu-smalltalk version.
(Portage version: 2.1.2_rc3-r6)
Diffstat (limited to 'dev-lang')
-rw-r--r--dev-lang/gnu-smalltalk/ChangeLog8
-rw-r--r--dev-lang/gnu-smalltalk/files/digest-gnu-smalltalk-2.3.13
-rw-r--r--dev-lang/gnu-smalltalk/files/gst-stack-2.3.1.patch22
-rw-r--r--dev-lang/gnu-smalltalk/gnu-smalltalk-2.3.1.ebuild76
4 files changed, 108 insertions, 1 deletions
diff --git a/dev-lang/gnu-smalltalk/ChangeLog b/dev-lang/gnu-smalltalk/ChangeLog
index ec9b7dcf64d6..4f5630ec7471 100644
--- a/dev-lang/gnu-smalltalk/ChangeLog
+++ b/dev-lang/gnu-smalltalk/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-lang/gnu-smalltalk
# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/gnu-smalltalk/ChangeLog,v 1.22 2006/12/08 23:04:00 araujo Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/gnu-smalltalk/ChangeLog,v 1.23 2006/12/18 08:30:17 araujo Exp $
+
+*gnu-smalltalk-2.3.1 (18 Dec 2006)
+
+ 18 Dec 2006; Luis F. Araujo <araujo@gentoo.org>
+ +files/gst-stack-2.3.1.patch, +gnu-smalltalk-2.3.1.ebuild:
+ Adding new version. Stack patched included.
08 Dec 2006; Luis F. Araujo <araujo@gentoo.org>
gnu-smalltalk-2.1.12.ebuild, gnu-smalltalk-2.2-r1.ebuild,
diff --git a/dev-lang/gnu-smalltalk/files/digest-gnu-smalltalk-2.3.1 b/dev-lang/gnu-smalltalk/files/digest-gnu-smalltalk-2.3.1
new file mode 100644
index 000000000000..d3a78f44dd5a
--- /dev/null
+++ b/dev-lang/gnu-smalltalk/files/digest-gnu-smalltalk-2.3.1
@@ -0,0 +1,3 @@
+MD5 42bd6adc7c84c2d6ca3e6086cb913334 smalltalk-2.3.1.tar.gz 4298106
+RMD160 df7725d6fbd06862ada03ad35fe17411ac721554 smalltalk-2.3.1.tar.gz 4298106
+SHA256 f548425d884bdaf9ed457be243bcc836abef5a2f35ee37d930ba32c198c762ce smalltalk-2.3.1.tar.gz 4298106
diff --git a/dev-lang/gnu-smalltalk/files/gst-stack-2.3.1.patch b/dev-lang/gnu-smalltalk/files/gst-stack-2.3.1.patch
new file mode 100644
index 000000000000..bcbfdda092d4
--- /dev/null
+++ b/dev-lang/gnu-smalltalk/files/gst-stack-2.3.1.patch
@@ -0,0 +1,22 @@
+diff -urpwN smalltalk-2.3.1/libffi/src/x86/sysv.S smalltalk-2.3.1.chg/libffi/src/x86/sysv.S
+--- smalltalk-2.3.1/libffi/src/x86/sysv.S 2006-02-05 14:41:32.000000000 -0400
++++ smalltalk-2.3.1.chg/libffi/src/x86/sysv.S 2006-12-16 05:32:04.000000000 -0400
+@@ -376,3 +376,7 @@ ffi_closure_raw_SYSV:
+ #endif
+
+ #endif /* ifndef __x86_64__ */
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -urpwN smalltalk-2.3.1/libffi/src/x86/unix64.S smalltalk-2.3.1.chg/libffi/src/x86/unix64.S
+--- smalltalk-2.3.1/libffi/src/x86/unix64.S 2006-02-05 14:41:32.000000000 -0400
++++ smalltalk-2.3.1.chg/libffi/src/x86/unix64.S 2006-12-16 05:32:12.000000000 -0400
+@@ -410,3 +410,7 @@ ffi_closure_unix64:
+ .LEFDE3:
+
+ #endif /* __x86_64__ */
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
diff --git a/dev-lang/gnu-smalltalk/gnu-smalltalk-2.3.1.ebuild b/dev-lang/gnu-smalltalk/gnu-smalltalk-2.3.1.ebuild
new file mode 100644
index 000000000000..4995c573eb96
--- /dev/null
+++ b/dev-lang/gnu-smalltalk/gnu-smalltalk-2.3.1.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/gnu-smalltalk/gnu-smalltalk-2.3.1.ebuild,v 1.1 2006/12/18 08:30:17 araujo Exp $
+
+inherit elisp-common flag-o-matic eutils toolchain-funcs
+
+DESCRIPTION="GNU Smalltalk"
+HOMEPAGE="http://www.gnu.org/software/smalltalk/smalltalk.html"
+SRC_URI="http://ftp.gnu.org/gnu/smalltalk/smalltalk-${PV}.tar.gz"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~sparc ~x86 ~amd64"
+IUSE="tk readline emacs gtk gmp"
+
+DEPEND="sys-libs/gdbm
+ sys-apps/debianutils
+ 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_unpack() {
+ unpack ${A}
+ epatch ${FILESDIR}/gst-stack-${PV}.patch
+ sed -i "s:\$(DESTDIR)\$(bindir)/gst \$\$srcdir/Finish.st \-VisqS \-a \"\$(DESTDIR)\" \$(MODULES): :" ${S}/Makefile.am
+ sed -i "s:\$(DESTDIR)\$(bindir)/gst \$\$srcdir/Finish.st \-VisqS \-a \"\$(DESTDIR)\" \$(MODULES): :" ${S}/Makefile.in
+ # Fix gst-{load, sunit, reload} script paths.
+ sed -i "s: @bindir@:/usr/bin:" ${S}/scripts/Reload.st ${S}/scripts/Load.st ${S}/scripts/Test.st
+}
+
+src_compile() {
+ replace-flags '-O3' '-O2'
+ ./configure --prefix=/usr \
+ `use_with emacs emacs` \
+ `use_with readline readline` \
+ `use_with gmp gmp` \
+ `use_with tk tcl /usr/lib` \
+ `use_with tk tk /usr/lib` \
+ `use_enable gtk gtk` \
+ || die
+ emake || die "emake failed"
+ use emacs && elisp-compile *.el
+}
+
+src_install() {
+ make prefix=${D}/usr mandir=${D}/usr/share/man infodir=${D}/usr/share/info \
+ lispdir=${D}/usr/share/emacs/site-lisp/gnu-smalltalk install \
+ || die
+ rm -rf ${D}/usr/include/sigsegv.h \
+ ${D}/usr/include/snprintfv \
+ ${D}/usr/share/aclocal/snprintfv.m4
+ dodoc AUTHORS COPYING* ChangeLog NEWS PATCHES README THANKS TODO
+ rm -rf ${D}/var
+ 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() {
+ einfo "We generate a GNU SmallTalk Image with the right image kernel path."
+ cd /usr/share/smalltalk/
+ /usr/bin/gst -iQ /dev/null
+ use emacs && elisp-site-regen
+}
+
+pkg_postrm() {
+ use emacs && elisp-site-regen
+}