dev-libs/gom: fix pkg-config file libdir
authorMart Raudsepp <leio@gentoo.org>
Sun, 17 Feb 2019 15:52:20 +0000 (17:52 +0200)
committerMart Raudsepp <leio@gentoo.org>
Sun, 17 Feb 2019 16:04:54 +0000 (18:04 +0200)
Broke consumers that use meson on 17.1 gentoo profiles

Bug: https://bugs.gentoo.org/678190
Package-Manager: Portage-2.3.52, Repoman-2.3.12
Signed-off-by: Mart Raudsepp <leio@gentoo.org>
dev-libs/gom/files/0.3.2-fix-pkgconfig.patch [new file with mode: 0644]
dev-libs/gom/gom-0.3.2-r1.ebuild [moved from dev-libs/gom/gom-0.3.2.ebuild with 92% similarity]

diff --git a/dev-libs/gom/files/0.3.2-fix-pkgconfig.patch b/dev-libs/gom/files/0.3.2-fix-pkgconfig.patch
new file mode 100644 (file)
index 0000000..447c914
--- /dev/null
@@ -0,0 +1,34 @@
+From 07c35149964c7258e52effa374d877a8f2f102e8 Mon Sep 17 00:00:00 2001
+From: Alexander Tsoy <alexander@tsoy.me>
+Date: Fri, 29 Jul 2016 03:18:03 +0300
+Subject: [PATCH] build: Replace hardcoded values in pkg-config file
+
+https://bugzilla.gnome.org/show_bug.cgi?id=769291
+---
+ data/gom-1.0.pc.in | 10 +++++-----
+ 1 file changed, 5 insertions(+), 5 deletions(-)
+
+diff --git a/data/gom-1.0.pc.in b/data/gom-1.0.pc.in
+index ce19de6..6edc841 100644
+--- a/data/gom-1.0.pc.in
++++ b/data/gom-1.0.pc.in
+@@ -1,11 +1,11 @@
+ prefix=@prefix@
+-exec_prefix=${prefix}
+-libdir=${exec_prefix}/lib
+-includedir=${exec_prefix}/include
++exec_prefix=@exec_prefix@
++libdir=@libdir@
++includedir=@includedir@
+ Name: Gom
+ Description: GObject Data Mapper
+ Version: @VERSION@
+-Libs: -L${libdir} -lgom-1.0
+-Cflags: -I${includedir}/gom-1.0
++Libs: -L${libdir} -lgom-@GOM_API_VERSION@
++Cflags: -I${includedir}/gom-@GOM_API_VERSION@
+ Requires: gobject-2.0
+-- 
+2.17.0
+
similarity index 92%
rename from dev-libs/gom/gom-0.3.2.ebuild
rename to dev-libs/gom/gom-0.3.2-r1.ebuild
index c69949bbf5ecabbf34608fbd5d1cb20d9e462a1a..6589d8eb0a7858c9412fcc5f8e31c2789b1ab1e7 100644 (file)
@@ -1,11 +1,11 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="5"
 GCONF_DEBUG="yes"
 PYTHON_COMPAT=( python{3_4,3_5,3_6} )
 
-inherit gnome2 python-r1
+inherit epatch gnome2 python-r1
 
 DESCRIPTION="GObject to SQLite object mapper library"
 HOMEPAGE="https://wiki.gnome.org/Projects/Gom"
@@ -33,11 +33,13 @@ DEPEND="${RDEPEND}
 "
 # TODO: make gdk-pixbuf properly optional with USE=test
 
+
 pkg_setup() {
        use python && python_setup
 }
 
 src_prepare() {
+       epatch "${FILESDIR}"/${PV}-fix-pkgconfig.patch
        gnome2_src_prepare
 
        use python && python_copy_sources