diff options
author | Michael Weber <xmw@gentoo.org> | 2010-08-24 23:08:44 +0000 |
---|---|---|
committer | Michael Weber <xmw@gentoo.org> | 2010-08-24 23:08:44 +0000 |
commit | 5b2dc07f4db6d58fe5008d2826de672894bb58d2 (patch) | |
tree | 10548ac5c0abf26cfe42a32fc6aa92687c0e3cb3 /app-text/mupdf | |
parent | fix bug #334355 (diff) | |
download | gentoo-2-5b2dc07f4db6d58fe5008d2826de672894bb58d2.tar.gz gentoo-2-5b2dc07f4db6d58fe5008d2826de672894bb58d2.tar.bz2 gentoo-2-5b2dc07f4db6d58fe5008d2826de672894bb58d2.zip |
Initial commit.
(Portage version: 2.1.8.3/cvs/Linux x86_64)
Diffstat (limited to 'app-text/mupdf')
-rw-r--r-- | app-text/mupdf/ChangeLog | 11 | ||||
-rw-r--r-- | app-text/mupdf/files/mupdf-0.6-buildsystem.patch | 51 | ||||
-rw-r--r-- | app-text/mupdf/metadata.xml | 10 | ||||
-rw-r--r-- | app-text/mupdf/mupdf-0.6.ebuild | 64 |
4 files changed, 136 insertions, 0 deletions
diff --git a/app-text/mupdf/ChangeLog b/app-text/mupdf/ChangeLog new file mode 100644 index 000000000000..a0674da73a50 --- /dev/null +++ b/app-text/mupdf/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for app-text/mupdf +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-text/mupdf/ChangeLog,v 1.1 2010/08/24 23:08:44 xmw Exp $ + +*mupdf-0.6 (24 Aug 2010) + + 24 Aug 2010; Michael Weber (xmw) <xmw@gentoo.org> +mupdf-0.6.ebuild, + +files/mupdf-0.6-buildsystem.patch, +metadata.xml: + New ebuild for app-text/mupdf from sunrise. Fixes bug #280469. Thanks to + Manu Wächter for the initial ebuilds. + diff --git a/app-text/mupdf/files/mupdf-0.6-buildsystem.patch b/app-text/mupdf/files/mupdf-0.6-buildsystem.patch new file mode 100644 index 000000000000..56086726e6c3 --- /dev/null +++ b/app-text/mupdf/files/mupdf-0.6-buildsystem.patch @@ -0,0 +1,51 @@ +Michael Weber Jun 5th 2010 + Possibility to pass /usr/lib64 on multilib/64bit systems. + Dropped the hard compiler options for compartibility on older chips. + +--- Makefile 2010-06-05 16:38:48.000000000 +0200 ++++ Makefile 2010-06-05 16:41:43.000000000 +0200 +@@ -7,6 +7,7 @@ + + build ?= debug + prefix ?= /usr/local ++libprefix ?= $(prefix)/lib + + OBJDIR := build/$(build) + GENDIR := build/generated +@@ -314,8 +315,8 @@ + rm -rf build + + install: $(DIRS) $(APPS) $(MUPDF_LIB) +- install -d $(prefix)/bin $(prefix)/lib $(prefix)/include ++ install -d $(prefix)/bin $(libprefix) $(prefix)/include + install $(APPS) $(prefix)/bin +- install $(MUPDF_LIB) $(prefix)/lib ++ install $(MUPDF_LIB) $(libprefix) + install $(MUPDF_HDR) $(prefix)/include + +--- Makerules 2010-06-05 16:38:48.000000000 +0200 ++++ Makerules 2010-06-05 16:49:44.000000000 +0200 +@@ -4,8 +4,8 @@ + OS := $(OS:MINGW%=MINGW) + + LIBS := -ljbig2dec -lopenjpeg -ljpeg -lz -lm +-CFLAGS := -Wall --std=gnu99 -Ifitz -Imupdf $(THIRD_INCS) +-LDFLAGS = ++CFLAGS += -Wall --std=gnu99 -Ifitz -Imupdf $(THIRD_INCS) ++LDFLAGS += + CC = cc + LD = $(CC) + AR = ar +@@ -23,10 +23,10 @@ + CFLAGS += `pkg-config --cflags freetype2` + LDFLAGS += `pkg-config --libs freetype2` + endif +-X11LIBS = -lX11 -lXext ++X11LIBS = `pkg-config --libs x11 xext` + PDFVIEW_EXE = $(X11VIEW_EXE) + ifeq "$(build)" "release" +-CFLAGS += -mmmx -ftree-vectorize -msse -msse2 -march=k8 -DARCH_X86 ++CFLAGS += + ARCH_SRC = archx86.c + endif + endif diff --git a/app-text/mupdf/metadata.xml b/app-text/mupdf/metadata.xml new file mode 100644 index 000000000000..02b909e46b7e --- /dev/null +++ b/app-text/mupdf/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>no-herd</herd> +<maintainer> +<email>xmw@gentoo.org</email> +<name>Michael Weber</name> +</maintainer> +</pkgmetadata> + diff --git a/app-text/mupdf/mupdf-0.6.ebuild b/app-text/mupdf/mupdf-0.6.ebuild new file mode 100644 index 000000000000..9c72278b56ed --- /dev/null +++ b/app-text/mupdf/mupdf-0.6.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-text/mupdf/mupdf-0.6.ebuild,v 1.1 2010/08/24 23:08:44 xmw Exp $ + +EAPI=2 + +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://${PN}.com/download/source/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="X" + +S=${WORKDIR}/${PN} + +RDEPEND="media-libs/freetype:2 + media-libs/jbig2dec + media-libs/jpeg + media-libs/openjpeg + X? ( x11-libs/libX11 + x11-libs/libXext )" +DEPEND="${RDEPEND} + dev-util/pkgconfig" + +src_prepare() { + epatch "${FILESDIR}"/${P}-buildsystem.patch +} + +src_compile() { + use x86 && append-cflags -DARCH_X86 + use amd64 && append-cflags -DARCH_X86_64 + + my_pdfexe= + use X || my_pdfexe="PDFVIEW_EXE=" + + emake build=release ${my_pdfexe} CC="$(tc-getCC)" || die +} + +src_install() { + emake build=release ${my_pdfexe} prefix="${D}usr" \ + libprefix="${D}usr/$(get_libdir)" 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" +} |