/[gentoo-x86]/sys-apps/sed/sed-3.02.80-r3.ebuild
Gentoo

Contents of /sys-apps/sed/sed-3.02.80-r3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Thu Jul 11 06:30:55 2002 UTC (18 years, 2 months ago) by drobbins
Branch: MAIN
Changes since 1.2: +1 -2 lines
header fixes

1 # Copyright 1999-2002 Gentoo Technologies, Inc.
2 # Distributed under the terms of the GNU General Public License, v2 or later
3 # $Header: /home/cvsroot/gentoo-x86/sys-apps/sed/sed-3.02.80-r3.ebuild,v 1.2 2001/12/21 02:53:18 drobbins Exp $
4
5 S=${WORKDIR}/${P}
6 DESCRIPTION="Super-useful stream editor"
7 SRC_URI="ftp://alpha.gnu.org/pub/gnu/sed/${P}.tar.gz"
8
9 DEPEND="virtual/glibc nls? ( sys-devel/gettext )"
10
11 RDEPEND="virtual/glibc"
12
13 src_compile() {
14 local myconf
15 [ -z "`use nls`" ] && myconf="--disable-nls"
16 ./configure --prefix=/usr --host=${CHOST} ${myconf} || die
17 if [ -z "`use static`" ]
18 then
19 emake || die
20 else
21 emake LDFLAGS=-static || die
22 fi
23 }
24
25 src_install() {
26 into /
27 dobin sed/sed
28 dodir /usr/bin
29 dosym ../../bin/sed /usr/bin/sed
30 if [ -z "`use build`" ]
31 then
32 into /usr
33 doinfo doc/sed.info
34 doman doc/sed.1
35 dodoc COPYING NEWS README* THANKS TODO AUTHORS BUGS ANNOUNCE
36 else
37 rm -rf ${D}/usr/share
38 fi
39 }
40

  ViewVC Help
Powered by ViewVC 1.1.20