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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Thu Oct 2 09:15:35 2014 UTC (4 years, 2 months ago) by polynomial-c
Branch: MAIN
CVS Tags: HEAD
Changes since 1.9: +1 -1 lines
FILE REMOVED
Version bump. Removed old

(Portage version: 2.2.14_rc1/cvs/Linux x86_64, signed Manifest commit with key 0x981CA6FC)

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/dash/dash-0.5.7.1.ebuild,v 1.9 2012/06/17 18:15:42 armin76 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}"
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 ~mips ppc ppc64 s390 sh sparc x86"
22 IUSE="libedit static"
23
24 RDEPEND="!static? ( libedit? ( dev-libs/libedit ) )"
25 DEPEND="${RDEPEND}
26 virtual/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 epatch */debian/diff/*
34 epatch "${FILESDIR}"/${PN}-0.5.5.1-octal.patch #337329
35
36 # Fix the invalid sort
37 sed -i -e 's/LC_COLLATE=C/LC_ALL=C/g' src/mkbuiltins
38
39 # Use pkg-config for libedit linkage
40 sed -i "/LIBS/s:-ledit:\`$(tc-getPKG_CONFIG) --libs libedit $(use static && echo --static)\`:" configure.ac
41
42 # May as well, as the debian patches force this anyway
43 eautoreconf
44 }
45
46 src_configure() {
47 use static && append-ldflags -static
48 econf \
49 --bindir=/bin \
50 $(use_with libedit)
51 }
52
53 src_install() {
54 emake install DESTDIR="${D}" || die
55 dodoc ChangeLog */debian/changelog
56 }

  ViewVC Help
Powered by ViewVC 1.1.20