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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Thu Jul 23 20:44:50 2015 UTC (3 years, 2 months ago) by pacho
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +2 -2 lines
ppc stable wrt bug #552144

(Portage version: 2.2.20/cvs/Linux x86_64, RepoMan options: --include-arches="ppc", signed Manifest commit with key A188FBD4)

1 # Copyright 1999-2015 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.8.2.ebuild,v 1.8 2015/07/17 19:59:17 maekke Exp $
4
5 EAPI="4"
6
7 inherit 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 arm64 hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
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.8.1-dumb-echo.patch #337329 #527848
35 epatch "${FILESDIR}"/${PN}-0.5.8.1-eval-warnx.patch
36
37 # Fix the invalid sort
38 sed -i -e 's/LC_COLLATE=C/LC_ALL=C/g' src/mkbuiltins
39
40 # Use pkg-config for libedit linkage
41 sed -i \
42 -e "/LIBS/s:-ledit:\`$(tc-getPKG_CONFIG) --libs libedit $(usex static --static '')\`:" \
43 configure || die
44 }
45
46 src_configure() {
47 append-cppflags -DJOBS=$(usex libedit 1 0)
48 use static && append-ldflags -static
49 # Do not pass --enable-glob due to #443552.
50 # Autotools use $LINENO as a proxy for extended debug support
51 # (i.e. they're running bash), so disable that. #527644
52 econf \
53 --bindir="${EPREFIX}"/bin \
54 --enable-fnmatch \
55 --disable-lineno \
56 $(use_with libedit)
57 }
58
59 src_install() {
60 default
61 dodoc */debian/changelog
62 }

  ViewVC Help
Powered by ViewVC 1.1.20