--- /dev/null
+--- 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],
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=4
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 )"
# 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}
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() {