Сравнение glpk-5.0-r3 с glpk-5.0-r4

/usr/portage/sci-mathematics/glpk/glpk-5.0-r4.ebuild 2026-02-19 11:18:08.261302953 +0300
1
# Copyright 1999-2025 Gentoo Authors
1
# Copyright 1999-2026 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4 4
EAPI=8
5 5

  
6
inherit autotools flag-o-matic toolchain-funcs
6
inherit autotools flag-o-matic
7 7

  
8 8
DESCRIPTION="GNU Linear Programming Kit"
9 9
HOMEPAGE="https://www.gnu.org/software/glpk/"
......
11 11

  
12 12
LICENSE="GPL-3"
13 13
SLOT="0/40"
14
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~ppc ppc64 ~riscv ~sparc x86"
15
IUSE="doc examples gmp odbc mysql"
14
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
15
IUSE="doc examples gmp mysql"
16 16

  
17 17
BDEPEND="virtual/pkgconfig"
18 18
DEPEND="
......
23 23
	mysql? (
24 24
		dev-db/mysql-connector-c
25 25
		dev-libs/libltdl
26
	)
27
	odbc? (
28
		|| (
29
			dev-db/libiodbc:0
30
			dev-db/unixODBC:0
31
		)
32
		dev-libs/libltdl
33 26
	)"
34 27
RDEPEND="${DEPEND}"
35 28

  
......
40 33
)
41 34

  
42 35
src_prepare() {
43
	# TODO: the ODBC library is dlopen()ed, so we only want to append
44
	# -I<foo> to the preprocessor flags, and not all of the CFLAGS that
45
	# were used to build libiodbc. That fix and the pkg-config fallback
46
	# should be sent upstream, and placed into CPPFLAGS rather than
47
	# CFLAGS (as configure.ac does now).
48
	use odbc && [[ -z $(type -P odbc_config) ]] && \
49
		append-cppflags $($(tc-getPKG_CONFIG) --cflags libiodbc)
50

  
51 36
	# Newer GNU standards fail to compile thanks to "bool", while using
52 37
	# ISO C17 breaks thread safety... and also fails to compile.
53 38
	append-cflags -std=gnu17
......
58 43
}
59 44

  
60 45
src_configure() {
61
	local myconf
62
	if use mysql || use odbc; then
63
		myconf="--enable-dl"
64
	else
65
		myconf="--disable-dl"
66
	fi
67

  
68
	econf ${myconf} \
69
		--disable-static \
46
	econf --disable-static \
47
		--disable-odbc \
48
		$(use_enable mysql dl) \
70 49
		$(use_enable mysql) \
71
		$(use_enable odbc) \
72 50
		$(use_with gmp)
73 51
}
74 52

  
Спасибо!