squeak in gentoo
Ragnar Hojland Espinosa
ragnar at linalco.com
Tue Jan 7 09:16:43 UTC 2003
On Tue, Jan 07, 2003 at 08:37:06AM +0100, goran.hultgren at bluefish.se wrote:
> Ragnar Hojland Espinosa <ragnar at linalco.com> wrote:
> > You might be interested in knowing that squeak is now in gentoo (unstable).
> >
> > I used the 4956 image along with 3.2-5, so if you could leave them in the
> > ftp for a while, that'd be great.
>
> Hey! Cool! Is that the first distro that has a package for Squeak? I
> mean - in the official distro? (compared to Debian for example)
No idea :) Hopefully It'll make it to the 1.4 release.
> Would be interesting to see how that e-build script looks, could you
> post an url? Just curious.
You'll find them attached. As you can see, the browser plugin part is a bit
messy. This is due to hardcoded absolute paths in the makefile when you
configure.
Also, image and changes file aren't installed by default for the plugin.
Ideally inisqueak would be able to use uncompressed images, so that the
plugin files could be just symlinks.
--
Ragnar Hojland - Project Manager
Linalco "Especialistas Linux y en Software Libre"
http://www.linalco.com Tel: +34-91-5970074 Fax: +34-91-5970083
-------------- next part --------------
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /home/cvsroot/gentoo-x86/dev-lang/squeak/squeak-3.2.5.ebuild,v 1.1 2002/12/30 01:56:14 jhhudso Exp $
DESCRIPTION="Highly-portable Smalltalk-80 implementation"
HOMEPAGE="http://www.squeak.org/"
SRC_URI="ftp://st.cs.uiuc.edu/Smalltalk/Squeak/3.2/unix-linux/Squeak-3.2-5.src.tar.gz"
LICENSE="Apple"
SLOT="0"
KEYWORDS="~x86"
IUSE="X oss mmx mozilla"
# a ffi flag would be nice
DEPEND="virtual/glibc
X? ( x11-base/xfree )"
RDEPEND="=dev-lang/squeak-vm-3.2*
virtual/glibc
X? ( x11-base/xfree )"
S="${WORKDIR}/Squeak-3.2-5"
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-3.2.5/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-3.2.5
doins test/plugintest.html
doins test/plugintest.sts
# fix the paths
SQ_DIR=/usr/lib/squeak
VM_VERSION=3.2-5
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/3.2-5
doexe npsqueakrun
# install in browsers (no opera use flags?)
dodir /opt/netscape/plugins
dosym /usr/lib/squeak/3.2-5/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/3.2-5/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 use the browser plugin, create a working set named npsqueak.* in /usr/lib/squeak/3.2-5/'
}
-------------- next part --------------
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /home/cvsroot/gentoo-x86/dev-lang/squeak-vm/squeak-vm-3.2.4956.ebuild,v 1.1 2002/12/30 01:56:14 jhhudso Exp $
DESCRIPTION="Highly-portable Smalltalk-80 implementation VM image"
HOMEPAGE="http://www.squeak.org/"
NV=3.2-4956
SRC_URI="ftp://st.cs.uiuc.edu/Smalltalk/Squeak/3.2/Squeak${NV}.zip
ftp://st.cs.uiuc.edu/Smalltalk/Squeak/3.2/SqueakV3.sources.gz"
LICENSE="Apple"
SLOT="0"
KEYWORDS="~x86"
IUSE=""
DEPEND=""
RDEPEND="=dev-lang/squeak-3.2*"
src_compile() {
cd ${WORKDIR}
gzip Squeak${NV}.image
gzip Squeak${NV}.changes
}
src_install() {
cd ${WORKDIR}
dodoc ReadMe.txt
insinto /usr/lib/squeak
doins Squeak${NV}.changes.gz \
Squeak${NV}.image.gz \
SqueakV3.sources
dosym /usr/lib/squeak/Squeak${NV}.changes.gz /usr/lib/squeak/squeak.changes.gz
dosym /usr/lib/squeak/Squeak${NV}.image.gz /usr/lib/squeak/squeak.image.gz
}
More information about the Squeak-dev
mailing list
|