mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
sci-libs/coinasl: new package, add 2.0.1
Signed-off-by: Andrew Udvare <audvare@gmail.com> Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
This commit is contained in:
committed by
Andrew Ammerlaan
parent
07ffb9cbe8
commit
592794f0eb
2
sci-libs/coinasl/Manifest
Normal file
2
sci-libs/coinasl/Manifest
Normal file
@@ -0,0 +1,2 @@
|
||||
DIST coinasl-2.0.1.tar.gz 252385 BLAKE2B 7276c9e4325542817a49c61b0d08b5d3bd60a4d9beb981fdd164fdad80d6695c6ba83c4c0cbddeac119be4572c1fe4f0534b0adcc45541324b23e7bc2d60a303 SHA512 37c05677ebc82d56228cd80382c37ae44546fd5681063488bd2cd3c35c2155c2f85e6e8fbcbe41913eeafeb3ac12d2972919893de75affade3016e64f75e034b
|
||||
DIST solvers-64919f75f.tgz 360043 BLAKE2B 08b81c638bc9154e3089a87409585dd8e6f64be48ef0e431e5d5e907f5fa7c21c755890baf480924c17e25e8da6220d90f9d3ad1aa3146f40134f4bde0ca9f06 SHA512 dfb001d1feb4218b3122f4d6fe7a101f03bbb8277e8af0adda6a1ae9295b6eb7fc1ef62550bc6cc724a54754c713e36f526555c66d9f0bcb9a08ed61414bbe26
|
||||
34
sci-libs/coinasl/coinasl-2.0.1.ebuild
Normal file
34
sci-libs/coinasl/coinasl-2.0.1.ebuild
Normal file
@@ -0,0 +1,34 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DESCRIPTION="Ampl Solver Library (ASL)"
|
||||
HOMEPAGE="https://github.com/coin-or-tools/ThirdParty-ASL"
|
||||
SOLVERS_SHA="64919f75f"
|
||||
SRC_URI="https://coin-or-tools.github.io/ThirdParty-ASL/solvers-${SOLVERS_SHA}.tgz
|
||||
https://github.com/coin-or-tools/ThirdParty-ASL/archive/refs/tags/releases/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/ThirdParty-ASL-releases-${PV}"
|
||||
|
||||
LICENSE="EPL-1.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${P}-getrusage.patch"
|
||||
"${FILESDIR}/${P}-dtoa.patch"
|
||||
)
|
||||
|
||||
src_unpack() {
|
||||
default
|
||||
mv solvers "${S}" || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
econf --enable-shared
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
rm "${D}/usr/$(get_libdir)/libcoinasl.la" || die
|
||||
}
|
||||
11
sci-libs/coinasl/files/coinasl-2.0.1-dtoa.patch
Normal file
11
sci-libs/coinasl/files/coinasl-2.0.1-dtoa.patch
Normal file
@@ -0,0 +1,11 @@
|
||||
--- a/solvers/dtoa1.c
|
||||
+++ b/solvers/dtoa1.c
|
||||
@@ -16,6 +16,8 @@
|
||||
of or in connection with the use or performance of this software.
|
||||
*******************************************************************/
|
||||
|
||||
+#include <stddef.h>
|
||||
+
|
||||
#ifndef No_dtoa /*{{*/
|
||||
#ifdef __cplusplus
|
||||
#include "memory.h"
|
||||
13
sci-libs/coinasl/files/coinasl-2.0.1-getrusage.patch
Normal file
13
sci-libs/coinasl/files/coinasl-2.0.1-getrusage.patch
Normal file
@@ -0,0 +1,13 @@
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 59e033d..2544237 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -51,7 +51,7 @@ AM_CONDITIONAL([ASL_INT64],[test "$intsize" = 64])
|
||||
# The critical function for NO_RUSAGE is getrusage(). Use a standard test.
|
||||
AC_MSG_CHECKING([for getrusage])
|
||||
AC_LINK_IFELSE(
|
||||
- [AC_LANG_PROGRAM([[]],[[getrusage()]])],
|
||||
+ [AC_LANG_PROGRAM(["#include <sys/resource.h>"],[[getrusage()]])],
|
||||
[AC_MSG_RESULT([yes])],
|
||||
[CPPFLAGS="$CPPFLAGS -DNO_RUSAGE"
|
||||
AC_MSG_RESULT([no])])
|
||||
15
sci-libs/coinasl/metadata.xml
Normal file
15
sci-libs/coinasl/metadata.xml
Normal file
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person" proxied="yes">
|
||||
<email>audvare@gmail.com</email>
|
||||
<name>Andrew Udvare</name>
|
||||
</maintainer>
|
||||
<maintainer type="project" proxied="proxy">
|
||||
<email>proxy-maint@gentoo.org</email>
|
||||
<name>Proxy Maintainers</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">coin-or-tools/ThirdParty-ASL</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
Reference in New Issue
Block a user