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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Sun Jun 12 10:31:56 2005 UTC (13 years, 4 months ago) by ka0ttic
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
New debian patch revision; tidy old ebuilds.
(Portage version: 2.0.51.22-r1)

1 # Copyright 1999-2005 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.2.2.ebuild,v 1.3 2005/04/09 20:39:12 hansmi Exp $
4
5 inherit eutils versionator flag-o-matic toolchain-funcs
6
7 DEB_P="${PN}_$(replace_version_separator 3 '-')"
8 MY_P2="${DEB_P%-*}"
9 MY_P="${MY_P2/_/-}"
10
11 DESCRIPTION="Debian-version of NetBSD's lightweight bourne shell"
12 HOMEPAGE="http://ftp.debian.org/debian/pool/main/d/dash/"
13 SRC_URI="mirror://debian/pool/main/d/dash/${MY_P2}.orig.tar.gz \
14 mirror://debian/pool/main/d/dash/${DEB_P}.diff.gz"
15
16 SLOT="0"
17 LICENSE="BSD"
18 KEYWORDS="x86 ppc"
19 IUSE="diet static"
20
21 RDEPEND="diet? ( dev-libs/dietlibc )
22 !diet? ( virtual/libc )"
23 DEPEND="${RDEPEND}
24 sys-apps/sed
25 dev-util/yacc"
26
27 S="${WORKDIR}/${MY_P}"
28
29 src_unpack() {
30 unpack ${A}
31 cd ${S}
32 epatch ${WORKDIR}/${DEB_P}.diff
33 }
34
35 src_compile() {
36 use static && append-ldflags -static
37
38 CC="$(tc-getCC)"
39 use diet && CC="diet ${CC}"
40
41 econf CC="${CC}" || die "econf failed"
42 emake CFLAGS="${CFLAGS}" || die "emake failed"
43 }
44
45 src_install() {
46 exeinto /bin
47 newexe src/dash dash
48 newman src/dash.1 dash.1
49 dodoc COPYING ChangeLog
50 }

  ViewVC Help
Powered by ViewVC 1.1.20