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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Wed Aug 9 14:04:37 2006 UTC (13 years, 2 months ago) by araujo
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Removing broken old ebuild.
(Portage version: 2.1.1_pre4-r4)

1 # Copyright 1999-2006 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.7.7.ebuild,v 1.2 2006/03/08 14:54:35 araujo 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="~x86"
14 IUSE="X mmx threads iconv"
15
16 DEPEND="dev-libs/libffi
17 X? ( || ( ( x11-libs/libX11
18 x11-libs/libXext )
19 virtual/x11 ) )"
20 RDEPEND="${DEPEND}
21 virtual/squeak-image"
22
23 S="${WORKDIR}/Squeak-${MY_PV}"
24
25 src_unpack() {
26 base_src_unpack
27 cd ${S}
28 ht_fix_all
29 einfo 'Fix executable stack/text relocation.'
30 sed -i -e 's@abi=sysv\;\;@abi=libffi\;\ lib=\"-lffi\"\;\;@g' \
31 ${S}/platforms/unix/plugins/SqueakFFIPrims/ffi-config
32 }
33
34 src_compile() {
35 local myconf=""
36 use X || myconf="--without-x"
37 use mmx && myconf="${myconf} --enable-mpg-mmx"
38 use threads && myconf="${myconf} --enable-mpg-pthread"
39 use iconv || myconf="${myconf} --disable-iconv"
40 cd ${S}
41 mkdir build
42 cd build
43 ../platforms/unix/config/configure \
44 --prefix=/usr \
45 --infodir=/usr/share/info \
46 --mandir=/usr/share/man \
47 ${myconf} || die "configure failed"
48 emake || die
49 }
50
51 src_install() {
52 cd ${S}/build
53 make ROOT=${D} docdir=/usr/share/doc/${PF} install || die
54 exeinto /usr/lib/squeak
55 doexe inisqueak
56 dosym /usr/lib/squeak/inisqueak /usr/bin/inisqueak
57 }
58
59 pkg_postinst() {
60 einfo "Run 'inisqueak' to get a private copy of the squeak image."
61 }

  ViewVC Help
Powered by ViewVC 1.1.20