Gentoo Archives: gentoo-commits

From: "Michael Weber (xmw)" <xmw@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-text/mupdf: mupdf-1.3_p20130828.ebuild ChangeLog
Date: Thu, 29 Aug 2013 13:29:18
Message-Id: 20130829132913.0B5B72004C@flycatcher.gentoo.org
1 xmw 13/08/29 13:29:12
2
3 Modified: ChangeLog
4 Added: mupdf-1.3_p20130828.ebuild
5 Log:
6 Add snapshot versions for llpp and mupdf
7
8 (Portage version: 2.2.0/cvs/Linux x86_64, signed Manifest commit with key 62EEF090)
9
10 Revision Changes Path
11 1.89 app-text/mupdf/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/mupdf/ChangeLog?rev=1.89&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/mupdf/ChangeLog?rev=1.89&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/mupdf/ChangeLog?r1=1.88&r2=1.89
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-text/mupdf/ChangeLog,v
20 retrieving revision 1.88
21 retrieving revision 1.89
22 diff -u -r1.88 -r1.89
23 --- ChangeLog 28 Aug 2013 22:26:18 -0000 1.88
24 +++ ChangeLog 29 Aug 2013 13:29:12 -0000 1.89
25 @@ -1,6 +1,11 @@
26 # ChangeLog for app-text/mupdf
27 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-text/mupdf/ChangeLog,v 1.88 2013/08/28 22:26:18 xmw Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/app-text/mupdf/ChangeLog,v 1.89 2013/08/29 13:29:12 xmw Exp $
30 +
31 +*mupdf-1.3_p20130828 (29 Aug 2013)
32 +
33 + 29 Aug 2013; Michael Weber <xmw@g.o> +mupdf-1.3_p20130828.ebuild:
34 + Add snapshot versions for llpp and mupdf
35
36 *mupdf-1.3_pre20130704 (28 Aug 2013)
37
38
39
40
41 1.1 app-text/mupdf/mupdf-1.3_p20130828.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/mupdf/mupdf-1.3_p20130828.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/mupdf/mupdf-1.3_p20130828.ebuild?rev=1.1&content-type=text/plain
45
46 Index: mupdf-1.3_p20130828.ebuild
47 ===================================================================
48 # Copyright 1999-2013 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/app-text/mupdf/mupdf-1.3_p20130828.ebuild,v 1.1 2013/08/29 13:29:12 xmw Exp $
51
52 EAPI=5
53
54 inherit eutils flag-o-matic multilib toolchain-funcs vcs-snapshot
55
56 DESCRIPTION="a lightweight PDF viewer and toolkit written in portable C"
57 HOMEPAGE="http://mupdf.com/"
58 SRC_URI="http://git.ghostscript.com/?p=mupdf.git;a=snapshot;h=d396b126c7ab5c241e0dc7ff0edd9942ad5dfdaa;sf=tgz -> ${P}.tar.gz"
59
60 LICENSE="AGPL-3"
61 SLOT="0/1.3"
62 KEYWORDS="~amd64 ~arm ~ppc ~x86 ~amd64-linux ~ppc-macos ~x64-macos ~x86-macos"
63 IUSE="X vanilla static static-libs"
64
65 LIB_DEPEND="dev-libs/openssl[static-libs?]
66 media-libs/freetype:2[static-libs?]
67 media-libs/jbig2dec[static-libs?]
68 media-libs/openjpeg:2[static-libs?]
69 net-misc/curl[static-libs?]
70 virtual/jpeg[static-libs?]
71 X? ( x11-libs/libX11[static-libs?]
72 x11-libs/libXext[static-libs?] )"
73 RDEPEND="${LIB_DEPEND}"
74 DEPEND="${RDEPEND}
75 virtual/pkgconfig
76 static-libs? ( ${LIB_DEPEND} )
77 static? ( ${LIB_DEPEND//?}
78 app-arch/bzip2[static-libs]
79 x11-libs/libXau[static-libs]
80 x11-libs/libXdmcp[static-libs]
81 x11-libs/libxcb[static-libs] )"
82
83 src_prepare() {
84 rm -rf thirdparty || die
85
86 epatch \
87 "${FILESDIR}"/${PN}-1.3-CFLAGS.patch \
88 "${FILESDIR}"/${PN}-1.3-openjpeg2.patch \
89 "${FILESDIR}"/${PN}-1.3-pkg-config.patch \
90 "${FILESDIR}"/${PN}-1.3-sys_curl.patch
91
92 sed -e "/^libdir=/s:/lib:/$(get_libdir):" \
93 -e "/^prefix=/s:=.*:=${EROOR}/usr:" \
94 -i platform/debian/${PN}.pc || die
95
96 use vanilla || epatch \
97 "${FILESDIR}"/${PN}-1.3-zoom-2.patch \
98 "${FILESDIR}"/${PN}-1.3-forward_back.patch
99
100 #http://bugs.ghostscript.com/show_bug.cgi?id=693467
101 sed -e '/^\(Actions\|MimeType\)=/s:\(.*\):\1;:' \
102 -i platform/debian/${PN}.desktop || die
103
104 sed -e "\$aOS = Linux" \
105 -e "\$aCC = $(tc-getCC)" \
106 -e "\$aLD = $(tc-getCC)" \
107 -e "\$aAR = $(tc-getAR)" \
108 -e "\$averbose = true" \
109 -e "\$abuild = debug" \
110 -e "\$aprefix = ${ED}usr" \
111 -e "\$alibdir = ${ED}usr/$(get_libdir)" \
112 -i Makerules || die
113
114 if ! use X ; then
115 sed -e "\$aNOX11 = yes" \
116 -i Makerules || die
117 fi
118
119 if use static-libs || use static ; then
120 cp -a "${S}" "${S}"-static || die
121 #add missing Libs.private for xcb and freetype
122 sed -e 's:\(pkg-config --libs\):\1 --static:' \
123 -e '/^SYS_X11_LIBS = /s:\(.*\):\1 -lpthread:' \
124 -e '/^SYS_FREETYPE_LIBS = /s:\(.*\):\1 -lbz2:' \
125 -i "${S}"-static/Makerules || die
126 fi
127
128 my_soname=libmupdf.so.1.2
129 my_soname_js_none=libmupdf-js-none.so.1.2
130 sed -e "\$a\$(MUPDF_LIB): \$(MUPDF_JS_NONE_LIB)" \
131 -e "\$a\\\t\$(QUIET_LINK) \$(CC) \$(LDFLAGS) --shared -Wl,-soname -Wl,${my_soname} -Wl,--no-undefined -o \$@ \$^ \$(MUPDF_JS_NONE_LIB) \$(LIBS)" \
132 -e "/^MUPDF_LIB :=/s:=.*:= \$(OUT)/${my_soname}:" \
133 -e "\$a\$(MUPDF_JS_NONE_LIB):" \
134 -e "\$a\\\t\$(QUIET_LINK) \$(CC) \$(LDFLAGS) --shared -Wl,-soname -Wl,${my_soname_js_none} -Wl,--no-undefined -o \$@ \$^ \$(LIBS)" \
135 -e "/^MUPDF_JS_NONE_LIB :=/s:=.*:= \$(OUT)/${my_soname_js_none}:" \
136 -i Makefile || die
137 }
138
139 src_compile() {
140 emake XCFLAGS="-fpic"
141 use static-libs && \
142 emake -C "${S}"-static build/debug/lib${PN}{,-js-none}.a
143 use static && \
144 emake -C "${S}"-static XLIBS="-static"
145 }
146
147 src_install() {
148 if use X ; then
149 domenu platform/debian/${PN}.desktop
150 doicon platform/debian/${PN}.xpm
151 else
152 rm docs/man/${PN}.1
153 fi
154
155 emake install
156 dosym ${my_soname} /usr/$(get_libdir)/lib${PN}.so
157
158 use static-libs && \
159 dolib.a "${S}"-static/build/debug/lib${PN}{,-js-none}.a
160 if use static ; then
161 dobin "${S}"-static/build/debug/mu{tool,draw}
162 use X && dobin "${S}"-static/build/debug/${PN}-x11
163 fi
164 use X && dosym ${PN}-x11 /usr/bin/${PN}
165
166 insinto /usr/$(get_libdir)/pkgconfig
167 doins platform/debian/${PN}.pc
168
169 dodoc README docs/*.{txt,c}
170 }