/[gentoo-x86]/dev-lang/squeak/squeak-3.2.5.ebuild
Gentoo

Contents of /dev-lang/squeak/squeak-3.2.5.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (show annotations) (download)
Tue Mar 7 11:21:17 2006 UTC (13 years, 7 months ago) by araujo
Branch: MAIN
CVS Tags: HEAD
Changes since 1.10: +1 -1 lines
FILE REMOVED
Adding latest stable version of Squeak. Porting all of the ebuilds to modular X. Removing the first two unmaintained versions.
(Portage version: 2.1_pre5-r4)

1 # Copyright 1999-2004 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-lang/squeak/squeak-3.2.5.ebuild,v 1.10 2004/07/02 04:31:41 eradicator Exp $
4
5 DESCRIPTION="Highly-portable Smalltalk-80 implementation"
6 HOMEPAGE="http://www.squeak.org/"
7 SRC_URI="ftp://st.cs.uiuc.edu/Smalltalk/Squeak/3.2/unix-linux/Squeak-3.2-5.src.tar.gz"
8 LICENSE="Apple"
9 SLOT="0"
10 KEYWORDS="~x86"
11 IUSE="X oss mmx mozilla"
12 # a ffi flag would be nice
13
14 DEPEND="virtual/libc
15 X? ( virtual/x11 )"
16 RDEPEND="=virtual/squeak-image-3.2*
17 virtual/libc
18 X? ( virtual/x11 )"
19
20 S="${WORKDIR}/Squeak-3.2-5"
21
22 src_compile() {
23 local myconf=""
24
25 use X || myconf="--without-x"
26 use oss && myconf="${myconf} --with-audio=oss"
27 use mmx && myconf="${myconf} --enable-mpg-mmx"
28
29 cd ${S}
30 mkdir build
31 cd build
32 ../platforms/unix/config/configure \
33 --host=${CHOST} \
34 --prefix=/usr \
35 --infodir=/usr/share/info \
36 --mandir=/usr/share/man \
37 ${myconf} || die "configure failed"
38 mv Makefile Makefile.tmp.$$
39 cat Makefile.tmp.$$|sed \
40 's/$(prefix)\/doc\/squeak/$(prefix)\/share\/doc\/squeak-3.2.5/g'\
41 > Makefile
42 rm -f Makefile.tmp.$$
43 emake || die
44 make npsqueak
45 # this is a bit paranoid, but we want to be sure it gets compiled now
46 cd nps
47 emake || die
48 }
49
50 src_install() {
51 cd ${S}/build
52
53 make DESTDIR=${D} ROOT=${D} install || die
54
55 exeinto /usr/bin
56 doexe inisqueak
57
58 ### the rest is all for the plugin
59
60 cd nps
61
62 # plugin sample, must be served to work, file:// doesnt work.
63
64 insinto /usr/share/doc/squeak-3.2.5
65 doins test/plugintest.html
66 doins test/plugintest.sts
67
68 # fix the paths
69
70 SQ_DIR=/usr/lib/squeak
71 VM_VERSION=3.2-5
72 NPSQUEAK_SO=${SQ_DIR}/${VM_VERSION}/npsqueak.so
73 sed "s|@SQ_DIR@|${SQ_DIR}|;s|@VM_VERSION@|${VM_VERSION}|;s|@NPSQUEAK_SO@|${NPSQUEAK_SO}|" \
74 npsqueakrun.in > npsqueakrun.in.2
75 sed "s|@SQ_DIR@|${SQ_DIR}|;s|@VM_VERSION@|${VM_VERSION}|;s|@NPSQUEAK_SO@|${NPSQUEAK_SO}|" \
76 npsqueakregister.in > npsqueakregister
77 sed 's|^ensurefile|ensurefile "${HOME}/.npsqueak/SqueakPlugin.changes" "${SQ_DIR}/npsqueak.changes"\nensurefile|' npsqueakrun.in.2 > npsqueakrun
78
79 exeinto /usr/lib/squeak
80 doexe npsqueakregister
81 exeinto /usr/lib/squeak/3.2-5
82 doexe npsqueakrun
83
84
85 # install in browsers (no opera use flags?)
86
87 dodir /opt/netscape/plugins
88 dosym /usr/lib/squeak/3.2-5/npsqueak.so /opt/netscape/plugins
89
90 if use mozilla ; then
91 dodir /usr/lib/mozilla/plugins
92 dosym /opt/netscape/plugins/npsqueak.so \
93 /usr/lib/mozilla/plugins/npsqueak.so
94 fi
95
96 # maybe we should install the image here..
97
98 # dosym /usr/lib/squeak/SqueakV3.sources /usr/lib/squeak/3.2-5/SqueakV3.sources
99 # doins npsqueak.image
100 # doins npsqueak.changes
101 }
102
103 pkg_postinst() {
104 einfo 'Run "inisqueak" to get a private copy of the VM image.'
105 einfo ''
106 einfo 'To use the browser plugin, create a working set named npsqueak.* in /usr/lib/squeak/3.2-5/'
107 }

  ViewVC Help
Powered by ViewVC 1.1.20