summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2020-04-09 19:17:15 +0200
committerAndreas Sturmlechner <asturm@gentoo.org>2020-04-09 23:36:22 +0200
commitf9d4418788a98c6acd9b904cb806767487d55776 (patch)
treef3830df8ea85e39566aefe3cc65e5bd85a3b8468 /media-libs/zxing-cpp
parentsci-libs/ceres-solver: fix CI issues (diff)
downloadgentoo-f9d4418788a98c6acd9b904cb806767487d55776.tar.gz
gentoo-f9d4418788a98c6acd9b904cb806767487d55776.tar.bz2
gentoo-f9d4418788a98c6acd9b904cb806767487d55776.zip
media-libs/zxing-cpp: Fix pkgconfig version
Thanks-to: cyrillic <cyrilmaley@hotmail.com> Closes: https://bugs.gentoo.org/716818 Package-Manager: Portage-2.3.98, Repoman-2.3.22 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'media-libs/zxing-cpp')
-rw-r--r--media-libs/zxing-cpp/files/zxing-cpp-1.0.8-pkgconfig.patch10
-rw-r--r--media-libs/zxing-cpp/zxing-cpp-1.0.8-r1.ebuild17
2 files changed, 27 insertions, 0 deletions
diff --git a/media-libs/zxing-cpp/files/zxing-cpp-1.0.8-pkgconfig.patch b/media-libs/zxing-cpp/files/zxing-cpp-1.0.8-pkgconfig.patch
new file mode 100644
index 000000000000..d1dda4f584ef
--- /dev/null
+++ b/media-libs/zxing-cpp/files/zxing-cpp-1.0.8-pkgconfig.patch
@@ -0,0 +1,10 @@
+--- a/zxing.pc.in 2020-04-09 11:43:22.494219440 -0400
++++ b/zxing.pc.in 2020-04-09 11:49:03.884867034 -0400
+@@ -5,6 +5,6 @@
+
+ Name: ZXing
+ Description: ZXing library set
+-Version: @VERSION@
++Version: @PROJECT_VERSION@
+ Libs: -L${libdir} -l@TARGET_ZXING@
+ Cflags: -I${includedir} -I${includedir}/ZXing \ No newline at end of file
diff --git a/media-libs/zxing-cpp/zxing-cpp-1.0.8-r1.ebuild b/media-libs/zxing-cpp/zxing-cpp-1.0.8-r1.ebuild
new file mode 100644
index 000000000000..4d6ad244fdde
--- /dev/null
+++ b/media-libs/zxing-cpp/zxing-cpp-1.0.8-r1.ebuild
@@ -0,0 +1,17 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit cmake
+
+DESCRIPTION="C++ Multi-format 1D/2D barcode image processing library"
+HOMEPAGE="https://github.com/nu-book/zxing-cpp"
+SRC_URI="https://github.com/nu-book/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="amd64 arm64 x86"
+IUSE=""
+
+PATCHES=( "${FILESDIR}/${P}-pkgconfig.patch" ) # bug 716818