GENTOO_DEPEND_ON_PERL=no
-inherit perl-module systemd flag-o-matic
+inherit autotools perl-module systemd flag-o-matic
if [[ "${PV}" == "9999" ]] ; then
- inherit autotools git-r3
+ inherit git-r3
EGIT_REPO_URI="https://github.com/OpenPrinting/cups-filters.git"
else
SRC_URI="http://www.openprinting.org/download/${PN}/${P}.tar.xz"
"
src_prepare() {
+ local need_eautoreconf=
+
default
- [[ "${PV}" == "9999" ]] && eautoreconf
+
+ if ! use test ; then
+ eapply "${FILESDIR}"/${PN}-1.27.4-make-missing-testfont-non-fatal.patch
+ need_eautoreconf=yes
+ elif [[ "${PV}" == "9999" ]] ; then
+ need_eautoreconf=yes
+ fi
+
+ [[ -n ${need_eautoreconf} ]] && eautoreconf
# Bug #626800
append-cxxflags -std=c++11
GENTOO_DEPEND_ON_PERL=no
-inherit perl-module systemd flag-o-matic
+inherit autotools perl-module systemd flag-o-matic
if [[ "${PV}" == "9999" ]] ; then
- inherit autotools git-r3
+ inherit git-r3
EGIT_REPO_URI="https://github.com/OpenPrinting/cups-filters.git"
else
SRC_URI="http://www.openprinting.org/download/${PN}/${P}.tar.xz"
"
src_prepare() {
+ local need_eautoreconf=
+
default
- [[ "${PV}" == "9999" ]] && eautoreconf
+
+ if ! use test ; then
+ eapply "${FILESDIR}"/${PN}-1.27.4-make-missing-testfont-non-fatal.patch
+ need_eautoreconf=yes
+ elif [[ "${PV}" == "9999" ]] ; then
+ need_eautoreconf=yes
+ fi
+
+ [[ -n ${need_eautoreconf} ]] && eautoreconf
# Bug #626800
append-cxxflags -std=c++11
--- /dev/null
+--- a/configure.ac
++++ b/configure.ac
+@@ -789,7 +789,7 @@ AC_ARG_WITH([test-font-path],
+ [with_test_font_path=`find /usr/share/fonts -name DejaVuSans.ttf || echo /usr/share/fonts/dejavu/DejaVuSans.ttf`]
+ )
+ AC_CHECK_FILE("$with_test_font_path", [], [
+- AC_MSG_ERROR([Requested font file is missing. Please install a package providing it.])
++ AC_MSG_WARN([Specified font for tests not found. Expect test failures!])
+ ])
+ AC_DEFINE_UNQUOTED([TESTFONT], ["$with_test_font_path"], [Path to font used in tests])
+