diff options
author | Philipp Rösner <rndxelement@protonmail.com> | 2024-06-18 17:11:34 +0200 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2024-07-18 10:30:20 +0300 |
commit | c771d6639c0e1479f5fa853978998c69febe9b27 (patch) | |
tree | 7a763620f3ff8e43803da1f86cf4a03d8d2767c6 /app-text/zathura-pdf-mupdf | |
parent | dev-ml/*: drop opam-2.1.5 & children (diff) | |
download | gentoo-c771d6639c0e1479f5fa853978998c69febe9b27.tar.gz gentoo-c771d6639c0e1479f5fa853978998c69febe9b27.tar.bz2 gentoo-c771d6639c0e1479f5fa853978998c69febe9b27.zip |
app-text/zathura-pdf-mupdf: add 0.4.3
Upstream switched to GitHub, so switch source repo in ebuild
to GitHub.
Change HOMEPAGE.
Edit DESCRIPTION to better reflect what the program does.
Adapt meson-mupdfthird patch to work with the new version.
Signed-off-by: Philipp Rösner <rndxelement@protonmail.com>
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'app-text/zathura-pdf-mupdf')
4 files changed, 92 insertions, 2 deletions
diff --git a/app-text/zathura-pdf-mupdf/Manifest b/app-text/zathura-pdf-mupdf/Manifest index 5de3781f22b8..8c728b6a889b 100644 --- a/app-text/zathura-pdf-mupdf/Manifest +++ b/app-text/zathura-pdf-mupdf/Manifest @@ -1,2 +1,3 @@ DIST zathura-pdf-mupdf-0.4.0.tar.gz 9323 BLAKE2B e633e2d52080dc017cd59be184fc52f52b21f9bfa1cecb48c83b4383366226f8e65fcd92503493e8df568847f84a39f2f7d8e4a87df44c66ec121c246557e10a SHA512 44a8d72f54adf29cc853c636f2387edb52e253522c82175533a2f80a6afc45ca88a785785bb840bf81e368ef8f35e31f5e9bf7648ee6a13d394eb4133585c060 DIST zathura-pdf-mupdf-0.4.1.tar.gz 9346 BLAKE2B f1998acf00696fd40577f6e53b597258e519d3862c5b6b29bec292aaa732acf0b7a80ddf1b2f62d95d9462fe811a73cd912009106394bf1aadfa76be9c6d1adc SHA512 bf3360cdf6195af3cace4c769536a49f1cf2167c70a65b560410db1a0098119d726e73baeea98ca7100653c17248056c484fc436558e52a8dc12e7b83ce789b1 +DIST zathura-pdf-mupdf-0.4.3.tar.gz 10146 BLAKE2B ca4edc56256d04e5ba42dd756976a3e444f37dfb5c1fff569329478c3053f7d48fa689d61b8769a73bac50e1244e74855705a9cd1cd25ed37a6927bd6c2ccf75 SHA512 ffab536d1cea26dd08fbb3808e0ff5d4b5b126bfdbd19a79101ac519ee9951d916b75c5b1b1e459f453087c936d84fa3839b4b84dd7f92398ba5cca87e186795 diff --git a/app-text/zathura-pdf-mupdf/files/zathura-pdf-mupdf-0.4.3-meson-mupdfthird.patch b/app-text/zathura-pdf-mupdf/files/zathura-pdf-mupdf-0.4.3-meson-mupdfthird.patch new file mode 100644 index 000000000000..707e7b89cdf6 --- /dev/null +++ b/app-text/zathura-pdf-mupdf/files/zathura-pdf-mupdf-0.4.3-meson-mupdfthird.patch @@ -0,0 +1,42 @@ +# The dependencies mupdfthird, leptonica and tesseract seem to not be actually used +# anymore, hence exclude them. +# Upstream issue: https://github.com/pwmt/zathura-pdf-mupdf/issues/73 +--- a/meson.build ++++ b/meson.build +@@ -23,7 +23,6 @@ girara = dependency('girara-gtk3') + glib = dependency('glib-2.0') + cairo = dependency('cairo') + mupdf = dependency('mupdf', required: false, version: '>=@0@.@1@'.format(mupdf_required_version_major, mupdf_required_version_minor)) +-mupdfthird = cc.find_library('mupdf-third') + + build_dependencies = [ + zathura, +@@ -46,17 +45,15 @@ if not mupdf.found() + error('mupdf @0@.@1@ or newer is required'.format(mupdf_required_version_major, mupdf_required_version_minor)) + endif + +- build_dependencies += [mupdf, mupdfthird] ++ build_dependencies += [mupdf] + else + # build from Debian's libmupdf-dev +- build_dependencies += [mupdf, mupdfthird] ++ build_dependencies += [mupdf] + + libjpeg = dependency('libjpeg') + libjbig2dec = cc.find_library('jbig2dec') + libopenjp2 = dependency('libopenjp2') + gumbo = dependency('gumbo') +- tesseract = dependency('tesseract') +- leptonica = dependency('lept') + mujs = dependency('mujs') + + build_dependencies += [ +@@ -64,8 +61,6 @@ else + libjbig2dec, + libopenjp2, + gumbo, +- tesseract, +- leptonica, + mujs + ] + endif diff --git a/app-text/zathura-pdf-mupdf/metadata.xml b/app-text/zathura-pdf-mupdf/metadata.xml index 348798600314..c6a49fde50cb 100644 --- a/app-text/zathura-pdf-mupdf/metadata.xml +++ b/app-text/zathura-pdf-mupdf/metadata.xml @@ -18,7 +18,8 @@ <email>sebastian+dev@ramacher.at</email> <name>Sebastian Ramacher</name> </maintainer> - <doc lang="en">https://git.pwmt.org/pwmt/zathura-pdf-mupdf/-/blob/master/README.md</doc> - <bugs-to>https://git.pwmt.org/pwmt/zathura-pdf-mupdf/-/issues</bugs-to> + <doc lang="en">https://github.com/pwmt/zathura-pdf-mupdf/blob/develop/README.md</doc> + <bugs-to>https://github.com/pwmt/zathura-pdf-mupdf/issues</bugs-to> + <remote-id type="github">pwmt/zathura-pdf-mupdf</remote-id> </upstream> </pkgmetadata> diff --git a/app-text/zathura-pdf-mupdf/zathura-pdf-mupdf-0.4.3.ebuild b/app-text/zathura-pdf-mupdf/zathura-pdf-mupdf-0.4.3.ebuild new file mode 100644 index 000000000000..a939c6c183b8 --- /dev/null +++ b/app-text/zathura-pdf-mupdf/zathura-pdf-mupdf-0.4.3.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit meson xdg + +if [[ ${PV} == *9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/pwmt/zathura-pdf-mupdf.git" + EGIT_BRANCH="develop" +else + KEYWORDS="~amd64 ~arm ~x86" + SRC_URI="https://github.com/pwmt/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" +fi + +DESCRIPTION="PDF support for zathura using the mupdf PDF rendering library" +HOMEPAGE="https://pwmt.org/projects/zathura-pdf-mupdf/" + +LICENSE="ZLIB" +SLOT="0" +IUSE="+javascript" + +DEPEND=" + >=app-text/mupdf-1.24.0:=[javascript?] + >=app-text/zathura-0.2.0:= + dev-libs/girara + dev-libs/glib:2 + x11-libs/cairo +" + +RDEPEND="${DEPEND}" + +BDEPEND="virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}/${P}-meson-mupdfthird.patch" +) + +src_prepare() ( + default + + if ! use javascript ; then + sed -i -e '/mujs/d' meson.build || die + fi +) |