diff options
author | Lars Wendler <polynomial-c@gentoo.org> | 2021-01-21 11:00:46 +0100 |
---|---|---|
committer | Lars Wendler <polynomial-c@gentoo.org> | 2021-01-21 11:01:40 +0100 |
commit | a86cc33d1a1435c269b2ab76d111293a08b9df78 (patch) | |
tree | 76b49e29fa1865a945dc62c358a2a752c786e90a /app-misc/mmv/mmv-1.01b_p19.ebuild | |
parent | app-crypt/nitrocli: amd64 stable wrt bug #766237 (diff) | |
download | gentoo-a86cc33d1a1435c269b2ab76d111293a08b9df78.tar.gz gentoo-a86cc33d1a1435c269b2ab76d111293a08b9df78.tar.bz2 gentoo-a86cc33d1a1435c269b2ab76d111293a08b9df78.zip |
app-misc/mmv: Bump to version 1.01b_p19
Don't apply broken Debian patch (#661492)
Closes: https://bugs.gentoo.org/661492
Package-Manager: Portage-3.0.14, Repoman-3.0.2
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
Diffstat (limited to 'app-misc/mmv/mmv-1.01b_p19.ebuild')
-rw-r--r-- | app-misc/mmv/mmv-1.01b_p19.ebuild | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/app-misc/mmv/mmv-1.01b_p19.ebuild b/app-misc/mmv/mmv-1.01b_p19.ebuild new file mode 100644 index 000000000000..c5125cc5d68f --- /dev/null +++ b/app-misc/mmv/mmv-1.01b_p19.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit flag-o-matic toolchain-funcs + +DEB_PATCH_VER=${PV#*_p} +MY_VER=${PV%_p*} + +DESCRIPTION="Move/copy/append/link multiple files according to a set of wildcard patterns" +HOMEPAGE="https://packages.debian.org/unstable/utils/mmv" +SRC_URI=" + mirror://debian/pool/main/m/mmv/${PN}_${MY_VER}.orig.tar.gz + mirror://debian/pool/main/m/mmv/${PN}_${MY_VER}-${DEB_PATCH_VER}.debian.tar.xz" + +LICENSE="LGPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm64 ~ppc ~riscv ~x86 ~amd64-linux ~x86-linux ~ppc-macos" + +S="${WORKDIR}/${PN}-${MY_VER}.orig" + +src_prepare() { + default + rm "${WORKDIR}"/debian/patches/better-diagnostics-for-directories-584850.diff \ + || die #661492 + eapply "${WORKDIR}"/debian/patches/*.diff +} + +src_compile() { + # i wonder how this works on other platforms if CFLAGS from makefile are + # overridden, see bug #218082 + [[ ${CHOST} == *-interix* ]] && append-flags -DIS_SYSV -DHAS_RENAME -DHAS_DIRENT + [[ ${CHOST} == *-interix* ]] || append-lfs-flags + + emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" +} + +src_install() { + dobin "${PN}" + dosym "${PN}" /usr/bin/mcp + dosym "${PN}" /usr/bin/mln + dosym "${PN}" /usr/bin/mad + + doman "${PN}.1" + newman "${PN}.1" mcp.1 + newman "${PN}.1" mln.1 + newman "${PN}.1" mad.1 + + dodoc ANNOUNCE "${WORKDIR}"/debian/{changelog,control} +} |