sci-mathematics/glpk: Remove old

Package-Manager: Portage-2.3.29, Repoman-2.3.9
Closes: https://bugs.gentoo.org/626228
Closes: https://github.com/gentoo/gentoo/pull/8056
This commit is contained in:
David Seifert
2018-04-18 14:50:45 +02:00
parent 8271b1e732
commit 43dcca1e98
12 changed files with 0 additions and 699 deletions

View File

@@ -1,8 +1 @@
DIST glpk-4.45.tar.gz 3132439 BLAKE2B 1c3c8123fbb91c4d0357553ca5cbaea3b69c07f79e2353289f4ca17f7f02e06c8639257fc752a9d513481803c66ab1218ede51cf053d6d77a468bbaa208f36d8 SHA512 27089b760d89ee16c5a3332d319007af4b05e8d27df0b990311508f856a01461d8b7b40b111bbf1f3dd4d754af84000112f95349d5286e6d3e42e56226f98649
DIST glpk-4.48.tar.gz 3488482 BLAKE2B c96c278b8eac7b79aa642106fc3563123f812546fc2e8967a107acd50f010107ea5ef2e005f18117c0ff5061cdf6c3b14eafed22827177cd6516857dc585b18f SHA512 16795e6cf4db302f25e06e5c9a660e5ed8c7b24ffc5126cde0f864e83fa77d4d61838eab4f716291d568963dddf7442a36a39425a62bd58bd00ca73dac4ffa70
DIST glpk-4.54.tar.gz 3098202 BLAKE2B 32d4f6715e893e52982e572424e18642d80c76b5a8cefb30ee6ec49ae334f8fb3fa2e1e92fe4a90ceb048a4c02cde7248a777a5a88f797a9751777cf523840f9 SHA512 7eb815a6d8416dd9f2bb94e9a4aef493c171898404ebc6276fcc1c4f3b4244220213a2bd098707104589348080820a7cb8a717aab73ca513f05b2f9a10aea070
DIST glpk-4.55.tar.gz 3424345 BLAKE2B cc4e7b6edeb4497c3aa41151f53c1f48070ba3b83e04ecd48dd2d51f2d464be26440213e1f21cad92159c9326e5c5472f63c5ecfd25b1dfc44e39c3bbafc9eac SHA512 a0c8ce0c850e0075098f0526db8f7584a86d5cb44d8ddefa55abf9f1f66af89f5aec19cf1cad51fc5585d8dfa50eab6ece984a038e00c472aec2ef1473eac689
DIST glpk-4.57.tar.gz 3782998 BLAKE2B 031db9f4cc1aec933f551926fb0a65190609132de6692e3cb7f3ad4940b7b25d7f9b267cca671abc53fc803025389858557413a4a658489b6c55e2df13e507ec SHA512 1979e59b96ce359168a81b720207045916f66c5755023b02c2e197e5a713d456165d94f1e40830547dc072de865f94e3b3a4d8e66d5d15aeb93f304f1893fe48
DIST glpk-4.60.tar.gz 4160915 BLAKE2B 26cd258701574825ce9333803fc0f1991cec62206563afb9ca0a1dec0e2b55f58661b066ae8a328d11f2bc7cb2be9c77535804d16c267b51d67a1e3696de8395 SHA512 521bc48c588318fe6075eb66b1c43465200039f64b105b4a24f9f6eb9bb4742c7ebc96750ce999f64c60d6531486476386467dd41e949f1a00cba0cf00fbe20a
DIST glpk-4.61.tar.gz 4116291 BLAKE2B aaf67b2e6729772540887174e6241576cc2fe530074d7304eb319e852f8474a8e50f7ee0b9a7d0e2d38f08eb63484eef2b62d92e495ba0520a2715736b57fd17 SHA512 0bcf89b62a2b3f565356b7ae538c5af6f3b4283234827c4212284d4924ce93980f6971f51313f1c08790e23e860771545dc58fdb8b35405d37404589683f40a1
DIST glpk-4.63.tar.gz 4131787 BLAKE2B 791fa1a1424011668019e180fc245c0319f601255f596affe87afa0df47d9d615a8accd794d51c15bff5fe4fe6409369362f6c9e82bdde67903177b8da55e891 SHA512 3ee9b9ec5322282a9c62b2ee209fc7760383a6a764ef3816445ffb66f15ed4d00309bff1b98d50c243b58aa74f83072afde45c389799e637e11e86f4db45276c

View File

