media-sound/lilypond-{2.19.80-r1,9999}: fix #681630
authorMiroslav Šulc <fordfrog@gentoo.org>
Mon, 28 Oct 2019 10:35:11 +0000 (11:35 +0100)
committerMiroslav Šulc <fordfrog@gentoo.org>
Mon, 28 Oct 2019 10:35:32 +0000 (11:35 +0100)
Closes: https://bugs.gentoo.org/681630
Package-Manager: Portage-2.3.78, Repoman-2.3.17
Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
media-sound/lilypond/files/lilypond-2.19.80-fontforge-version.patch [new file with mode: 0644]
media-sound/lilypond/lilypond-2.19.80-r1.ebuild
media-sound/lilypond/lilypond-9999.ebuild

diff --git a/media-sound/lilypond/files/lilypond-2.19.80-fontforge-version.patch b/media-sound/lilypond/files/lilypond-2.19.80-fontforge-version.patch
new file mode 100644 (file)
index 0000000..4e2c2ce
--- /dev/null
@@ -0,0 +1,16 @@
+The version test fails for two reasons:
+* fontforge --version does not print anything that resembles what the configure
+  script expects a version to look like
+* fontforge fails to print a version if it cannot connect to an X display
+
+--- a/configure.ac
++++ b/configure.ac
+@@ -236,7 +236,7 @@
+ STEPMAKE_PYTHON_DEVEL(REQUIRED, 2.4, 3.0)
+-STEPMAKE_PATH_PROG(FONTFORGE, fontforge, REQUIRED, 20110222)
++STEPMAKE_PATH_PROG(FONTFORGE, fontforge, REQUIRED,)
+ STEPMAKE_PATH_PROG(T1ASM, t1asm, REQUIRED)
index 1a358dd52c2c8bb80fa7534c33697a7e53a100f5..3e23b2dfe640b62c928589be8e54988100a66a5c 100644 (file)
@@ -55,7 +55,10 @@ DEPEND="${RDEPEND}
 # Correct output data for tests isn't bundled with releases
 RESTRICT="test"
 
-PATCHES=( "${FILESDIR}"/${P}-remove-ly-protect.patch )
+PATCHES=(
+       "${FILESDIR}"/${P}-remove-ly-protect.patch
+       "${FILESDIR}"/${P}-fontforge-version.patch
+)
 
 DOCS=( DEDICATION HACKING README.txt ROADMAP )
 
index 93bb8d785b9b582f5836fff93c77d26d69aa2bbe..4d591c81e099de538a8589da74d6b40c3d7543a9 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -22,7 +22,10 @@ SLOT="0"
 LANGS=" ca cs da de el eo es fi fr it ja nl ru sv tr uk vi zh_TW"
 IUSE="debug emacs guile2 profile vim-syntax"
 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
-PATCHES=(${FILESDIR}/$P-programming_error.patch)
+PATCHES=(
+       "${FILESDIR}"/$P-programming_error.patch
+       "${FILESDIR}"/${PN}-2.19.80-fontforge-version.patch
+)
 
 RDEPEND=">=app-text/ghostscript-gpl-8.15
        >=dev-scheme/guile-1.8.2:12[deprecated,regex]