summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Weber <xmw@gentoo.org>2014-01-23 06:47:33 +0000
committerMichael Weber <xmw@gentoo.org>2014-01-23 06:47:33 +0000
commitc5a1979194c263d4f6d1372ae6090e2f885e6d31 (patch)
tree0e5d310b62b52b00f21e482014847d92511f3f22 /app-text/mupdf
parentDisable dumb cross-compiling size check. (diff)
downloadgentoo-2-c5a1979194c263d4f6d1372ae6090e2f885e6d31.tar.gz
gentoo-2-c5a1979194c263d4f6d1372ae6090e2f885e6d31.tar.bz2
gentoo-2-c5a1979194c263d4f6d1372ae6090e2f885e6d31.zip
Drop old stable and unstable versions for security issues (bug 498876)
(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 62EEF090)
Diffstat (limited to 'app-text/mupdf')
-rw-r--r--app-text/mupdf/ChangeLog7
-rw-r--r--app-text/mupdf/mupdf-1.0.ebuild63
-rw-r--r--app-text/mupdf/mupdf-1.1.ebuild63
-rw-r--r--app-text/mupdf/mupdf-1.3.ebuild125
-rw-r--r--app-text/mupdf/mupdf-1.3_p20130828.ebuild123
-rw-r--r--app-text/mupdf/mupdf-1.3_pre20130704.ebuild123
6 files changed, 6 insertions, 498 deletions
diff --git a/app-text/mupdf/ChangeLog b/app-text/mupdf/ChangeLog
index 66b38111ba77..b759d8e5807b 100644
--- a/app-text/mupdf/ChangeLog
+++ b/app-text/mupdf/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for app-text/mupdf
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/mupdf/ChangeLog,v 1.93 2014/01/22 07:14:40 xmw Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/mupdf/ChangeLog,v 1.94 2014/01/23 06:47:33 xmw Exp $
+
+ 23 Jan 2014; Michael Weber <xmw@gentoo.org> -mupdf-1.0.ebuild,
+ -mupdf-1.1.ebuild, -mupdf-1.3.ebuild, -mupdf-1.3_p20130828.ebuild,
+ -mupdf-1.3_pre20130704.ebuild:
+ Drop old stable and unstable versions for security issues (bug 498876)
*mupdf-1.3_p20140118 (22 Jan 2014)
diff --git a/app-text/mupdf/mupdf-1.0.ebuild b/app-text/mupdf/mupdf-1.0.ebuild
deleted file mode 100644
index 267a0feec016..000000000000
--- a/app-text/mupdf/mupdf-1.0.ebuild
+++ /dev/null
@@ -1,63 +0,0 @@
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/mupdf/mupdf-1.0.ebuild,v 1.11 2013/07/13 23:04:11 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=" http://${PN}.googlecode.com/files/${P}-source.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:0
- virtual/jpeg
- X? ( x11-libs/libX11
- x11-libs/libXext )"
-DEPEND="${RDEPEND}
- virtual/pkgconfig"
-
-S=${WORKDIR}/${P}-source
-
-src_prepare() {
- epatch \
- "${FILESDIR}"/${PN}-1.1_rc1-buildsystem.patch \
- "${FILESDIR}"/${PN}-1.1_p20121127-desktop-integration.patch
-
- if ! use vanilla ; then
- epatch "${FILESDIR}"/${P}-zoom.patch
- fi
-}
-
-src_compile() {
- use X || my_nox11="NOX11=yes MUPDF= "
-
- emake CC="$(tc-getCC)" OS=Linux \
- build=debug verbose=true ${my_nox11} -j1
-}
-
-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}
-}
diff --git a/app-text/mupdf/mupdf-1.1.ebuild b/app-text/mupdf/mupdf-1.1.ebuild
deleted file mode 100644
index f76d72df4573..000000000000
--- a/app-text/mupdf/mupdf-1.1.ebuild
+++ /dev/null
@@ -1,63 +0,0 @@
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/mupdf/mupdf-1.1.ebuild,v 1.9 2013/07/20 14:11:43 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="http://${PN}.googlecode.com/files/${P/_rc/-rc}-source.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:0
- virtual/jpeg
- X? ( x11-libs/libX11
- x11-libs/libXext )"
-DEPEND="${RDEPEND}
- virtual/pkgconfig"
-
-S=${WORKDIR}/${P/_rc/-rc}-source
-
-src_prepare() {
- epatch \
- "${FILESDIR}"/${PN}-1.1_rc1-buildsystem.patch \
- "${FILESDIR}"/${PN}-1.1_p20121127-desktop-integration.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}
-}
diff --git a/app-text/mupdf/mupdf-1.3.ebuild b/app-text/mupdf/mupdf-1.3.ebuild
deleted file mode 100644
index b2dff6bcaba9..000000000000
--- a/app-text/mupdf/mupdf-1.3.ebuild
+++ /dev/null
@@ -1,125 +0,0 @@
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/mupdf/mupdf-1.3.ebuild,v 1.2 2013/08/28 22:26:18 xmw Exp $
-
-EAPI=5
-
-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}.googlecode.com/files/${P}-source.tar.gz"
-
-LICENSE="AGPL-3"
-SLOT="0/1.3"
-KEYWORDS="~amd64 ~arm ~ppc ~x86 ~amd64-linux ~ppc-macos ~x64-macos ~x86-macos"
-IUSE="X vanilla static static-libs"
-
-LIB_DEPEND="dev-libs/openssl[static-libs?]
- media-libs/freetype:2[static-libs?]
- media-libs/jbig2dec[static-libs?]
- media-libs/openjpeg:2[static-libs?]
- net-misc/curl[static-libs?]
- virtual/jpeg[static-libs?]
- X? ( x11-libs/libX11[static-libs?]
- x11-libs/libXext[static-libs?] )"
-RDEPEND="${LIB_DEPEND}"
-DEPEND="${RDEPEND}
- virtual/pkgconfig
- static-libs? ( ${LIB_DEPEND} )
- static? ( ${LIB_DEPEND//?}
- app-arch/bzip2[static-libs]
- x11-libs/libXau[static-libs]
- x11-libs/libXdmcp[static-libs]
- x11-libs/libxcb[static-libs] )"
-
-S=${WORKDIR}/${P}-source
-
-src_prepare() {
- rm -rf thirdparty || die
-
- epatch \
- "${FILESDIR}"/${P}-CFLAGS.patch \
- "${FILESDIR}"/${P}-openjpeg2.patch \
- "${FILESDIR}"/${P}-pkg-config.patch \
- "${FILESDIR}"/${P}-sys_curl.patch
-
- sed -e "/^libdir=/s:/lib:/$(get_libdir):" \
- -e "/^prefix=/s:=.*:=${EROOR}/usr:" \
- -i platform/debian/${PN}.pc || die
-
- use vanilla || epatch \
- "${FILESDIR}"/${P}-zoom-2.patch \
- "${FILESDIR}"/${P}-forward_back.patch
-
- #http://bugs.ghostscript.com/show_bug.cgi?id=693467
- sed -e '/^\(Actions\|MimeType\)=/s:\(.*\):\1;:' \
- -i platform/debian/${PN}.desktop || die
-
- sed -e "\$aOS = Linux" \
- -e "\$aCC = $(tc-getCC)" \
- -e "\$aLD = $(tc-getCC)" \
- -e "\$aAR = $(tc-getAR)" \
- -e "\$averbose = true" \
- -e "\$abuild = debug" \
- -e "\$aprefix = ${ED}usr" \
- -e "\$alibdir = ${ED}usr/$(get_libdir)" \
- -i Makerules || die
-
- if ! use X ; then
- sed -e "\$aNOX11 = yes" \
- -i Makerules || die
- fi
-
- if use static-libs || use static ; then
- cp -a "${S}" "${S}"-static || die
- #add missing Libs.private for xcb and freetype
- sed -e 's:\(pkg-config --libs\):\1 --static:' \
- -e '/^SYS_X11_LIBS = /s:\(.*\):\1 -lpthread:' \
- -e '/^SYS_FREETYPE_LIBS = /s:\(.*\):\1 -lbz2:' \
- -i "${S}"-static/Makerules || die
- fi
-
- my_soname=libmupdf.so.1.2
- my_soname_js_none=libmupdf-js-none.so.1.2
- sed -e "\$a\$(MUPDF_LIB): \$(MUPDF_JS_NONE_LIB)" \
- -e "\$a\\\t\$(QUIET_LINK) \$(CC) \$(LDFLAGS) --shared -Wl,-soname -Wl,${my_soname} -Wl,--no-undefined -o \$@ \$^ \$(MUPDF_JS_NONE_LIB) \$(LIBS)" \
- -e "/^MUPDF_LIB :=/s:=.*:= \$(OUT)/${my_soname}:" \
- -e "\$a\$(MUPDF_JS_NONE_LIB):" \
- -e "\$a\\\t\$(QUIET_LINK) \$(CC) \$(LDFLAGS) --shared -Wl,-soname -Wl,${my_soname_js_none} -Wl,--no-undefined -o \$@ \$^ \$(LIBS)" \
- -e "/^MUPDF_JS_NONE_LIB :=/s:=.*:= \$(OUT)/${my_soname_js_none}:" \
- -i Makefile || die
-}
-
-src_compile() {
- emake XCFLAGS="-fpic"
- use static-libs && \
- emake -C "${S}"-static build/debug/lib${PN}{,-js-none}.a
- use static && \
- emake -C "${S}"-static XLIBS="-static"
-}
-
-src_install() {
- if use X ; then
- domenu platform/debian/${PN}.desktop
- doicon platform/debian/${PN}.xpm
- else
- rm docs/man/${PN}.1
- fi
-
- emake install
- dosym ${my_soname} /usr/$(get_libdir)/lib${PN}.so
-
- use static-libs && \
- dolib.a "${S}"-static/build/debug/lib${PN}{,-js-none}.a
- if use static ; then
- dobin "${S}"-static/build/debug/mu{tool,draw}
- use X && dobin "${S}"-static/build/debug/${PN}-x11
- fi
- use X && dosym ${PN}-x11 /usr/bin/${PN}
-
- insinto /usr/$(get_libdir)/pkgconfig
- doins platform/debian/${PN}.pc
-
- dodoc README docs/*.{txt,c}
-}
diff --git a/app-text/mupdf/mupdf-1.3_p20130828.ebuild b/app-text/mupdf/mupdf-1.3_p20130828.ebuild
deleted file mode 100644
index e6c5ba6cf10b..000000000000
--- a/app-text/mupdf/mupdf-1.3_p20130828.ebuild
+++ /dev/null
@@ -1,123 +0,0 @@
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/mupdf/mupdf-1.3_p20130828.ebuild,v 1.2 2013/11/21 16:42:44 jer Exp $
-
-EAPI=5
-
-inherit eutils flag-o-matic multilib toolchain-funcs vcs-snapshot
-
-DESCRIPTION="a lightweight PDF viewer and toolkit written in portable C"
-HOMEPAGE="http://mupdf.com/"
-SRC_URI="http://git.ghostscript.com/?p=mupdf.git;a=snapshot;h=d396b126c7ab5c241e0dc7ff0edd9942ad5dfdaa;sf=tgz -> ${P}.tar.gz"
-
-LICENSE="AGPL-3"
-SLOT="0/1.3"
-KEYWORDS="~amd64 ~arm ~hppa ~ppc ~x86 ~amd64-linux ~ppc-macos ~x64-macos ~x86-macos"
-IUSE="X vanilla static static-libs"
-
-LIB_DEPEND="dev-libs/openssl[static-libs?]
- media-libs/freetype:2[static-libs?]
- media-libs/jbig2dec[static-libs?]
- media-libs/openjpeg:2[static-libs?]
- net-misc/curl[static-libs?]
- virtual/jpeg[static-libs?]
- X? ( x11-libs/libX11[static-libs?]
- x11-libs/libXext[static-libs?] )"
-RDEPEND="${LIB_DEPEND}"
-DEPEND="${RDEPEND}
- virtual/pkgconfig
- static-libs? ( ${LIB_DEPEND} )
- static? ( ${LIB_DEPEND//?}
- app-arch/bzip2[static-libs]
- x11-libs/libXau[static-libs]
- x11-libs/libXdmcp[static-libs]
- x11-libs/libxcb[static-libs] )"
-
-src_prepare() {
- rm -rf thirdparty || die
-
- epatch \
- "${FILESDIR}"/${PN}-1.3-CFLAGS.patch \
- "${FILESDIR}"/${PN}-1.3-openjpeg2.patch \
- "${FILESDIR}"/${PN}-1.3-pkg-config.patch \
- "${FILESDIR}"/${PN}-1.3-sys_curl.patch
-
- sed -e "/^libdir=/s:/lib:/$(get_libdir):" \
- -e "/^prefix=/s:=.*:=${EROOR}/usr:" \
- -i platform/debian/${PN}.pc || die
-
- use vanilla || epatch \
- "${FILESDIR}"/${PN}-1.3-zoom-2.patch \
- "${FILESDIR}"/${PN}-1.3-forward_back.patch
-
- #http://bugs.ghostscript.com/show_bug.cgi?id=693467
- sed -e '/^\(Actions\|MimeType\)=/s:\(.*\):\1;:' \
- -i platform/debian/${PN}.desktop || die
-
- sed -e "\$aOS = Linux" \
- -e "\$aCC = $(tc-getCC)" \
- -e "\$aLD = $(tc-getCC)" \
- -e "\$aAR = $(tc-getAR)" \
- -e "\$averbose = true" \
- -e "\$abuild = debug" \
- -e "\$aprefix = ${ED}usr" \
- -e "\$alibdir = ${ED}usr/$(get_libdir)" \
- -i Makerules || die
-
- if ! use X ; then
- sed -e "\$aNOX11 = yes" \
- -i Makerules || die
- fi
-
- if use static-libs || use static ; then
- cp -a "${S}" "${S}"-static || die
- #add missing Libs.private for xcb and freetype
- sed -e 's:\(pkg-config --libs\):\1 --static:' \
- -e '/^SYS_X11_LIBS = /s:\(.*\):\1 -lpthread:' \
- -e '/^SYS_FREETYPE_LIBS = /s:\(.*\):\1 -lbz2:' \
- -i "${S}"-static/Makerules || die
- fi
-
- my_soname=libmupdf.so.1.2
- my_soname_js_none=libmupdf-js-none.so.1.2
- sed -e "\$a\$(MUPDF_LIB): \$(MUPDF_JS_NONE_LIB)" \
- -e "\$a\\\t\$(QUIET_LINK) \$(CC) \$(LDFLAGS) --shared -Wl,-soname -Wl,${my_soname} -Wl,--no-undefined -o \$@ \$^ \$(MUPDF_JS_NONE_LIB) \$(LIBS)" \
- -e "/^MUPDF_LIB :=/s:=.*:= \$(OUT)/${my_soname}:" \
- -e "\$a\$(MUPDF_JS_NONE_LIB):" \
- -e "\$a\\\t\$(QUIET_LINK) \$(CC) \$(LDFLAGS) --shared -Wl,-soname -Wl,${my_soname_js_none} -Wl,--no-undefined -o \$@ \$^ \$(LIBS)" \
- -e "/^MUPDF_JS_NONE_LIB :=/s:=.*:= \$(OUT)/${my_soname_js_none}:" \
- -i Makefile || die
-}
-
-src_compile() {
- emake XCFLAGS="-fpic"
- use static-libs && \
- emake -C "${S}"-static build/debug/lib${PN}{,-js-none}.a
- use static && \
- emake -C "${S}"-static XLIBS="-static"
-}
-
-src_install() {
- if use X ; then
- domenu platform/debian/${PN}.desktop
- doicon platform/debian/${PN}.xpm
- else
- rm docs/man/${PN}.1
- fi
-
- emake install
- dosym ${my_soname} /usr/$(get_libdir)/lib${PN}.so
-
- use static-libs && \
- dolib.a "${S}"-static/build/debug/lib${PN}{,-js-none}.a
- if use static ; then
- dobin "${S}"-static/build/debug/mu{tool,draw}
- use X && dobin "${S}"-static/build/debug/${PN}-x11
- fi
- use X && dosym ${PN}-x11 /usr/bin/${PN}
-
- insinto /usr/$(get_libdir)/pkgconfig
- doins platform/debian/${PN}.pc
-
- dodoc README docs/*.{txt,c}
-}
diff --git a/app-text/mupdf/mupdf-1.3_pre20130704.ebuild b/app-text/mupdf/mupdf-1.3_pre20130704.ebuild
deleted file mode 100644
index 4e2b41c71ef6..000000000000
--- a/app-text/mupdf/mupdf-1.3_pre20130704.ebuild
+++ /dev/null
@@ -1,123 +0,0 @@
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/mupdf/mupdf-1.3_pre20130704.ebuild,v 1.1 2013/08/28 22:26:18 xmw Exp $
-
-EAPI=5
-
-inherit eutils flag-o-matic multilib toolchain-funcs vcs-snapshot
-
-DESCRIPTION="a lightweight PDF viewer and toolkit written in portable C"
-HOMEPAGE="http://mupdf.com/"
-SRC_URI="http://git.ghostscript.com/?p=mupdf.git;a=snapshot;h=ac84904af638b243284e24d5f401c3f1a21cb0ef;sf=tgz -> ${P}.tar.gz"
-
-LICENSE="AGPL-3"
-SLOT="0/1.3"
-KEYWORDS="~amd64 ~arm ~ppc ~x86 ~amd64-linux ~ppc-macos ~x64-macos ~x86-macos"
-IUSE="X vanilla static static-libs"
-
-LIB_DEPEND="dev-libs/openssl[static-libs?]
- media-libs/freetype:2[static-libs?]
- media-libs/jbig2dec[static-libs?]
- media-libs/openjpeg:2[static-libs?]
- net-misc/curl[static-libs?]
- virtual/jpeg[static-libs?]
- X? ( x11-libs/libX11[static-libs?]
- x11-libs/libXext[static-libs?] )"
-RDEPEND="${LIB_DEPEND}"
-DEPEND="${RDEPEND}
- virtual/pkgconfig
- static-libs? ( ${LIB_DEPEND} )
- static? ( ${LIB_DEPEND//?}
- app-arch/bzip2[static-libs]
- x11-libs/libXau[static-libs]
- x11-libs/libXdmcp[static-libs]
- x11-libs/libxcb[static-libs] )"
-
-src_prepare() {
- rm -rf thirdparty || die
-
- epatch \
- "${FILESDIR}"/${PN}-1.3-CFLAGS.patch \
- "${FILESDIR}"/${PN}-1.3-openjpeg2.patch \
- "${FILESDIR}"/${PN}-1.3-pkg-config.patch \
- "${FILESDIR}"/${PN}-1.3-sys_curl.patch
-
- sed -e "/^libdir=/s:/lib:/$(get_libdir):" \
- -e "/^prefix=/s:=.*:=${EROOR}/usr:" \
- -i platform/debian/${PN}.pc || die
-
- use vanilla || epatch \
- "${FILESDIR}"/${PN}-1.3-zoom-2.patch \
- "${FILESDIR}"/${PN}-1.3-forward_back.patch
-
- #http://bugs.ghostscript.com/show_bug.cgi?id=693467
- sed -e '/^\(Actions\|MimeType\)=/s:\(.*\):\1;:' \
- -i platform/debian/${PN}.desktop || die
-
- sed -e "\$aOS = Linux" \
- -e "\$aCC = $(tc-getCC)" \
- -e "\$aLD = $(tc-getCC)" \
- -e "\$aAR = $(tc-getAR)" \
- -e "\$averbose = true" \
- -e "\$abuild = debug" \
- -e "\$aprefix = ${ED}usr" \
- -e "\$alibdir = ${ED}usr/$(get_libdir)" \
- -i Makerules || die
-
- if ! use X ; then
- sed -e "\$aNOX11 = yes" \
- -i Makerules || die
- fi
-
- if use static-libs || use static ; then
- cp -a "${S}" "${S}"-static || die
- #add missing Libs.private for xcb and freetype
- sed -e 's:\(pkg-config --libs\):\1 --static:' \
- -e '/^SYS_X11_LIBS = /s:\(.*\):\1 -lpthread:' \
- -e '/^SYS_FREETYPE_LIBS = /s:\(.*\):\1 -lbz2:' \
- -i "${S}"-static/Makerules || die
- fi
-
- my_soname=libmupdf.so.1.2
- my_soname_js_none=libmupdf-js-none.so.1.2
- sed -e "\$a\$(MUPDF_LIB): \$(MUPDF_JS_NONE_LIB)" \
- -e "\$a\\\t\$(QUIET_LINK) \$(CC) \$(LDFLAGS) --shared -Wl,-soname -Wl,${my_soname} -Wl,--no-undefined -o \$@ \$^ \$(MUPDF_JS_NONE_LIB) \$(LIBS)" \
- -e "/^MUPDF_LIB :=/s:=.*:= \$(OUT)/${my_soname}:" \
- -e "\$a\$(MUPDF_JS_NONE_LIB):" \
- -e "\$a\\\t\$(QUIET_LINK) \$(CC) \$(LDFLAGS) --shared -Wl,-soname -Wl,${my_soname_js_none} -Wl,--no-undefined -o \$@ \$^ \$(LIBS)" \
- -e "/^MUPDF_JS_NONE_LIB :=/s:=.*:= \$(OUT)/${my_soname_js_none}:" \
- -i Makefile || die
-}
-
-src_compile() {
- emake XCFLAGS="-fpic"
- use static-libs && \
- emake -C "${S}"-static build/debug/lib${PN}{,-js-none}.a
- use static && \
- emake -C "${S}"-static XLIBS="-static"
-}
-
-src_install() {
- if use X ; then
- domenu platform/debian/${PN}.desktop
- doicon platform/debian/${PN}.xpm
- else
- rm docs/man/${PN}.1
- fi
-
- emake install
- dosym ${my_soname} /usr/$(get_libdir)/lib${PN}.so
-
- use static-libs && \
- dolib.a "${S}"-static/build/debug/lib${PN}{,-js-none}.a
- if use static ; then
- dobin "${S}"-static/build/debug/mu{tool,draw}
- use X && dobin "${S}"-static/build/debug/${PN}-x11
- fi
- use X && dosym ${PN}-x11 /usr/bin/${PN}
-
- insinto /usr/$(get_libdir)/pkgconfig
- doins platform/debian/${PN}.pc
-
- dodoc README docs/*.{txt,c}
-}