summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuis Francisco Araujo <araujo@gentoo.org>2010-12-21 01:04:12 +0000
committerLuis Francisco Araujo <araujo@gentoo.org>2010-12-21 01:04:12 +0000
commitd62998d356ae760925bcb8d405ac1545ffa42d48 (patch)
tree82d2c281f05278c5c132e701175e2f4392f089d2 /dev-lang/gnu-smalltalk/gnu-smalltalk-3.2.3.ebuild
parentremove myself as maintainer (diff)
downloadgentoo-2-d62998d356ae760925bcb8d405ac1545ffa42d48.tar.gz
gentoo-2-d62998d356ae760925bcb8d405ac1545ffa42d48.tar.bz2
gentoo-2-d62998d356ae760925bcb8d405ac1545ffa42d48.zip
Updating to 3.2.3
(Portage version: 2.1.9.25/cvs/Linux x86_64)
Diffstat (limited to 'dev-lang/gnu-smalltalk/gnu-smalltalk-3.2.3.ebuild')
-rw-r--r--dev-lang/gnu-smalltalk/gnu-smalltalk-3.2.3.ebuild65
1 files changed, 65 insertions, 0 deletions
diff --git a/dev-lang/gnu-smalltalk/gnu-smalltalk-3.2.3.ebuild b/dev-lang/gnu-smalltalk/gnu-smalltalk-3.2.3.ebuild
new file mode 100644
index 000000000000..690741d48947
--- /dev/null
+++ b/dev-lang/gnu-smalltalk/gnu-smalltalk-3.2.3.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2010 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.3.ebuild,v 1.1 2010/12/21 01:04:12 araujo Exp $
+
+EAPI="0"
+
+inherit elisp-common flag-o-matic eutils
+
+DESCRIPTION="GNU Smalltalk"
+HOMEPAGE="http://smalltalk.gnu.org"
+SRC_URI="http://ftp.gnu.org/gnu/smalltalk/smalltalk-${PV}.tar.gz"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="tk readline emacs gtk gmp"
+
+DEPEND="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_compile() {
+ 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)
+ 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
+}