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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sun Jan 4 21:47:15 2015 UTC (3 years, 11 months ago) by polynomial-c
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Version bump. Removed old

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

1 # Copyright 1999-2014 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.1-r1.ebuild,v 1.1 2014/10/31 19:25:38 vapier Exp $
4
5 EAPI="4"
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 ~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.5.1-octal.patch #337329
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 "/LIBS/s:-ledit:\`$(tc-getPKG_CONFIG) --libs libedit $(usex static --static '')\`:" configure.ac
42
43 # May as well, as the debian patches force this anyway
44 eautoreconf
45 }
46
47 src_configure() {
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