@@ -1,11 +0,0 @@
--- glpk-4.52.1/src/glpsql.c.orig 2014-02-05 22:14:21.487843989 +0100
+++ glpk-4.52.1/src/glpsql.c 2014-02-05 22:14:32.764510562 +0100
@@ -1106,8 +1106,6 @@
#define byte_defined 1
#endif
-#include <my_global.h>
-#include <my_sys.h>
#include <mysql.h>
struct db_mysql

View File

@@ -1,86 +0,0 @@
Remove suitesparse (camd,colamd) and zlib bundles
bicatali - apr 2014
--- configure.ac.orig 2014-04-05 14:18:56.045148287 -0700
+++ configure.ac 2014-04-05 14:23:24.878803309 -0700
@@ -59,6 +59,11 @@
dnl Check for math library
AC_CHECK_LIB([m], [exp])
+AC_CHECK_LIB([amd], [amd_1])
+AC_CHECK_LIB([colamd], [colamd])
+AC_CHECK_HEADER([amd.h])
+AC_CHECK_LIB([z], [gzopen])
+
dnl Check for <sys/time.h> header
AC_CHECK_HEADER([sys/time.h],
AC_DEFINE([HAVE_SYS_TIME_H], [1], [N/A]))
--- src/Makefile.am.orig 2014-04-05 14:19:16.401273769 -0700
+++ src/Makefile.am 2014-04-05 14:21:56.696259485 -0700
@@ -6,15 +6,12 @@
libglpk_la_CPPFLAGS = \
-I$(srcdir) \
--I$(srcdir)/amd \
-I$(srcdir)/bflib \
-I$(srcdir)/cglib \
--I$(srcdir)/colamd \
-I$(srcdir)/env \
-I$(srcdir)/minisat \
-I$(srcdir)/misc \
--I$(srcdir)/proxy \
--I$(srcdir)/zlib
+-I$(srcdir)/proxy
libglpk_la_LDFLAGS = \
-version-info 37:1:1 \
@@ -92,18 +89,6 @@
glpssx02.c \
glptsp.c \
lux.c \
-amd/amd_1.c \
-amd/amd_2.c \
-amd/amd_aat.c \
-amd/amd_control.c \
-amd/amd_defaults.c \
-amd/amd_dump.c \
-amd/amd_info.c \
-amd/amd_order.c \
-amd/amd_post_tree.c \
-amd/amd_postorder.c \
-amd/amd_preprocess.c \
-amd/amd_valid.c \
bflib/btf.c \
bflib/btfint.c \
bflib/fhv.c \
@@ -117,7 +102,6 @@
bflib/sva.c \
cglib/cfg.c \
cglib/cfg1.c \
-colamd/colamd.c \
env/alloc.c \
env/dlsup.c \
env/env.c \
@@ -150,21 +134,6 @@
misc/wclique.c \
misc/wclique1.c \
proxy/proxy.c \
-proxy/proxy1.c \
-zlib/adler32.c \
-zlib/compress.c \
-zlib/crc32.c \
-zlib/deflate.c \
-zlib/gzclose.c \
-zlib/gzlib.c \
-zlib/gzread.c \
-zlib/gzwrite.c \
-zlib/inffast.c \
-zlib/inflate.c \
-zlib/inftrees.c \
-zlib/trees.c \
-zlib/uncompr.c \
-zlib/zio.c \
-zlib/zutil.c
+proxy/proxy1.c
## eof ##

View File

