diff options
Diffstat (limited to 'app-text/spellutils')
-rw-r--r-- | app-text/spellutils/Manifest | 2 | ||||
-rw-r--r-- | app-text/spellutils/files/0001-allow-running-modern-autoreconf.patch | 52 | ||||
-rw-r--r-- | app-text/spellutils/spellutils-0.7-r1.ebuild | 68 |
3 files changed, 122 insertions, 0 deletions
diff --git a/app-text/spellutils/Manifest b/app-text/spellutils/Manifest index 9092c331a718..92f7ca86eac8 100644 --- a/app-text/spellutils/Manifest +++ b/app-text/spellutils/Manifest @@ -1,4 +1,6 @@ +AUX 0001-allow-running-modern-autoreconf.patch 1268 BLAKE2B 3c8ecdca0f3df3ff5b199eb910532b2f57a09281a212202d1c602be8994812c7a92c1e2a12c140f7c35a6b410446f928fa17571d828a258a592466a016bec35b SHA512 554f2156ac3b30016538b9d5ebb75cc643a219a0b9bd4dcab8c51fb00d7439bd22aba0a81fb9f5272c629605a9d4485c5009836b90707a98cc7d6fca161d6779 AUX spellutils-0.7-nls.patch 433 BLAKE2B aa85963ace2272facd52b6e8478c1522d363ca81011f53d8971802b74835065cddae904fb3bf873886ae90f9efee3d4362fba13141cf28e1a2d27422c1f5d44b SHA512 94ab6bba55800559ad2621001df828ff67d40df045a63737a112545d558a5436a85cd3220993daf91c23591cc6b94ef692dad9811e08ca0066d602ece07b5b8e DIST spellutils-0.7.tar.bz2 110421 BLAKE2B b415a8be96962b88c4ba64270b43e90e42a3ebe23d765ef970cf55a22ada842f269878c4b3a72e6284864d1d1c3e4ade1e84aaf28d4fa39f86f0280db4f27e4d SHA512 030b06038c587e668fcbef95afc64e28db48a25f2b247b829155c1a5b66d3b3012650cb4c13e5de41a70a1665b05fbfb44a4cd0b1295868e611a21d855f02f9e +EBUILD spellutils-0.7-r1.ebuild 2397 BLAKE2B ccebc7a67cfde09d4216d7550ea5242cd42fe32b64133e085203080d88ff1d2733b4b89dcb434b2075f7a5e83531786f3b23d6896681dc59c5e16e623266cdab SHA512 4697a99c77d0ae44fbc065bd91ec750232f0ae906bd7f5e9e7a42367ab6e4476f16a6458c82990cff2f496c3d3f005398703295af13d278f61ceb7af204ef240 EBUILD spellutils-0.7.ebuild 684 BLAKE2B 8756b375935826882174d604cfd15078048cd1acc5fe54f967109a96e410590371df840d77bdbf462a8e097c17b73cedf69671c44237232289e5e657ca269727 SHA512 5009c6e89fef86e8030664026d88a58000bc015e38c0225d85f360e8dec5860f93d4078c6782a491be775a65cd5794e74bfd01fec4c43fbae6eac3df427acd60 MISC metadata.xml 167 BLAKE2B 868e3b584722eaacf68273db062bb773d8c7e5d7ab2b81ca7e8397643bf7cc106c3a1033594401c99c54f667bb45d6b73f9048fc335580bbd44b4589ad26a832 SHA512 30caadd1496c3b9969136038239a1d8e01f236726b4022c2d7e19ca7575f25f735e556835e581afbf44fbd3e4104c40f2b5ef5fa70118d75c881fdf871962d0a diff --git a/app-text/spellutils/files/0001-allow-running-modern-autoreconf.patch b/app-text/spellutils/files/0001-allow-running-modern-autoreconf.patch new file mode 100644 index 000000000000..629647b661cf --- /dev/null +++ b/app-text/spellutils/files/0001-allow-running-modern-autoreconf.patch @@ -0,0 +1,52 @@ +From afd4a8c7b29f812621caaa44c5dff3549cbde2ee Mon Sep 17 00:00:00 2001 +From: Eli Schwartz <eschwartz93@gmail.com> +Date: Wed, 26 Jun 2024 10:44:56 -0400 +Subject: [PATCH] allow running modern autoreconf + +The release tarball uses autoconf 2.13 and the configure.in uses things +that no longer work. +--- + Makefile.am | 2 +- + configure.in | 8 +++++--- + 2 files changed, 6 insertions(+), 4 deletions(-) + +diff --git a/Makefile.am b/Makefile.am +index 3eecd1a..e21e0c3 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -2,7 +2,7 @@ + + AUTOMAKE_OPTIONS = foreign + +-SUBDIRS = intl po ++SUBDIRS = po + + bin_PROGRAMS = pospell newsbody + +diff --git a/configure.in b/configure.in +index 9730ada..26ffd1a 100644 +--- a/configure.in ++++ b/configure.in +@@ -1,6 +1,7 @@ + dnl Process this file with autoconf to produce a configure script. +-AC_INIT(pospell.c) +-AM_INIT_AUTOMAKE(spellutils, 0.7) ++AC_INIT([spellutils],[0.7]) ++AC_CONFIG_SRCDIR([pospell.c]) ++AM_INIT_AUTOMAKE + AM_CONFIG_HEADER(config.h) + + dnl Set of available languages. +@@ -22,7 +23,8 @@ AC_TYPE_SIZE_T + AC_TYPE_PID_T + + dnl internationalization macros +-AM_GNU_GETTEXT ++AM_GNU_GETTEXT([external]) ++AM_GNU_GETTEXT_VERSION([@GETTEXT_VERSION@]) + if test "x$prefix" != xNONE; then + LOCALEDIR=$prefix/share/locale + else +-- +2.44.2 + diff --git a/app-text/spellutils/spellutils-0.7-r1.ebuild b/app-text/spellutils/spellutils-0.7-r1.ebuild new file mode 100644 index 000000000000..af888195ec4e --- /dev/null +++ b/app-text/spellutils/spellutils-0.7-r1.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools toolchain-funcs + +DESCRIPTION="spellutils includes 'newsbody' (useful for spellchecking in mails, etc.)" +HOMEPAGE="http://home.worldonline.dk/byrial/spellutils/" +SRC_URI="http://home.worldonline.dk/byrial/spellutils/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~mips ~ppc ~sparc ~x86" +IUSE="nls" + +DEPEND="nls? ( virtual/libintl )" +RDEPEND="${DEPEND}" +BDEPEND="nls? ( sys-devel/gettext )" + +DOCS=( NEWS README ) + +PATCHES=( + "${FILESDIR}"/0001-allow-running-modern-autoreconf.patch +) + +src_prepare() { + default + + # This is a filthy hack born of the fact that gettext is absolutely insane. + # It requires you specify exactly which version of gettext you have installed + # at the time of dist, and the tool to automatically update this explicitly reads + # from /dev/tty "so that gettextize cannot be abused by non-interactive tools." + # + # The gettext docs do, of course, claim this is entirely optional and only + # needed if you run autopoint. They neglect to mention that running + # autopoint is mandatory. Failure to do so produces this: + # + # configure.ac:11: installing './compile' + # configure.ac:26: error: required file './config.rpath' not found + # Makefile.am: installing './depcomp' + # + # and the call stack points back to -- you guessed it -- AM_GNU_GETTEXT. + # Which internally requires config.rpath, a file that is explicitly copied + # over by autopoint. + # + # AM_GNU_GETTEXT helpfully points out in code, rather than in docs: + # + # configure.ac: warning: AM_GNU_GETTEXT is used, but not AM_GNU_GETTEXT_VERSION or AM_GNU_GETTEXT_REQUIRE_VERSION + # + # Perhaps what is meant by "The use of this macro is optional; only the + # autopoint program makes use of it" is that you can deliver a `make dist` + # tarball that isn't built from publicly distributed versions of + # configure.ac, since you can add the macro, run autoreconf, then delete + # the macro and rerun autoreconf. It is a very funny definition of optional. + local gettext_version=$(gettextize --version | awk '/GNU gettext-tools/{print $NF}' || die) + sed -i "s/@GETTEXT_VERSION@/${gettext_version}/" configure.in || die + eautoreconf + cp po/Makevars.template po/Makevars || die +} + +src_configure() { + econf $(use_enable nls) +} + +src_compile() { + emake CC="$(tc-getCC)" +} |