diff options
author | Patrice Clement <monsieurp@gentoo.org> | 2017-02-01 23:52:04 +0100 |
---|---|---|
committer | Patrice Clement <monsieurp@gentoo.org> | 2017-02-01 23:55:22 +0100 |
commit | bc1a6557a6d235d554374cc2aab96b9dc9ea533a (patch) | |
tree | 40d0c525f2bfdff02ce8d251e5c98ed09d36ff77 /sys-apps/rename | |
parent | sys-auth/oath-toolkit: Update to version 2.6.2 (diff) | |
download | gentoo-bc1a6557a6d235d554374cc2aab96b9dc9ea533a.tar.gz gentoo-bc1a6557a6d235d554374cc2aab96b9dc9ea533a.tar.bz2 gentoo-bc1a6557a6d235d554374cc2aab96b9dc9ea533a.zip |
sys-apps/rename: EAPI 6 bump.
Package-Manager: portage-2.3.3
Diffstat (limited to 'sys-apps/rename')
-rw-r--r-- | sys-apps/rename/files/rename-1.3-build.patch | 4 | ||||
-rw-r--r-- | sys-apps/rename/files/rename-1.3-gcc44.patch | 4 | ||||
-rw-r--r-- | sys-apps/rename/files/rename-1.3-rename.patch | 8 | ||||
-rw-r--r-- | sys-apps/rename/rename-1.3-r2.ebuild | 43 |
4 files changed, 51 insertions, 8 deletions
diff --git a/sys-apps/rename/files/rename-1.3-build.patch b/sys-apps/rename/files/rename-1.3-build.patch index 942a2c142159..6d184435ddc1 100644 --- a/sys-apps/rename/files/rename-1.3-build.patch +++ b/sys-apps/rename/files/rename-1.3-build.patch @@ -1,5 +1,5 @@ ---- Makefile.in -+++ Makefile.in +--- a/Makefile.in ++++ b/Makefile.in @@ -16,7 +16,7 @@ all: rename diff --git a/sys-apps/rename/files/rename-1.3-gcc44.patch b/sys-apps/rename/files/rename-1.3-gcc44.patch index 0cbd3966748b..71f5e88b3398 100644 --- a/sys-apps/rename/files/rename-1.3-gcc44.patch +++ b/sys-apps/rename/files/rename-1.3-gcc44.patch @@ -1,6 +1,6 @@ diff -NrU5 rename-1.3.original/rename.c rename-1.3/rename.c ---- rename-1.3.original/rename.c 2009-06-14 00:21:43.000000000 -0600 -+++ rename-1.3/rename.c 2009-06-14 00:22:21.000000000 -0600 +--- a/rename.c 2009-06-14 00:21:43.000000000 -0600 ++++ b/rename.c 2009-06-14 00:22:21.000000000 -0600 @@ -63,11 +63,11 @@ #endif #endif diff --git a/sys-apps/rename/files/rename-1.3-rename.patch b/sys-apps/rename/files/rename-1.3-rename.patch index 52a3d9acf6c8..127959fb3b34 100644 --- a/sys-apps/rename/files/rename-1.3-rename.patch +++ b/sys-apps/rename/files/rename-1.3-rename.patch @@ -1,5 +1,5 @@ ---- rename/rename.c -+++ rename/rename.c +--- a/rename.c ++++ b/rename.c @@ -594,7 +594,7 @@ } else { rs = rename(oldp, new); @@ -20,8 +20,8 @@ Rename SOURCE to DEST, or substitute characters match the specified pattern\n\ in the filename.\n\ \n\ ---- rename/rename.1 -+++ rename/rename.1 +--- a/rename.1 ++++ b/rename.1 @@ -1,16 +1,16 @@ .TH NAME SECTION .SH Name diff --git a/sys-apps/rename/rename-1.3-r2.ebuild b/sys-apps/rename/rename-1.3-r2.ebuild new file mode 100644 index 000000000000..a5fbc51c46f8 --- /dev/null +++ b/sys-apps/rename/rename-1.3-r2.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +inherit toolchain-funcs eutils + +DESCRIPTION="Easily rename 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" + +MY_PATCHES=( + "${FILESDIR}"/${P}-rename.patch + "${FILESDIR}"/${P}-build.patch + "${FILESDIR}"/${P}-gcc44.patch +) + +DOCS=( README ChangeLog ) + +src_prepare() { + default + sed -i \ + -e '/^CFLAGS/s:-O3:@CFLAGS@:' \ + -e '/strip /s:.*::' \ + Makefile.in || die + epatch "${MY_PATCHES[@]}" + tc-export CC +} + +src_install() { + newbin "${PN}" "${PN}xm" + newman "${PN}.1" "${PN}xm.1" +} + +pkg_postinst() { + ewarn "This has been renamed to '${PN}xm' to avoid" + ewarn "a naming conflict with sys-apps/util-linux." +} |