# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header$ inherit eutils DESCRIPTION="replace verbatim strings (like sed, but simpler)" HOMEPAGE="http://replace.richardlloyd.org.uk/" SRC_URI="ftp://hpux.connect.org.uk/hpux/Users/${P}/${P}-src-11.11.tar.gz" LICENSE="as-is" SLOT="0" KEYWORDS="~x86" IUSE="" RDEPEND="" DEPEND="${RDEPEND}" src_unpack() { unpack "${A}" cd "${S}" sed -i Makefile -e "s/CFLAGS += \$(DEFINES)/CFLAGS += \$(DEFINES) ${CFLAGS}/" } src_compile() { emake CC="gcc" || die "emake failed" } src_install() { cd "${S}" dobin replace doman replace.1 dodoc README CHANGES }