dev-libs/libzia: Fix build problems

- 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
This commit is contained in:
Thomas Beierlein
2018-10-20 11:29:09 +02:00
parent 9016e1845d
commit 65da688031
2 changed files with 23 additions and 2 deletions

View File

@@ -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

View 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
}