blob: 4ca676599f648effd3ea7b9bcbb654e414b66ea7 (
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
|
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
inherit toolchain-funcs eutils
DESCRIPTION="tool for easily renaming files"
HOMEPAGE="http://rename.sourceforge.net/"
SRC_URI="http://${PN}/sourceforge.net/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 hppa ia64 ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
IUSE=""
src_unpack() {
unpack ${A}
cd "${S}"
sed -i \
-e '/^CFLAGS/s:-O3:@CFLAGS@:' \
-e '/strip /s:.*::' \
Makefile.in
epatch "${FILESDIR}"/${P}-rename.patch
epatch "${FILESDIR}"/${P}-build.patch
epatch "${FILESDIR}"/${P}-gcc44.patch
tc-export CC
}
src_install() {
newbin rename renamexm || die
newman rename.1 renamexm.1
dodoc README ChangeLog
}
pkg_postinst() {
ewarn "This has been renamed to 'renamexm' to avoid"
ewarn "a naming conflict with sys-apps/util-linux."
}
|