summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChema Alonso Josa <nimiux@gentoo.org>2016-09-23 13:59:29 +0200
committerChema Alonso Josa <nimiux@gentoo.org>2016-09-23 13:59:29 +0200
commita5b4bada329039b84af4b31a81378f8befdabf53 (patch)
tree33dfea6c5e3245a554f5c4ff92ec0b2139767d32 /app-misc/muttprint
parentapp-misc/muttprint: cleanups patch (diff)
downloadgentoo-a5b4bada329039b84af4b31a81378f8befdabf53.tar.gz
gentoo-a5b4bada329039b84af4b31a81378f8befdabf53.tar.bz2
gentoo-a5b4bada329039b84af4b31a81378f8befdabf53.zip
app-misc/muttprint: Bump to update the RegEx which calculates de number of pages
Fixes bug #594722 Package-Manager: portage-2.2.28
Diffstat (limited to 'app-misc/muttprint')
-rw-r--r--app-misc/muttprint/files/muttprint-0.73-fix-number-of-pages.patch12
-rw-r--r--app-misc/muttprint/muttprint-0.73-r4.ebuild76
2 files changed, 88 insertions, 0 deletions
diff --git a/app-misc/muttprint/files/muttprint-0.73-fix-number-of-pages.patch b/app-misc/muttprint/files/muttprint-0.73-fix-number-of-pages.patch
new file mode 100644
index 000000000000..0e7a4b4f94ff
--- /dev/null
+++ b/app-misc/muttprint/files/muttprint-0.73-fix-number-of-pages.patch
@@ -0,0 +1,12 @@
+diff -Nuar a/muttprint b/muttprint
+--- a/muttprint 2016-09-23 10:03:48.870030157 +0200
++++ b/muttprint 2016-09-23 10:08:39.310036004 +0200
+@@ -1635,7 +1635,7 @@
+ open (AUX, "$auxfile") or fatalError "Could not open $auxfile:\n$!";
+
+ while (<AUX>) {
+- ($numberOfPages) = /\\newlabel{LastPage}{{}{(\d+)}}/;
++ ($numberOfPages) = /\\newlabel\{LastPage}\{\{}\{(\d+)}}/;
+ }
+
+ close AUX or fatalError "Could not close $auxfile:\n$!";
diff --git a/app-misc/muttprint/muttprint-0.73-r4.ebuild b/app-misc/muttprint/muttprint-0.73-r4.ebuild
new file mode 100644
index 000000000000..34988edbb1c1
--- /dev/null
+++ b/app-misc/muttprint/muttprint-0.73-r4.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit autotools-utils eutils
+
+DESCRIPTION="Script for pretty printing of your mails"
+HOMEPAGE="http://muttprint.sourceforge.net"
+SRC_URI="mirror://sourceforge/muttprint/${P}.tar.gz"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+IUSE="doc"
+
+DEPEND="dev-lang/perl
+ virtual/latex-base
+ dev-texlive/texlive-fontsextra
+ doc? (
+ app-text/dvipsk
+ app-text/docbook-sgml-utils[jadetex] )"
+
+RDEPEND="dev-lang/perl
+ virtual/latex-base
+ dev-texlive/texlive-latexextra"
+
+AUTOTOOLS_IN_SOURCE_BUILD=1
+
+patch_docs() {
+ sed -i -e 's/db2pdf/docbook2pdf/' "${S}"/configure.ac || die
+ for l in de en es it sl
+ do
+ sed -i -e "/^docdir/s/$/-${PV}/" \
+ -e 's/db2/docbook2/' -e 's/ -s / -d /' \
+ -e "s|manual-${l}-sed/||" \
+ -e "s/mv manual-${l}-sed.dvi/cp manual-${l}-sed.dvi/" \
+ "${S}"/doc/manual/${l}/Makefile.am || die
+ done
+}
+
+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"
+
+ if use doc ; then
+ # Patch docbook and docdir
+ patch_docs
+ else
+ # Don't do manuals
+ sed -i -e '/db2pdf/d' "${S}"/configure.ac || die
+ fi
+ sed -i -e "/^docdir/s/$/-${PV}/" "${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
+
+ eautoreconf
+}
+
+src_configure() {
+ econf --docdir="/usr/share/doc/${PF}"
+}
+
+src_compile() {
+ # Parallel build does not work when USE="doc"
+ emake -j1
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ dodoc ChangeLog
+}