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

Contents of /dev-lang/squeak/squeak-3.6_p3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Tue Apr 6 17:36:21 2010 UTC (9 years, 6 months ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.9: +1 -1 lines
FILE REMOVED
Remove vulnerable squeak

1 # Copyright 1999-2007 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.6_p3.ebuild,v 1.9 2007/07/22 08:43:03 graaff Exp $
4
5 inherit nsplugins libtool flag-o-matic eutils
6
7 MY_PV=${PV/_p/-}
8 DESCRIPTION="Highly-portable Smalltalk-80 implementation"
9 HOMEPAGE="http://www.squeak.org/"
10 SRC_URI="http://www-sor.inria.fr/~piumarta/squeak/unix/release/Squeak-${MY_PV}.src.tar.gz
11 mozilla? ( http://squeakland.org/installers/SqueakPlugin.image.zip )"
12 LICENSE="Apple"
13 SLOT="0"
14 KEYWORDS="~x86 ~ppc"
15 IUSE="X nas mmx mozilla"
16 # a ffi flag would be nice
17
18 DEPEND="nas? ( media-libs/nas )
19 X? ( x11-libs/libX11 x11-libs/libXext )"
20 RDEPEND="${DEPEND}
21 virtual/squeak-image"
22 DEPEND="${DEPEND}
23 app-arch/unzip"
24
25 S="${WORKDIR}/Squeak-${MY_PV}"
26
27 src_compile() {
28 local myconf=""
29
30 strip-flags
31 filter-mfpmath sse
32 filter-flags "-fPIC" "-maltivec" "-mabi=altivec" "-fstack-protector" "-pipe" "-g" "-mtune" "-march" "-mcpu" "-O" "-O1" "-O2" "-Os" "-O3" "-freorder-blocks" "-fprefetch-loop-array" "-fforce-addr"
33
34 use X || myconf="--without-x"
35 use mmx && myconf="${myconf} --enable-mpg-mmx"
36 use mozilla || myconf="${myconf} --without-npsqueak"
37 # use oss && myconf="${myconf} --with-audio=oss"
38 # use nas && myconf="${myconf} --with-audio=nas"
39
40 # fix tail problems
41 cd ${S}/platforms/unix/config
42 sed -i -e 's/tail -1/tail -n 1/g' mkconfig.in
43 sed -i -e 's/tail -1/tail -n 1/g' verstamp
44 chmod +x verstamp
45
46 cd ${S}
47
48 mkdir build
49 cd build
50 #CPPFLAGS: for nas
51 CPPFLAGS="-I/usr/X11R6/include" ../platforms/unix/config/configure \
52 --host=${CHOST} \
53 --prefix=/usr \
54 --infodir=/usr/share/info \
55 --mandir=/usr/share/man \
56 ${myconf} || die "configure failed"
57 emake || die
58 }
59
60 src_install() {
61 cd ${S}/build
62 make ROOT=${D} docdir=/usr/share/doc/${PF} install || die
63
64 exeinto /usr/lib/squeak; doexe inisqueak
65 dosym /usr/lib/squeak/inisqueak /usr/bin/inisqueak
66
67 ### the rest is all for the plugin
68 if use mozilla ; then
69 inst_plugin /usr/lib/squeak/${MY_PV}/npsqueak.so
70
71 dodoc nps/README.npsqueak
72 dohtml -a html,sts nps/test/*
73
74 # maybe we should install the image here..
75 insinto /usr/lib/squeak
76 newins ${WORKDIR}/SqueakPlugin.image npsqueak.image
77 fi
78 }
79
80 pkg_postinst() {
81 elog 'Run "inisqueak" to get a private copy of the VM image.'
82 }

  ViewVC Help
Powered by ViewVC 1.1.20