[gentoo-commits] repo/gentoo:master commit in: sci-libs/coinor-cppad/

2022-09-04 Thread David Seifert
commit: 0e996dcb7ebfbd3bbdc26b03369a67d85e706aae
Author: David Seifert  gentoo  org>
AuthorDate: Sun Sep  4 12:22:32 2022 +
Commit: David Seifert  gentoo  org>
CommitDate: Sun Sep  4 12:22:32 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0e996dcb

sci-libs/coinor-cppad: remove boost[threads(+)] usedep

Signed-off-by: David Seifert  gentoo.org>

 sci-libs/coinor-cppad/coinor-cppad-2021.5-r1.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sci-libs/coinor-cppad/coinor-cppad-2021.5-r1.ebuild 
b/sci-libs/coinor-cppad/coinor-cppad-2021.5-r1.ebuild
index 1fcf5fe358b0..877167b85113 100644
--- a/sci-libs/coinor-cppad/coinor-cppad-2021.5-r1.ebuild
+++ b/sci-libs/coinor-cppad/coinor-cppad-2021.5-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -21,7 +21,7 @@ RESTRICT="adolc? ( test ) ipopt? ( test )"
 
 # No need for RDEPEND.
 DEPEND="
-   dev-libs/boost[threads(+)]
+   dev-libs/boost
adolc? ( sci-libs/adolc )
eigen? ( dev-cpp/eigen )
ipopt? ( sci-libs/ipopt )"



[gentoo-commits] repo/gentoo:master commit in: sci-libs/coinor-cppad/

2021-06-18 Thread David Seifert
commit: 0b2f9be7c385cfd51513086ca1121bbccb44d76e
Author: David Seifert  gentoo  org>
AuthorDate: Fri Jun 18 19:17:35 2021 +
Commit: David Seifert  gentoo  org>
CommitDate: Fri Jun 18 19:17:35 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0b2f9be7

sci-libs/coinor-cppad: Depend on dev-libs/boost:=[threads(+)]

Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: David Seifert  gentoo.org>

 ...coinor-cppad-2021.5.ebuild => coinor-cppad-2021.5-r1.ebuild} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sci-libs/coinor-cppad/coinor-cppad-2021.5.ebuild 
b/sci-libs/coinor-cppad/coinor-cppad-2021.5-r1.ebuild
similarity index 98%
rename from sci-libs/coinor-cppad/coinor-cppad-2021.5.ebuild
rename to sci-libs/coinor-cppad/coinor-cppad-2021.5-r1.ebuild
index b0f442dd2f2..1fcf5fe358b 100644
--- a/sci-libs/coinor-cppad/coinor-cppad-2021.5.ebuild
+++ b/sci-libs/coinor-cppad/coinor-cppad-2021.5-r1.ebuild
@@ -21,7 +21,7 @@ RESTRICT="adolc? ( test ) ipopt? ( test )"
 
 # No need for RDEPEND.
 DEPEND="
-   dev-libs/boost[threads]
+   dev-libs/boost[threads(+)]
adolc? ( sci-libs/adolc )
eigen? ( dev-cpp/eigen )
ipopt? ( sci-libs/ipopt )"



[gentoo-commits] repo/gentoo:master commit in: sci-libs/coinor-cppad/, sci-libs/coinor-cppad/files/

2021-02-26 Thread Sam James
commit: ca92672a0c280c20cbca4b344f871610b662c863
Author: Ionen Wolkens  gmail  com>
AuthorDate: Fri Feb 26 19:37:14 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Sat Feb 27 03:06:43 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ca92672a

sci-libs/coinor-cppad: remove old

Package-Manager: Portage-3.0.15, Repoman-3.0.2
Signed-off-by: Ionen Wolkens  gmail.com>
Signed-off-by: Sam James  gentoo.org>

 sci-libs/coinor-cppad/Manifest |   1 -
 .../coinor-cppad/coinor-cppad-20140519-r1.ebuild   |  59 --
 .../files/coinor-cppad-20140519-boost.patch|  79 
 .../files/coinor-cppad-20140519-dash.patch | 215 -
 4 files changed, 354 deletions(-)

