dev-libs/libzia: Fix build problems
authorThomas Beierlein <tomjbe@gentoo.org>
Sat, 20 Oct 2018 09:29:09 +0000 (11:29 +0200)
committerThomas Beierlein <tomjbe@gentoo.org>
Sat, 20 Oct 2018 09:29:09 +0000 (11:29 +0200)
- Package did only build if older version was already installed.
- Disable parallel build, as one part of the package needs the library
  to already be build.

Signed-off-by: Thomas Beierlein <tomjbe@gentoo.org>
Package-Manager: Portage-2.3.51, Repoman-2.3.11

dev-libs/libzia/files/libzia-4.14-ldadd.patch [new file with mode: 0644]
dev-libs/libzia/libzia-4.14.ebuild

diff --git a/dev-libs/libzia/files/libzia-4.14-ldadd.patch b/dev-libs/libzia/files/libzia-4.14-ldadd.patch
new file mode 100644 (file)
index 0000000..a8636e1
--- /dev/null
@@ -0,0 +1,16 @@
+# add local .libs directory to library search path during build of zsdltest
+--- src/Makefile.am.orig       2018-10-19 18:19:54.067784664 +0200
++++ src/Makefile.am    2018-10-19 18:20:26.419265774 +0200
+@@ -71,9 +71,10 @@
+ 
+ zsdltest_SOURCES = zsdltest.c
+ zsdltest_LDFLAGS = -lzia 
++zsdltest_LDADD = -L.libs
+ 
+-gpiotest_SOURCES = gpiotest.c
+-gpiotest_LDFLAGS = -lzia 
++#gpiotest_SOURCES = gpiotest.c
++#gpiotest_LDFLAGS = -lzia 
+ 
+ EXTRA_DIST = regcomp.c regex_internal.c regexec.c 
+ 
index faa975e860ad05f8beeb75e76bb710ba9179a81b..8182298faa85bf806f9c0e7e5ca61c1cb8e34c8b 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -22,10 +22,15 @@ RDEPEND="dev-libs/glib:2
 DEPEND="${RDEPEND}
        virtual/pkgconfig"
 
+PATCHES=( "${FILESDIR}"/$P-ldadd.patch )
+
+MAKEOPTS+=" -j1"
+
 src_prepare() {
        eapply_user
+       eapply -p0 ${PATCHES}
        sed -i -e "s/docsdir/#docsdir/g" \
-                  -e "s/docs_/#docs_/g" Makefile.am || die
+               -e "s/docs_/#docs_/g" Makefile.am || die
        eautoreconf
 }