Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/llpp/
Date: Wed, 02 Sep 2020 21:53:44
Message-Id: 1599083615.0c66b1512801731efb3c03fd9a6e79895a22aecc.sam@gentoo
1 commit: 0c66b1512801731efb3c03fd9a6e79895a22aecc
2 Author: Jouni Kosonen <jouni.kosonen <AT> tukesoft <DOT> com>
3 AuthorDate: Fri Jul 24 12:05:30 2020 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Wed Sep 2 21:53:35 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0c66b151
7
8 app-text/llpp: version bump to 31
9
10 v31 works with mupdf-1.16.1 and ocaml-4.09.0 currently in the tree
11
12 Bug: https://bugs.gentoo.org/733332
13 Signed-off-by: Jouni Kosonen <jouni.kosonen <AT> tukesoft.com>
14 Signed-off-by: Sam James <sam <AT> gentoo.org>
15
16 app-text/llpp/Manifest | 1 +
17 app-text/llpp/llpp-31.ebuild | 70 ++++++++++++++++++++++++++++++++++++++++++++
18 2 files changed, 71 insertions(+)
19
20 diff --git a/app-text/llpp/Manifest b/app-text/llpp/Manifest
21 index 5a5f1b30293..bbcec5684f1 100644
22 --- a/app-text/llpp/Manifest
23 +++ b/app-text/llpp/Manifest
24 @@ -1,2 +1,3 @@
25 DIST llpp-30.tar.gz 165821 BLAKE2B 755648f9f7e0e0740dd9647559c085ab1626edfceb91d8df4aa783610f32499d744f24a2e0ac0d6f13e747695e8829112e59bcf0fc78c7ef5f4b2427c759353d SHA512 1dfcf273bdabfb3c7b38366bac60659555b943f459cb3fd6e656df1a33c0f84e6745d62522c5498df0bd6182bda13973144724054588c07145018bb3e758d893
26 DIST llpp-30_p20190316.tar.gz 169517 BLAKE2B 56dbb4fc1f46e654f15986edf870bec22c3d26c694915db88125d99b8f0460c70ac3bd48c82f45f32939f5a09753a4ec6f2e6d544397a0d6ba242640c363917d SHA512 c736b94595eab1fd45e6fb6aa89a988e0c3ec1f4c7c88f8655d17a88c9ff62c6b7db4396a3934690861b5e61af595baa6736b92c585ad68c51677f3e577bd713
27 +DIST llpp-31.tar.gz 169199 BLAKE2B 3f60db741fb94bf1b4753f5443705e68f062a68212fd3d0d8062f54b3b71002dc0ee3ba3040f9be028a40d8e96de11c8c53966196e631458f65d863f90f7226f SHA512 d9e213078899ece4a92291199bc2ea962c40a185b9908a7db241a773f57c64e08b004a8433984b86cc4b59088f97991b2ee8ee94e75d71536ce378dd32316e57
28
29 diff --git a/app-text/llpp/llpp-31.ebuild b/app-text/llpp/llpp-31.ebuild
30 new file mode 100644
31 index 00000000000..78104778ab6
32 --- /dev/null
33 +++ b/app-text/llpp/llpp-31.ebuild
34 @@ -0,0 +1,70 @@
35 +# Copyright 1999-2020 Gentoo Authors
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +EAPI=7
39 +
40 +inherit toolchain-funcs xdg-utils
41 +
42 +DESCRIPTION="Graphical PDF viewer which aims to superficially resemble less(1)"
43 +HOMEPAGE="https://github.com/moosotc/llpp"
44 +SRC_URI="https://github.com/moosotc/llpp/archive/v${PV}.tar.gz -> ${P}.tar.gz"
45 +
46 +LICENSE="public-domain"
47 +SLOT="0"
48 +KEYWORDS="~amd64 ~ppc ~x86"
49 +IUSE="+ocamlopt static-libs"
50 +
51 +RDEPEND="=app-text/mupdf-1.16*:0=[static-libs?]
52 + app-arch/bzip2[static-libs?]
53 + media-libs/fontconfig:1.0[static-libs?]
54 + media-libs/freetype:2[static-libs?]
55 + media-libs/jbig2dec:=[static-libs?]
56 + media-libs/openjpeg:2[static-libs?]
57 + sys-libs/zlib[static-libs?]
58 + virtual/jpeg:0[static-libs?]
59 + x11-libs/libX11[static-libs?]
60 + x11-libs/libXau[static-libs?]
61 + x11-libs/libXdmcp[static-libs?]
62 + x11-misc/xsel"
63 +DEPEND="${RDEPEND}
64 + dev-ml/lablgl[glut,ocamlopt?]"
65 +BDEPEND="
66 + >=dev-lang/ocaml-4.09[ocamlopt?]
67 + app-text/asciidoc
68 + virtual/pkgconfig"
69 +
70 +RESTRICT="!ocamlopt? ( strip )"
71 +
72 +PATCHES=( "${FILESDIR}"/${PN}-30-keysym.patch )
73 +
74 +src_prepare() {
75 + default
76 +
77 + # use custom makefile from archlinux with minor changes
78 + cp "${FILESDIR}"/Makefile "${S}" || die
79 +
80 + # re-add desktop file removed upstream
81 + cp "${FILESDIR}"/llpp.desktop "${S}"/misc || die
82 +
83 + # remove empty interface definition
84 + rm "${S}"/main.mli || die
85 +}
86 +
87 +src_compile() {
88 + emake -j1 VERSION=${PV} CC="$(tc-getCC)" LIBDIR="/usr/$(get_libdir)"
89 +}
90 +
91 +src_install() {
92 + emake DESTDIR="${D}" PREFIX="/usr" install
93 + dodoc README Thanks
94 +}
95 +
96 +pkg_postinst() {
97 + xdg_desktop_database_update
98 + xdg_mimeinfo_database_update
99 +}
100 +
101 +pkg_postrm() {
102 + xdg_desktop_database_update
103 + xdg_mimeinfo_database_update
104 +}