summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /app-misc/muttprint
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'app-misc/muttprint')
-rw-r--r--app-misc/muttprint/Manifest1
-rw-r--r--app-misc/muttprint/files/muttprint-0.73-manuals.patch140
-rw-r--r--app-misc/muttprint/files/muttprint-0.73-pod-encoding.patch32
-rw-r--r--app-misc/muttprint/files/muttprint-0.73-r3-pod-encoding.patch36
-rw-r--r--app-misc/muttprint/files/muttprint-0.73-warning.patch20
-rw-r--r--app-misc/muttprint/metadata.xml20
-rw-r--r--app-misc/muttprint/muttprint-0.73-r1.ebuild74
-rw-r--r--app-misc/muttprint/muttprint-0.73-r2.ebuild75
-rw-r--r--app-misc/muttprint/muttprint-0.73-r3.ebuild75
-rw-r--r--app-misc/muttprint/muttprint-0.73.ebuild71
10 files changed, 544 insertions, 0 deletions
diff --git a/app-misc/muttprint/Manifest b/app-misc/muttprint/Manifest
new file mode 100644
index 000000000000..f15979c6acfe
--- /dev/null
+++ b/app-misc/muttprint/Manifest
@@ -0,0 +1 @@
+DIST muttprint-0.73.tar.gz 361268 SHA256 7cabe6a0aa59849f84914a2da33320611a2fcf5896b94ff957cfade8a325deb6 SHA512 607bdbee769e6d3a954979f15f017875a70078462bdbd747ff65dc3ac61fda3a0c32b261430faab8e457d6781b03d9f266ae2d21cdbdd058a7635ba9ddd27834 WHIRLPOOL 19cbef9d33717d4c16b6bb90204b98485b530e99cefa5535850deecb50a5aba5c639f72979b05d5b53b1b475c6a8df60cd6c49c85c43c2eb3357b3880b2b6975
diff --git a/app-misc/muttprint/files/muttprint-0.73-manuals.patch b/app-misc/muttprint/files/muttprint-0.73-manuals.patch
new file mode 100644
index 000000000000..57dd12dfa74f
--- /dev/null
+++ b/app-misc/muttprint/files/muttprint-0.73-manuals.patch
@@ -0,0 +1,140 @@
+diff -u -r a/doc/manual/en/manual-en.sgml b/doc/manual/en/manual-en.sgml
+--- a/doc/manual/en/manual-en.sgml 2005-05-16 14:38:51.000000000 +0200
++++ b/doc/manual/en/manual-en.sgml 2011-11-27 23:45:50.970890374 +0100
+@@ -191,6 +191,7 @@
+ <para>As mentioned above, there must be a small C program compiled. If you use Perl
+ 5.8 and/or Linux, you could skip this step. For this, just execute
+
++ </para>
+ <para>
+ <prompt>$ </prompt>
+ <userinput>make</userinput>
+@@ -278,7 +279,7 @@
+
+ <para>You have to add or change following line in the file
+ <Filename>$HOME/.muttrc</Filename> or system wide in
+- <FileName>##SYSCONFDIR##/Muttrc</FileName>:</para>
++ <FileName>/etc/Muttrc</FileName>:</para>
+
+ <ProgramListing>set print_command="muttprint"</ProgramListing>
+
+@@ -316,7 +317,7 @@
+ </ProgramListing>
+
+ <para>You'll find more information in the documentation of Mutt
+- (<Filename>##DOCDIR##/mutt/manual.txt(.gz)</Filename>).</para>
++ (<Filename>/usr/share/doc/muttprint/mutt/manual.txt(.gz)</Filename>).</para>
+
+ </sect3>
+
+@@ -345,7 +346,7 @@
+ <para>In the dialogue <GUImenu>Misc</GUImenu>, <GUImenuItem>Config
+ Misc</GUImenuItem> you have to do an entry in <GUIlabel>Print
+ Command</GUIlabel>:
+- <literal>##BINDIR##/muttprint -f $f</literal>.</para>
++ <literal>/usr/bin/muttprint -f $f</literal>.</para>
+
+
+ <Note>
+@@ -393,7 +394,7 @@
+ <para>You find the code in <filename>README.Gnus</filename> and I
+ would like to refer to this file in this manual. If you use
+ packages for the installation you should find this file in the
+- <filename>##DOCDIR##/muttprint/</filename>
++ <filename>/usr/share/doc/muttprint/muttprint/</filename>
+ directory.</para>
+ </sect3>
+
+@@ -445,7 +446,7 @@
+
+ <para>Some things could be configured in Muttprint. This is permanently
+ done in the configuration files <filename>$HOME/.muttprintrc</filename>
+- (only for the current user) or <filename>##SYSCONFDIR##/Muttprintrc</filename>
++ (only for the current user) or <filename>/etc/Muttprintrc</filename>
+ (global for all users). User settings override global settings.</para>
+
+ <para>You can also specify an additional configuration file with the
+@@ -466,7 +467,7 @@
+ <para>An example for a configuration file is distributed with
+ Muttprint (<filename>sample-muttprintrc</filename>). If you've
+ installed a RPM or Debian package, you'll find it in
+- <filename>##DOCDIR##/muttprint/</filename>.</para>
++ <filename>/usr/share/doc/muttprint/muttprint/</filename>.</para>
+
+ <para>An example for a correct assignment:</para>
+
+@@ -550,7 +551,7 @@
+
+ <para>Additionally, Muttprint comes with some example pictures that
+ are already converted into the EPS format. After the installation,
+- you'll find this in <filename>##SHAREDIR##/muttprint</filename>.</para>
++ you'll find this in <filename>/usr/share/muttprint</filename>.</para>
+
+ <para>If the printing of the graphic should turned off,
+ set <literal>PENGUIN</literal> to the value <literal>off</literal>.
+@@ -917,7 +918,7 @@
+ value. Possible are only <literal>A4</literal> and
+ <literal>letter</literal>.</para>
+
+- <para>If there exists a file <filename>##SYSCONFDIR##/papersize</filename> as
++ <para>If there exists a file <filename>/etc/papersize</filename> as
+ usually on Debian systems, it is evaluated, too. Own settings overwrite
+ this system settings.</para>
+
+@@ -1023,7 +1024,7 @@
+ <para>For this, you can assign the variable <literal>BACKGROUND</literal>
+ the value <literal>on</literal>. In the debug mode (see <xref
+ linkend="debug">) this option has no effect.</para>
+-
++ </sect3>
+ <sect3 id="debug">
+ <title>Error messages</title>
+
+diff -u -r a/doc/manual/it/manual-it.sgml b/doc/manual/it/manual-it.sgml
+--- a/doc/manual/it/manual-it.sgml 2005-05-16 14:38:51.000000000 +0200
++++ b/doc/manual/it/manual-it.sgml 2011-11-27 23:45:33.378110313 +0100
+@@ -264,7 +264,7 @@
+
+ <para>Puoi trovere maggiori informazioni nelle documentazione di
+ Mutt
+- (<Filename>##DOCDIR##/mutt/manual.txt(.gz)</Filename>).</para>
++ (<Filename>/usr/share/doc/muttprint/mutt/manual.txt(.gz)</Filename>).</para>
+
+ </sect3>
+
+@@ -296,7 +296,7 @@
+ <para>Nel dialogo <GUImenu>Misc</GUImenu>, <GUImenuItem>Config
+ Misc</GUImenuItem> devi settare una entry in <GUIlabel>Print
+ Command</GUIlabel>:
+- <literal>##BINDIR##/muttprint -f $f</literal>.</para>
++ <literal>/usr/bin/muttprint -f $f</literal>.</para>
+
+
+ <Note>
+@@ -345,7 +345,7 @@
+ <para>Poui trovare il codice in <filename>README.Gnus</filename> e
+ preferirei far riferimento a questo file per questo manuale.
+ Se usi i pacchetti per l'installazione dovresti trovare
+- questo file in <filename>##DOCDIR##/muttprint/</filename>.</para>
++ questo file in <filename>/usr/share/doc/muttprint/muttprint/</filename>.</para>
+ </sect3>
+
+ <sect3>
+@@ -874,7 +874,7 @@
+ Sono possibili solo <literal>A4</literal> e <literal>letter</literal>.
+ </para>
+
+- <para>Se è presente un file <filename>##SYSCONFDIR##/papersize</filename> come
++ <para>Se è presente un file <filename>/etc/papersize</filename> come
+ di soliuto nei sistemi Debian, viene anch'esso considerato.
+ Le proprie impostazione prevarranno su quelle di sistema.</para>
+
+@@ -1079,7 +1079,7 @@
+ <row>
+ <entry>ISO-8859-4</entry>
+ <entry><literal>latin4</literal></entry>
+- <entry>Lingue Europa sud-orientale ed altre lingue/entry>
++ <entry>Lingue Europa sud-orientale ed altre lingue</entry>
+ </row>
+ <row>
+ <entry>ISO-8859-9</entry>
diff --git a/app-misc/muttprint/files/muttprint-0.73-pod-encoding.patch b/app-misc/muttprint/files/muttprint-0.73-pod-encoding.patch
new file mode 100644
index 000000000000..e51095a8e75a
--- /dev/null
+++ b/app-misc/muttprint/files/muttprint-0.73-pod-encoding.patch
@@ -0,0 +1,32 @@
+diff -Nuar a/doc/manpages/de/muttprint.pod b/doc/manpages/de/muttprint.pod
+--- a/doc/manpages/de/muttprint.pod 2006-05-06 09:13:46.000000000 +0200
++++ b/doc/manpages/de/muttprint.pod 2014-08-19 19:00:14.939978099 +0200
+@@ -1,3 +1,4 @@
++=encoding latin1
+ =head1 NAME
+
+ muttprint - schöner Ausdruck von Mails mit Mutt
+diff -Nuar a/doc/manpages/en/muttprint.pod b/doc/manpages/en/muttprint.pod
+--- a/doc/manpages/en/muttprint.pod 2006-05-06 09:13:46.000000000 +0200
++++ b/doc/manpages/en/muttprint.pod 2014-08-19 19:00:09.349978130 +0200
+@@ -1,3 +1,4 @@
++=encoding latin1
+ =head1 NAME
+
+ muttprint - pretty printing of mails with Mutt
+diff -Nuar a/doc/manpages/es/muttprint.pod b/doc/manpages/es/muttprint.pod
+--- a/doc/manpages/es/muttprint.pod 2006-05-06 09:13:46.000000000 +0200
++++ b/doc/manpages/es/muttprint.pod 2014-08-19 19:00:11.109978120 +0200
+@@ -1,3 +1,4 @@
++=encoding latin1
+ =head1 NOMBRE
+
+ muttprint - impresión elegante de mensajes de correo con Mutt
+diff -Nuar a/doc/manpages/it/muttprint.pod b/doc/manpages/it/muttprint.pod
+--- a/doc/manpages/it/muttprint.pod 2006-05-06 09:13:46.000000000 +0200
++++ b/doc/manpages/it/muttprint.pod 2014-08-19 19:00:12.679978111 +0200
+@@ -1,3 +1,4 @@
++=encoding latin1
+ =head1 NOME
+
+ muttprint - stampa raffinata della posta elettronica con Mutt
diff --git a/app-misc/muttprint/files/muttprint-0.73-r3-pod-encoding.patch b/app-misc/muttprint/files/muttprint-0.73-r3-pod-encoding.patch
new file mode 100644
index 000000000000..1a939582c1bf
--- /dev/null
+++ b/app-misc/muttprint/files/muttprint-0.73-r3-pod-encoding.patch
@@ -0,0 +1,36 @@
+diff -Nuar a/doc/manpages/de/muttprint.pod b/doc/manpages/de/muttprint.pod
+--- a/doc/manpages/de/muttprint.pod 2006-05-06 09:13:46.000000000 +0200
++++ b/doc/manpages/de/muttprint.pod 2014-12-19 23:17:31.939783684 +0100
+@@ -1,3 +1,5 @@
++=encoding latin1
++
+ =head1 NAME
+
+ muttprint - schöner Ausdruck von Mails mit Mutt
+diff -Nuar a/doc/manpages/en/muttprint.pod b/doc/manpages/en/muttprint.pod
+--- a/doc/manpages/en/muttprint.pod 2006-05-06 09:13:46.000000000 +0200
++++ b/doc/manpages/en/muttprint.pod 2014-12-19 23:17:15.219783778 +0100
+@@ -1,3 +1,5 @@
++=encoding latin1
++
+ =head1 NAME
+
+ muttprint - pretty printing of mails with Mutt
+diff -Nuar a/doc/manpages/es/muttprint.pod b/doc/manpages/es/muttprint.pod
+--- a/doc/manpages/es/muttprint.pod 2006-05-06 09:13:46.000000000 +0200
++++ b/doc/manpages/es/muttprint.pod 2014-12-19 23:17:25.029783723 +0100
+@@ -1,3 +1,5 @@
++=encoding latin1
++
+ =head1 NOMBRE
+
+ muttprint - impresión elegante de mensajes de correo con Mutt
+diff -Nuar a/doc/manpages/it/muttprint.pod b/doc/manpages/it/muttprint.pod
+--- a/doc/manpages/it/muttprint.pod 2006-05-06 09:13:46.000000000 +0200
++++ b/doc/manpages/it/muttprint.pod 2014-12-19 23:17:39.779783640 +0100
+@@ -1,3 +1,5 @@
++=encoding latin1
++
+ =head1 NOME
+
+ muttprint - stampa raffinata della posta elettronica con Mutt
diff --git a/app-misc/muttprint/files/muttprint-0.73-warning.patch b/app-misc/muttprint/files/muttprint-0.73-warning.patch
new file mode 100644
index 000000000000..e17f658732d9
--- /dev/null
+++ b/app-misc/muttprint/files/muttprint-0.73-warning.patch
@@ -0,0 +1,20 @@
+diff -Nur a/muttprint b/muttprint
+--- a/muttprint 2012-04-28 13:46:46.109925472 +0200
++++ b/muttprint 2012-04-28 13:48:40.919924827 +0200
+@@ -740,6 +740,8 @@
+ }
+ }
+
++chdir($ENV{HOME}) || chdir('/');
++
+ ################################### ENDE ####################################
+
+
+@@ -1791,6 +1793,7 @@
+ output \*STDERR, $messageString;
+ }
+ }
++ chdir($ENV{HOME}) || chdir('/');
+ exit 1;
+ }
+
diff --git a/app-misc/muttprint/metadata.xml b/app-misc/muttprint/metadata.xml
new file mode 100644
index 000000000000..ec09092962a5
--- /dev/null
+++ b/app-misc/muttprint/metadata.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>nimiux@gentoo.org</email>
+ <name>Chema Alonso</name>
+ </maintainer>
+ <longdescription lang="en">
+ Pretty printing of your mails
+ </longdescription>
+ <longdescription lang="es">
+ Impresión elegante de sus correos
+ </longdescription>
+ <use>
+ <flag name="doc">Builds documentation</flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">muttprint</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/muttprint/muttprint-0.73-r1.ebuild b/app-misc/muttprint/muttprint-0.73-r1.ebuild
new file mode 100644
index 000000000000..6609a9df793b
--- /dev/null
+++ b/app-misc/muttprint/muttprint-0.73-r1.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+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
+ 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"
+
+ 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
+}
diff --git a/app-misc/muttprint/muttprint-0.73-r2.ebuild b/app-misc/muttprint/muttprint-0.73-r2.ebuild
new file mode 100644
index 000000000000..d97c4401f556
--- /dev/null
+++ b/app-misc/muttprint/muttprint-0.73-r2.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2014 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
+ 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"
+
+ 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
+}
diff --git a/app-misc/muttprint/muttprint-0.73-r3.ebuild b/app-misc/muttprint/muttprint-0.73-r3.ebuild
new file mode 100644
index 000000000000..9fa7d4e8c628
--- /dev/null
+++ b/app-misc/muttprint/muttprint-0.73-r3.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2015 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
+ 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}/${PF}-pod-encoding.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
+}
diff --git a/app-misc/muttprint/muttprint-0.73.ebuild b/app-misc/muttprint/muttprint-0.73.ebuild
new file mode 100644
index 000000000000..f7de4eacd216
--- /dev/null
+++ b/app-misc/muttprint/muttprint-0.73.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+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
+ doc? (
+ app-text/dvipsk
+ app-text/docbook-sgml-utils[jadetex] )"
+
+RDEPEND="dev-lang/perl
+ virtual/latex-base"
+
+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}/${PF}-warning.patch"
+ epatch "${FILESDIR}/${PF}-manuals.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() {
+ # Paralell build does not work when USE="doc"
+ emake -j1
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+
+ dodoc ChangeLog
+}