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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (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.1: +1 -1 lines
FILE REMOVED
Remove vulnerable squeak

1 # Copyright 1999-2009 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.10.5.ebuild,v 1.1 2009/09/01 10:14:04 patrick Exp $
4
5 inherit base versionator fixheadtails eutils
6
7 MY_PV=$(replace_version_separator 2 '-')
8 DESCRIPTION="Highly-portable Smalltalk-80 implementation"
9 HOMEPAGE="http://www.squeak.org/"
10 SRC_URI="http://squeakvm.org/unix/release/Squeak-${MY_PV}.src.tar.gz"
11 LICENSE="Apple"
12 SLOT="0"
13 KEYWORDS="~amd64 ~x86"
14 IUSE="X mmx threads iconv"
15
16 DEPEND="X? ( x11-libs/libX11 x11-libs/libXext x11-libs/libXt )"
17 RDEPEND="${DEPEND}
18 virtual/squeak-image"
19
20 S="${WORKDIR}/Squeak-${MY_PV}"
21
22 src_unpack() {
23 base_src_unpack
24 cd ${S}
25 # patches to "fix" dprintf collision with glibc
26 # see http://bugs.squeak.org/view.php?id=7331
27 # and http://sisyphus.ru/srpm/Sisyphus/squeak-vm-sugar/patches/0
28 epatch "${FILESDIR}"/squeak-vm-sugar-3.10.3-sugar-squeak-dprintf.patch
29 epatch "${FILESDIR}"/squeak-dprintf.patch
30 epatch "${FILESDIR}"/squeak-inisqueak.patch
31 ht_fix_all
32 # ht_fix_all doesn't catch this because there's no number
33 sed -i -e 's/tail +/tail -n +/' platforms/unix/config/inisqueak.in
34 }
35
36 src_compile() {
37 local myconf=""
38 use X || myconf="--without-x"
39 use mmx && myconf="${myconf} --enable-mpg-mmx"
40 use threads && myconf="${myconf} --enable-mpg-pthread"
41 use iconv || myconf="${myconf} --disable-iconv"
42 cd ${S}
43 mkdir build
44 cd build
45 ../platforms/unix/config/configure \
46 --prefix=/usr \
47 --infodir=/usr/share/info \
48 --mandir=/usr/share/man \
49 ${myconf} || die "configure failed"
50 emake || die
51 }
52
53 src_install() {
54 cd ${S}/build
55 make ROOT=${D} docdir=/usr/share/doc/${PF} install || die
56 exeinto /usr/lib/squeak
57 doexe inisqueak
58 dosym /usr/lib/squeak/inisqueak /usr/bin/inisqueak
59 }
60
61 pkg_postinst() {
62 elog "Run 'inisqueak' to get a private copy of the squeak image."
63 }

  ViewVC Help
Powered by ViewVC 1.1.20