blob: 4af2d1953d94e898903b1dd76ef51c4474cf9e4e (
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
|
# Copyright 1999-2023 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() {
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}
}
|