commit:     524e97621def6c5c3ace5d8b8edb1d2f4fe6ff8d
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Jul 30 17:46:49 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Jul 30 17:47:11 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=524e9762

app-doc/gnu-c-intro-ref: restore autotools patch

Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../files/gnu-c-intro-ref-9999-autotools.patch     | 31 ++++++++++++++++++++++
 .../gnu-c-intro-ref/gnu-c-intro-ref-9999.ebuild    |  4 +++
 2 files changed, 35 insertions(+)

diff --git a/app-doc/gnu-c-intro-ref/files/gnu-c-intro-ref-9999-autotools.patch 
b/app-doc/gnu-c-intro-ref/files/gnu-c-intro-ref-9999-autotools.patch
new file mode 100644
index 000000000000..238bfcbf4ce0
--- /dev/null
+++ b/app-doc/gnu-c-intro-ref/files/gnu-c-intro-ref-9999-autotools.patch
@@ -0,0 +1,31 @@
+I don't know why, but this got reverted upstream by the original commit author.
+
+But it works fine for us, as we even patched this in before they did it, and
+I've emailed them.
+diff --git a/Makefile.am b/Makefile.am
+new file mode 100644
+index 0000000..63d9994
+--- /dev/null
++++ b/Makefile.am
+@@ -0,0 +1,3 @@
++info_TEXINFOS = c.texi
++c_TEXINFOS = cpp.texi fp.texi fdl.texi gpl.texi
++dist_data_DATA = c.pdf
+diff --git a/configure.ac b/configure.ac
+new file mode 100644
+index 0000000..911616b
+--- /dev/null
++++ b/configure.ac
+@@ -0,0 +1,11 @@
++# Process this file with autoconf to produce a configure script:
++# autoreconf -vi
++# Public domain. Originally written by Ineiev, 2023.
++AC_INIT([GNU C Intro And Reference], [0.0-rc3], [[email protected]],
++  [c-intro-and-ref], [https://www.gnu.org/software/c-intro-and-ref/])
++
++AC_PREREQ([2.65])
++AC_CONFIG_SRCDIR([c.texi])
++AM_INIT_AUTOMAKE([1.11])
++AC_CONFIG_FILES([Makefile])
++AC_OUTPUT
+

diff --git a/app-doc/gnu-c-intro-ref/gnu-c-intro-ref-9999.ebuild 
b/app-doc/gnu-c-intro-ref/gnu-c-intro-ref-9999.ebuild
index 206a80678ffc..404c0db6bb5e 100644
--- a/app-doc/gnu-c-intro-ref/gnu-c-intro-ref-9999.ebuild
+++ b/app-doc/gnu-c-intro-ref/gnu-c-intro-ref-9999.ebuild
@@ -30,6 +30,10 @@ BDEPEND="
        )
 "
 
+PATCHES=(
+       "${FILESDIR}"/gnu-c-intro-ref-9999-autotools.patch
+)
+
 src_prepare() {
        default
 

Reply via email to