blob: 8163e9bf62ed850ca8eca6ba9d67c3f6fbabc3fe [file] [log] [blame]
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-devel/patch/patch-2.7.4.ebuild,v 1.1 2015/02/01 14:14:49 polynomial-c Exp $
EAPI=4
inherit flag-o-matic eutils
DESCRIPTION="Utility to apply diffs to files"
HOMEPAGE="http://www.gnu.org/software/patch/patch.html"
SRC_URI="mirror://gnu/patch/${P}.tar.xz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="*"
IUSE="static test xattr"
RDEPEND="xattr? ( sys-apps/attr )"
DEPEND="${RDEPEND}
test? ( sys-apps/ed )"
src_configure() {
use static && append-ldflags -static
# Do not let $ED mess up the search for `ed` 470210.
ac_cv_path_ED=$(type -P ed) \
econf \
$(use_enable xattr) \
--program-prefix="$(use userland_BSD && echo g)"
}