summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeemant Kulleen <seemant@gentoo.org>2002-08-28 11:00:25 +0000
committerSeemant Kulleen <seemant@gentoo.org>2002-08-28 11:00:25 +0000
commit5ece23d86b51bd1a16acb7f962c3d8f3d685b615 (patch)
treea4637f3957b21622271b0bef0ba0c611d9fb48b0 /sys-apps/supersed
parentrepoman'd (diff)
downloadgentoo-2-5ece23d86b51bd1a16acb7f962c3d8f3d685b615.tar.gz
gentoo-2-5ece23d86b51bd1a16acb7f962c3d8f3d685b615.tar.bz2
gentoo-2-5ece23d86b51bd1a16acb7f962c3d8f3d685b615.zip
documentation for ssed installed as well now
Diffstat (limited to 'sys-apps/supersed')
-rw-r--r--sys-apps/supersed/ChangeLog10
-rw-r--r--sys-apps/supersed/files/digest-supersed-3.58-r2 (renamed from sys-apps/supersed/files/digest-supersed-3.58)0
-rw-r--r--sys-apps/supersed/supersed-3.58-r2.ebuild (renamed from sys-apps/supersed/supersed-3.58.ebuild)45
3 files changed, 45 insertions, 10 deletions
diff --git a/sys-apps/supersed/ChangeLog b/sys-apps/supersed/ChangeLog
index 6424266c875d..4598bb619627 100644
--- a/sys-apps/supersed/ChangeLog
+++ b/sys-apps/supersed/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for sys-apps/supersed
# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/supersed/ChangeLog,v 1.2 2002/08/23 11:12:31 seemant Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/supersed/ChangeLog,v 1.3 2002/08/28 11:00:25 seemant Exp $
+
+*supersed-3.58-r2 (28 Aug 2002)
+
+ 28 Aug 2002; Seemant Kulleen <seemant@gentoo.org> supersed-3.58-r2.ebuild
+ files/digest-supersed-3.58-r2 :
+
+ Installs documentation. Thanks to: thompson@pobox.com (Paul Thompson) in
+ bug #6941 for pointing it out.
*supersed-3.58-r1 (23 Aug 2002)
diff --git a/sys-apps/supersed/files/digest-supersed-3.58 b/sys-apps/supersed/files/digest-supersed-3.58-r2
index e4503d4e8bc3..e4503d4e8bc3 100644
--- a/sys-apps/supersed/files/digest-supersed-3.58
+++ b/sys-apps/supersed/files/digest-supersed-3.58-r2
diff --git a/sys-apps/supersed/supersed-3.58.ebuild b/sys-apps/supersed/supersed-3.58-r2.ebuild
index 3e194e654c2e..94cd172d2246 100644
--- a/sys-apps/supersed/supersed-3.58.ebuild
+++ b/sys-apps/supersed/supersed-3.58-r2.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/supersed/supersed-3.58.ebuild,v 1.4 2002/08/16 17:39:00 seemant Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/supersed/supersed-3.58-r2.ebuild,v 1.1 2002/08/28 11:00:25 seemant Exp $
MY_P=sed-${PV}
S=${WORKDIR}/${MY_P}
@@ -15,6 +15,18 @@ KEYWORDS="x86 ppc sparc sparc64"
DEPEND="dev-libs/libpcre
nls? ( sys-devel/gettext )"
+src_unpack() {
+
+ unpack ${A}
+ cd ${S}/doc
+ mv sed-in.texi sed-in.texi.orig
+ sed -e "s:sed:ssed:g" \
+ -e "s:sss:ss:g" \
+ sed-in.texi.orig > sed-in.texi
+
+ rm *.info*
+}
+
src_compile() {
local myconf
use nls || myconf="--disable-nls"
@@ -22,7 +34,7 @@ src_compile() {
&& myconf="${myconf} --disable-html" \
|| myconf="${myconf} --enable-html"
- if [ -f /usr/bin/sed ]
+ if [ -f /bin/sed ]
then
echo "simple conf"
econf ${myconf} || die
@@ -31,6 +43,8 @@ src_compile() {
./bootstrap.sh
econf ${myconf} || die
fi
+
+ rm -f ${S}/doc/sed.info*
if [ -z "`use static`" ]
then
@@ -41,17 +55,30 @@ src_compile() {
}
src_install() {
+ # choose any name, but sed for now. If supersed is chosen to replace
+ # good ol' sed, that will work too.
+ newname="ssed"
+
into /
- dobin sed/sed
+ newbin sed/sed ${newname}
+
dodir /usr/bin
- dosym ../../bin/sed /usr/bin/sed
+ dosym ../../bin/${newname} /usr/bin/${newname}
+
if [ -z "`use build`" ]
then
- into /usr
- doinfo doc/sed.info
- doman doc/sed.1
+ localsed="${D}/bin/${newname}"
+
+ cd doc
+ # this could be more elaborate, but for little point (the infos will
+ # still refer to 'sed') This hack just makes the info work at all.
+
+ doinfo ${newname}.info*
+
+ dodir /usr/share/man/man1
+ dosym sed.1.gz /usr/share/man/man1/ssed.1.gz
+
+ cd ${S}
dodoc COPYING NEWS README* THANKS TODO AUTHORS BUGS
- else
- rm -rf ${D}/usr/share
fi
}