blob: 667dd287bf343d82abbf10f85d6eddbe0fe803c3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit fixheadtails toolchain-funcs
DESCRIPTION="tool for applying patches that patch cannot apply because of conflicting changes"
HOMEPAGE="http://neil.brown.name/wiggle http://neil.brown.name/git?p=wiggle"
SRC_URI="http://neil.brown.name/${PN}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux"
IUSE="test"
# The 'p' tool does support bitkeeper, but I'm against just dumping it in here
# due to it's size. I've explictly listed every other dependancy here due to
# the nature of the shell program 'p'
RDEPEND="
dev-util/diffstat
dev-util/patchutils
sys-apps/diffutils
sys-apps/findutils
virtual/awk
sys-apps/grep
sys-apps/less
sys-apps/sed
sys-apps/coreutils
sys-devel/patch
sys-libs/ncurses:0=
"
DEPEND="${RDEPEND}
sys-apps/groff
test? ( sys-process/time )"
PATCHES=( "${FILESDIR}"/${P}-cflags.patch )
src_prepare() {
default
# Fix the reference to the help file so `p help' works
sed -i "s:\$0.help:${EPREFIX}/usr/share/wiggle/p.help:" p || die "sed failed on p"
ht_fix_file p
}
src_compile() {
emake CC="$(tc-getCC)" ${PN}
}
src_test() {
# Use prefixed time binary
emake TIME_CMD="${EPREFIX}/usr/bin/time" test
}
src_install() {
dobin wiggle p
doman wiggle.1
dodoc ANNOUNCE INSTALL TODO DOC/Algorithm notes
insinto /usr/share/wiggle
doins p.help
}
|