diff options
author | José María Alonso <nimiux@gentoo.org> | 2012-04-28 12:34:12 +0000 |
---|---|---|
committer | José María Alonso <nimiux@gentoo.org> | 2012-04-28 12:34:12 +0000 |
commit | e030fc361a73438f66ade2f915a58ad6670cf9b1 (patch) | |
tree | 1b36ac2584f19d6fc158c47f0f568751eb2fbf89 /app-misc/muttprint | |
parent | Fix DESCRIPTION wrt #413783 by James Rowe <jnrowe@gmail.com> (diff) | |
download | gentoo-2-e030fc361a73438f66ade2f915a58ad6670cf9b1.tar.gz gentoo-2-e030fc361a73438f66ade2f915a58ad6670cf9b1.tar.bz2 gentoo-2-e030fc361a73438f66ade2f915a58ad6670cf9b1.zip |
Bump to 0.73-r1. Added dependency on dev-texlive/texlive-latexextra. Removed warning on fatal error.
(Portage version: 2.1.10.49/cvs/Linux x86_64)
Diffstat (limited to 'app-misc/muttprint')
-rw-r--r-- | app-misc/muttprint/ChangeLog | 9 | ||||
-rw-r--r-- | app-misc/muttprint/files/muttprint-0.73-warning.patch | 13 | ||||
-rw-r--r-- | app-misc/muttprint/muttprint-0.73-r1.ebuild | 72 |
3 files changed, 91 insertions, 3 deletions
diff --git a/app-misc/muttprint/ChangeLog b/app-misc/muttprint/ChangeLog index 606a8c0730d2..081a571e2e61 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.52 2012/04/18 11:39:52 nimiux Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-misc/muttprint/ChangeLog,v 1.53 2012/04/28 12:34:12 nimiux Exp $ + +*muttprint-0.73-r1 (28 Apr 2012) + + 28 Apr 2012; Chema Alonso <nimiux@gentoo.org> +muttprint-0.73-r1.ebuild, + files/muttprint-0.73-warning.patch: + Bump to 0.73-r1. Added dependency on dev-texlive/texlive-latexextra. Removed + warning on fatal error. *muttprint-0.73 (18 Apr 2012) diff --git a/app-misc/muttprint/files/muttprint-0.73-warning.patch b/app-misc/muttprint/files/muttprint-0.73-warning.patch index 047b7d64d2b9..e17f658732d9 100644 --- a/app-misc/muttprint/files/muttprint-0.73-warning.patch +++ b/app-misc/muttprint/files/muttprint-0.73-warning.patch @@ -1,5 +1,6 @@ ---- 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 +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 @@ } } @@ -9,3 +10,11 @@ ################################### ENDE #################################### +@@ -1791,6 +1793,7 @@ + output \*STDERR, $messageString; + } + } ++ chdir($ENV{HOME}) || chdir('/'); + exit 1; + } + 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..e3caba9bb27f --- /dev/null +++ b/app-misc/muttprint/muttprint-0.73-r1.ebuild @@ -0,0 +1,72 @@ +# 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-r1.ebuild,v 1.1 2012/04/28 12:34:12 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 + dev-texlive/texlive-latexextra" + +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() { + # Paralell build does not work when USE="doc" + emake -j1 +} + +src_install() { + emake DESTDIR="${D}" install + + dodoc ChangeLog +} |