From c42cebab1091fae27e58e845494816c45aadab0a Mon Sep 17 00:00:00 2001 From: Michael Weber Date: Sun, 25 Mar 2012 23:06:19 +0000 Subject: Add snapshot version needed by app-text/llpp-11 (bug 409591). (Portage version: 2.1.10.49/cvs/Linux x86_64) --- app-text/mupdf/ChangeLog | 8 +++- app-text/mupdf/mupdf-0.9_p20120221.ebuild | 63 +++++++++++++++++++++++++++++++ app-text/mupdf/mupdf-9999.ebuild | 7 +++- 3 files changed, 76 insertions(+), 2 deletions(-) create mode 100644 app-text/mupdf/mupdf-0.9_p20120221.ebuild (limited to 'app-text/mupdf') diff --git a/app-text/mupdf/ChangeLog b/app-text/mupdf/ChangeLog index 214282c66369..0ec96a4cf041 100644 --- a/app-text/mupdf/ChangeLog +++ b/app-text/mupdf/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for app-text/mupdf # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-text/mupdf/ChangeLog,v 1.29 2012/03/24 23:56:40 xmw Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-text/mupdf/ChangeLog,v 1.30 2012/03/25 23:06:19 xmw Exp $ + +*mupdf-0.9_p20120221 (25 Mar 2012) + + 25 Mar 2012; Michael Weber +mupdf-0.9_p20120221.ebuild, + mupdf-9999.ebuild: + Add snapshot version needed by app-text/llpp-11 (bug 409591). 24 Mar 2012; Michael Weber mupdf-9999.ebuild, +files/mupdf-9999-zoom-1.patch: diff --git a/app-text/mupdf/mupdf-0.9_p20120221.ebuild b/app-text/mupdf/mupdf-0.9_p20120221.ebuild new file mode 100644 index 000000000000..767c200096c3 --- /dev/null +++ b/app-text/mupdf/mupdf-0.9_p20120221.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-text/mupdf/mupdf-0.9_p20120221.ebuild,v 1.1 2012/03/25 23:06:19 xmw Exp $ + +EAPI=4 + +EGIT_REPO_URI="git://git.ghostscript.com/mupdf.git" + +inherit eutils flag-o-matic multilib toolchain-funcs + +DESCRIPTION="a lightweight PDF viewer and toolkit written in portable C" +HOMEPAGE="http://mupdf.com/" +SRC_URI="http://git.ghostscript.com/?p=mupdf.git;a=snapshot;h=c732cd69db005902289829867a71e0d271809aba;sf=tgz -> ${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="X vanilla" + +RDEPEND="media-libs/freetype:2 + media-libs/jbig2dec + virtual/jpeg + media-libs/openjpeg + X? ( x11-libs/libX11 + x11-libs/libXext )" +DEPEND="${RDEPEND} + dev-util/pkgconfig" + +src_unpack() { + default + mv mupdf-* ${P} || die +} + +src_prepare() { + epatch "${FILESDIR}"/${PN}-0.8.165-buildsystem.patch + + if ! use vanilla ; then + epatch "${FILESDIR}"/${PN}-9999-zoom-1.patch + fi +} + +src_compile() { + use X || my_nox11="NOX11=yes MUPDF= " + + emake CC="$(tc-getCC)" \ + build=debug verbose=true ${my_nox11} -j1 || die +} + +src_install() { + emake prefix="${D}usr" LIBDIR="${D}usr/$(get_libdir)" \ + build=debug verbose=true ${my_nox11} install || die + + insinto /usr/include + doins pdf/mupdf.h fitz/fitz.h xps/muxps.h || die + + insinto /usr/$(get_libdir)/pkgconfig + doins debian/mupdf.pc + + if use X ; then + domenu debian/mupdf.desktop + doicon debian/mupdf.xpm + fi +} diff --git a/app-text/mupdf/mupdf-9999.ebuild b/app-text/mupdf/mupdf-9999.ebuild index d3a8af077e63..7175dcadc765 100644 --- a/app-text/mupdf/mupdf-9999.ebuild +++ b/app-text/mupdf/mupdf-9999.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-text/mupdf/mupdf-9999.ebuild,v 1.10 2012/03/24 23:56:40 xmw Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-text/mupdf/mupdf-9999.ebuild,v 1.11 2012/03/25 23:06:19 xmw Exp $ EAPI=4 @@ -45,6 +45,11 @@ src_install() { emake prefix="${D}usr" LIBDIR="${D}usr/$(get_libdir)" \ build=debug verbose=true ${my_nox11} install || die + insinto /usr/include + doins pdf/mupdf{,-internal}.h || die + doins fitz/fitz{,-internal}.h || die + doins xps/muxps{,-internal}.h || die + insinto /usr/$(get_libdir)/pkgconfig doins debian/mupdf.pc -- cgit v1.2.3-65-gdbad