1 |
commit: eeb6c074063a27a661e8cd619516ab6a7160df3e |
2 |
Author: Jouni Kosonen <jouni.kosonen <AT> tukesoft <DOT> com> |
3 |
AuthorDate: Thu Nov 14 02:41:11 2019 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Nov 30 07:48:55 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eeb6c074 |
7 |
|
8 |
app-text/llpp: snapshot version 30<v<31 |
9 |
|
10 |
llpp v30 doesn't build against >=mupdf-1.15 and v31 against ocaml<4.08 |
11 |
|
12 |
Closes: https://bugs.gentoo.org/685784 |
13 |
Closes: https://bugs.gentoo.org/699388 |
14 |
Signed-off-by: Jouni Kosonen <jouni.kosonen <AT> tukesoft.com> |
15 |
Closes: https://github.com/gentoo/gentoo/pull/13640 |
16 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
17 |
|
18 |
app-text/llpp/Manifest | 1 + |
19 |
app-text/llpp/files/llpp.desktop | 2 +- |
20 |
app-text/llpp/llpp-30_p20190316.ebuild | 72 ++++++++++++++++++++++++++++++++++ |
21 |
3 files changed, 74 insertions(+), 1 deletion(-) |
22 |
|
23 |
diff --git a/app-text/llpp/Manifest b/app-text/llpp/Manifest |
24 |
index 6dba89603d9..5a5f1b30293 100644 |
25 |
--- a/app-text/llpp/Manifest |
26 |
+++ b/app-text/llpp/Manifest |
27 |
@@ -1 +1,2 @@ |
28 |
DIST llpp-30.tar.gz 165821 BLAKE2B 755648f9f7e0e0740dd9647559c085ab1626edfceb91d8df4aa783610f32499d744f24a2e0ac0d6f13e747695e8829112e59bcf0fc78c7ef5f4b2427c759353d SHA512 1dfcf273bdabfb3c7b38366bac60659555b943f459cb3fd6e656df1a33c0f84e6745d62522c5498df0bd6182bda13973144724054588c07145018bb3e758d893 |
29 |
+DIST llpp-30_p20190316.tar.gz 169517 BLAKE2B 56dbb4fc1f46e654f15986edf870bec22c3d26c694915db88125d99b8f0460c70ac3bd48c82f45f32939f5a09753a4ec6f2e6d544397a0d6ba242640c363917d SHA512 c736b94595eab1fd45e6fb6aa89a988e0c3ec1f4c7c88f8655d17a88c9ff62c6b7db4396a3934690861b5e61af595baa6736b92c585ad68c51677f3e577bd713 |
30 |
|
31 |
diff --git a/app-text/llpp/files/llpp.desktop b/app-text/llpp/files/llpp.desktop |
32 |
index 9d81141aede..59c5fcde4e8 100644 |
33 |
--- a/app-text/llpp/files/llpp.desktop |
34 |
+++ b/app-text/llpp/files/llpp.desktop |
35 |
@@ -5,7 +5,7 @@ Exec=llpp %f |
36 |
TryExec=llpp |
37 |
Terminal=false |
38 |
Type=Application |
39 |
-MimeType=application/pdf;application/x-pdf;application/x-cbz;application/oxps;application/vnd.ms-xpsdocument;application/epub+zip;image/png;image/jpeg;image/pjpeg;image/gif;image/bmp;image/jpx;image/jp2;image/vnd.ms-photo;image/jxr;image/x-portable-bitmap;image/x-portable-greymap;image/x-portable-pixmap;image/x-portable-arbitrarymap;image/png; |
40 |
+MimeType=application/pdf;application/x-pdf;application/x-cbz;application/oxps;application/vnd.ms-xpsdocument;application/epub+zip;image/png;image/jpeg;image/pjpeg;image/gif;image/bmp;image/jpx;image/jp2;image/vnd.ms-photo;image/jxr;image/x-portable-bitmap;image/x-portable-greymap;image/x-portable-pixmap;image/x-portable-arbitrarymap; |
41 |
Categories=Office;Viewer;Graphics |
42 |
Actions=View |
43 |
Version=1.0 |
44 |
|
45 |
diff --git a/app-text/llpp/llpp-30_p20190316.ebuild b/app-text/llpp/llpp-30_p20190316.ebuild |
46 |
new file mode 100644 |
47 |
index 00000000000..019afdb0c6c |
48 |
--- /dev/null |
49 |
+++ b/app-text/llpp/llpp-30_p20190316.ebuild |
50 |
@@ -0,0 +1,72 @@ |
51 |
+# Copyright 1999-2019 Gentoo Authors |
52 |
+# Distributed under the terms of the GNU General Public License v2 |
53 |
+ |
54 |
+EAPI=7 |
55 |
+ |
56 |
+inherit toolchain-funcs xdg-utils |
57 |
+ |
58 |
+DESCRIPTION="Graphical PDF viewer which aims to superficially resemble less(1)" |
59 |
+HOMEPAGE="https://github.com/moosotc/llpp" |
60 |
+MY_COMMIT="1f3ae0843d5877a0e599d8411d433bd9b0078157" |
61 |
+SRC_URI="https://github.com/moosotc/llpp/archive/${MY_COMMIT}.tar.gz -> ${P}.tar.gz" |
62 |
+ |
63 |
+LICENSE="public-domain" |
64 |
+SLOT="0" |
65 |
+KEYWORDS="~amd64 ~ppc ~x86" |
66 |
+IUSE="+ocamlopt static-libs" |
67 |
+ |
68 |
+RDEPEND=">=app-text/mupdf-1.15.0:0=[static-libs=] |
69 |
+ media-libs/openjpeg:2[static-libs=] |
70 |
+ media-libs/fontconfig:1.0[static-libs=] |
71 |
+ media-libs/freetype:2[static-libs=] |
72 |
+ media-libs/jbig2dec:=[static-libs=] |
73 |
+ sys-libs/zlib[static-libs=] |
74 |
+ virtual/jpeg:0[static-libs=] |
75 |
+ x11-libs/libX11[static-libs=] |
76 |
+ x11-misc/xsel" |
77 |
+DEPEND="${RDEPEND} |
78 |
+ app-text/asciidoc |
79 |
+ virtual/pkgconfig |
80 |
+ static-libs? ( |
81 |
+ app-arch/bzip2[static-libs] |
82 |
+ media-libs/libXcm[static-libs] |
83 |
+ x11-libs/libXau[static-libs] |
84 |
+ x11-libs/libXdmcp[static-libs] |
85 |
+ x11-libs/libXmu[static-libs] ) |
86 |
+ >=dev-lang/ocaml-4.05[ocamlopt?] |
87 |
+ dev-ml/lablgl[glut,ocamlopt?]" |
88 |
+ |
89 |
+RESTRICT="!ocamlopt? ( strip )" |
90 |
+ |
91 |
+PATCHES=( "${FILESDIR}"/${PN}-30-keysym.patch ) |
92 |
+ |
93 |
+S="${WORKDIR}"/"${PN}"-"${MY_COMMIT}" |
94 |
+ |
95 |
+src_prepare() { |
96 |
+ default |
97 |
+ |
98 |
+ # use custom makefile from archlinux with minor changes |
99 |
+ cp "${FILESDIR}"/Makefile "${S}" || die |
100 |
+ |
101 |
+ # re-add desktop file removed upstream |
102 |
+ cp "${FILESDIR}"/llpp.desktop "${S}"/misc || die |
103 |
+} |
104 |
+ |
105 |
+src_compile() { |
106 |
+ emake -j1 VERSION=${PV} CC="$(tc-getCC)" LIBDIR="/usr/$(get_libdir)" |
107 |
+} |
108 |
+ |
109 |
+src_install() { |
110 |
+ emake DESTDIR="${D}" PREFIX="/usr" install |
111 |
+ dodoc README Thanks |
112 |
+} |
113 |
+ |
114 |
+pkg_postinst() { |
115 |
+ xdg_desktop_database_update |
116 |
+ xdg_mimeinfo_database_update |
117 |
+} |
118 |
+ |
119 |
+pkg_postrm() { |
120 |
+ xdg_desktop_database_update |
121 |
+ xdg_mimeinfo_database_update |
122 |
+} |