diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /app-misc/mmv/mmv-1.01b_p18.ebuild | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'app-misc/mmv/mmv-1.01b_p18.ebuild')
-rw-r--r-- | app-misc/mmv/mmv-1.01b_p18.ebuild | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/app-misc/mmv/mmv-1.01b_p18.ebuild b/app-misc/mmv/mmv-1.01b_p18.ebuild new file mode 100644 index 000000000000..b494b21028bb --- /dev/null +++ b/app-misc/mmv/mmv-1.01b_p18.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit eutils 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="http://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.gz" + +LICENSE="LGPL-2" +SLOT="0" +KEYWORDS="~alpha amd64 ppc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" +IUSE="" + +S="${WORKDIR}"/${PN}-${MY_VER}.orig + +src_prepare() { + epatch "${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 mmv + dosym mmv /usr/bin/mcp + dosym mmv /usr/bin/mln + dosym mmv /usr/bin/mad + + doman mmv.1 + newman mmv.1 mcp.1 + newman mmv.1 mln.1 + newman mmv.1 mad.1 + + dodoc ANNOUNCE "${WORKDIR}"/debian/{changelog,control} +} |