@@ -1,88 +0,0 @@
Remove suitesparse (camd,colamd) and zlib bundles
bicatali - apr 2014
Updated for 4.57 by soap (Jan 2016)
--- glpk-4.57/configure.ac
+++ glpk-4.57/configure.ac
@@ -59,6 +59,11 @@
dnl Check for math library
AC_CHECK_LIB([m], [exp])
+AC_CHECK_LIB([amd], [amd_1])
+AC_CHECK_LIB([colamd], [colamd])
+AC_CHECK_HEADER([amd.h])
+AC_CHECK_LIB([z], [gzopen])
+
dnl Check for <sys/time.h> header
AC_CHECK_HEADER([sys/time.h],
AC_DEFINE([HAVE_SYS_TIME_H], [1], [N/A]))
--- glpk-4.57/src/Makefile.am
+++ glpk-4.57/src/Makefile.am
@@ -6,16 +6,13 @@
libglpk_la_CPPFLAGS = \
-I$(srcdir) \
--I$(srcdir)/amd \
-I$(srcdir)/bflib \
-I$(srcdir)/cglib \
--I$(srcdir)/colamd \
-I$(srcdir)/env \
-I$(srcdir)/minisat \
-I$(srcdir)/misc \
-I$(srcdir)/proxy \
--I$(srcdir)/simplex \
--I$(srcdir)/zlib
+-I$(srcdir)/simplex
libglpk_la_LDFLAGS = \
-version-info 38:0:2 \
@@ -90,18 +87,6 @@
glpssx01.c \
glpssx02.c \
lux.c \
-amd/amd_1.c \
-amd/amd_2.c \
-amd/amd_aat.c \
-amd/amd_control.c \
-amd/amd_defaults.c \
-amd/amd_dump.c \
-amd/amd_info.c \
-amd/amd_order.c \
-amd/amd_post_tree.c \
-amd/amd_postorder.c \
-amd/amd_preprocess.c \
-amd/amd_valid.c \
bflib/btf.c \
bflib/btfint.c \
bflib/fhv.c \
@@ -115,7 +100,6 @@
bflib/sva.c \
cglib/cfg.c \
cglib/cfg1.c \
-colamd/colamd.c \
env/alloc.c \
env/dlsup.c \
env/env.c \
@@ -158,21 +142,6 @@
simplex/spxprob.c \
simplex/spychuzc.c \
simplex/spychuzr.c \
-simplex/spydual.c \
-zlib/adler32.c \
-zlib/compress.c \
-zlib/crc32.c \
-zlib/deflate.c \
-zlib/gzclose.c \
-zlib/gzlib.c \
-zlib/gzread.c \
-zlib/gzwrite.c \
-zlib/inffast.c \
-zlib/inflate.c \
-zlib/inftrees.c \
-zlib/trees.c \
-zlib/uncompr.c \
-zlib/zio.c \
-zlib/zutil.c
+simplex/spydual.c
## eof ##

View File

@@ -1,92 +0,0 @@
Remove suitesparse (camd,colamd) and zlib bundles
bicatali - apr 2014
Updated for 4.57 by soap (Jan 2016)
Updated for 4.60 by bicatali (Dec 2016)
--- glpk-4.60/configure.ac
+++ glpk-4.60/configure.ac
@@ -59,6 +59,11 @@
dnl Check for math library
AC_CHECK_LIB([m], [exp])
+AC_CHECK_LIB([amd], [amd_1])
+AC_CHECK_LIB([colamd], [colamd])
+AC_CHECK_HEADER([amd.h])
+AC_CHECK_LIB([z], [gzopen])
+
dnl Check for <sys/time.h> header
AC_CHECK_HEADER([sys/time.h],
AC_DEFINE([HAVE_SYS_TIME_H], [1], [N/A]))
--- glpk-4.60/src/Makefile.am
+++ glpk-4.60/src/Makefile.am
@@ -6,18 +6,15 @@
libglpk_la_CPPFLAGS = \
-I$(srcdir) \
--I$(srcdir)/amd \
-I$(srcdir)/api \
-I$(srcdir)/bflib \
-I$(srcdir)/cglib \
--I$(srcdir)/colamd \
-I$(srcdir)/env \
-I$(srcdir)/minisat \
-I$(srcdir)/misc \
-I$(srcdir)/mpl \
-I$(srcdir)/proxy \
--I$(srcdir)/simplex \
--I$(srcdir)/zlib
+-I$(srcdir)/simplex
libglpk_la_LDFLAGS = \
-version-info 41:0:1 \
@@ -63,18 +60,6 @@
glpssx02.c \
lux.c \
spv.c \
-amd/amd_1.c \
-amd/amd_2.c \
-amd/amd_aat.c \
-amd/amd_control.c \
-amd/amd_defaults.c \
-amd/amd_dump.c \
-amd/amd_info.c \
-amd/amd_order.c \
-amd/amd_post_tree.c \
-amd/amd_postorder.c \
-amd/amd_preprocess.c \
-amd/amd_valid.c \
api/advbas.c \
api/asnhall.c \
api/asnlp.c \
@@ -142,7 +127,6 @@
cglib/gmicut.c \
cglib/gmigen.c \
cglib/mirgen.c \
-colamd/colamd.c \
env/alloc.c \
env/dlsup.c \
env/env.c \
@@ -195,21 +179,6 @@
simplex/spxprob.c \
simplex/spychuzc.c \
simplex/spychuzr.c \
-simplex/spydual.c \
-zlib/adler32.c \
-zlib/compress.c \
-zlib/crc32.c \
-zlib/deflate.c \
-zlib/gzclose.c \
-zlib/gzlib.c \
-zlib/gzread.c \
-zlib/gzwrite.c \
-zlib/inffast.c \
-zlib/inflate.c \
-zlib/inftrees.c \
-zlib/trees.c \
-zlib/uncompr.c \
-zlib/zio.c \
-zlib/zutil.c
+simplex/spydual.c
## eof ##

