Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/convmv/files/, app-text/convmv/
Date: Thu, 25 Jun 2020 08:14:29
Message-Id: 1593072860.51fb1b93175a51332e3a4d75a1563cd5e7351566.polynomial-c@gentoo
1 commit: 51fb1b93175a51332e3a4d75a1563cd5e7351566
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jun 25 08:14:11 2020 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Thu Jun 25 08:14:20 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=51fb1b93
7
8 app-text/convmv: Don't compress man page during build
9
10 Closes: https://bugs.gentoo.org/729544
11 Package-Manager: Portage-2.3.102, Repoman-2.3.23
12 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
13
14 app-text/convmv/convmv-2.05-r1.ebuild | 38 ++++++++++++++++++++++
15 .../files/convmv-2.05-manpage_nocompress.patch | 16 +++++++++
16 2 files changed, 54 insertions(+)
17
18 diff --git a/app-text/convmv/convmv-2.05-r1.ebuild b/app-text/convmv/convmv-2.05-r1.ebuild
19 new file mode 100644
20 index 00000000000..3384fadada9
21 --- /dev/null
22 +++ b/app-text/convmv/convmv-2.05-r1.ebuild
23 @@ -0,0 +1,38 @@
24 +# Copyright 1999-2020 Gentoo Authors
25 +# Distributed under the terms of the GNU General Public License v2
26 +
27 +EAPI=7
28 +
29 +DESCRIPTION="convert filenames to utf8 or any other charset"
30 +HOMEPAGE="https://www.j3e.de/linux/convmv/"
31 +SRC_URI="https://www.j3e.de/linux/${PN}/${P}.tar.gz"
32 +
33 +LICENSE="GPL-2"
34 +SLOT="0"
35 +KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
36 +IUSE=""
37 +
38 +DEPEND="dev-lang/perl"
39 +RDEPEND="${DEPEND}"
40 +BDEPEND="${DEPEND}"
41 +
42 +PATCHES=(
43 + "${FILESDIR}/${PN}-2.05-manpage_nocompress.patch" #729544
44 +)
45 +
46 +src_prepare() {
47 + default
48 + sed -i -e "1s|#!/usr|#!${EPREFIX}/usr|" convmv || die
49 +}
50 +
51 +src_install() {
52 + emake DESTDIR="${D}" PREFIX="${EPREFIX}"/usr install
53 + dodoc CREDITS Changes TODO VERSION
54 +}
55 +
56 +src_test() {
57 + unpack ./testsuite.tar
58 +
59 + cd "${S}"/suite || die
60 + ./dotests.sh || die "Tests failed"
61 +}
62
63 diff --git a/app-text/convmv/files/convmv-2.05-manpage_nocompress.patch b/app-text/convmv/files/convmv-2.05-manpage_nocompress.patch
64 new file mode 100644
65 index 00000000000..02f0c41032e
66 --- /dev/null
67 +++ b/app-text/convmv/files/convmv-2.05-manpage_nocompress.patch
68 @@ -0,0 +1,16 @@
69 +--- convmv-2.05/Makefile
70 ++++ convmv-2.05/Makefile
71 +@@ -10,11 +10,11 @@
72 + install: all
73 + mkdir -p $(DESTDIR)$(MANDIR)/man1/
74 + mkdir -p $(DESTDIR)$(PREFIX)/bin/
75 +- cp convmv.1.gz $(DESTDIR)$(MANDIR)/man1/
76 ++ cp convmv.1 $(DESTDIR)$(MANDIR)/man1/
77 + install -m 755 convmv $(DESTDIR)$(PREFIX)/bin/
78 +
79 + manpage:
80 +- pod2man --section 1 --center=" " convmv | gzip > convmv.1.gz
81 ++ pod2man --section 1 --center=" " convmv > convmv.1
82 +
83 + clean:
84 + rm -f convmv.1.gz convmv-*.tar.gz MD5sums SHA256sums .files .name