From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 9897B158451 for ; Wed, 10 Jan 2024 18:24:46 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DCF1BE2ABB; Wed, 10 Jan 2024 18:24:45 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id BACCFE2ABB for ; Wed, 10 Jan 2024 18:24:45 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C391A34322C for ; Wed, 10 Jan 2024 18:24:44 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 265A412D7 for ; Wed, 10 Jan 2024 18:24:43 +0000 (UTC) From: "Michael Orlitzky" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michael Orlitzky" Message-ID: <1704910558.0611fccf617f3869fc6b3b88358e2280dfd27b74.mjo@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-mathematics/glpk/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-mathematics/glpk/glpk-5.0-r2.ebuild X-VCS-Directories: sci-mathematics/glpk/ X-VCS-Committer: mjo X-VCS-Committer-Name: Michael Orlitzky X-VCS-Revision: 0611fccf617f3869fc6b3b88358e2280dfd27b74 X-VCS-Branch: master Date: Wed, 10 Jan 2024 18:24:43 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 3da62187-3888-4c87-9b3f-4f5b5290e2e1 X-Archives-Hash: 845a80f5c4e8554be8b5fe0501b23768 commit: 0611fccf617f3869fc6b3b88358e2280dfd27b74 Author: Michael Orlitzky gentoo org> AuthorDate: Wed Jan 10 18:14:44 2024 +0000 Commit: Michael Orlitzky gentoo 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 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 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 +}