summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacho Ramos <pacho@gentoo.org>2019-02-23 12:38:37 +0100
committerPacho Ramos <pacho@gentoo.org>2019-02-23 12:54:45 +0100
commit3294485699fbbd4b28bc51eb99fa95fec0ced604 (patch)
tree37fc9a57f2cf588125a7e3466d66e88473158a62
parentapp-office/abiword: Make repoman happy (diff)
downloadgentoo-3294485699fbbd4b28bc51eb99fa95fec0ced604.tar.gz
gentoo-3294485699fbbd4b28bc51eb99fa95fec0ced604.tar.bz2
gentoo-3294485699fbbd4b28bc51eb99fa95fec0ced604.zip
app-text/aiksaurus: Fix format-security, drop .la files
Closes: https://bugs.gentoo.org/521124 Package-Manager: Portage-2.3.62, Repoman-2.3.12 Signed-off-by: Pacho Ramos <pacho@gentoo.org>
-rw-r--r--app-text/aiksaurus/aiksaurus-1.2.1-r1.ebuild41
-rw-r--r--app-text/aiksaurus/files/aiksaurus-1.2.1-format-security.patch29
2 files changed, 70 insertions, 0 deletions
diff --git a/app-text/aiksaurus/aiksaurus-1.2.1-r1.ebuild b/app-text/aiksaurus/aiksaurus-1.2.1-r1.ebuild
new file mode 100644
index 00000000000..b78d34eacee
--- /dev/null
+++ b/app-text/aiksaurus/aiksaurus-1.2.1-r1.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+inherit flag-o-matic libtool
+
+DESCRIPTION="A thesaurus lib, tool and database"
+HOMEPAGE="https://sourceforge.net/projects/aiksaurus"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos"
+IUSE="gtk"
+
+RDEPEND="gtk? ( x11-libs/gtk+:2 )"
+DEPEND="${RDEPEND}
+ gtk? ( virtual/pkgconfig )
+"
+
+PATCHES=(
+ "${FILESDIR}/${P}-gcc43.patch"
+ "${FILESDIR}/${P}-format-security.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
+}
+
+src_configure() {
+ filter-flags -fno-exceptions
+ econf $(use_with gtk)
+}
+
+src_install() {
+ default
+ find "${D}" -name '*.la' -delete || die
+}
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
new file mode 100644
index 00000000000..ba90a451950
--- /dev/null
+++ b/app-text/aiksaurus/files/aiksaurus-1.2.1-format-security.patch
@@ -0,0 +1,29 @@
+--- 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);
+ }
+ }