Lines 2-7
Link Here
|
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/sys-devel/patch/patch-2.7.1.ebuild,v 1.1 2012/09/28 22:16:50 vapier Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/sys-devel/patch/patch-2.7.1.ebuild,v 1.1 2012/09/28 22:16:50 vapier Exp $ |
4 |
|
4 |
|
|
|
5 |
EAPI=4 |
6 |
|
5 |
inherit flag-o-matic unpacker |
7 |
inherit flag-o-matic unpacker |
6 |
|
8 |
|
7 |
DESCRIPTION="Utility to apply diffs to files" |
9 |
DESCRIPTION="Utility to apply diffs to files" |
Lines 10-35
Link Here
|
10 |
|
12 |
|
11 |
LICENSE="GPL-2" |
13 |
LICENSE="GPL-2" |
12 |
SLOT="0" |
14 |
SLOT="0" |
13 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd" |
15 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~ppc-aix ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
14 |
IUSE="static test xattr" |
16 |
IUSE="static test xattr" |
15 |
|
17 |
|
16 |
RDEPEND="xattr? ( sys-apps/attr )" |
18 |
RDEPEND="xattr? ( sys-apps/attr )" |
17 |
DEPEND="${RDEPEND} |
19 |
DEPEND="${RDEPEND} |
18 |
test? ( sys-apps/ed )" |
20 |
test? ( sys-apps/ed )" |
19 |
|
21 |
|
20 |
src_compile() { |
22 |
src_configure() { |
21 |
use static && append-ldflags -static |
23 |
use static && append-ldflags -static |
22 |
|
24 |
|
23 |
local myconf="" |
|
|
24 |
[[ ${USERLAND} != "GNU" ]] && myconf="--program-prefix=g" |
25 |
econf \ |
25 |
econf \ |
26 |
$(use_enable xattr) \ |
26 |
$(use_enable xattr) \ |
27 |
${myconf} |
27 |
--program-prefix="$(use userland_BSD && use !prefix && echo g)" |
28 |
|
|
|
29 |
emake || die |
30 |
} |
31 |
|
32 |
src_install() { |
33 |
emake DESTDIR="${D}" install || die |
34 |
dodoc AUTHORS ChangeLog NEWS README |
35 |
} |
28 |
} |