From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- app-misc/muttprint/Manifest | 9 ++ .../files/muttprint-0.73-fix-number-of-pages.patch | 12 ++ .../muttprint/files/muttprint-0.73-manuals.patch | 140 +++++++++++++++++++++ .../files/muttprint-0.73-pod-encoding.patch | 36 ++++++ .../muttprint/files/muttprint-0.73-warning.patch | 20 +++ app-misc/muttprint/metadata.xml | 20 +++ app-misc/muttprint/muttprint-0.73-r4.ebuild | 77 ++++++++++++ 7 files changed, 314 insertions(+) create mode 100644 app-misc/muttprint/Manifest create mode 100644 app-misc/muttprint/files/muttprint-0.73-fix-number-of-pages.patch create mode 100644 app-misc/muttprint/files/muttprint-0.73-manuals.patch create mode 100644 app-misc/muttprint/files/muttprint-0.73-pod-encoding.patch create mode 100644 app-misc/muttprint/files/muttprint-0.73-warning.patch create mode 100644 app-misc/muttprint/metadata.xml create mode 100644 app-misc/muttprint/muttprint-0.73-r4.ebuild (limited to 'app-misc/muttprint') diff --git a/app-misc/muttprint/Manifest b/app-misc/muttprint/Manifest new file mode 100644 index 000000000000..113916025915 --- /dev/null +++ b/app-misc/muttprint/Manifest @@ -0,0 +1,9 @@ +AUX muttprint-0.73-fix-number-of-pages.patch 437 SHA256 d623362d595d9a50c09736090fe935b3af02c035fcd7588e09c2b4ad753ad4f5 SHA512 f19944d7969d9e180e86b6558b4255cfcb12dea01f4cd042682381d6dc0949e79eed439ba4daf62a41f53a2b5ed76f8f2d72c802bed879f26a2d2fa5cf054449 WHIRLPOOL f16da42f6ba1fe93b2cb0262f7a7bb7f680472a32cbb518ca6cdf08ac30abdd09ab47701bbd8b99544146522b3a1be4ff85a83e60a4082ea0b9d6b769d5265fa +AUX muttprint-0.73-manuals.patch 5842 SHA256 3bbe46ee6daad9a34f65975787f97624484bdecec023ce048f70851e17a99f38 SHA512 7f9be903e004ab2e567c7af0a0a10963fe716377d82faf2c5c58edb7a80de363b74cd4ccb70886bb58a28e10a1dd476f41cc372d921cbb9a5f91b19fb3a8274f WHIRLPOOL f66fcee888c2e1a5ae3db86651232aa7afc32f4e1f20419c21ad08c4887b6aa71fff44b46535f413b27b3d054b96f7299d7189053f759139546d730db560bf88 +AUX muttprint-0.73-pod-encoding.patch 1305 SHA256 73e759e30769f95d2f2dc6d2e37899700c68500ab5793975f9a2aed4caa4ae07 SHA512 227188f17004b3c713bf81c165154e834a18fae9f3e0a461e4e5e267802ab4259556c51aecf00d62d8027b236a6490cd40d6dbcf55afcfde31e09771efe21b95 WHIRLPOOL 8f164c777135ec4bcb24561a3f1e4f5efb0076da356504506fde8352aeb0c46888dc0e9c3010547f116aa2d702dd93cb9d3890b7ed7159303396543c9b71e4dc +AUX muttprint-0.73-warning.patch 404 SHA256 596a1d14fe2384814c80e98c71868c705ea203d772c332b596e7ba2412dc7443 SHA512 4f39fb455c0f99a68b2c004556377c5c385ecf136ae5a317fc1418497bfa28d0965e8b4572897a74da651b75c17cbebe0e12cb37950f8a45cb3b2c4205f65bd5 WHIRLPOOL 9ffb326a2ec61eb312edb49e1431f89f4d356a1f904ed3485cf053f5b6f020070d5931cd80b1d9047cd96d05530aa1f8e2850a1db44292f6f81f300a7a1e58a1 +DIST muttprint-0.73.tar.gz 361268 SHA256 7cabe6a0aa59849f84914a2da33320611a2fcf5896b94ff957cfade8a325deb6 SHA512 607bdbee769e6d3a954979f15f017875a70078462bdbd747ff65dc3ac61fda3a0c32b261430faab8e457d6781b03d9f266ae2d21cdbdd058a7635ba9ddd27834 WHIRLPOOL 19cbef9d33717d4c16b6bb90204b98485b530e99cefa5535850deecb50a5aba5c639f72979b05d5b53b1b475c6a8df60cd6c49c85c43c2eb3357b3880b2b6975 +EBUILD muttprint-0.73-r4.ebuild 1749 SHA256 7ce01445cfb42c0e23323fad348ad5b7c9a62f499dd4446cb875a109b065bfc4 SHA512 9cc56828a72af4684403853f88dd28c59d78173135500f4d52e8009aa9d49f81382db6bf73b5f569c71ccb0e655b7ac05fa4b9070610ebe3907dfdf54b61bd9e WHIRLPOOL 3aa1746d3a555bb92ce2c5ae260a03703abf9b61a34cf51bfce43082719557a43293a461da50dbb5c9bf93a65eb6e2810911e96d6f050381100a4e16ef4da47b +MISC ChangeLog 3549 SHA256 4f01562d3cfcfcb7a5d3848b82e29b12388dcd4c6d5b0dd1ec5e5ce69839fc0d SHA512 e278f48a58a1355f8380a45bb3a264e6113a40a7d3610225afda0337005af6a3c534a862f11cdaf1033e29edefed861a1b7858ee450c67fb5f3cd3d707d87b2f WHIRLPOOL 3399e6cc008fc15eefe840ab3ea757aeafadce24774e7373aeca3d624248d911b37e607d6a5d66c71a430f8b3b6f17faa7cffc98e1813aa4cc004a34f8edba80 +MISC ChangeLog-2015 9770 SHA256 cc7242158dac01dad7c73fd6ed6032363ac277fa5ce1ffe008f0e5f2bc74cb44 SHA512 eff077a698c622f8ce96697cd0f22333cc90379a8d3a84b8bad7dc856f2130c470dffe8e7516092b9e836703925c77a0051ed9f16e486a4a3ec03b7b9bfe8db2 WHIRLPOOL 13adb5c2db307d7618f0280d03405eadb94118c2ff4ac4e62dac022a468407dbd188a450dca1f3070ff321271d88d125d81b5473e50c8357cd98bdd53cff9453 +MISC metadata.xml 553 SHA256 b3d3e38452bdfa845bcd73a672926f33ca0597cc7753d9d9abcd293007a52b32 SHA512 48239b719aa371cfaee986200e9d19c5950824c6f760c2cceec4df741fe19e2cb143e3e93bbb0fe3aa5ba9a65690d312d37c6819d2ef55a07d0c89880b9b3f0a WHIRLPOOL 95914cdd446bbb3a7d0e1b056b92c9c92e42e080333b908b48d64fa5223086f7f595a7d593430fa3dc0b5662c7e4800a7c610fd195dd3241d5b96425b05a0ae2 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 () { +- ($numberOfPages) = /\\newlabel{LastPage}{{}{(\d+)}}/; ++ ($numberOfPages) = /\\newlabel\{LastPage}\{\{}\{(\d+)}}/; + } + + close AUX or fatalError "Could not close $auxfile:\n$!"; 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 @@ + 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 + ++ + + $ + make +@@ -278,7 +279,7 @@ + + You have to add or change following line in the file + $HOME/.muttrc or system wide in +- ##SYSCONFDIR##/Muttrc: ++ /etc/Muttrc: + + set print_command="muttprint" + +@@ -316,7 +317,7 @@ + + + You'll find more information in the documentation of Mutt +- (##DOCDIR##/mutt/manual.txt(.gz)). ++ (/usr/share/doc/muttprint/mutt/manual.txt(.gz)). + + + +@@ -345,7 +346,7 @@ + In the dialogue Misc, Config + Misc you have to do an entry in Print + Command: +- ##BINDIR##/muttprint -f $f. ++ /usr/bin/muttprint -f $f. + + + +@@ -393,7 +394,7 @@ + You find the code in README.Gnus 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 +- ##DOCDIR##/muttprint/ ++ /usr/share/doc/muttprint/muttprint/ + directory. + + +@@ -445,7 +446,7 @@ + + Some things could be configured in Muttprint. This is permanently + done in the configuration files $HOME/.muttprintrc +- (only for the current user) or ##SYSCONFDIR##/Muttprintrc ++ (only for the current user) or /etc/Muttprintrc + (global for all users). User settings override global settings. + + You can also specify an additional configuration file with the +@@ -466,7 +467,7 @@ + An example for a configuration file is distributed with + Muttprint (sample-muttprintrc). If you've + installed a RPM or Debian package, you'll find it in +- ##DOCDIR##/muttprint/. ++ /usr/share/doc/muttprint/muttprint/. + + An example for a correct assignment: + +@@ -550,7 +551,7 @@ + + Additionally, Muttprint comes with some example pictures that + are already converted into the EPS format. After the installation, +- you'll find this in ##SHAREDIR##/muttprint. ++ you'll find this in /usr/share/muttprint. + + If the printing of the graphic should turned off, + set PENGUIN to the value off. +@@ -917,7 +918,7 @@ + value. Possible are only A4 and + letter. + +- If there exists a file ##SYSCONFDIR##/papersize as ++ If there exists a file /etc/papersize as + usually on Debian systems, it is evaluated, too. Own settings overwrite + this system settings. + +@@ -1023,7 +1024,7 @@ + For this, you can assign the variable BACKGROUND + the value on. In the debug mode (see ) this option has no effect. +- ++ + + Error messages + +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 @@ + + Puoi trovere maggiori informazioni nelle documentazione di + Mutt +- (##DOCDIR##/mutt/manual.txt(.gz)). ++ (/usr/share/doc/muttprint/mutt/manual.txt(.gz)). + + + +@@ -296,7 +296,7 @@ + Nel dialogo Misc, Config + Misc devi settare una entry in Print + Command: +- ##BINDIR##/muttprint -f $f. ++ /usr/bin/muttprint -f $f. + + + +@@ -345,7 +345,7 @@ + Poui trovare il codice in README.Gnus e + preferirei far riferimento a questo file per questo manuale. + Se usi i pacchetti per l'installazione dovresti trovare +- questo file in ##DOCDIR##/muttprint/. ++ questo file in /usr/share/doc/muttprint/muttprint/. + + + +@@ -874,7 +874,7 @@ + Sono possibili solo A4 e letter. + + +- Se è presente un file ##SYSCONFDIR##/papersize come ++ Se è presente un file /etc/papersize come + di soliuto nei sistemi Debian, viene anch'esso considerato. + Le proprie impostazione prevarranno su quelle di sistema. + +@@ -1079,7 +1079,7 @@ + + ISO-8859-4 + latin4 +- Lingue Europa sud-orientale ed altre lingue/entry> ++ Lingue Europa sud-orientale ed altre lingue + + + ISO-8859-9 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..1a939582c1bf --- /dev/null +++ b/app-misc/muttprint/files/muttprint-0.73-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..acd6628e6977 --- /dev/null +++ b/app-misc/muttprint/metadata.xml @@ -0,0 +1,20 @@ + + + + + nimiux@gentoo.org + Chema Alonso + + + Pretty printing of your mails + + + Impresión elegante de sus correos + + + Builds documentation + + + muttprint + + 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..0c5c35c17679 --- /dev/null +++ b/app-misc/muttprint/muttprint-0.73-r4.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +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 + dev-perl/TimeDate + dev-perl/Text-Iconv + 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 +} -- cgit v1.2.3