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

Contents of /app-shells/dash/dash-0.5.6.1-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Wed Sep 15 21:56:19 2010 UTC (8 years, 1 month ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
Update to latest 0.5.5.x Debian version.  Drop 0.5.6.x for now since Debian no longer has it either.  Fix octal parsing #337329 by Michał Górny.
(Portage version: 2.2_rc67/cvs/Linux x86_64)

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/dash/dash-0.5.6.1-r1.ebuild,v 1.4 2010/09/11 16:06:45 vapier Exp $
4
5 EAPI="2"
6
7 inherit autotools eutils flag-o-matic toolchain-funcs
8
9 DEB_PV=${PV%.*}
10 DEB_PATCH=${PV##*.}
11 DEB_PF="${PN}_${DEB_PV}.${DEB_PATCH}-1~exp0"
12 MY_P="${PN}-${DEB_PV}"
13
14 DESCRIPTION="DASH is a direct descendant of the NetBSD version of ash (the Almquist SHell) and is POSIX compliant"
15 HOMEPAGE="http://gondor.apana.org.au/~herbert/dash/"
16 SRC_URI="http://gondor.apana.org.au/~herbert/dash/files/${PN}-${DEB_PV}.tar.gz
17 mirror://debian/pool/main/d/dash/${DEB_PF}.diff.gz"
18
19 LICENSE="BSD"
20 SLOT="0"
21 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
22 IUSE="libedit static"
23
24 RDEPEND="!static? ( libedit? ( dev-libs/libedit ) )"
25 DEPEND="${RDEPEND}
26 dev-util/pkgconfig
27 libedit? ( static? ( dev-libs/libedit[static-libs] ) )"
28
29 S=${WORKDIR}/${MY_P}
30
31 src_prepare() {
32 epatch "${WORKDIR}"/${DEB_PF}.diff
33 rm */debian/diff/0006--INPUT-exit-127-if-command_file-is-given-but-doesn-t.diff \
34 || die #328929
35 epatch */debian/diff/*
36 epatch "${FILESDIR}"/${P}-read-ifs.patch #331535
37
38 # Fix the invalid sort
39 sed -i -e 's/LC_COLLATE=C/LC_ALL=C/g' src/mkbuiltins
40
41 # Use pkg-config for libedit linkage
42 sed -i "/LIBS/s:-ledit:\`$(tc-getPKG_CONFIG) --libs libedit $(use static && echo --static)\`:" configure.ac
43
44 # May as well, as the debian patches force this anyway
45 eautoreconf
46 }
47
48 src_configure() {
49 use static && append-ldflags -static
50 econf \
51 --bindir=/bin \
52 $(use_with libedit)
53 }
54
55 src_install() {
56 emake install DESTDIR="${D}" || die
57 dodoc ChangeLog */debian/changelog
58 }

  ViewVC Help
Powered by ViewVC 1.1.20