Gentoo Archives: gentoo-commits

From: Patrice Clement <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/mmv/
Date: Wed, 13 Feb 2019 22:17:02
Message-Id: 1550096198.d2c5dbbe7d14460ae750258e4c5ec70c40cc72c9.monsieurp@gentoo
1 commit: d2c5dbbe7d14460ae750258e4c5ec70c40cc72c9
2 Author: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
3 AuthorDate: Fri Feb 8 17:12:42 2019 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Wed Feb 13 22:16:38 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d2c5dbbe
7
8 app-misc/mmv: EAPI 6 bump.
9
10 Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org>
11 Package-Manager: Portage-2.3.51, Repoman-2.3.11
12
13 app-misc/mmv/mmv-1.01b_p18-r1.ebuild | 49 ++++++++++++++++++++++++++++++++++++
14 1 file changed, 49 insertions(+)
15
16 diff --git a/app-misc/mmv/mmv-1.01b_p18-r1.ebuild b/app-misc/mmv/mmv-1.01b_p18-r1.ebuild
17 new file mode 100644
18 index 00000000000..2b92035c6ac
19 --- /dev/null
20 +++ b/app-misc/mmv/mmv-1.01b_p18-r1.ebuild
21 @@ -0,0 +1,49 @@
22 +# Copyright 1999-2019 Gentoo Authors
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI=6
26 +
27 +inherit eutils flag-o-matic toolchain-funcs
28 +
29 +DEB_PATCH_VER=${PV#*_p}
30 +MY_VER=${PV%_p*}
31 +
32 +DESCRIPTION="Move/copy/append/link multiple files according to a set of wildcard patterns"
33 +HOMEPAGE="https://packages.debian.org/unstable/utils/mmv"
34 +SRC_URI="
35 + mirror://debian/pool/main/m/mmv/${PN}_${MY_VER}.orig.tar.gz
36 + mirror://debian/pool/main/m/mmv/${PN}_${MY_VER}-${DEB_PATCH_VER}.debian.tar.gz"
37 +
38 +LICENSE="LGPL-2"
39 +SLOT="0"
40 +KEYWORDS="~alpha ~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
41 +
42 +S="${WORKDIR}/${PN}-${MY_VER}.orig"
43 +
44 +src_prepare() {
45 + default
46 + epatch "${WORKDIR}"/debian/patches/*.diff
47 +}
48 +
49 +src_compile() {
50 + # i wonder how this works on other platforms if CFLAGS from makefile are
51 + # overridden, see bug #218082
52 + [[ ${CHOST} == *-interix* ]] && append-flags -DIS_SYSV -DHAS_RENAME -DHAS_DIRENT
53 + [[ ${CHOST} == *-interix* ]] || append-lfs-flags
54 +
55 + emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
56 +}
57 +
58 +src_install() {
59 + dobin "${PN}"
60 + dosym "${PN}" /usr/bin/mcp
61 + dosym "${PN}" /usr/bin/mln
62 + dosym "${PN}" /usr/bin/mad
63 +
64 + doman "${PN}.1"
65 + newman "${PN}.1" mcp.1
66 + newman "${PN}.1" mln.1
67 + newman "${PN}.1" mad.1
68 +
69 + dodoc ANNOUNCE "${WORKDIR}"/debian/{changelog,control}
70 +}