From: "Michael Orlitzky" <mjo@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-mathematics/glpk/
Date: Wed, 10 Jan 2024 18:24:43 +0000 (UTC) [thread overview]
Message-ID: <1704910558.0611fccf617f3869fc6b3b88358e2280dfd27b74.mjo@gentoo> (raw)
commit: 0611fccf617f3869fc6b3b88358e2280dfd27b74
Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 10 18:14:44 2024 +0000
Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
CommitDate: Wed Jan 10 18:15:58 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0611fccf
sci-mathematics/glpk: update EAPI 7 -> 8, add libltdl dep
With USE=mysql or USE=odbc, dev-libs/libltdl is required (per INSTALL).
Closes: https://bugs.gentoo.org/921718
Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org>
sci-mathematics/glpk/glpk-5.0-r2.ebuild | 96 +++++++++++++++++++++++++++++++++
1 file changed, 96 insertions(+)
diff --git a/sci-mathematics/glpk/glpk-5.0-r2.ebuild b/sci-mathematics/glpk/glpk-5.0-r2.ebuild
new file mode 100644
index 000000000000..ccc0e863233f
--- /dev/null
+++ b/sci-mathematics/glpk/glpk-5.0-r2.ebuild
@@ -0,0 +1,96 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools flag-o-matic toolchain-funcs
+
+DESCRIPTION="GNU Linear Programming Kit"
+HOMEPAGE="https://www.gnu.org/software/glpk/"
+SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0/40"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux"
+IUSE="doc examples gmp odbc mysql"
+
+BDEPEND="virtual/pkgconfig"
+DEPEND="
+ sci-libs/amd:0=
+ sci-libs/colamd:=
+ sys-libs/zlib:0=
+ gmp? ( dev-libs/gmp:0= )
+ mysql? (
+ dev-db/mysql-connector-c
+ dev-libs/libltdl
+ )
+ odbc? (
+ || (
+ dev-db/libiodbc:0
+ dev-db/unixODBC:0
+ )
+ dev-libs/libltdl
+ )"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-4.65-fix-mysql-include-prefix.patch
+ "${FILESDIR}"/${PN}-4.65-debundle-system-libs.patch
+)
+
+src_prepare() {
+ # TODO: the ODBC library is dlopen()ed, so we only want to append
+ # -I<foo> to the preprocessor flags, and not all of the CFLAGS that
+ # were used to build libiodbc. That fix and the pkg-config fallback
+ # should be sent upstream, and placed into CPPFLAGS rather than
+ # CFLAGS (as configure.ac does now).
+ use odbc && [[ -z $(type -P odbc_config) ]] && \
+ append-cppflags $($(tc-getPKG_CONFIG) --cflags libiodbc)
+
+ default
+
+ eautoreconf
+}
+
+src_configure() {
+ local myconf
+ if use mysql || use odbc; then
+ myconf="--enable-dl"
+ else
+ myconf="--disable-dl"
+ fi
+
+ econf ${myconf} \
+ --disable-static \
+ $(use_enable mysql) \
+ $(use_enable odbc) \
+ $(use_with gmp)
+}
+
+src_install() {
+ default
+
+ if use examples; then
+ # The top-level Makefile descends into the "examples" directory
+ # unconditionally, building a program and excreting build
+ # artifacts that we don't want to install. Note: this still
+ # leaves the example program /usr/bin/glpsol installed. An
+ # additional "emake ... uninstall" could probably take care
+ # of that if desired.
+ emake -C examples clean
+
+ # Installing the Makefiles for the examples does the user no
+ # good without the top-level Makefile.
+ rm examples/Makefile{.in,.am,} \
+ || die "failed to remove example Makefiles"
+
+ insinto "/usr/share/doc/${PF}"
+ doins -r examples
+ docompress -x "/usr/share/doc/${PF}/examples"
+ fi
+
+ use doc && dodoc doc/*.pdf doc/notes/*.pdf doc/*.txt
+
+ # no static archives
+ find "${D}" -name '*.la' -delete || die
+}
next reply other threads:[~2024-01-10 18:24 UTC|newest]
Thread overview: 45+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-10 18:24 Michael Orlitzky [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-01-16 14:22 [gentoo-commits] repo/gentoo:master commit in: sci-mathematics/glpk/ Michael Orlitzky
2024-11-20 4:16 Michael Orlitzky
2024-03-05 4:48 Sam James
2023-06-03 11:15 Arthur Zamarin
2022-12-04 9:23 WANG Xuerui
2022-10-18 2:18 Sam James
2021-11-02 22:21 Sam James
2021-11-02 22:21 Sam James
2021-11-02 15:47 Sam James
2021-11-02 15:47 Sam James
2021-11-02 15:46 Sam James
2021-11-02 15:46 Sam James
2021-11-02 15:46 Sam James
2021-07-14 16:15 Marek Szuba
2021-03-31 13:05 Michael Orlitzky
2021-01-06 15:19 Fabian Groffen
2020-12-17 1:18 Michael Orlitzky
2020-11-07 17:57 Sam James
2020-11-06 15:23 Sam James
2020-08-23 17:01 David Seifert
2020-04-13 16:12 Agostino Sarubbo
2020-04-13 14:48 Agostino Sarubbo
2020-04-13 10:19 Agostino Sarubbo
2020-04-13 10:17 Agostino Sarubbo
2020-04-13 8:05 Sergei Trofimovich
2020-04-11 15:57 Sergei Trofimovich
2020-03-07 2:23 Michael Orlitzky
2018-07-13 10:43 Tony Vroon
2018-04-18 12:18 Tobias Klausmann
2018-04-04 22:32 Sergei Trofimovich
2018-03-03 17:56 Sergei Trofimovich
2017-12-16 13:07 Sergei Trofimovich
2017-12-16 8:20 Tobias Klausmann
2017-12-12 18:39 Thomas Deutschmann
2017-11-08 22:27 Sergei Trofimovich
2017-09-02 16:07 Sergei Trofimovich
2017-07-01 9:52 Sergei Trofimovich
2017-07-01 9:52 Sergei Trofimovich
2017-06-22 11:48 Alexis Ballier
2017-03-07 0:20 Sebastien Fabbro
2017-03-07 0:17 Sebastien Fabbro
2017-03-06 18:15 Robin H. Johnson
2017-03-04 0:10 Sebastien Fabbro
2016-01-23 11:05 Fabian Groffen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1704910558.0611fccf617f3869fc6b3b88358e2280dfd27b74.mjo@gentoo \
--to=mjo@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox