Browse Source

sys-apps/gprename: new package

Package-Manager: Portage-3.0.4, Repoman-3.0.1
Signed-off-by: Quentin Retornaz <gentoo@retornaz.com>
master
Case_Of 1 year ago
parent
commit
a706e49cfe
Signed by: qretornaz GPG Key ID: 6D8A6C9787A1EC91
3 changed files with 62 additions and 0 deletions
  1. +1
    -0
      sys-apps/gprename/Manifest
  2. +53
    -0
      sys-apps/gprename/gprename-20160905.ebuild
  3. +8
    -0
      sys-apps/gprename/metadata.xml

+ 1
- 0
sys-apps/gprename/Manifest View File

@ -0,0 +1 @@
DIST gprename-20160905.tar.bz2 69101 BLAKE2B 26fc32d47df576b2e0404119d7786048f8cf7edbc019acc7e8a6f152294b26af528ab0d21a4474260f729bc13da9701358dc8bc58acd54d02fcc0b498492fce9 SHA512 ffeadb9aeefd5678b4407392e7ba3f222a65612668a854ab12fb325b298c9c5c57023c0481411fad349b84c6f6629c151a2f49c2ff948152dbb6abbc3504bfef

+ 53
- 0
sys-apps/gprename/gprename-20160905.ebuild View File

@ -0,0 +1,53 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit desktop
DESCRIPTION="GPRename is a complete batch renamer for files and directories"
HOMEPAGE="http://gprename.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND="
dev-lang/perl
dev-perl/glib-perl
dev-perl/Gtk2
dev-perl/libintl-perl
dev-perl/Locale-gettext
sys-devel/gettext
"
DEPEND="${RDEPEND}"
src_prepare() {
#Set /usr rather than /usr/local
sed -i -e 's:/usr/local:/usr:g' Makefile || die "Installation failed with sed!"
#Things get hairy when install calls uninstall
sed -i -e 's:install\: uninstall:install\::g' Makefile || die "Installation failed with sed!"
#Take over installation of binary and nautilus-actions
sed '/\sinstall\s-/,+3d' Makefile > Makefile.tmp || die "Installation failed with sed:"
mv Makefile.tmp Makefile || die "mv failed"
eapply_user
}
src_configure() {
einfo "No configure needed"
}
src_install() {
#Make install fails miserably, so our edited makefile just compiles .po to .mo,
#and then we do all the installtion here
emake install DESTDIR="${D}" || die "emake install failed"
domo build/locale/*.mo
doman man/gprename.1
insinto /usr/share/icons
doins icon/gprename.png
dobin build/gprename
domenu bin/gprename.desktop
}

+ 8
- 0
sys-apps/gprename/metadata.xml View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>gentoo@retornaz.com</email>
<name>Quentin Retornaz</name>
</maintainer>
</pkgmetadata>

Loading…
Cancel
Save