diff options
author | Philipp Rösner <rndxelement@protonmail.com> | 2022-12-15 23:25:58 +0100 |
---|---|---|
committer | Florian Schmaus <flow@gentoo.org> | 2023-01-09 09:33:18 +0100 |
commit | e6c6e6c69f1ee6323f770f9531424dce095bd4a3 (patch) | |
tree | a95b1116f3a53aa258d8073403672dc543e9c820 /app-text/zathura-pdf-mupdf | |
parent | dev-db/citus: add 11.0.7 (diff) | |
download | gentoo-e6c6e6c69f1ee6323f770f9531424dce095bd4a3.tar.gz gentoo-e6c6e6c69f1ee6323f770f9531424dce095bd4a3.tar.bz2 gentoo-e6c6e6c69f1ee6323f770f9531424dce095bd4a3.zip |
app-text/zathura-pdf-mupdf: add 0.4.0
Also remove build deps that are not actually required and
add a USE flag `javascript` which requires app-text/mupdf
to be built with `javascript` enabled and removes mujs
deps from meson.build if `javascript` not enabled.
Closes: https://bugs.gentoo.org/885447
Suggested-by: Eric Stein <ericzwo@proton.me>
Signed-off-by: Philipp Rösner <rndxelement@protonmail.com>
Signed-off-by: Florian Schmaus <flow@gentoo.org>
Diffstat (limited to 'app-text/zathura-pdf-mupdf')
3 files changed, 86 insertions, 0 deletions
diff --git a/app-text/zathura-pdf-mupdf/Manifest b/app-text/zathura-pdf-mupdf/Manifest index 5c07fd75e5bf..e2061a022609 100644 --- a/app-text/zathura-pdf-mupdf/Manifest +++ b/app-text/zathura-pdf-mupdf/Manifest @@ -1,2 +1,3 @@ DIST zathura-pdf-mupdf-0.3.8.tar.gz 9198 BLAKE2B b873d3352d4f324d5dfceebe0ca1cd13e5e5b9bbedf89a5fdae553a2d2cf59ece455bbe931fc021310a7be3c765663ef73931016d48abaedaf2d3488f96d0866 SHA512 5742f22fc919af390a8a42f64640c36aaf1499a20d1c6603e70cc47b3f6634dafc94a31bfbb30c88524ac0c18c040f0fd6c63d236dbb556784cb17a9b0446374 DIST zathura-pdf-mupdf-0.3.9.tar.gz 9201 BLAKE2B a74621e6330889363e25875e25984d8f9d9250a654ddb628849a8750fc4bbbb730cb6707d1959d0d28189d99af6bc041e1806036737b3daaa739373e632e304d SHA512 12537ca4c579be6dfa4c94195eafea09e45a08207eb131ed806ab868a71d781dbe6fef5e4442f77bcc0a70921d44654d97d48a6f4bfdbe28e0bdb9fec67f69b1 +DIST zathura-pdf-mupdf-0.4.0.tar.gz 9323 BLAKE2B e633e2d52080dc017cd59be184fc52f52b21f9bfa1cecb48c83b4383366226f8e65fcd92503493e8df568847f84a39f2f7d8e4a87df44c66ec121c246557e10a SHA512 44a8d72f54adf29cc853c636f2387edb52e253522c82175533a2f80a6afc45ca88a785785bb840bf81e368ef8f35e31f5e9bf7648ee6a13d394eb4133585c060 diff --git a/app-text/zathura-pdf-mupdf/files/zathura-pdf-mupdf-0.4.0-meson-mupdfthird.patch b/app-text/zathura-pdf-mupdf/files/zathura-pdf-mupdf-0.4.0-meson-mupdfthird.patch new file mode 100644 index 000000000000..caa0da05e37c --- /dev/null +++ b/app-text/zathura-pdf-mupdf/files/zathura-pdf-mupdf-0.4.0-meson-mupdfthird.patch @@ -0,0 +1,39 @@ +--- a/meson.build ++++ b/meson.build +@@ -20,7 +20,6 @@ girara = dependency('girara-gtk3') + glib = dependency('glib-2.0') + cairo = dependency('cairo') + mupdf = dependency('mupdf', required: false) +-mupdfthird = cc.find_library('mupdf-third') + + build_dependencies = [ + zathura, +@@ -32,17 +31,15 @@ build_dependencies = [ + if not mupdf.found() + # normal build of mupdf + mupdf = cc.find_library('mupdf') +- 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 += [ +@@ -50,8 +47,6 @@ else + libjbig2dec, + libopenjp2, + gumbo, +- tesseract, +- leptonica, + mujs + ] + endif diff --git a/app-text/zathura-pdf-mupdf/zathura-pdf-mupdf-0.4.0.ebuild b/app-text/zathura-pdf-mupdf/zathura-pdf-mupdf-0.4.0.ebuild new file mode 100644 index 000000000000..9e7a5e2f892b --- /dev/null +++ b/app-text/zathura-pdf-mupdf/zathura-pdf-mupdf-0.4.0.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2023 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://git.pwmt.org/pwmt/zathura-pdf-mupdf.git" + EGIT_BRANCH="develop" +else + KEYWORDS="~amd64 ~arm ~x86" + SRC_URI="https://git.pwmt.org/pwmt/${PN}/-/archive/${PV}/${P}.tar.gz" +fi + +DESCRIPTION="PDF plug-in for zathura" +HOMEPAGE="https://git.pwmt.org/pwmt/zathura-pdf-mupdf" + +LICENSE="ZLIB" +SLOT="0" +IUSE="+javascript" + +DEPEND=" + >=app-text/mupdf-1.20.0:=[javascript?] + >=app-text/zathura-0.5.2:= + 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 +) |