1 |
commit: c25f19c10aac46c752fed99379d84a177668f351 |
2 |
Author: Michael Weber <xmw <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jan 23 00:37:33 2017 +0000 |
4 |
Commit: Michael Weber <xmw <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jan 23 00:37:33 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c25f19c1 |
7 |
|
8 |
app-text/mupdf: Drop live ebuild. |
9 |
|
10 |
Package-Manager: Portage-2.3.3, Repoman-2.3.1 |
11 |
|
12 |
app-text/mupdf/mupdf-9999.ebuild | 132 --------------------------------------- |
13 |
1 file changed, 132 deletions(-) |
14 |
|
15 |
diff --git a/app-text/mupdf/mupdf-9999.ebuild b/app-text/mupdf/mupdf-9999.ebuild |
16 |
deleted file mode 100644 |
17 |
index 4f8613a..00000000 |
18 |
--- a/app-text/mupdf/mupdf-9999.ebuild |
19 |
+++ /dev/null |
20 |
@@ -1,132 +0,0 @@ |
21 |
-# Copyright 1999-2015 Gentoo Foundation |
22 |
-# Distributed under the terms of the GNU General Public License v2 |
23 |
-# $Id$ |
24 |
- |
25 |
-EAPI=5 |
26 |
- |
27 |
-inherit eutils flag-o-matic git-2 multilib toolchain-funcs |
28 |
- |
29 |
-DESCRIPTION="a lightweight PDF viewer and toolkit written in portable C" |
30 |
-HOMEPAGE="http://mupdf.com/" |
31 |
-EGIT_REPO_URI="git://git.ghostscript.com/mupdf.git" |
32 |
-#EGIT_HAS_SUBMODULES=1 |
33 |
- |
34 |
-LICENSE="AGPL-3" |
35 |
-MY_SOVER=1.7 |
36 |
-SLOT="0/${MY_SOVER}" |
37 |
-KEYWORDS="" |
38 |
-IUSE="X vanilla curl libressl openssl static static-libs" |
39 |
- |
40 |
-LIB_DEPEND=" |
41 |
- !libressl? ( dev-libs/openssl:0[static-libs?] ) |
42 |
- libressl? ( dev-libs/libressl[static-libs?] ) |
43 |
- media-libs/freetype:2[static-libs?] |
44 |
- media-libs/jbig2dec[static-libs?] |
45 |
- media-libs/openjpeg:2[static-libs?] |
46 |
- net-misc/curl[static-libs?] |
47 |
- virtual/jpeg[static-libs?] |
48 |
- X? ( x11-libs/libX11[static-libs?] |
49 |
- x11-libs/libXext[static-libs?] )" |
50 |
-RDEPEND="${LIB_DEPEND}" |
51 |
-DEPEND="${RDEPEND} |
52 |
- virtual/pkgconfig |
53 |
- static-libs? ( ${LIB_DEPEND} ) |
54 |
- static? ( ${LIB_DEPEND//?} |
55 |
- app-arch/bzip2[static-libs] |
56 |
- x11-libs/libXau[static-libs] |
57 |
- x11-libs/libXdmcp[static-libs] |
58 |
- x11-libs/libxcb[static-libs] )" |
59 |
- |
60 |
-src_prepare() { |
61 |
- use hppa && append-cflags -ffunction-sections |
62 |
- |
63 |
- rm -rf thirdparty || die |
64 |
- |
65 |
- epatch \ |
66 |
- "${FILESDIR}"/${PN}-1.3-CFLAGS.patch \ |
67 |
- "${FILESDIR}"/${PN}-1.5-old-debian-files.patch \ |
68 |
- "${FILESDIR}"/${PN}-1.3-pkg-config.patch \ |
69 |
- "${FILESDIR}"/${PN}-1.5-Makerules-openssl-curl.patch |
70 |
- |
71 |
- if has_version ">=media-libs/openjpeg-2.1:2" ; then |
72 |
- epatch \ |
73 |
- "${FILESDIR}"/${PN}-1.5-openjpeg-2.1.patch |
74 |
- fi |
75 |
- |
76 |
- sed -e "/^libdir=/s:/lib:/$(get_libdir):" \ |
77 |
- -e "/^prefix=/s:=.*:=${EROOT}/usr:" \ |
78 |
- -i platform/debian/${PN}.pc || die |
79 |
- |
80 |
- use vanilla || epatch \ |
81 |
- "${FILESDIR}"/${PN}-1.3-zoom-2.patch |
82 |
- |
83 |
- #http://bugs.ghostscript.com/show_bug.cgi?id=693467 |
84 |
- sed -e '/^\(Actions\|MimeType\)=/s:\(.*\):\1;:' \ |
85 |
- -i platform/debian/${PN}.desktop || die |
86 |
- |
87 |
- sed -e "1iOS = Linux" \ |
88 |
- -e "1iCC = $(tc-getCC)" \ |
89 |
- -e "1iLD = $(tc-getCC)" \ |
90 |
- -e "1iAR = $(tc-getAR)" \ |
91 |
- -e "1iverbose = yes" \ |
92 |
- -e "1ibuild = debug" \ |
93 |
- -e "1iprefix = ${ED}usr" \ |
94 |
- -e "1ilibdir = ${ED}usr/$(get_libdir)" \ |
95 |
- -e "1idocdir = ${ED}usr/share/doc/${PF}" \ |
96 |
- -e "1iHAVE_X11 = $(usex X)" \ |
97 |
- -e "1iWANT_OPENSSL = $(usex openssl)" \ |
98 |
- -e "1iWANT_CURL = $(usex curl)" \ |
99 |
- -i Makerules || die |
100 |
- |
101 |
- if use static-libs || use static ; then |
102 |
- cp -a "${S}" "${S}"-static || die |
103 |
- #add missing Libs.private for xcb and freetype |
104 |
- sed -e 's:\(pkg-config --libs\):\1 --static:' \ |
105 |
- -e '/^SYS_X11_LIBS = /s:\(.*\):\1 -lpthread:' \ |
106 |
- -e '/^SYS_FREETYPE_LIBS = /s:\(.*\):\1 -lbz2:' \ |
107 |
- -i "${S}"-static/Makerules || die |
108 |
- fi |
109 |
- |
110 |
- my_soname=libmupdf.so.${MY_SOVER} |
111 |
- my_soname_js_none=libmupdf-js-none.so.${MY_SOVER} |
112 |
- sed -e "\$a\$(MUPDF_LIB): \$(MUPDF_JS_NONE_LIB)" \ |
113 |
- -e "\$a\\\t\$(QUIET_LINK) \$(CC) \$(LDFLAGS) --shared -Wl,-soname -Wl,${my_soname} -Wl,--no-undefined -o \$@ \$^ \$(MUPDF_JS_NONE_LIB) \$(LIBS)" \ |
114 |
- -e "/^MUPDF_LIB :=/s:=.*:= \$(OUT)/${my_soname}:" \ |
115 |
- -e "\$a\$(MUPDF_JS_NONE_LIB):" \ |
116 |
- -e "\$a\\\t\$(QUIET_LINK) \$(CC) \$(LDFLAGS) --shared -Wl,-soname -Wl,${my_soname_js_none} -Wl,--no-undefined -o \$@ \$^ \$(LIBS)" \ |
117 |
- -e "/install/s: COPYING : :" \ |
118 |
- -i Makefile || die |
119 |
-} |
120 |
- |
121 |
-src_compile() { |
122 |
- emake XCFLAGS="-fpic" |
123 |
- use static-libs && \ |
124 |
- emake -C "${S}"-static build/debug/lib${PN}{,-js-none}.a |
125 |
- use static && \ |
126 |
- emake -C "${S}"-static XLIBS="-static" |
127 |
-} |
128 |
- |
129 |
-src_install() { |
130 |
- if use X ; then |
131 |
- domenu platform/debian/${PN}.desktop |
132 |
- doicon platform/debian/${PN}.xpm |
133 |
- else |
134 |
- rm docs/man/${PN}.1 |
135 |
- fi |
136 |
- |
137 |
- emake install |
138 |
- dosym ${my_soname} /usr/$(get_libdir)/lib${PN}.so |
139 |
- |
140 |
- use static-libs && \ |
141 |
- dolib.a "${S}"-static/build/debug/lib${PN}{,-js-none}.a |
142 |
- if use static ; then |
143 |
- dobin "${S}"-static/build/debug/mu{tool,draw} |
144 |
- use X && dobin "${S}"-static/build/debug/${PN}-x11 |
145 |
- fi |
146 |
- use X && dosym ${PN}-x11 /usr/bin/${PN} |
147 |
- |
148 |
- insinto /usr/$(get_libdir)/pkgconfig |
149 |
- doins platform/debian/${PN}.pc |
150 |
- |
151 |
- dodoc README docs/*.{txt,c} |
152 |
-} |