blob: 3f27a2abfe30dc6f2ec855e51284d3a4d29b89dd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit autotools flag-o-matic
DESCRIPTION="A thesaurus lib, tool, and database"
HOMEPAGE="https://sourceforge.net/projects/aiksaurus"
SRC_URI="
https://downloads.sourceforge.net/${PN}/${P}.tar.gz
https://dev.gentoo.org/~soap/distfiles/${P}-patches.txz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~mips ppc ppc64 ~riscv sparc x86 ~amd64-linux ~x86-linux ~x64-macos"
IUSE="gtk"
RDEPEND="gtk? ( x11-libs/gtk+:2 )"
DEPEND="${RDEPEND}"
BDEPEND="gtk? ( virtual/pkgconfig )"
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
# Clang 16
eautoreconf
}
src_configure() {
filter-flags -fno-exceptions
econf $(use_with gtk)
}
src_install() {
default
find "${ED}" -name '*.la' -delete || die
}
|