mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
sci-electronics/geda: Fix m4 test for guile-2.2, thanks Juergen Rose.
Closes: https://bugs.gentoo.org/639884 Package-Manager: Portage-2.3.17, Repoman-2.3.6
This commit is contained in:
16
sci-electronics/geda/files/geda-1.9.2-guile-2.2.patch
Normal file
16
sci-electronics/geda/files/geda-1.9.2-guile-2.2.patch
Normal file
@@ -0,0 +1,16 @@
|
||||
--- geda-gaf-1.9.2/m4/geda-guile.m4
|
||||
+++ geda-gaf-1.9.2/m4/geda-guile.m4
|
||||
@@ -35,8 +35,13 @@
|
||||
GUILE_MIN_TEENY=`echo ${GUILE_MIN_VER} | sed -e 's;.*\.;;'`
|
||||
|
||||
_found_pkg_config_guile=yes
|
||||
+ PKG_CHECK_MODULES(GUILE, [guile-2.2 >= $GUILE_MIN_VER],
|
||||
+ [GUILE_PKG_NAME=guile-2.2], [_found_pkg_config_guile=no])
|
||||
+
|
||||
+ if test "${_found_pkg_config_guile}" = "no" ; then
|
||||
PKG_CHECK_MODULES(GUILE, [guile-2.0 >= $GUILE_MIN_VER],
|
||||
[GUILE_PKG_NAME=guile-2.0], [_found_pkg_config_guile=no])
|
||||
+ fi
|
||||
|
||||
if test "${_found_pkg_config_guile}" = "no" ; then
|
||||
PKG_CHECK_MODULES(GUILE, [guile-1.8 >= $GUILE_MIN_VER],
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=4
|
||||
@@ -21,6 +21,7 @@ CDEPEND="
|
||||
x11-libs/gtk+:2
|
||||
>=x11-libs/cairo-1.2.0
|
||||
>=dev-scheme/guile-1.8[deprecated]
|
||||
<dev-scheme/guile-2.2
|
||||
nls? ( virtual/libintl )
|
||||
stroke? ( >=dev-libs/libstroke-0.5.1 )"
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
inherit eutils fdo-mime gnome2-utils versionator
|
||||
EAPI=6
|
||||
inherit autotools eutils fdo-mime gnome2-utils versionator
|
||||
|
||||
MY_PN=${PN}-gaf
|
||||
MY_P=${MY_PN}-${PV}
|
||||
@@ -40,13 +40,19 @@ S=${WORKDIR}/${MY_P}
|
||||
|
||||
DOCS="AUTHORS NEWS README"
|
||||
|
||||
PATCHES=( "${FILESDIR}"/${P}-guile-2.2.patch )
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
if ! use doc ; then
|
||||
sed -i -e '/^SUBDIRS = /s/docs//' Makefile.in || die
|
||||
fi
|
||||
if ! use examples ; then
|
||||
sed -i -e 's/\texamples$//' Makefile.in || die
|
||||
fi
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
Reference in New Issue
Block a user