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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

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

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.20