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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Sat Apr 10 17:23:55 2010 UTC (4 years, 5 months ago) by ken69267
Branch: MAIN
CVS Tags: HEAD
use static libraries and update metadata
(Portage version: 2.2_rc67/cvs/Linux x86_64)

1 ken69267 1.1 # Copyright 1999-2010 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"
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     #Fix --with-libraries in configure
42     sed -i -e "s:arg_option:arg_value:" configure || die "sed failed"
43     }
44    
45     src_configure() {
46     #Not autotools, custom rolled
47     #Use static to prevent collision with dev-lang/squirrel
48     ./configure --prefix="${D}"/usr \
49     --with-mime=no \
50     --with-libraries=static || 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