/[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.6 - (show annotations) (download)
Wed Aug 14 03:29:28 2002 UTC (18 years, 1 month ago) by murphy
Branch: MAIN
Changes since 1.5: +2 -2 lines
Adding sparc/sparc64 keywords

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.5 2002/07/16 05:51:05 seemant 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 HOMEPAGE="http://www.gnu.org/software/sed/sed.html"
9 KEYWORDS="x86 ppc sparc sparc64"
10 SLOT="0"
11 LICENSE="GPL-2"
12
13 DEPEND="virtual/glibc nls? ( sys-devel/gettext )"
14
15 RDEPEND="virtual/glibc"
16
17 src_compile() {
18 local myconf
19 [ -z "`use nls`" ] && myconf="--disable-nls"
20 ./configure --prefix=/usr --host=${CHOST} ${myconf} || die
21 if [ -z "`use static`" ]
22 then
23 emake || die
24 else
25 emake LDFLAGS=-static || die
26 fi
27 }
28
29 src_install() {
30 into /
31 dobin sed/sed
32 dodir /usr/bin
33 dosym ../../bin/sed /usr/bin/sed
34 if [ -z "`use build`" ]
35 then
36 into /usr
37 doinfo doc/sed.info
38 doman doc/sed.1
39 dodoc COPYING NEWS README* THANKS TODO AUTHORS BUGS ANNOUNCE
40 else
41 rm -rf ${D}/usr/share
42 fi
43 }
44

  ViewVC Help
Powered by ViewVC 1.1.20