summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Weber <xmw@gentoo.org>2011-01-31 14:45:35 +0000
committerMichael Weber <xmw@gentoo.org>2011-01-31 14:45:35 +0000
commit34b8c14ae3667114a1954f8a90229c4c9e0e25d5 (patch)
tree888dcfe01be08dabb9fc897444aaaa5d62dad35a /app-text/mupdf/mupdf-9999.ebuild
parentslotmove plasma-applet-daisy to 4 (diff)
downloadgentoo-2-34b8c14ae3667114a1954f8a90229c4c9e0e25d5.tar.gz
gentoo-2-34b8c14ae3667114a1954f8a90229c4c9e0e25d5.tar.bz2
gentoo-2-34b8c14ae3667114a1954f8a90229c4c9e0e25d5.zip
Live cvs version for app-text/llpp
(Portage version: 2.1.9.25/cvs/Linux x86_64)
Diffstat (limited to 'app-text/mupdf/mupdf-9999.ebuild')
-rw-r--r--app-text/mupdf/mupdf-9999.ebuild65
1 files changed, 65 insertions, 0 deletions
diff --git a/app-text/mupdf/mupdf-9999.ebuild b/app-text/mupdf/mupdf-9999.ebuild
new file mode 100644
index 000000000000..69b539b7ce85
--- /dev/null
+++ b/app-text/mupdf/mupdf-9999.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2011 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.1 2011/01/31 14:45:35 xmw Exp $
+
+EAPI=2
+
+EGIT_REPO_URI="http://mupdf.com/repos/mupdf.git"
+
+inherit eutils flag-o-matic git multilib toolchain-funcs
+
+DESCRIPTION="a lightweight PDF viewer and toolkit written in portable C"
+HOMEPAGE="http://mupdf.com/"
+SRC_URI=""
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS=""
+IUSE="X"
+
+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_prepare() {
+ epatch "${FILESDIR}"/${PN}-0.7-buildsystem.patch
+
+ epatch "${FILESDIR}"/${P}-zoom.patch
+
+ sed -i -e '/CFLAGS/s: -DNDEBUG : :' Makerules || die
+}
+
+src_compile() {
+ my_pdfexe=
+ use X || my_pdfexe="PDFVIEW_EXE="
+
+ emake build=release ${my_pdfexe} CC="$(tc-getCC)" verbose=true || die
+}
+
+src_install() {
+ emake build=release ${my_pdfexe} prefix="${D}usr" \
+ libprefix="${D}usr/$(get_libdir)" verbose=true install || die
+
+ insinto /usr/$(get_libdir)/pkgconfig
+ doins debian/mupdf.pc || die
+
+ if use X ; then
+ domenu debian/mupdf.desktop || die
+ doicon debian/mupdf.xpm || die
+ doman debian/mupdf.1 || die
+ fi
+ doman debian/pdf{clean,draw,show}.1 || die
+ dodoc README || die
+
+ # avoid collision with app-text/poppler-utils
+ mv "${D}"usr/bin/pdfinfo "${D}"usr/bin/mupdf_pdfinfo || die
+}
+
+pkg_postinst() {
+ elog "pdfinfo was renamed to mupdf_pdfinfo"
+}