diff options
author | Luis Francisco Araujo <araujo@gentoo.org> | 2006-03-07 11:21:17 +0000 |
---|---|---|
committer | Luis Francisco Araujo <araujo@gentoo.org> | 2006-03-07 11:21:17 +0000 |
commit | 1c585f7562d42cb9ee8a14d1ade025be3b863cfa (patch) | |
tree | e335c32015769c1326974a01417aba46f7aaf2d0 /dev-lang/squeak/squeak-3.4.1.ebuild | |
parent | Add maintainer-needed metadata. Drop redundant src_compile. (diff) | |
download | historical-1c585f7562d42cb9ee8a14d1ade025be3b863cfa.tar.gz historical-1c585f7562d42cb9ee8a14d1ade025be3b863cfa.tar.bz2 historical-1c585f7562d42cb9ee8a14d1ade025be3b863cfa.zip |
Adding latest stable version of Squeak. Porting all of the ebuilds to modular X. Removing the first two unmaintained versions.
Package-Manager: portage-2.1_pre5-r4
Diffstat (limited to 'dev-lang/squeak/squeak-3.4.1.ebuild')
-rw-r--r-- | dev-lang/squeak/squeak-3.4.1.ebuild | 112 |
1 files changed, 0 insertions, 112 deletions
diff --git a/dev-lang/squeak/squeak-3.4.1.ebuild b/dev-lang/squeak/squeak-3.4.1.ebuild deleted file mode 100644 index f2277b43353d..000000000000 --- a/dev-lang/squeak/squeak-3.4.1.ebuild +++ /dev/null @@ -1,112 +0,0 @@ -# Copyright 1999-2004 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/squeak/squeak-3.4.1.ebuild,v 1.8 2004/07/02 04:31:41 eradicator Exp $ - -#Simply change these numbers for different versions -MV=3.4 -NV=${MV}-1 -FV=${MV}.1 - -DESCRIPTION="Highly-portable Smalltalk-80 implementation" -HOMEPAGE="http://www.squeak.org/" -SRC_URI="ftp://st.cs.uiuc.edu/Smalltalk/Squeak/${MV}/unix-linux/Squeak-${NV}.src.tar.gz" -LICENSE="Apple" -SLOT="0" -KEYWORDS="~x86" -IUSE="X oss mmx mozilla" -# a ffi flag would be nice - -DEPEND="virtual/libc - X? ( virtual/x11 )" -RDEPEND="virtual/squeak-image - virtual/libc - X? ( virtual/x11 )" - -S="${WORKDIR}/Squeak-${NV}" - -src_compile() { - local myconf="" - - use X || myconf="--without-x" - use oss && myconf="${myconf} --with-audio=oss" - use mmx && myconf="${myconf} --enable-mpg-mmx" - - cd ${S} - mkdir build - cd build - ../platforms/unix/config/configure \ - --host=${CHOST} \ - --prefix=/usr \ - --infodir=/usr/share/info \ - --mandir=/usr/share/man \ - ${myconf} || die "configure failed" - mv Makefile Makefile.tmp.$$ - cat Makefile.tmp.$$|sed \ - 's/$(prefix)\/doc\/squeak/$(prefix)\/share\/doc\/squeak-${FV}/g'\ - > Makefile - rm -f Makefile.tmp.$$ - emake || die - make npsqueak - # this is a bit paranoid, but we want to be sure it gets compiled now - cd nps - emake || die -} - -src_install() { - cd ${S}/build - - make DESTDIR=${D} ROOT=${D} install || die - - exeinto /usr/bin - doexe inisqueak - - ### the rest is all for the plugin - - cd nps - - # plugin sample, must be served to work, file:// doesnt work. - - insinto /usr/share/doc/squeak-${FV} - doins test/plugintest.html - doins test/plugintest.sts - - # fix the paths - - SQ_DIR=/usr/lib/squeak - VM_VERSION=${NV} - NPSQUEAK_SO=${SQ_DIR}/${VM_VERSION}/npsqueak.so - sed "s|@SQ_DIR@|${SQ_DIR}|;s|@VM_VERSION@|${VM_VERSION}|;s|@NPSQUEAK_SO@|${NPSQUEAK_SO}|" \ - npsqueakrun.in > npsqueakrun.in.2 - sed "s|@SQ_DIR@|${SQ_DIR}|;s|@VM_VERSION@|${VM_VERSION}|;s|@NPSQUEAK_SO@|${NPSQUEAK_SO}|" \ - npsqueakregister.in > npsqueakregister - sed 's|^ensurefile|ensurefile "${HOME}/.npsqueak/SqueakPlugin.changes" "${SQ_DIR}/npsqueak.changes"\nensurefile|' npsqueakrun.in.2 > npsqueakrun - - exeinto /usr/lib/squeak - doexe npsqueakregister - exeinto /usr/lib/squeak/${NV} - doexe npsqueakrun - - - # install in browsers (no opera use flags?) - - dodir /opt/netscape/plugins - dosym /usr/lib/squeak/${NV}/npsqueak.so /opt/netscape/plugins - - if use mozilla ; then - dodir /usr/lib/mozilla/plugins - dosym /opt/netscape/plugins/npsqueak.so \ - /usr/lib/mozilla/plugins/npsqueak.so - fi - - # maybe we should install the image here.. - - # dosym /usr/lib/squeak/SqueakV3.sources /usr/lib/squeak/${NV}/SqueakV3.sources - # doins npsqueak.image - # doins npsqueak.changes -} - -pkg_postinst() { - einfo 'Run "inisqueak" to get a private copy of the VM image.' - einfo '' - einfo 'To setup the browser plugin, create a working set named npsqueak.* in /usr/lib/squeak/<version>/' -} |