/[gentoo-x86]/app-shells/squirrelsh/squirrelsh-1.2.3.ebuild
Gentoo

Contents of /app-shells/squirrelsh/squirrelsh-1.2.3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Sun Mar 4 12:02:22 2012 UTC (2 years, 7 months ago) by pacho
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Drop maintainer due retirement, bug #206112, drop old.

(Portage version: 2.1.10.49/cvs/Linux x86_64)

1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-shells/squirrelsh/squirrelsh-1.2.3.ebuild,v 1.3 2009/09/01 06:42:37 fauli Exp $
4
5 EAPI="2"
6
7 inherit eutils multilib toolchain-funcs
8
9 DESCRIPTION="An advanced, cross-platform object oriented scripting shell based
10 on the squirrel scripting language"
11 HOMEPAGE="http://squirrelsh.sourceforge.net/"
12 SRC_URI="mirror://sourceforge/${PN}/${P}-src.tar.bz2"
13
14 LICENSE="GPL-3"
15 SLOT="0"
16 KEYWORDS="~amd64 ~x86"
17 IUSE="doc static"
18
19 DEPEND="dev-libs/libpcre"
20 RDEPEND="${DEPEND}"
21
22 src_prepare() {
23 #Fix pre-stripping
24 sed -i -e '/in_LFLAGS="-s $in_LFLAGS"/d' configure || die "sed failed"
25 #Fix multilib issues
26 sed -i -e "s:prefix/lib:prefix/$(get_libdir):" configure || die "sed failed"
27 #Fix CFLAG madness
28 sed -i -e "s:-O2 -Os -Wall -ffast-math:${CFLAGS}:" \
29 configure || die "sed failed"
30 sed -i -e "s:\$c_compiler_flags -fno-rtti:${CXXFLAGS}:" \
31 configure || die "sed failed"
32 sed -i -e "s:-fomit-frame-pointer::" configure || die "sed failed"
33 sed -i -e "797,817d" configure || die "sed failed"
34 #Fix compiler madness
35 sed -i -e "s:c_compiler=\"gcc\":c_compiler=\"$(tc-getCC)\":" \
36 configure || die "sed failed"
37 sed -i -e "s:cpp_compiler=\"g++\":cpp_compiler=\"$(tc-getCXX)\":" \
38 configure || die "sed failed"
39 #Remove autoinstallation of docs
40 sed -i -e "/@INSTALL@/d" Makefile.in || die "sed failed"
41 }
42
43 src_configure() {
44 use static && \
45 confline="--with-libraries=static" || \
46 confline="--with-libraries=shared"
47
48 #Not autotools, custom rolled
49 ./configure --prefix="${D}"/usr \
50 --with-mime=no ${confline} || die "configure failed"
51 }
52
53 src_install() {
54 emake DESTDIR="${D}" install || die "install failed"
55 doman doc/${PN}.1 || die "doman failed"
56 dodoc HISTORY INSTALL README || die "dodoc failed"
57 if use doc ; then
58 dodoc doc/*.pdf || die "dodoc failed"
59 fi
60 }

  ViewVC Help
Powered by ViewVC 1.1.20