diff --git a/sci-libs/coinor-cppad/Manifest b/sci-libs/coinor-cppad/Manifest
index 16ecbbb85d3..51f68ba1364 100644
--- a/sci-libs/coinor-cppad/Manifest
+++ b/sci-libs/coinor-cppad/Manifest
@@ -1,2 +1 @@
 DIST coinor-cppad-2021.5.tar.gz 1663397 BLAKE2B 
3ce4f5733641fac16ac00b6e49cb74e2237502eac32f592190491ddd5dcb8a41f340c1eed8529dbdecb343f7a791d4fc5ddc1e21ce9f9706f28608ac3a5e965a
 SHA512 
40cbe8dc32af9bb3b92cdd4c81e6f75424ece701df9251d4c63652998ca4cb8d50057e190a16e51333d168299f33ff2353074fa7f24f2cec29f68db53f6ae17c
-DIST cppad-20140519.gpl.tgz 2208236 BLAKE2B 
5d53891ef3b458c3914f5d59f6656290be2811fbc84ca3f9bd253ce4620b1a4b00397e1beed694cdc5284a1f74441b68520b861c90d158c4eee11d1f8927b362
 SHA512 
8f47e545bc76f66edccb9ea083ddebcb5852fa1807d727b6e1f445ca74731e74f7614a1d33b48c6eafbc5129b319e513594b415ee838bdc634f9c00a6d9a22af

