# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="ShrinkIt compatible archiver for .shk-archives" HOMEPAGE="http://www.ibiblio.org/pub/Linux/utils/compress/!INDEX.html" SRC_URI="http://www.ibiblio.org/pub/Linux/utils/compress/${PN}${PV/./}.tar.gz" LICENSE="nulib" SLOT="0" KEYWORDS="~x86" IUSE="" DEPEND="virtual/glibc" S=${WORKDIR}/${PN} _replace() { FROM=$1 ; shift TO=$1 ; shift FILES=$* ebegin "Replacing \"$FROM\" with \"$TO\" in $FILES" for F in $FILES; do sed "s:$FROM:$TO:g" <$F >$F.$$ mv -f $F.$$ $F done eend 0 } src_compile() { _replace INDEX strchr *.c _replace RINDEX strrchr *.c _replace rename _rename *.c *.h _replace "extern char \\*strchr" "//" nuetc.h _replace "extern char \\*strrchr" "//" nuetc.h rm stdio.h make clean emake CFLAGS="${CFLAGS}" } src_install() { dobin nulib dodoc README README.LINUX NOTES nulib.doc }