summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-02-11 02:44:01 +0000
committerSam James <sam@gentoo.org>2021-02-11 02:44:01 +0000
commite3813cd6207fd35886b17935ca8670629a519386 (patch)
treea406f216fba4233309b9b90362d6c94ea60ade45 /app-misc/muttprint/muttprint-0.73-r4.ebuild
parentapp-misc/klavaro: port to EAPI 7 (diff)
downloadgentoo-e3813cd6207fd35886b17935ca8670629a519386.tar.gz
gentoo-e3813cd6207fd35886b17935ca8670629a519386.tar.bz2
gentoo-e3813cd6207fd35886b17935ca8670629a519386.zip
app-misc/muttprint: port to EAPI 7
Closes: https://bugs.gentoo.org/677206 Package-Manager: Portage-3.0.14, Repoman-3.0.2 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'app-misc/muttprint/muttprint-0.73-r4.ebuild')
-rw-r--r--app-misc/muttprint/muttprint-0.73-r4.ebuild40
1 files changed, 22 insertions, 18 deletions
diff --git a/app-misc/muttprint/muttprint-0.73-r4.ebuild b/app-misc/muttprint/muttprint-0.73-r4.ebuild
index 0c5c35c17679..3d9cae7c05f2 100644
--- a/app-misc/muttprint/muttprint-0.73-r4.ebuild
+++ b/app-misc/muttprint/muttprint-0.73-r4.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=5
+EAPI=7
-inherit autotools-utils eutils
+inherit autotools
DESCRIPTION="Script for pretty printing of your mails"
HOMEPAGE="http://muttprint.sourceforge.net"
@@ -14,20 +14,30 @@ LICENSE="GPL-2"
KEYWORDS="amd64 ppc ppc64 x86"
IUSE="doc"
-DEPEND="dev-lang/perl
- virtual/latex-base
+DEPEND="
dev-texlive/texlive-fontsextra
+ dev-lang/perl
+ virtual/latex-base
doc? (
app-text/dvipsk
- app-text/docbook-sgml-utils[jadetex] )"
+ app-text/docbook-sgml-utils[jadetex]
+ )
+"
-RDEPEND="dev-lang/perl
+RDEPEND="
+ dev-texlive/texlive-latexextra
+ dev-lang/perl
dev-perl/TimeDate
dev-perl/Text-Iconv
virtual/latex-base
- dev-texlive/texlive-latexextra"
+"
-AUTOTOOLS_IN_SOURCE_BUILD=1
+PATCHES=(
+ "${FILESDIR}/${P}-warning.patch"
+ "${FILESDIR}/${P}-manuals.patch"
+ "${FILESDIR}/${P}-pod-encoding.patch"
+ "${FILESDIR}/${P}-fix-number-of-pages.patch"
+)
patch_docs() {
sed -i -e 's/db2pdf/docbook2pdf/' "${S}"/configure.ac || die
@@ -42,10 +52,7 @@ patch_docs() {
}
src_prepare() {
- epatch "${FILESDIR}/${P}-warning.patch"
- epatch "${FILESDIR}/${P}-manuals.patch"
- epatch "${FILESDIR}/${P}-pod-encoding.patch"
- epatch "${FILESDIR}/${P}-fix-number-of-pages.patch"
+ default
if use doc ; then
# Patch docbook and docdir
@@ -54,7 +61,8 @@ src_prepare() {
# Don't do manuals
sed -i -e '/db2pdf/d' "${S}"/configure.ac || die
fi
- sed -i -e "/^docdir/s/$/-${PV}/" "${S}"/Makefile.am || die
+
+ sed -i -e "/^docdir/s/$/-${PVR}/" "${S}"/Makefile.am || die
# The distfile does not include the png files, nor penguin.jpg
sed -i -e '/.*png /d' -e '/penguin.jpg /d' "${S}"/pics/Makefile.am || die
@@ -62,10 +70,6 @@ src_prepare() {
eautoreconf
}
-src_configure() {
- econf --docdir="/usr/share/doc/${PF}"
-}
-
src_compile() {
# Parallel build does not work when USE="doc"
emake -j1