/[gentoo-x86]/app-shells/esh/esh-0.8.5-r2.ebuild
Gentoo

Contents of /app-shells/esh/esh-0.8.5-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Fri Sep 7 13:26:57 2012 UTC (2 years, 1 month ago) by johu
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +2 -2 lines
Stable for x86, wrt bug #433191

(Portage version: 2.2.0_alpha124/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-shells/esh/esh-0.8.5-r2.ebuild,v 1.3 2012/09/06 15:57:55 ago Exp $
4
5 EAPI="2"
6
7 inherit flag-o-matic toolchain-funcs
8
9 DESCRIPTION="A UNIX Shell with a simplified Scheme syntax"
10 HOMEPAGE="http://slon.ttk.ru/esh/"
11 SRC_URI="http://slon.ttk.ru/esh/${P}.tar.gz"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="amd64 ppc x86"
16 IUSE="debug"
17
18 DEPEND=">=sys-libs/ncurses-5.1
19 >=sys-libs/readline-4.1"
20 RDEPEND="${DEPEND}"
21
22 S="${WORKDIR}/${PN}"
23
24 src_prepare() {
25 sed -i \
26 -e 's|-g ||' \
27 -e 's|-DMEM_DEBUG ||' \
28 -e 's|^CFLAGS|&+|g' \
29 -e 's|^LIB=|LIB= -lncurses |' \
30 -e 's|$(CC) |&$(CFLAGS) $(LDFLAGS) |g' \
31 -e 's:-ltermcap::' \
32 Makefile || die "sed Makefile"
33 }
34 src_compile() {
35 # For some reason, this tarball has binary files in it for x86.
36 # Make clean so we can rebuild for our arch and optimization.
37 emake clean
38
39 use debug && append-flags -DMEM_DEBUG
40
41 emake \
42 CC="$(tc-getCC)" \
43 LDFLAGS="${LDFLAGS}" \
44 || die "emake failed"
45 }
46
47 src_install() {
48 dobin esh || die
49 doinfo doc/esh.info
50 dodoc CHANGELOG CREDITS GC_README HEADER READLINE-HACKS TODO
51 dohtml doc/*.html
52 docinto examples
53 dodoc examples/*
54 }

  ViewVC Help
Powered by ViewVC 1.1.20