summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wendler <polynomial-c@gentoo.org>2020-06-25 10:14:11 +0200
committerLars Wendler <polynomial-c@gentoo.org>2020-06-25 10:14:20 +0200
commit51fb1b93175a51332e3a4d75a1563cd5e7351566 (patch)
tree6aa84d84d0ca1e5c5664c4ef2c4a6eb2135c6c1f /app-text/convmv
parentmedia-libs/gegl: reset KEYWORDS to ~ on 0.4.16-r1 (diff)
downloadgentoo-51fb1b93175a51332e3a4d75a1563cd5e7351566.tar.gz
gentoo-51fb1b93175a51332e3a4d75a1563cd5e7351566.tar.bz2
gentoo-51fb1b93175a51332e3a4d75a1563cd5e7351566.zip
app-text/convmv: Don't compress man page during build
Closes: https://bugs.gentoo.org/729544 Package-Manager: Portage-2.3.102, Repoman-2.3.23 Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
Diffstat (limited to 'app-text/convmv')
-rw-r--r--app-text/convmv/convmv-2.05-r1.ebuild38
-rw-r--r--app-text/convmv/files/convmv-2.05-manpage_nocompress.patch16
2 files changed, 54 insertions, 0 deletions
diff --git a/app-text/convmv/convmv-2.05-r1.ebuild b/app-text/convmv/convmv-2.05-r1.ebuild
new file mode 100644
index 000000000000..3384fadada92
--- /dev/null
+++ b/app-text/convmv/convmv-2.05-r1.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DESCRIPTION="convert filenames to utf8 or any other charset"
+HOMEPAGE="https://www.j3e.de/linux/convmv/"
+SRC_URI="https://www.j3e.de/linux/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
+IUSE=""
+
+DEPEND="dev-lang/perl"
+RDEPEND="${DEPEND}"
+BDEPEND="${DEPEND}"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-2.05-manpage_nocompress.patch" #729544
+)
+
+src_prepare() {
+ default
+ sed -i -e "1s|#!/usr|#!${EPREFIX}/usr|" convmv || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" PREFIX="${EPREFIX}"/usr install
+ dodoc CREDITS Changes TODO VERSION
+}
+
+src_test() {
+ unpack ./testsuite.tar
+
+ cd "${S}"/suite || die
+ ./dotests.sh || die "Tests failed"
+}
diff --git a/app-text/convmv/files/convmv-2.05-manpage_nocompress.patch b/app-text/convmv/files/convmv-2.05-manpage_nocompress.patch
new file mode 100644
index 000000000000..02f0c41032ee
--- /dev/null
+++ b/app-text/convmv/files/convmv-2.05-manpage_nocompress.patch
@@ -0,0 +1,16 @@
+--- convmv-2.05/Makefile
++++ convmv-2.05/Makefile
+@@ -10,11 +10,11 @@
+ install: all
+ mkdir -p $(DESTDIR)$(MANDIR)/man1/
+ mkdir -p $(DESTDIR)$(PREFIX)/bin/
+- cp convmv.1.gz $(DESTDIR)$(MANDIR)/man1/
++ cp convmv.1 $(DESTDIR)$(MANDIR)/man1/
+ install -m 755 convmv $(DESTDIR)$(PREFIX)/bin/
+
+ manpage:
+- pod2man --section 1 --center=" " convmv | gzip > convmv.1.gz
++ pod2man --section 1 --center=" " convmv > convmv.1
+
+ clean:
+ rm -f convmv.1.gz convmv-*.tar.gz MD5sums SHA256sums .files .name