View File

@@ -1,63 +0,0 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=2
inherit eutils flag-o-matic
DESCRIPTION="GNU Linear Programming Kit"
LICENSE="GPL-3"
HOMEPAGE="https://www.gnu.org/software/glpk/"
SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
SLOT="0"
IUSE="doc examples gmp odbc mysql static-libs"
KEYWORDS="alpha amd64 hppa ppc ppc64 sparc x86 ~ppc-aix ~x86-fbsd ~amd64-linux ~x86-linux"
RDEPEND="sys-libs/zlib
odbc? ( || ( dev-db/libiodbc dev-db/unixODBC ) )
gmp? ( dev-libs/gmp )
mysql? ( virtual/mysql )"
DEPEND="${RDEPEND}
virtual/pkgconfig"
src_prepare() {
epatch "${FILESDIR}"/${PN}-4.52.1-mariadb-5.5.patch
}
src_configure() {
local myconf="--disable-dl"
if use mysql || use odbc; then
myconf="--enable-dl"
fi
[[ -z $(type -P odbc-config) ]] && \
append-cppflags $(pkg-config --cflags libiodbc)
econf \
--with-zlib \
$(use_enable static-libs static) \
$(use_with gmp) \
$(use_enable odbc) \
$(use_enable mysql) \
${myconf}
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
dodoc AUTHORS ChangeLog NEWS README || \
die "failed to install docs"
insinto /usr/share/doc/${PF}
if use examples; then
emake distclean
doins -r examples || die "failed to install examples"
fi
if use doc; then
cd "${S}"/doc
doins *.pdf notes/*.pdf || die "failed to instal djvu and pdf"
dodoc *.txt || die "failed to install manual files"
fi
}

View File

@@ -1,52 +0,0 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
inherit eutils flag-o-matic toolchain-funcs autotools-utils
DESCRIPTION="GNU Linear Programming Kit"
LICENSE="GPL-3"
HOMEPAGE="https://www.gnu.org/software/glpk/"
SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
SLOT="0"
IUSE="doc examples gmp odbc mysql static-libs"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos ~x86-macos"
RDEPEND="
gmp? ( dev-libs/gmp:0 )
mysql? ( virtual/mysql )
odbc? ( || ( dev-db/libiodbc dev-db/unixODBC ) )"
DEPEND="${RDEPEND}
virtual/pkgconfig"
PATCHES=(
"${FILESDIR}"/${PN}-4.52.1-mariadb-5.5.patch
)
src_configure() {
local myeconfargs=(
$(use_enable mysql)
$(use_enable odbc)
$(use_with gmp)
)
if use mysql || use odbc; then
myeconfargs+=( --enable-dl )
else
myeconfargs+=( --disable-dl )
fi
[[ -z $(type -P odbc-config) ]] && \
append-cppflags $($(tc-getPKG_CONFIG) --cflags libiodbc)
autotools-utils_src_configure
}
src_install() {
autotools-utils_src_install
if use examples; then
insinto /usr/share/doc/${PF}
doins -r examples
fi
use doc && dodoc doc/*.pdf doc/notes/*.pdf doc/*.txt
}

View File

@@ -1,58 +0,0 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
AUTOTOOLS_AUTORECONF=1
inherit eutils flag-o-matic toolchain-funcs autotools-utils
DESCRIPTION="GNU Linear Programming Kit"
LICENSE="GPL-3"
HOMEPAGE="https://www.gnu.org/software/glpk/"
SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
SLOT="0/36"
IUSE="doc examples gmp odbc mysql static-libs"
KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux"
RDEPEND="
sci-libs/amd:0=
sci-libs/colamd:=
sys-libs/zlib:0=
gmp? ( dev-libs/gmp:0= )
mysql? ( virtual/mysql )
odbc? ( || ( dev-db/libiodbc:0 dev-db/unixODBC:0 ) )"
DEPEND="${RDEPEND}
virtual/pkgconfig"
PATCHES=(
"${FILESDIR}"/${PN}-4.54-debundle-system-libs.patch
)
src_configure() {
local myeconfargs=(
$(use_enable mysql)
$(use_enable odbc)
$(use_with gmp)
)
if use mysql || use odbc; then
myeconfargs+=( --enable-dl )
else
myeconfargs+=( --disable-dl )
fi
[[ -z $(type -P odbc-config) ]] && \
append-cppflags $($(tc-getPKG_CONFIG) --cflags libiodbc)
autotools-utils_src_configure
}
src_install() {
autotools-utils_src_install
if use examples; then
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
}

View File

@@ -1,58 +0,0 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
AUTOTOOLS_AUTORECONF=1
inherit eutils flag-o-matic toolchain-funcs autotools-utils
DESCRIPTION="GNU Linear Programming Kit"
LICENSE="GPL-3"
HOMEPAGE="https://www.gnu.org/software/glpk/"
SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
SLOT="0/36"
IUSE="doc examples gmp odbc mysql static-libs"
KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux"
RDEPEND="
sci-libs/amd:0=
sci-libs/colamd:=
sys-libs/zlib:0=
gmp? ( dev-libs/gmp:0= )
mysql? ( virtual/mysql )
odbc? ( || ( dev-db/libiodbc:0 dev-db/unixODBC:0 ) )"
DEPEND="${RDEPEND}
virtual/pkgconfig"
PATCHES=(
"${FILESDIR}"/${PN}-4.54-debundle-system-libs.patch
)
src_configure() {
local myeconfargs=(
$(use_enable mysql)
$(use_enable odbc)
$(use_with gmp)
)
if use mysql || use odbc; then
myeconfargs+=( --enable-dl )
else
myeconfargs+=( --disable-dl )
fi
[[ -z $(type -P odbc-config) ]] && \
append-cppflags $($(tc-getPKG_CONFIG) --cflags libiodbc)
autotools-utils_src_configure
}
src_install() {
autotools-utils_src_install
if use examples; then
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
}

View File

@@ -1,61 +0,0 @@
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit autotools flag-o-matic toolchain-funcs
DESCRIPTION="GNU Linear Programming Kit"
LICENSE="GPL-3"
HOMEPAGE="https://www.gnu.org/software/glpk/"
SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
SLOT="0/36"
IUSE="doc examples gmp odbc mysql static-libs"
KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x86-macos"
RDEPEND="
sci-libs/amd:0=
sci-libs/colamd:=
sys-libs/zlib:0=
gmp? ( dev-libs/gmp:0= )
mysql? ( virtual/mysql )
odbc? ( || ( dev-db/libiodbc:0 dev-db/unixODBC:0 ) )"
DEPEND="${RDEPEND}
virtual/pkgconfig"
PATCHES=(
"${FILESDIR}"/${P}-debundle-system-libs.patch
)
src_prepare() {
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} \
$(use_enable mysql) \
$(use_enable odbc) \
$(use_with gmp)
}
src_install() {
default
if use examples; then
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
}

View File

@@ -1,61 +0,0 @@
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit autotools flag-o-matic toolchain-funcs
DESCRIPTION="GNU Linear Programming Kit"
LICENSE="GPL-3"
HOMEPAGE="https://www.gnu.org/software/glpk/"
SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
SLOT="0/40"
IUSE="doc examples gmp odbc mysql static-libs"
KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x86-macos"
RDEPEND="
sci-libs/amd:0=
sci-libs/colamd:=
sys-libs/zlib:0=
gmp? ( dev-libs/gmp:0= )
mysql? ( virtual/mysql )
odbc? ( || ( dev-db/libiodbc:0 dev-db/unixODBC:0 ) )"
DEPEND="${RDEPEND}
virtual/pkgconfig"
PATCHES=(
"${FILESDIR}"/${P}-debundle-system-libs.patch
)
src_prepare() {
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} \
$(use_enable mysql) \
$(use_enable odbc) \
$(use_with gmp)
}
src_install() {
default
if use examples; then
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
}

View File

@@ -1,62 +0,0 @@
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit autotools flag-o-matic toolchain-funcs
DESCRIPTION="GNU Linear Programming Kit"
LICENSE="GPL-3"
HOMEPAGE="https://www.gnu.org/software/glpk/"
SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
SLOT="0/40"
IUSE="doc examples gmp odbc mysql static-libs"
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x86-macos"
RDEPEND="
sci-libs/amd:0=
sci-libs/colamd:=
sys-libs/zlib:0=
gmp? ( dev-libs/gmp:0= )
mysql? ( virtual/mysql )
odbc? ( || ( dev-db/libiodbc:0 dev-db/unixODBC:0 ) )"
DEPEND="${RDEPEND}
virtual/pkgconfig"
PATCHES=(
"${FILESDIR}"/${PN}-4.60-debundle-system-libs.patch
)
src_prepare() {
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} \
$(use_enable mysql) \
$(use_enable odbc) \
$(use_enable static-libs static) \
$(use_with gmp)
}
src_install() {
default
if use examples; then
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
}