Gentoo Archives: gentoo-commits

From: Pacho Ramos <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/aiksaurus/, app-text/aiksaurus/files/
Date: Sat, 23 Feb 2019 11:55:21
Message-Id: 1550922885.3294485699fbbd4b28bc51eb99fa95fec0ced604.pacho@gentoo
1 commit: 3294485699fbbd4b28bc51eb99fa95fec0ced604
2 Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
3 AuthorDate: Sat Feb 23 11:38:37 2019 +0000
4 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
5 CommitDate: Sat Feb 23 11:54:45 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=32944856
7
8 app-text/aiksaurus: Fix format-security, drop .la files
9
10 Closes: https://bugs.gentoo.org/521124
11 Package-Manager: Portage-2.3.62, Repoman-2.3.12
12 Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org>
13
14 app-text/aiksaurus/aiksaurus-1.2.1-r1.ebuild | 41 ++++++++++++++++++++++
15 .../files/aiksaurus-1.2.1-format-security.patch | 29 +++++++++++++++
16 2 files changed, 70 insertions(+)
17
18 diff --git a/app-text/aiksaurus/aiksaurus-1.2.1-r1.ebuild b/app-text/aiksaurus/aiksaurus-1.2.1-r1.ebuild
19 new file mode 100644
20 index 00000000000..b78d34eacee
21 --- /dev/null
22 +++ b/app-text/aiksaurus/aiksaurus-1.2.1-r1.ebuild
23 @@ -0,0 +1,41 @@
24 +# Copyright 1999-2019 Gentoo Authors
25 +# Distributed under the terms of the GNU General Public License v2
26 +
27 +EAPI=7
28 +inherit flag-o-matic libtool
29 +
30 +DESCRIPTION="A thesaurus lib, tool and database"
31 +HOMEPAGE="https://sourceforge.net/projects/aiksaurus"
32 +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
33 +
34 +LICENSE="GPL-2"
35 +SLOT="0"
36 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos"
37 +IUSE="gtk"
38 +
39 +RDEPEND="gtk? ( x11-libs/gtk+:2 )"
40 +DEPEND="${RDEPEND}
41 + gtk? ( virtual/pkgconfig )
42 +"
43 +
44 +PATCHES=(
45 + "${FILESDIR}/${P}-gcc43.patch"
46 + "${FILESDIR}/${P}-format-security.patch"
47 +)
48 +
49 +src_prepare() {
50 + default
51 + # Needed to make relink work on FreeBSD, without it won't install.
52 + # Also needed for a sane .so versionning there.
53 + elibtoolize
54 +}
55 +
56 +src_configure() {
57 + filter-flags -fno-exceptions
58 + econf $(use_with gtk)
59 +}
60 +
61 +src_install() {
62 + default
63 + find "${D}" -name '*.la' -delete || die
64 +}
65
66 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
67 new file mode 100644
68 index 00000000000..ba90a451950
69 --- /dev/null
70 +++ b/app-text/aiksaurus/files/aiksaurus-1.2.1-format-security.patch
71 @@ -0,0 +1,29 @@
72 +--- aiksaurus-1.2.1/base/caiksaurus.cpp.orig 2014-06-07 21:14:03.869649696 +0100
73 ++++ aiksaurus-1.2.1/base/caiksaurus.cpp 2014-06-07 21:33:06.241471066 +0100
74 +@@ -254,7 +254,7 @@
75 + /* see if we got --version. */
76 + if ( !strcmp(arg, "--version") || !strcmp(arg, "-v") )
77 + {
78 +- printf(version);
79 ++ printf("%s", version);
80 + exit(0);
81 + }
82 +
83 +@@ -262,7 +262,7 @@
84 + else if ( !strcmp(arg, "--help") || !strcmp(arg, "-h") )
85 + {
86 + printf("Usage: %s [word]\n\n", argv[0]);
87 +- printf(help);
88 ++ printf("%s", help);
89 + exit(0);
90 + }
91 + }
92 +@@ -271,7 +271,7 @@
93 + if (argc != 2)
94 + {
95 + printf("Usage: %s [word]\n", argv[0]);
96 +- printf(help);
97 ++ printf("%s", help);
98 + exit(1);
99 + }
100 + }