/[gentoo-x86]/app-misc/mmv/mmv-1.01b_p15.ebuild
Gentoo

Contents of /app-misc/mmv/mmv-1.01b_p15.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Sun Aug 10 18:08:18 2014 UTC (3 years, 10 months ago) by slyfox
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +2 -2 lines
QA: drop trailing '.' from DESCRIPTION

(Portage version: 2.2.11_p9/cvs/Linux x86_64, signed Manifest commit with key 611FF3AA)

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-misc/mmv/mmv-1.01b_p15.ebuild,v 1.7 2014/06/09 09:00:13 klausman Exp $
4
5 EAPI="3"
6
7 inherit eutils flag-o-matic toolchain-funcs
8
9 DEB_PATCH_VER=${PV#*_p}
10 MY_VER=${PV%_p*}
11
12 DESCRIPTION="Move/copy/append/link multiple files according to a set of wildcard patterns"
13 HOMEPAGE="http://packages.debian.org/unstable/utils/mmv"
14 SRC_URI="
15 mirror://debian/pool/main/m/mmv/${PN}_${MY_VER}.orig.tar.gz
16 mirror://debian/pool/main/m/mmv/${PN}_${MY_VER}-${DEB_PATCH_VER}.diff.gz"
17
18 LICENSE="LGPL-2"
19 SLOT="0"
20 KEYWORDS="~alpha amd64 ppc x86 ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
21 IUSE=""
22
23 S="${WORKDIR}"/${PN}-${MY_VER}.orig
24
25 src_prepare() {
26 epatch "${DISTDIR}"/${PN}_${MY_VER}-${DEB_PATCH_VER}.diff.gz
27 }
28
29 src_compile() {
30 # i wonder how this works on other platforms if CFLAGS from makefile are
31 # overridden, see bug #218082
32 [[ ${CHOST} == *-interix* ]] && append-flags -DIS_SYSV -DHAS_RENAME -DHAS_DIRENT
33 [[ ${CHOST} == *-interix* ]] || append-lfs-flags
34
35 emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" || die
36 }
37
38 src_install() {
39 dobin mmv || die
40 dosym mmv /usr/bin/mcp || die
41 dosym mmv /usr/bin/mln || die
42 dosym mmv /usr/bin/mad || die
43
44 doman mmv.1 || die
45 newman mmv.1 mcp.1 || die
46 newman mmv.1 mln.1 || die
47 newman mmv.1 mad.1 || die
48
49 dodoc ANNOUNCE debian/{changelog,control} || die
50 }

  ViewVC Help
Powered by ViewVC 1.1.20