diff options
author | Kurt Kanzenbach <kurt@kmk-computers.de> | 2021-08-30 17:27:32 +0200 |
---|---|---|
committer | Kurt Kanzenbach <kurt@kmk-computers.de> | 2021-08-30 17:27:32 +0200 |
commit | bd5f6f8013510b33160bc158f93aeaf856ff6850 (patch) | |
tree | b62085601c0d1227b5a11deb41f2a0d0d9a3e870 /app-text | |
parent | net-p2p/bisq: update (diff) | |
download | guru-bd5f6f8013510b33160bc158f93aeaf856ff6850.tar.gz guru-bd5f6f8013510b33160bc158f93aeaf856ff6850.tar.bz2 guru-bd5f6f8013510b33160bc158f93aeaf856ff6850.zip |
app-text/katarakt: Fix poppler detection
Closes: https://bugs.gentoo.org/810976
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Kurt Kanzenbach <kurt@kmk-computers.de>
Diffstat (limited to 'app-text')
-rw-r--r-- | app-text/katarakt/files/katarakt-0.2-poppler.patch | 29 | ||||
-rw-r--r-- | app-text/katarakt/katarakt-0.2.ebuild | 5 |
2 files changed, 33 insertions, 1 deletions
diff --git a/app-text/katarakt/files/katarakt-0.2-poppler.patch b/app-text/katarakt/files/katarakt-0.2-poppler.patch new file mode 100644 index 000000000..7979bf6a5 --- /dev/null +++ b/app-text/katarakt/files/katarakt-0.2-poppler.patch @@ -0,0 +1,29 @@ +From 23b68e9c48204d43b37b23735ad9ea0b219fec7b Mon Sep 17 00:00:00 2001 +From: Philipp Erhardt <Philipp.Erhardt@informatik.stud.uni-erlangen.de> +Date: Mon, 19 Oct 2020 20:42:37 +0200 +Subject: [PATCH] Fix compilation if the version number contains a leading zero + +--- + katarakt.pro | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/katarakt.pro b/katarakt.pro +index a632713db2ce..84cd59797d0a 100644 +--- a/katarakt.pro ++++ b/katarakt.pro +@@ -17,9 +17,9 @@ unix { + + isEmpty(PKG_CONFIG):PKG_CONFIG = pkg-config # same as in link_pkgconfig.prf + POPPLER_VERSION = $$system($$PKG_CONFIG --modversion $$POPPLER) +- POPPLER_VERSION_MAJOR = $$system(echo "$$POPPLER_VERSION" | cut -d . -f 1) +- POPPLER_VERSION_MINOR = $$system(echo "$$POPPLER_VERSION" | cut -d . -f 2) +- POPPLER_VERSION_MICRO = $$system(echo "$$POPPLER_VERSION" | cut -d . -f 3) ++ POPPLER_VERSION_MAJOR = $$system(echo "$$POPPLER_VERSION" | cut -d . -f 1 | sed "\'s,^0*\\(.\\),\1,\'") ++ POPPLER_VERSION_MINOR = $$system(echo "$$POPPLER_VERSION" | cut -d . -f 2 | sed "\'s,^0*\\(.\\),\1,\'") ++ POPPLER_VERSION_MICRO = $$system(echo "$$POPPLER_VERSION" | cut -d . -f 3 | sed "\'s,^0*\\(.\\),\1,\'") + + DEFINES += POPPLER_VERSION_MAJOR=$$POPPLER_VERSION_MAJOR + DEFINES += POPPLER_VERSION_MINOR=$$POPPLER_VERSION_MINOR +-- +2.33.0 + diff --git a/app-text/katarakt/katarakt-0.2.ebuild b/app-text/katarakt/katarakt-0.2.ebuild index 45195c514..d5ce38d08 100644 --- a/app-text/katarakt/katarakt-0.2.ebuild +++ b/app-text/katarakt/katarakt-0.2.ebuild @@ -28,7 +28,10 @@ DEPEND="${RDEPEND}" S="${WORKDIR}/${PN}-v${PV}" -PATCHES=( "${FILESDIR}/${P}-install.patch" ) +PATCHES=( + "${FILESDIR}/${P}-install.patch" + "${FILESDIR}/${P}-poppler.patch" +) src_configure() { eqmake5 PREFIX="${EPREFIX}/usr" |