diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-03-27 06:06:27 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-03-27 06:06:27 +0000 |
commit | 8d5dbd847cbc704a6a06405856e94b461011afe3 (patch) | |
tree | 4d26462d027b14926335894749d2e01d982234d0 /dev-util/wiggle/wiggle-1.2.ebuild | |
parent | 5bb9ff1ee56d2b5e75e01a7f066d8b0cec84ec02 (diff) |
gentoo resync : 27.03.2021
Diffstat (limited to 'dev-util/wiggle/wiggle-1.2.ebuild')
-rw-r--r-- | dev-util/wiggle/wiggle-1.2.ebuild | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/dev-util/wiggle/wiggle-1.2.ebuild b/dev-util/wiggle/wiggle-1.2.ebuild new file mode 100644 index 000000000000..b002ffebcbda --- /dev/null +++ b/dev-util/wiggle/wiggle-1.2.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit fixheadtails toolchain-funcs + +DESCRIPTION="Tool for applying patches that patch cannot apply because of conflicting changes" +HOMEPAGE="https://neil.brown.name/wiggle https://git.neil.brown.name/?p=wiggle.git" +SRC_URI="https://neil.brown.name/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux" +IUSE="test" +RESTRICT="!test? ( 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 dependency 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}" +BDEPEND=" + sys-apps/groff + virtual/pkgconfig + 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() { + tc-export PKG_CONFIG + + 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 +} |