blob: 3ed4bf11f33df5f74b9a56791e096227087a1d76 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/sed/sed-4.0.5.ebuild,v 1.17 2004/08/19 21:57:54 vapier Exp $
DESCRIPTION="Super-useful stream editor"
HOMEPAGE="http://www.gnu.org/software/sed/sed.html"
SRC_URI="mirror://gnu/sed/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 amd64 ppc sparc alpha hppa mips"
IUSE="nls static build"
RDEPEND="virtual/libc"
DEPEND="${RDEPEND}
nls? ( sys-devel/gettext )"
src_compile() {
econf `use_enable nls` || die
if use static ; then
emake || die
else
emake LDFLAGS=-static || die
fi
}
src_install() {
into /
dobin sed/sed
dodir /usr/bin
dosym ../../bin/sed /usr/bin/sed
if ! use build
then
into /usr
doinfo doc/sed.info*
doman doc/sed.1
dodoc COPYING NEWS README* THANKS TODO AUTHORS BUGS ANNOUNCE ChangeLog
else
rm -rf ${D}/usr/share
fi
}
|