From 1d2c065267ca9a19dcb93fc2b363b6667c2b8c33 Mon Sep 17 00:00:00 2001 From: Leonardo Valeri Manera Date: Tue, 29 Apr 2008 00:02:50 +0200 Subject: [PATCH] Add gnu-smalltalk. --- dev-lang/gnu-smalltalk/Manifest | 3 + .../gnu-smalltalk/files/50gnu-smalltalk-gentoo.el | 7 +++ dev-lang/gnu-smalltalk/gnu-smalltalk-3.0.2.ebuild | 70 ++++++++++++++++++++++ 3 files changed, 80 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/gnu-smalltalk-3.0.2.ebuild diff --git a/dev-lang/gnu-smalltalk/Manifest b/dev-lang/gnu-smalltalk/Manifest new file mode 100644 index 0000000..7219781 --- /dev/null +++ b/dev-lang/gnu-smalltalk/Manifest @@ -0,0 +1,3 @@ +AUX 50gnu-smalltalk-gentoo.el 268 RMD160 a6d540fa013e0b687137642ef85e188988441629 SHA1 1a22d586d3b0fd82e8b4cb232551e89bd9c36c69 SHA256 acfa1581fd8871a0a7ab610afbf678ecbfbe1b2c7b844316b96aebf43dd5b141 +DIST smalltalk-3.0.2.tar.gz 4610835 RMD160 a69034f3d91d56c25430db193414bfefab8e79f4 SHA1 c3fcb2d1f318221b3fc43372516bb6c6f3d20112 SHA256 1d2d9d255a0d2a9df9630872b96b0ebc162c37cdb2cfadb4a011e16f351f5e9a +EBUILD gnu-smalltalk-3.0.2.ebuild 1765 RMD160 b34627faca8d526663003826d97341f3fece2f36 SHA1 8758daf0181acceef1b44d668b3f6057fa204437 SHA256 a10d1df33d7405ed4aa9c841e6b59f476bee30e3519de5b2c6a4e97ae9fe674e 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/gnu-smalltalk-3.0.2.ebuild b/dev-lang/gnu-smalltalk/gnu-smalltalk-3.0.2.ebuild new file mode 100644 index 0000000..582a6bd --- /dev/null +++ b/dev-lang/gnu-smalltalk/gnu-smalltalk-3.0.2.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="1" + +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="emacs jit +gmp gtk preempt +readline tk" + +DEPEND="sys-libs/gdbm + sys-apps/debianutils + dev-libs/libsigsegv + emacs? ( virtual/emacs ) + readline? ( sys-libs/readline ) + tk? ( dev-lang/tk ) + gtk? ( x11-libs/gtk+:2 ) + gmp? ( dev-libs/gmp )" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/smalltalk-${PV}" + +SITEFILE=50gnu-smalltalk-gentoo.el + +src_compile() { + replace-flags '-O3' '-O2' + econf --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) \ + $(use_enable jit jit) \ + $(use_enable preempt preemption) || die "econf failed" + emake || die "emake failed" + use emacs && elisp-compile *.el +} + +src_install() { + einstall prefix="${D}/usr" mandir="${D}/usr/share/man" \ + infodir="${D}/usr/share/info" \ + lispdir="${D}/usr/share/emacs/site-lisp/gnu-smalltalk" \ + libdir="${D}/usr/lib" || die + # Remove libsigsegv + rm -rf "${D}/usr/include/sigsegv.h" \ + "${D}/usr/include/snprintfv" \ + "${D}/usr/share/aclocal/snprintfv.m4" + rm "${D}"/usr/lib/libsigsegv* + 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 +} -- 2.11.4.GIT