Skip to content

Commit

Permalink
dev-libs/hidapi: tweak for autoconf-2.70
Browse files Browse the repository at this point in the history
Closes: https://bugs.gentoo.org/750983
Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Sergei Trofimovich <[email protected]>
  • Loading branch information
Sergei Trofimovich committed Dec 9, 2020
1 parent dc60ad8 commit 5169e9a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
https://bugs.gentoo.org/750983
--- a/configure.ac
+++ b/configure.ac
@@ -20,7 +20,6 @@ LTLDFLAGS="-version-info ${lt_current}:${lt_revision}:${lt_age}"

AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE([foreign -Wall -Werror])
-AC_CONFIG_MACRO_DIR([m4])

m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
LT_INIT
4 changes: 3 additions & 1 deletion dev-libs/hidapi/hidapi-0.8.0_rc1_p20140719.ebuild
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 1999-2019 Gentoo Authors
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=5
Expand Down Expand Up @@ -35,6 +35,8 @@ DEPEND="${RDEPEND}

S="${WORKDIR}/${PN}-${EGIT_COMMIT}"

PATCHES=("${FILESDIR}"/${P}-autoconf-2.70.patch)

src_prepare() {
if ! use fox; then
sed -i -e 's:PKG_CHECK_MODULES(\[fox\], .*):AC_SUBST(fox_CFLAGS,[ ])AC_SUBST(fox_LIBS,[ ]):' configure.ac || die
Expand Down

0 comments on commit 5169e9a

Please sign in to comment.