summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Weber <xmw@gentoo.org>2010-04-13 11:44:46 +0000
committerMichael Weber <xmw@gentoo.org>2010-04-13 11:44:46 +0000
commitf3fa5bf706a414c6c4a24aa93356325de48c6741 (patch)
treebf4348eb4cf1229725456ad1f9fbfe9d81a1c3b2 /app-text
parentmedia-radio/kochmorse: New Ebuild for bug 311871 (diff)
downloadsunrise-f3fa5bf706a414c6c4a24aa93356325de48c6741.tar.gz
sunrise-f3fa5bf706a414c6c4a24aa93356325de48c6741.tar.bz2
sunrise-f3fa5bf706a414c6c4a24aa93356325de48c6741.zip
app-text/mupdf: New Ebuild for bug 280469
svn path=/sunrise/; revision=10444
Diffstat (limited to 'app-text')
-rw-r--r--app-text/mupdf/ChangeLog9
-rw-r--r--app-text/mupdf/Manifest4
-rw-r--r--app-text/mupdf/metadata.xml6
-rw-r--r--app-text/mupdf/mupdf-940.ebuild48
4 files changed, 67 insertions, 0 deletions
diff --git a/app-text/mupdf/ChangeLog b/app-text/mupdf/ChangeLog
new file mode 100644
index 000000000..961e8ecca
--- /dev/null
+++ b/app-text/mupdf/ChangeLog
@@ -0,0 +1,9 @@
+# ChangeLog for app-text/mupdf
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+ 13 Apr 2010; Michael Weber (xmw) <gentoo@xmw.de> +mupdf-940.ebuild,
+ +metadata.xml:
+ New Ebuild for bug 280469, thanks to Manu Wächter for the
+ inital ebuild.
+
diff --git a/app-text/mupdf/Manifest b/app-text/mupdf/Manifest
new file mode 100644
index 000000000..5aee20db4
--- /dev/null
+++ b/app-text/mupdf/Manifest
@@ -0,0 +1,4 @@
+DIST mupdf-r940.tar.gz 3611853 RMD160 872d495ff4cce1286b032cd2e867fe979e5391c1 SHA1 d3b293e5b5465d2f775d27d7bd6d607c1fbdd890 SHA256 ed00e461f3ad03ee9d7634abdd183f843e41367b6326809255a4b216f452c9bf
+EBUILD mupdf-940.ebuild 1179 RMD160 3feeea4adb046ff29a86aae27fff950a274d6562 SHA1 f2bad8cd96c8784a20c3c6c40fbe883c0f9ba98c SHA256 fbaa9a8f05adb3200d70ca48d3e9059b62cbd50ff4e36c500d7814e3cb5d791c
+MISC ChangeLog 282 RMD160 43cb749e05ba5a9bd880ca91573db1eaf8c5ba9b SHA1 89ead1cba3016a58684baf851b6563c78252a2aa SHA256 0aa9425ce631cd1228b9c6a65bbdca0e178a2418d821ddc7bc8dfe705f7d1a25
+MISC metadata.xml 229 RMD160 f0f6417bec31ce8baba6d476664f7210c8c84c98 SHA1 e5f94f5caadc6f843fc90bb7959570cd503676fd SHA256 3b08fca3c878bdfc4e7639f477dd542d55a4ab5dce39a475e82633071d13eb3f
diff --git a/app-text/mupdf/metadata.xml b/app-text/mupdf/metadata.xml
new file mode 100644
index 000000000..e6233b5dc
--- /dev/null
+++ b/app-text/mupdf/metadata.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>no-herd</herd>
+<maintainer><email>maintainer-wanted@gentoo.org</email></maintainer>
+</pkgmetadata>
diff --git a/app-text/mupdf/mupdf-940.ebuild b/app-text/mupdf/mupdf-940.ebuild
new file mode 100644
index 000000000..9494c1809
--- /dev/null
+++ b/app-text/mupdf/mupdf-940.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=2
+
+DESCRIPTION="a lightweight PDF viewer and toolkit written in portable C"
+HOMEPAGE="http://ccxvii.net/mupdf/"
+SRC_URI="http://ccxvii.net/${PN}/download/${PN}-r${PV}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="cjk jbig jpeg2k"
+
+S=${WORKDIR}/${PN}
+
+RDEPEND="media-libs/freetype:2
+ media-libs/jpeg
+ sys-libs/zlib
+ x11-libs/libX11
+ x11-libs/libXext
+ jbig? ( media-libs/jbigkit )
+ jpeg2k? ( media-libs/jasper )"
+DEPEND="${RDEPEND}
+ dev-util/ftjam"
+
+src_compile() {
+ local my_param
+ cat <<EOF >> Jamrules
+LINKFLAGS = ${LDFLAGS} ;
+OPTIM = ${CFLAGS} ;
+ALL_LOCATE_TARGET = [ FDirName \$(TOP) build ] ;
+EOF
+ my_param=""
+ use cjk || my_param="${my_param} '-sDEFINES=NOCJK'"
+ use jbig && my_param="${my_param} '-sHAVE_JBIG2DEC=yes'"
+ use jpeg2k && my_param="${my_param} '-sHAVE_JASPER=yes'"
+ jam ${my_param} || die
+}
+
+src_install() {
+ dobin build/{{cmap,font}dump,mupdf,pdf{clean,draw,extract,show}} || die
+ newbin build/pdfinfo mupdf_pdfinfo || die # avoid collision with app-text/poppler-utils
+ dolib build/*.a || die
+
+ dodoc README || die
+}