You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sys-apps/diffutils/diffutils-2.8.7-r2.ebuild

56 lines
1.6 KiB

# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/diffutils/diffutils-2.8.7-r2.ebuild,v 1.6 2012/03/27 17:52:40 vapier Exp $
inherit eutils flag-o-matic
DESCRIPTION="Tools to make diffs and compare files"
HOMEPAGE="http://www.gnu.org/software/diffutils/diffutils.html"
SRC_URI="mirror://gnu-alpha/diffutils/${P}.tar.gz
mirror://gentoo/${P}-i18n.patch.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc ~sparc-fbsd x86 ~x86-fbsd"
IUSE="nls static"
RDEPEND=""
DEPEND="nls? ( sys-devel/gettext )"
src_unpack() {
unpack ${A}
cd "${S}"
# Removes waitpid() call after pclose() on piped diff stream, closing
# bug #11728, thanks to D Wollmann <converter@dalnet-perl.org>
epatch "${FILESDIR}"/diffutils-2.8.4-sdiff-no-waitpid.patch
# Fix utf8 support. Patch from MDK. #71689
epatch "${WORKDIR}"/${P}-i18n.patch
epatch "${FILESDIR}"/${P}-headers.patch
# Make sure we don't try generating the manpages ... this requires
# 'help2man' which is a perl app which is not available in a
# stage2 / stage3 ... don't DEPEND on it or we get a DEPEND loop :(
# for more info, see #55479
touch man/*.1
# There's no reason for this crap to use the private version
sed -i 's:__mempcpy:mempcpy:g' lib/*.c
# Fix userpriv perm problems #76600
chmod ug+w config/*
}
src_compile() {
use static && append-ldflags -static
econf $(use_enable nls) || die "econf"
emake || die "make"
}
src_install() {
emake install DESTDIR="${D}" || die
dodoc ChangeLog NEWS README
}