diff --git a/sci-libs/coinor-cppad/coinor-cppad-20140519-r1.ebuild 
b/sci-libs/coinor-cppad/coinor-cppad-20140519-r1.ebuild
deleted file mode 100644
index 537f051053f..000
--- a/sci-libs/coinor-cppad/coinor-cppad-20140519-r1.ebuild
+++ /dev/null
@@ -1,59 +0,0 @@
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-
-AUTOTOOLS_AUTORECONF=yes
-
-inherit autotools-utils multilib
-
-MYP=cppad-${PV}
-
-DESCRIPTION="COIN-OR C++ Algorithmic Differentiation"
-HOMEPAGE="https://projects.coin-or.org/CppAD/;
-SRC_URI="http://www.coin-or.org/download/source/CppAD/${MYP}.gpl.tgz;
-
-LICENSE="GPL-3"
-SLOT="0"
-KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
-IUSE="doc examples"
-
-RDEPEND="
-   dev-libs/boost[threads]
-   sci-libs/adolc:0=
-   sci-libs/ipopt:0="
-DEPEND="${RDEPEND}
-   virtual/pkgconfig
-   doc? ( app-doc/doxygen[dot] )"
-
-S="${WORKDIR}/${MYP}"
-
-PATCHES=(
-   "${FILESDIR}"/${P}-dash.patch
-   "${FILESDIR}"/${P}-boost.patch
-   )
-
-src_configure() {
-   local myeconfargs=( $(use doc Documentation) )
-   autotools-utils_src_configure CXX_FLAGS="${CXXFLAGS}"
-}
-
-src_compile() {
-   autotools-utils_src_compile
-   if use doc; then
-   ./build.sh doxygen || die
-   fi
-}
-
-src_test() {
-   autotools-utils_src_test check test
-}
-
-src_install() {
-   use doc && HTML_DOC=( "${BUILD_DIR}"/doxydocs/html/. )
-   autotools-utils_src_install
-   if use examples; then
-   insinto /usr/share/doc/${PF}/examples
-   doins -r example/*
-   fi
-}

diff --git a/sci-libs/coinor-cppad/files/coinor-cppad-20140519-boost.patch 
b/sci-libs/coinor-cppad/files/coinor-cppad-20140519-boost.patch
deleted file mode 100644
index 7a4d3ae83ac..000
--- a/sci-libs/coinor-cppad/files/coinor-cppad-20140519-boost.patch
+++ /dev/null
@@ -1,79 +0,0 @@
- configure.ac | 18 ++
- 1 file changed, 10 insertions(+), 8 deletions(-)
-
-diff --git a/configure.ac b/configure.ac
-index 033621f..87e129a 100644
 a/configure.ac
-+++ b/configure.ac
-@@ -550,13 +550,14 @@ dnl check for boost thread library
- AC_LANG_PUSH([C++])
- LDFLAGS_save=$LDFLAGS
- CXXFLAGS_save=$CXXFLAGS
-+LIBS_save=$LIBS
- boost_thread_found='no'
- if test "$BOOST_DIR" != '' ; then
-   CXXFLAGS="-I$BOOST_DIR/include $CXXFLAGS"
- fi
- if test "$BOOST_DIR" = '' && test "$boost_thread_found" = 'no' ; then
--  bthread_lib='-lboost_thread-mt'
--  LDFLAGS="$LDFLAGS_save $bthread_lib"
-+  bthread_lib='-lboost_thread-mt -lboost_system'
-+  LIBS="$LIBS_save $bthread_lib"
-   AC_LINK_IFELSE(
-   [AC_LANG_PROGRAM(
-   [# include ],
-@@ -568,7 +569,7 @@ if test "$BOOST_DIR" = '' && test "$boost_thread_found" = 
'no' ; then
- fi
- if test "$BOOST_DIR" != '' && test "$boost_thread_found" = 'no' ; then
-   bthread_lib="$BOOST_DIR/lib/libboost_thread-mt.so"
--  LDFLAGS="$LDFLAGS_save $bthread_lib"
-+  LIBS="$LIBS_save $bthread_lib"
-   AC_LINK_IFELSE(
-   [AC_LANG_PROGRAM(
-   [# include ],
-@@ -580,7 +581,7 @@ if test "$BOOST_DIR" != '' && test "$boost_thread_found" = 
'no' ; then
- fi
- if test "$BOOST_DIR" != '' && test "$boost_thread_found" = 'no' ; then
-   bthread_lib="$BOOST_DIR/lib/libboost_thread-mt.a"
--   

[gentoo-commits] repo/gentoo:master commit in: sci-libs/coinor-cppad/files/, sci-libs/coinor-cppad/

2021-02-26 Thread Sam James
commit: 39897f1a304088d98599fd6675b0580ccb698ac6
Author: Ionen Wolkens  gmail  com>
AuthorDate: Fri Feb 26 19:13:36 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Sat Feb 27 03:06:42 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=39897f1a

sci-libs/coinor-cppad: bump to 2021.5, ported to EAPI 7 + cmake

Most old issues should be resolved or need re-test as this
is completely different now.

wrt bug #741428, tests currently pass using clang++ and default USE.

Closes: https://bugs.gentoo.org/603226
Closes: https://bugs.gentoo.org/725470
Closes: https://bugs.gentoo.org/741428
Package-Manager: Portage-3.0.15, Repoman-3.0.2
Signed-off-by: Ionen Wolkens  gmail.com>
Signed-off-by: Sam James  gentoo.org>

 sci-libs/coinor-cppad/Manifest |  1 +
 .../coinor-cppad/coinor-cppad-2021.5.ebuild| 73 ++
 .../files/coinor-cppad-2021.5-pkgconfig.patch  | 26 
 sci-libs/coinor-cppad/metadata.xml |  5 ++
 4 files changed, 105 insertions(+)

diff --git a/sci-libs/coinor-cppad/Manifest b/sci-libs/coinor-cppad/Manifest
index 674756df526..16ecbbb85d3 100644
--- a/sci-libs/coinor-cppad/Manifest
+++ b/sci-libs/coinor-cppad/Manifest
@@ -1 +1,2 @@
+DIST coinor-cppad-2021.5.tar.gz 1663397 BLAKE2B 
3ce4f5733641fac16ac00b6e49cb74e2237502eac32f592190491ddd5dcb8a41f340c1eed8529dbdecb343f7a791d4fc5ddc1e21ce9f9706f28608ac3a5e965a
 SHA512 
40cbe8dc32af9bb3b92cdd4c81e6f75424ece701df9251d4c63652998ca4cb8d50057e190a16e51333d168299f33ff2353074fa7f24f2cec29f68db53f6ae17c
 DIST cppad-20140519.gpl.tgz 2208236 BLAKE2B 
5d53891ef3b458c3914f5d59f6656290be2811fbc84ca3f9bd253ce4620b1a4b00397e1beed694cdc5284a1f74441b68520b861c90d158c4eee11d1f8927b362
 SHA512 
8f47e545bc76f66edccb9ea083ddebcb5852fa1807d727b6e1f445ca74731e74f7614a1d33b48c6eafbc5129b319e513594b415ee838bdc634f9c00a6d9a22af

diff --git a/sci-libs/coinor-cppad/coinor-cppad-2021.5.ebuild 
b/sci-libs/coinor-cppad/coinor-cppad-2021.5.ebuild
new file mode 100644
index 000..b0f442dd2f2
--- /dev/null
+++ b/sci-libs/coinor-cppad/coinor-cppad-2021.5.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+CMAKE_MAKEFILE_GENERATOR="emake" # needed for tests
+inherit cmake
+
+DESCRIPTION="COIN-OR C++ Algorithmic Differentiation"
+HOMEPAGE="https://projects.coin-or.org/CppAD/;
+SRC_URI="https://github.com/coin-or/CppAD/archive/${PV}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/CppAD-${PV}"
+
+LICENSE="EPL-2.0"
+SLOT="0/${PV}" # soname is bumped every versions
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="adolc doc eigen ipopt"
+
+# adolc currently can't build tests and ipopt fails them.
+RESTRICT="adolc? ( test ) ipopt? ( test )"
+
+# No need for RDEPEND.
+DEPEND="
+   dev-libs/boost[threads]
+   adolc? ( sci-libs/adolc )
+   eigen? ( dev-cpp/eigen )
+   ipopt? ( sci-libs/ipopt )"
+BDEPEND="
+   virtual/pkgconfig
+   doc? (
+   app-doc/doxygen[dot]
+   virtual/latex-base
+   )"
+
+PATCHES=( "${FILESDIR}"/${P}-pkgconfig.patch )
+
+src_prepare() {
+   cmake_src_prepare
+   # Gentoo uses coin/ rather than coin-or/ for includes.
+   sed -i 's/https://github.com/coin-or/CppAD/commit/6d10b8d
+with an additional fix to not have -l-lcppad_lib
+--- a/pkgconfig/CMakeLists.txt
 b/pkgconfig/CMakeLists.txt
+@@ -124,3 +124,3 @@
+ # cppad_includedir
+-LIST(GET cmake_install_libdirs 0 cppad_includedir)
++LIST(GET cmake_install_includedirs 0 cppad_includedir)
+ #
+@@ -161,2 +161,3 @@
+ ${CMAKE_CURRENT_BINARY_DIR}/cppad.pc
++@ONLY
+ )
+--- a/pkgconfig/cppad.pc.in
 b/pkgconfig/cppad.pc.in
+@@ -17,3 +17,3 @@
+ prefix=@cppad_prefix@
+-exec_prefix=$(prefix)
++exec_prefix=${prefix}
+ includedir=${prefix}/@cppad_includedir@
+@@ -30,3 +30,3 @@
+ Cflags:-I${includedir}
+-Libs:  -L{libdir} -l@cppad_lib_list@
++Libs:  -L${libdir} @cppad_lib_list@
+ Requires:

diff --git a/sci-libs/coinor-cppad/metadata.xml 
b/sci-libs/coinor-cppad/metadata.xml
index ca530df1478..be6da625a6d 100644
--- a/sci-libs/coinor-cppad/metadata.xml
+++ b/sci-libs/coinor-cppad/metadata.xml
@@ -14,6 +14,11 @@
   corresponding derivative values (of arbitrary order using either
   forward or reverse mode).
   
+  
+Add support for ADOL-C 
(sci-libs/adolc)
+Add support for Eigen (dev-cpp/eigen)
+Add support for IPOPT (sci-libs/ipopt)
+  
   
 coin-or/CppAD
   



[gentoo-commits] repo/gentoo:master commit in: sci-libs/coinor-cppad/

2021-02-26 Thread Sam James
commit: 9bc66f8a8c373023742e1e1aea674dfaacd177f5
Author: Ionen Wolkens  gmail  com>
AuthorDate: Fri Feb 26 13:47:14 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Sat Feb 27 03:06:41 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9bc66f8a

sci-libs/coinor-cppad: add github remote-id

Package-Manager: Portage-3.0.15, Repoman-3.0.2
Signed-off-by: Ionen Wolkens  gmail.com>
Signed-off-by: Sam James  gentoo.org>

 sci-libs/coinor-cppad/metadata.xml | 5 -
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/sci-libs/coinor-cppad/metadata.xml 
b/sci-libs/coinor-cppad/metadata.xml
index 0edc1f35c6e..ca530df1478 100644
--- a/sci-libs/coinor-cppad/metadata.xml
+++ b/sci-libs/coinor-cppad/metadata.xml
@@ -13,5 +13,8 @@
   function values, CppAD generates an algorithm that computes
   corresponding derivative values (of arbitrary order using either
   forward or reverse mode).
-
+  
+  
+coin-or/CppAD
+  
 



[gentoo-commits] repo/gentoo:master commit in: sci-libs/coinor-cppad/

2020-09-24 Thread Aaron Bauman
commit: a9bf4005be04a3bed6ebdcbb6737200c1362f2d7
Author: Aaron Bauman  gentoo  org>
AuthorDate: Thu Sep 24 19:08:01 2020 +
Commit: Aaron Bauman  gentoo  org>
CommitDate: Thu Sep 24 19:53:22 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a9bf4005

sci-libs/coinor-cppad: drop old EAPI=5

Signed-off-by: Aaron Bauman  gentoo.org>

 sci-libs/coinor-cppad/Manifest |  1 -
 sci-libs/coinor-cppad/coinor-cppad-20140204.ebuild | 51 --
 sci-libs/coinor-cppad/coinor-cppad-20140519.ebuild | 51 --
 3 files changed, 103 deletions(-)

diff --git a/sci-libs/coinor-cppad/Manifest b/sci-libs/coinor-cppad/Manifest
index 41262c6e383..674756df526 100644
--- a/sci-libs/coinor-cppad/Manifest
+++ b/sci-libs/coinor-cppad/Manifest
@@ -1,2 +1 @@
-DIST cppad-20140204.gpl.tgz 2189463 BLAKE2B 
559162f45ebcb9cf11e0df5293430c5ce93c8993205c088639968ca52091a51e8d03a4e19a37d6c8e5949bc2b65f9eff7207d8e70f745e0c1748cb1dec963987
 SHA512 
0cead73e8d2e2da43ea22c003c0feccadefd2f66efbb58df45b79bff51181ad8646063fd053af8d377ce1732609c55175fd53c00142eb6635018878541f6d2ed
 DIST cppad-20140519.gpl.tgz 2208236 BLAKE2B 
5d53891ef3b458c3914f5d59f6656290be2811fbc84ca3f9bd253ce4620b1a4b00397e1beed694cdc5284a1f74441b68520b861c90d158c4eee11d1f8927b362
 SHA512 
8f47e545bc76f66edccb9ea083ddebcb5852fa1807d727b6e1f445ca74731e74f7614a1d33b48c6eafbc5129b319e513594b415ee838bdc634f9c00a6d9a22af

diff --git a/sci-libs/coinor-cppad/coinor-cppad-20140204.ebuild 
b/sci-libs/coinor-cppad/coinor-cppad-20140204.ebuild
deleted file mode 100644
index 77d4f5ebc89..000
--- a/sci-libs/coinor-cppad/coinor-cppad-20140204.ebuild
+++ /dev/null
@@ -1,51 +0,0 @@
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-
-inherit autotools-utils multilib
-
-MYP=cppad-${PV}
-
-DESCRIPTION="COIN-OR C++ Algorithmic Differentiation"
-HOMEPAGE="https://projects.coin-or.org/CppAD/;
-SRC_URI="http://www.coin-or.org/download/source/CppAD/${MYP}.gpl.tgz;
-
-LICENSE="GPL-3"
-SLOT="0"
-KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
-IUSE="doc examples"
-
-RDEPEND="
-   sci-libs/adolc:=
-   sci-libs/ipopt:="
-DEPEND="${RDEPEND}
-   virtual/pkgconfig
-   doc? ( app-doc/doxygen[dot] )"
-
-S="${WORKDIR}/${MYP}"
-
-src_configure() {
-   local myeconfargs=( $(use doc Documentation) )
-   autotools-utils_src_configure CXX_FLAGS="${CXXFLAGS}"
-}
-
-src_compile() {
-   autotools-utils_src_compile
-   if use doc; then
-   ./build.sh doxygen || die
-   fi
-}
-
-src_test() {
-   autotools-utils_src_test check test
-}
-
-src_install() {
-   use doc && HTML_DOC=( "${BUILD_DIR}"/doxydocs/html/. )
-   autotools-utils_src_install
-   if use examples; then
-   insinto /usr/share/doc/${PF}/examples
-   doins -r example/*
-   fi
-}

diff --git a/sci-libs/coinor-cppad/coinor-cppad-20140519.ebuild 
b/sci-libs/coinor-cppad/coinor-cppad-20140519.ebuild
deleted file mode 100644
index 8294efcbd21..000
--- a/sci-libs/coinor-cppad/coinor-cppad-20140519.ebuild
+++ /dev/null
@@ -1,51 +0,0 @@
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-
-inherit autotools-utils multilib
-
-MYP=cppad-${PV}
-
-DESCRIPTION="COIN-OR C++ Algorithmic Differentiation"
-HOMEPAGE="https://projects.coin-or.org/CppAD/;
-SRC_URI="http://www.coin-or.org/download/source/CppAD/${MYP}.gpl.tgz;
-
-LICENSE="GPL-3"
-SLOT="0"
-KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
-IUSE="doc examples"
-
-RDEPEND="
-   sci-libs/adolc:0=
-   sci-libs/ipopt:0="
-DEPEND="${RDEPEND}
-   virtual/pkgconfig
-   doc? ( app-doc/doxygen[dot] )"
-
-S="${WORKDIR}/${MYP}"
-
-src_configure() {
-   local myeconfargs=( $(use doc Documentation) )
-   autotools-utils_src_configure CXX_FLAGS="${CXXFLAGS}"
-}
-
-src_compile() {
-   autotools-utils_src_compile
-   if use doc; then
-   ./build.sh doxygen || die
-   fi
-}
-
-src_test() {
-   autotools-utils_src_test check test
-}
-
-src_install() {
-   use doc && HTML_DOC=( "${BUILD_DIR}"/doxydocs/html/. )
-   autotools-utils_src_install
-   if use examples; then
-   insinto /usr/share/doc/${PF}/examples
-   doins -r example/*
-   fi
-}