/[gentoo-x86]/app-shells/dash/dash-0.5.4.1.ebuild
Gentoo

Contents of /app-shells/dash/dash-0.5.4.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Tue Oct 9 08:37:51 2007 UTC (11 years ago) by uberlord
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Punt old ebuilds
(Portage version: 2.1.3.11)

1 # Copyright 1999-2007 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-shells/dash/dash-0.5.4.1.ebuild,v 1.1 2007/08/13 12:32:26 uberlord Exp $
4
5 inherit autotools eutils flag-o-matic toolchain-funcs
6
7 DEB_PV=${PV%.*}
8 DEB_PATCH=${PV##*.}
9 DEB_PF="${PN}_${DEB_PV}-${DEB_PATCH}"
10 MY_P="${PN}-${DEB_PV}"
11
12 DESCRIPTION="DASH is a direct descendant of the NetBSD version of ash (the
13 Almquist SHell) and is POSIX compliant"
14 HOMEPAGE="http://gondor.apana.org.au/~herbert/dash/"
15 SRC_URI="http://gondor.apana.org.au/~herbert/dash/files/${PN}-${DEB_PV}.tar.gz
16 mirror://debian/pool/main/d/dash/${DEB_PF}.diff.gz"
17
18 LICENSE="BSD"
19 SLOT="0"
20 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~x86"
21 IUSE="libedit static"
22
23 DEPEND="libedit? ( dev-libs/libedit )"
24
25 S="${WORKDIR}/${MY_P}"
26
27 src_unpack() {
28 unpack ${A}
29
30 epatch "${WORKDIR}/${DEB_PF}".diff
31
32 cd "${S}"
33 epatch debian/diff/*
34
35 # Fix reading of long lines
36 epatch "${FILESDIR}/${PN}"-0.5.3-read-length.patch
37
38 # Fix the invalid sort
39 sed -i -e 's/LC_COLLATE=C/LC_ALL=C/g' src/mkbuiltins
40
41 # Always statically link libedit in to ensure we always boot if it changes
42 # which it has done in the past.
43 local s="s/-ledit/-Wl,-Bstatic -ledit -Wl,-Bdynamic -lcurses/g"
44 use static && s="s/-ledit/-ledit -lcurses/g"
45 sed -i -e "${s}" configure.ac || die "Failed to sed configure.ac"
46
47 # May as well, as the debian patches force this anyway
48 eautoreconf
49 }
50
51 src_compile() {
52 local myconf=
53
54 use static && append-ldflags -static
55 use libedit && myconf="${myconf} --with-libedit"
56 export CC="$(tc-getCC)"
57
58 econf ${myconf} || die "econf failed"
59 emake CFLAGS="${CFLAGS}" || die "emake failed"
60 }
61
62 src_install() {
63 exeinto /bin
64 newexe src/dash dash
65 newman src/dash.1 dash.1
66 dodoc COPYING ChangeLog
67 }

  ViewVC Help
Powered by ViewVC 1.1.20