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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

1 vostorga 1.2 # Copyright 1999-2009 Gentoo Foundation
2 araujo 1.1 # Distributed under the terms of the GNU General Public License v2
3 ssuominen 1.4 # $Header: /var/cvsroot/gentoo-x86/dev-lang/squeak/squeak-3.10.ebuild,v 1.3 2009/08/24 04:29:07 vostorga Exp $
4 araujo 1.1
5 vostorga 1.2 inherit base fixheadtails eutils toolchain-funcs
6 araujo 1.1
7     MY_PV="${PV}-1"
8    
9     DESCRIPTION="Highly-portable Smalltalk-80 implementation"
10     HOMEPAGE="http://www.squeak.org/"
11 vostorga 1.3 SRC_URI="http://ftp.squeak.org/${PV}/unix-linux/Squeak-${MY_PV}.src.tar.gz
12     mirror://gentoo/${P}-glibc210.patch.bz2"
13 araujo 1.1 LICENSE="Apple"
14     SLOT="0"
15     KEYWORDS="~x86"
16     IUSE="X mmx threads iconv opengl"
17    
18     DEPEND="X? ( x11-libs/libX11 x11-libs/libXext x11-libs/libXt )
19     opengl? ( virtual/opengl )"
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 "Patch for inisqueak"
30     sed -i s/\${MAJOR}/39/ "${S}/platforms/unix/config/inisqueak.in"
31     # ht_fix_all doesn't catch this because there's no number
32     sed -i -e 's/tail +/tail -n +/' platforms/unix/config/inisqueak.in
33 vostorga 1.2 sed -i s/-Werror// "${S}/platforms/unix/vm-display-fbdev/Makefile.in"
34 vostorga 1.3 cd "${WORKDIR}"
35     epatch ${P}-glibc210.patch
36 araujo 1.1 }
37    
38     src_compile() {
39     local myconf=""
40     use X || myconf="--without-x --without-npsqueak"
41     use mmx && myconf="${myconf} --enable-mpg-mmx"
42     use threads && myconf="${myconf} --enable-mpg-pthread"
43     use opengl || myconf="${myconf} --without-gl"
44     use iconv || myconf="${myconf} --disable-iconv"
45     cd "${S}"
46     mkdir build
47     cd build
48     ../platforms/unix/config/configure \
49     --prefix=/usr \
50     --infodir=/usr/share/info \
51     --mandir=/usr/share/man \
52 vostorga 1.2 ${myconf} CC="$(tc-getCC)" LD="$(tc-getLD)" || die "configure failed"
53     emake CC="$(tc-getCC)" LD="$(tc-getLD)" || die
54 araujo 1.1 }
55    
56     src_install() {
57     cd "${S}/build"
58     make ROOT="${D}" docdir="/usr/share/doc/${PF}" install || die
59     exeinto /usr/lib/squeak
60     doexe inisqueak
61     dosym /usr/lib/squeak/inisqueak /usr/bin/inisqueak
62     }
63    
64     pkg_postinst() {
65     elog "Run 'inisqueak' to get a private copy of the squeak image."
66     }

  ViewVC Help
Powered by ViewVC 1.1.20