Permalink
Browse files

mupdf: update to new version 0.8.165

  • Loading branch information...
1 parent 21dfe28 commit d428c37300fb29c145ac952486314d8b2c466308 @11mariom 11mariom committed May 18, 2011
Showing with 59 additions and 0 deletions.
  1. +2 −0 app-text/mupdf/Manifest
  2. +57 −0 app-text/mupdf/mupdf-0.8.165.ebuild
View
@@ -1,4 +1,6 @@
DIST mupdf-0.8-source.tar.gz 3837000 RMD160 d4296e9d01a7719fa148181704aac9e1d90af4c3 SHA1 bb3938226b422042f1880eba887501046653e618 SHA256 860a054f08e75400b35a967209f389923f8026ba89bde8b1bb6b52b2823d560d
DIST mupdf-0.8.15-source.tar.gz 3837265 RMD160 0bd7e493f193f44a963e30e57d449e3503ebf7c7 SHA1 2e0f81cb99246638499995ebce79abd7c075061c SHA256 c9e7acc86c208a854e460cd07c1132039a95df0c21aa5052c4481fb540b0e03e
+DIST mupdf-0.8.165-source.tar.gz 3775041 RMD160 2fb4c6ad4e9a4dd00cc60fd635377c353823e569 SHA1 17222ebc80a482ef7cdb190d015cefd4821028dd SHA256 cfa00870ef857def5de1a8d20e5a20b21d72a5d31ce4746953539d2299cbc59e
EBUILD mupdf-0.8.15.ebuild 1373 RMD160 286522e22933a4e9ea7889a9ffd26971a3f17c51 SHA1 4b9ad5787434d8a2b9aa95d012ac138084b73463 SHA256 c9a5d509d233e8199f5bc913cbd8ae93a61e1ce168cb9a235e745199a3e2387a
+EBUILD mupdf-0.8.165.ebuild 1373 RMD160 286522e22933a4e9ea7889a9ffd26971a3f17c51 SHA1 4b9ad5787434d8a2b9aa95d012ac138084b73463 SHA256 c9a5d509d233e8199f5bc913cbd8ae93a61e1ce168cb9a235e745199a3e2387a
EBUILD mupdf-0.8.ebuild 1447 RMD160 068c301d26f7a55540db690224f963c582c26af7 SHA1 bbb37bd71535b777ab786043a13d6723cd2da8db SHA256 135dc085dff3f66487742f588ec5691f76542709b24f5b7b80205c31528f0a62
@@ -0,0 +1,57 @@
+# 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-0.7_p20110212.ebuild,v 1.2 2011/02/20 10:26:00 xarthisius Exp $
+
+EAPI=2
+
+inherit eutils multilib toolchain-funcs
+
+DESCRIPTION="a lightweight PDF viewer and toolkit written in portable C"
+HOMEPAGE="http://mupdf.com/"
+SRC_URI="http://mupdf.com/download/${P}-source.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+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() {
+ 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 -j1 || die
+}
+
+src_install() {
+ emake build=release ${my_pdfexe} prefix="${D}usr" \
+ LIBDIR="${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
+ fi
+ 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"
+}

0 comments on commit d428c37

Please sign in to comment.