summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosé María Alonso <nimiux@gentoo.org>2012-04-18 11:39:52 +0000
committerJosé María Alonso <nimiux@gentoo.org>2012-04-18 11:39:52 +0000
commit1edcace845bafefd9f61a8a9a34d1c4c8090597d (patch)
treebb77e9aba37c373a0289a2c47746527a7e375985 /app-misc/muttprint
parentVersion bump, remove old branch version (diff)
downloadgentoo-2-1edcace845bafefd9f61a8a9a34d1c4c8090597d.tar.gz
gentoo-2-1edcace845bafefd9f61a8a9a34d1c4c8090597d.tar.bz2
gentoo-2-1edcace845bafefd9f61a8a9a34d1c4c8090597d.zip
Revison bump to 0.73. Added description to metadata
(Portage version: 2.1.10.49/cvs/Linux x86_64)
Diffstat (limited to 'app-misc/muttprint')
-rw-r--r--app-misc/muttprint/ChangeLog9
-rw-r--r--app-misc/muttprint/files/muttprint-0.73-manuals.patch140
-rw-r--r--app-misc/muttprint/files/muttprint-0.73-warning.patch11
-rw-r--r--app-misc/muttprint/metadata.xml6
-rw-r--r--app-misc/muttprint/muttprint-0.73.ebuild71
5 files changed, 236 insertions, 1 deletions
diff --git a/app-misc/muttprint/ChangeLog b/app-misc/muttprint/ChangeLog
index fe2b5ebf538d..606a8c0730d2 100644
--- a/app-misc/muttprint/ChangeLog
+++ b/app-misc/muttprint/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for app-misc/muttprint
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-misc/muttprint/ChangeLog,v 1.51 2012/04/16 21:17:20 ranger Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-misc/muttprint/ChangeLog,v 1.52 2012/04/18 11:39:52 nimiux Exp $
+
+*muttprint-0.73 (18 Apr 2012)
+
+ 18 Apr 2012; Chema Alonso <nimiux@gentoo.org> +muttprint-0.73.ebuild,
+ +files/muttprint-0.73-manuals.patch, +files/muttprint-0.73-warning.patch,
+ metadata.xml:
+ app-misc/muttprint revision bump to 0.73
16 Apr 2012; Brent Baude <ranger@gentoo.org> muttprint-0.72d-r3.ebuild:
Marking muttprint-0.72d-r3 ppc for bug 394727
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-warning.patch b/app-misc/muttprint/files/muttprint-0.73-warning.patch
new file mode 100644
index 000000000000..047b7d64d2b9
--- /dev/null
+++ b/app-misc/muttprint/files/muttprint-0.73-warning.patch
@@ -0,0 +1,11 @@
+--- a/muttprint-0.73/muttprint 2008-12-26 01:33:36.000000000 +0100
++++ b/muttprint-0.73/muttprint 2011-11-25 22:08:00.914009076 +0100
+@@ -740,6 +740,8 @@
+ }
+ }
+
++chdir($ENV{HOME}) || chdir('/');
++
+ ################################### ENDE ####################################
+
+
diff --git a/app-misc/muttprint/metadata.xml b/app-misc/muttprint/metadata.xml
index 747be2530a85..865cc108f3c4 100644
--- a/app-misc/muttprint/metadata.xml
+++ b/app-misc/muttprint/metadata.xml
@@ -5,4 +5,10 @@
<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 tus correos
+ </longdescription>
</pkgmetadata>
diff --git a/app-misc/muttprint/muttprint-0.73.ebuild b/app-misc/muttprint/muttprint-0.73.ebuild
new file mode 100644
index 000000000000..caa4f0afe143
--- /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
+# $Header: /var/cvsroot/gentoo-x86/app-misc/muttprint/muttprint-0.73.ebuild,v 1.1 2012/04/18 11:39:52 nimiux Exp $
+
+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
+}