Diff mmv-1.01b_p19 with a mmv-2.5.1

/usr/portage/app-misc/mmv/mmv-2.5.1.ebuild 2023-10-09 14:52:28.808368333 +0300
1 1
# Copyright 1999-2023 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI=7
5

  
6
inherit flag-o-matic toolchain-funcs
7

  
8
DEB_PATCH_VER=${PV#*_p}
9
MY_VER=${PV%_p*}
4
EAPI=8
10 5

  
11 6
DESCRIPTION="Move/copy/append/link multiple files according to a set of wildcard patterns"
12
HOMEPAGE="https://packages.debian.org/unstable/utils/mmv"
13
SRC_URI="
14
	mirror://debian/pool/main/m/mmv/${PN}_${MY_VER}.orig.tar.gz
15
	mirror://debian/pool/main/m/mmv/${PN}_${MY_VER}-${DEB_PATCH_VER}.debian.tar.xz"
7
HOMEPAGE="https://github.com/rrthomas/mmv"
8
SRC_URI="https://github.com/rrthomas/${PN}/releases/download/v${PV}/${P}.tar.gz"
16 9

  
17 10
LICENSE="LGPL-2"
18 11
SLOT="0"
19
KEYWORDS="~alpha amd64 ~arm64 ppc ~riscv x86 ~amd64-linux ~x86-linux ~ppc-macos"
20

  
21
S="${WORKDIR}/${PN}-${MY_VER}.orig"
22

  
23
src_prepare() {
24
	default
25
	rm "${WORKDIR}"/debian/patches/better-diagnostics-for-directories-584850.diff \
26
		|| die #661492
27
	eapply "${WORKDIR}"/debian/patches/*.diff
28
}
29

  
30
src_compile() {
31
	append-lfs-flags
32

  
33
	emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
34
}
35

  
36
src_install() {
37
	dobin "${PN}"
38
	dosym "${PN}" /usr/bin/mcp
39
	dosym "${PN}" /usr/bin/mln
40
	dosym "${PN}" /usr/bin/mad
12
KEYWORDS="~alpha ~amd64 ~arm64 ~ppc ~riscv ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
41 13

  
42
	doman "${PN}.1"
43
	newman "${PN}.1" mcp.1
44
	newman "${PN}.1" mln.1
45
	newman "${PN}.1" mad.1
14
DEPEND="dev-libs/boehm-gc"
15
RDEPEND="${DEPEND}"
46 16

  
47
	dodoc ANNOUNCE "${WORKDIR}"/debian/{changelog,control}
48
}
17
QA_CONFIG_IMPL_DECL_SKIP=( MIN )
Thank you!