summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Weber <xmw@gentoo.org>2012-11-28 08:14:04 +0000
committerMichael Weber <xmw@gentoo.org>2012-11-28 08:14:04 +0000
commit9a0d9947160a03a758323717c3998d25c08977f7 (patch)
tree6e3f202e8191005466f961509ddb86275763f858 /app-text/mupdf
parentAdding ggnfs dep (diff)
downloadgentoo-2-9a0d9947160a03a758323717c3998d25c08977f7.tar.gz
gentoo-2-9a0d9947160a03a758323717c3998d25c08977f7.tar.bz2
gentoo-2-9a0d9947160a03a758323717c3998d25c08977f7.zip
Version bump to current snapshot
(Portage version: 2.2.0_alpha142/cvs/Linux x86_64, signed Manifest commit with key 62EEF090)
Diffstat (limited to 'app-text/mupdf')
-rw-r--r--app-text/mupdf/ChangeLog8
-rw-r--r--app-text/mupdf/files/mupdf-1.1_p20121127-buildsystem.patch24
-rw-r--r--app-text/mupdf/mupdf-1.1_p20121127.ebuild59
3 files changed, 90 insertions, 1 deletions
diff --git a/app-text/mupdf/ChangeLog b/app-text/mupdf/ChangeLog
index 496b16adbcf3..e9efc8c80047 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.54 2012/11/28 08:05:27 xmw Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/mupdf/ChangeLog,v 1.55 2012/11/28 08:14:04 xmw Exp $
+
+*mupdf-1.1_p20121127 (28 Nov 2012)
+
+ 28 Nov 2012; Michael Weber <xmw@gentoo.org> +mupdf-1.1_p20121127.ebuild,
+ +files/mupdf-1.1_p20121127-buildsystem.patch:
+ Version bump to current snapshot
*mupdf-1.1_p20120816 (28 Nov 2012)
diff --git a/app-text/mupdf/files/mupdf-1.1_p20121127-buildsystem.patch b/app-text/mupdf/files/mupdf-1.1_p20121127-buildsystem.patch
new file mode 100644
index 000000000000..d15187486105
--- /dev/null
+++ b/app-text/mupdf/files/mupdf-1.1_p20121127-buildsystem.patch
@@ -0,0 +1,24 @@
+--- mupdf-1.0-source/Makerules
++++ mupdf-1.0-source/Makerules
+@@ -6,7 +6,7 @@
+ CFLAGS += -Wall
+
+ ifeq "$(build)" "debug"
+-CFLAGS += -pipe -g -DDEBUG
++CFLAGS += -DDEBUG
+ else ifeq "$(build)" "profile"
+ CFLAGS += -pipe -O2 -DNDEBUG -pg
+ LDFLAGS += -pg
+@@ -21,9 +21,9 @@
+ endif
+
+ ifeq "$(OS)" "Linux"
+-SYS_FREETYPE_INC := `pkg-config --cflags freetype2`
+-SYS_OPENJPEG_INC := `pkg-config --cflags libopenjpeg`
+-X11_LIBS := -lX11 -lXext
++SYS_FREETYPE_INC := $(shell pkg-config --cflags freetype2)
++SYS_OPENJPEG_INC := $(shell pkg-config --cflags libopenjpeg)
++X11_LIBS := $(shell pkg-config --libs x11 xext)
+ endif
+
+ ifeq "$(OS)" "FreeBSD"
diff --git a/app-text/mupdf/mupdf-1.1_p20121127.ebuild b/app-text/mupdf/mupdf-1.1_p20121127.ebuild
new file mode 100644
index 000000000000..adba64e3041e
--- /dev/null
+++ b/app-text/mupdf/mupdf-1.1_p20121127.ebuild
@@ -0,0 +1,59 @@
+# 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-1.1_p20121127.ebuild,v 1.1 2012/11/28 08:14:04 xmw Exp $
+
+EAPI=4
+
+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="mirror://gentoo/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~ppc-macos ~x64-macos ~x86-macos"
+IUSE="X vanilla"
+
+RDEPEND="media-libs/freetype:2
+ media-libs/jbig2dec
+ >=media-libs/openjpeg-1.5
+ virtual/jpeg
+ X? ( x11-libs/libX11
+ x11-libs/libXext )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-buildsystem.patch
+
+ if ! use vanilla ; then
+ epatch "${FILESDIR}"/${PN}-1.1_rc1-zoom-2.patch
+ fi
+}
+
+src_compile() {
+ use X || my_nox11="NOX11=yes MUPDF= "
+
+ emake CC="$(tc-getCC)" AR="$(tc-getAR)" OS=Linux \
+ build=debug verbose=true ${my_nox11}
+}
+
+src_install() {
+ emake prefix="${ED}usr" libdir="${ED}usr/$(get_libdir)" \
+ build=debug verbose=true ${my_nox11} install
+
+ insinto /usr/include
+ doins pdf/mupdf{,-internal}.h
+ doins fitz/fitz{,-internal}.h
+ doins xps/muxps{,-internal}.h
+
+ insinto /usr/$(get_libdir)/pkgconfig
+ doins debian/mupdf.pc
+
+ if use X ; then
+ domenu debian/mupdf.desktop
+ doicon debian/mupdf.xpm
+ fi
+ dodoc README doc/{example.c,overview.txt}
+}