* [gentoo-commits] repo/gentoo:master commit in: app-text/aiksaurus/files/, app-text/aiksaurus/
@ 2022-12-06 14:54 Sam James
0 siblings, 0 replies; only message in thread
From: Sam James @ 2022-12-06 14:54 UTC (permalink / raw
To: gentoo-commits
commit: fc6bc3500781216b38fa3e3ab44f5c0674f22793
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Dec 6 13:10:34 2022 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Dec 6 14:54:43 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fc6bc350
app-text/aiksaurus: fix configure w/ clang 16
Signed-off-by: Sam James <sam <AT> gentoo.org>
...s-1.2.1-r2.ebuild => aiksaurus-1.2.1-r3.ebuild} | 14 ++++++----
.../aiksaurus/files/aiksaurus-1.2.1-autoconf.patch | 13 ++++++++++
.../files/aiksaurus-1.2.1-format-security.patch | 29 ---------------------
.../aiksaurus/files/aiksaurus-1.2.1-gcc43.patch | 30 ----------------------
4 files changed, 22 insertions(+), 64 deletions(-)
diff --git a/app-text/aiksaurus/aiksaurus-1.2.1-r2.ebuild b/app-text/aiksaurus/aiksaurus-1.2.1-r3.ebuild
similarity index 81%
rename from app-text/aiksaurus/aiksaurus-1.2.1-r2.ebuild
rename to app-text/aiksaurus/aiksaurus-1.2.1-r3.ebuild
index 1fbc912f1abb..968ec591c6f3 100644
--- a/app-text/aiksaurus/aiksaurus-1.2.1-r2.ebuild
+++ b/app-text/aiksaurus/aiksaurus-1.2.1-r3.ebuild
@@ -1,11 +1,11 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=7
+EAPI=8
-inherit flag-o-matic libtool
+inherit autotools flag-o-matic
-DESCRIPTION="A thesaurus lib, tool and database"
+DESCRIPTION="A thesaurus lib, tool, and database"
HOMEPAGE="https://sourceforge.net/projects/aiksaurus"
SRC_URI="
mirror://sourceforge/${PN}/${P}.tar.gz
@@ -24,13 +24,17 @@ PATCHES=(
"${WORKDIR}"/patches/${P}-gcc43.patch
"${WORKDIR}"/patches/${P}-format-security.patch
"${WORKDIR}"/patches/${P}-c++17.patch
+ "${FILESDIR}"/aiksaurus-1.2.1-autoconf.patch
)
src_prepare() {
default
+
# Needed to make relink work on FreeBSD, without it won't install.
# Also needed for a sane .so versionning there.
- elibtoolize
+ #elibtoolize
+ # Clang 16
+ eautoreconf
}
src_configure() {
diff --git a/app-text/aiksaurus/files/aiksaurus-1.2.1-autoconf.patch b/app-text/aiksaurus/files/aiksaurus-1.2.1-autoconf.patch
new file mode 100644
index 000000000000..2821709e7784
--- /dev/null
+++ b/app-text/aiksaurus/files/aiksaurus-1.2.1-autoconf.patch
@@ -0,0 +1,13 @@
+https://sources.debian.org/patches/aiksaurus/1.2.1%2Bdev-0.12-7/01-changes-from-pristine-tarball.patch/
+--- a/configure.ac
++++ b/configure.ac
+@@ -50,6 +50,9 @@ AC_SUBST(LT_RELEASE)
+ LT_CURRENT=`expr $AIK_MICRO_VERSION - $AIK_INTERFACE_AGE`
+ LT_REVISION=$AIK_INTERFACE_AGE
+ LT_AGE=`expr $AIK_BINARY_AGE - $AIK_INTERFACE_AGE`
++m4_pattern_allow([LT_CURRENT])
++m4_pattern_allow([LT_REVISION])
++m4_pattern_allow([LT_AGE])
+
+ LT_AIK_VERSION_INFO="$LT_CURRENT:$LT_REVISION:$LT_AGE"
+
diff --git a/app-text/aiksaurus/files/aiksaurus-1.2.1-format-security.patch b/app-text/aiksaurus/files/aiksaurus-1.2.1-format-security.patch
deleted file mode 100644
index ba90a4519502..000000000000
--- a/app-text/aiksaurus/files/aiksaurus-1.2.1-format-security.patch
+++ /dev/null
@@ -1,29 +0,0 @@
---- aiksaurus-1.2.1/base/caiksaurus.cpp.orig 2014-06-07 21:14:03.869649696 +0100
-+++ aiksaurus-1.2.1/base/caiksaurus.cpp 2014-06-07 21:33:06.241471066 +0100
-@@ -254,7 +254,7 @@
- /* see if we got --version. */
- if ( !strcmp(arg, "--version") || !strcmp(arg, "-v") )
- {
-- printf(version);
-+ printf("%s", version);
- exit(0);
- }
-
-@@ -262,7 +262,7 @@
- else if ( !strcmp(arg, "--help") || !strcmp(arg, "-h") )
- {
- printf("Usage: %s [word]\n\n", argv[0]);
-- printf(help);
-+ printf("%s", help);
- exit(0);
- }
- }
-@@ -271,7 +271,7 @@
- if (argc != 2)
- {
- printf("Usage: %s [word]\n", argv[0]);
-- printf(help);
-+ printf("%s", help);
- exit(1);
- }
- }
diff --git a/app-text/aiksaurus/files/aiksaurus-1.2.1-gcc43.patch b/app-text/aiksaurus/files/aiksaurus-1.2.1-gcc43.patch
deleted file mode 100644
index a6d570af569d..000000000000
--- a/app-text/aiksaurus/files/aiksaurus-1.2.1-gcc43.patch
+++ /dev/null
@@ -1,30 +0,0 @@
---- aiksaurus-1.2.1/base/aiksaurus.t.cpp
-+++ aiksaurus-1.2.1/base/aiksaurus.t.cpp
-@@ -24,6 +24,7 @@
- #include "config.h"
- #include <iostream>
- #include <string>
-+#include <cstdlib>
- using namespace std;
- using AiksaurusImpl::AsciiCompare;
-
---- aiksaurus-1.2.1/gtk/src/Display.cpp
-+++ aiksaurus-1.2.1/gtk/src/Display.cpp
-@@ -22,6 +22,7 @@
- #include "Meaning.h"
- #include "DialogMediator.h"
- #include "Exception.h"
-+#include <cstring>
- using namespace std;
-
- namespace AiksaurusGTK_impl
---- aiksaurus-1.2.1/gtk/src/gtkAiksaur.t.cpp
-+++ aiksaurus-1.2.1/gtk/src/gtkAiksaur.t.cpp
-@@ -23,6 +23,7 @@
- #include <gtk/gtk.h>
- #include <iostream>
- #include <string>
-+#include <cstdlib>
- using namespace std;
-
- int main(int argc, char** argv)
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2022-12-06 14:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-06 14:54 [gentoo-commits] repo/gentoo:master commit in: app-text/aiksaurus/files/, app-text/aiksaurus/ Sam James
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox