summaryrefslogtreecommitdiff
path: root/sci-libs/adolc
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /sci-libs/adolc
reinit the tree, so we can have metadata
Diffstat (limited to 'sci-libs/adolc')
-rw-r--r--sci-libs/adolc/Manifest19
-rw-r--r--sci-libs/adolc/adolc-2.4.1.ebuild38
-rw-r--r--sci-libs/adolc/adolc-2.5.0.ebuild44
-rw-r--r--sci-libs/adolc/adolc-2.5.2.ebuild46
-rw-r--r--sci-libs/adolc/adolc-2.6.2.ebuild53
-rw-r--r--sci-libs/adolc/adolc-2.6.3.ebuild53
-rw-r--r--sci-libs/adolc/adolc-9999.ebuild60
-rw-r--r--sci-libs/adolc/files/adolc-2.4.0-no-colpack.patch24
-rw-r--r--sci-libs/adolc/files/adolc-2.5.0-no-colpack.patch57
-rw-r--r--sci-libs/adolc/files/adolc-2.5.0-pkgconfig-no-ldflags.patch9
-rw-r--r--sci-libs/adolc/files/adolc-2.5.2-dash.patch148
-rw-r--r--sci-libs/adolc/files/adolc-2.6.2-dash.patch146
-rw-r--r--sci-libs/adolc/metadata.xml17
13 files changed, 714 insertions, 0 deletions
diff --git a/sci-libs/adolc/Manifest b/sci-libs/adolc/Manifest
new file mode 100644
index 000000000000..0f824dda406a
--- /dev/null
+++ b/sci-libs/adolc/Manifest
@@ -0,0 +1,19 @@
+AUX adolc-2.4.0-no-colpack.patch 580 SHA256 75b7b059336059383c8e0e08da8176f7f8084576397341858a93a88b2c6817cd SHA512 974e538343c377ce286c63b5206a5c3c33d9b5995addac07860ca52f6e1d3ca42d1fe8c1384b6d5d0ac39c062d8dc1f984262172b347f273c0e4c7d43fd120a2 WHIRLPOOL aedcd02d2f972d8cf7f7db53a3851f49f23f5d3896d2da9fa632971f29f55a954d99874095503f26889a8517882cd632758d39e972e43b4d103bbdd0c4388e13
+AUX adolc-2.5.0-no-colpack.patch 1424 SHA256 4d50bdcacb5dcff052011b4db2bb2fd4ea86b9e5a24f6137f30d50192596bd30 SHA512 826023e0066620a1885a462c31cb5be80d880f917df26c007564e327b8be8513621e56b601b6f9bfcec0fc617a15eea5016436aa08bebb0346254089a5d850ec WHIRLPOOL c1354e223d7d502ca0d89efd34a61460876d547110b083e4729aede1bbd5c0a20834a338ff5d1792372d40489d62cb8988daefe8d69c60933a99b59e0ff4a435
+AUX adolc-2.5.0-pkgconfig-no-ldflags.patch 364 SHA256 e7b9fe46cdecda9e91c4812ad6b1e15797460b1cbe55993342b8507f70477fa9 SHA512 914bd01428fc07f50985afc076722778029835048883eade3730878c2d103cd29c288656d524ad3895416e94b50b5db2f53e35fdab0ed2a0f364669bf304af41 WHIRLPOOL 0283c9ebcb2d5ddb4f20b14a3e2792fad1b1a934ff5f9ae12154b36c21118986cb3bb0d6843de8733343548f24d57025918dc10cd8549d4eecbc0b5b7b97c92c
+AUX adolc-2.5.2-dash.patch 5020 SHA256 1869d2b2b9c5050469924dc328a7e64bee219834d87649cb856f59f8c6d1f2f5 SHA512 3240473df5fc4aa03edb5d0a5c61cf086b76065400bb735cb1b994a2c28cd69e7a4e7be87fe1cb044a329a08c787777bf3c5276acaf4ce2a193f2f44bd05335e WHIRLPOOL 9bd03e3d64139ee320ccf0502449139153403bcc9232eee88b54ff56d79f95a021af261148e7116c9e8f13f56d533fd1f331751561084878e7a2843829f428a3
+AUX adolc-2.6.2-dash.patch 4516 SHA256 1e9a749a6dd9c88db54afb10475f62ab779baf6939650be99d0fcf4eff199a61 SHA512 9b904d8c0ab3c286af27b293b5ffe516b9c1da53169702f94a9213496b6626e1a587e8ab8d9d25b983872c1a97620a8d5386d9053ba1a4c973ef5e145f655bc5 WHIRLPOOL 53c7d8ac35feba2171fc2dd5c239c37c28c8c11f0f89758d87bc8ccc4728f294752d087968fcca2433b0ac559bb7b37488d4ae2ce174c7fa52b53e4eb5161fc2
+DIST ADOL-C-2.4.1.tgz 2210414 SHA256 05bf946cc1764e2b3fa7e708ccc4303f289699d9f36b9d525f6a9a6129b4d578 SHA512 5e5135ca587d159510bf77338fdff3d324f4d32c4ec6f8cf64ddc92253b427b8ee26a30bc1d83fe18121bbfdc7454c3536f58849c0c335e1b240e39d46acdccc WHIRLPOOL cd66a895dc3cb1f6f4f705a9fbce5a93dcb6856b6288704c3d3420be7f90e57296acd3fb2ea897ba5362e706429ec56b070bf0baa7094edcbf46c92d535bc492
+DIST ADOL-C-2.5.0.tgz 2313753 SHA256 908753153e0eca31752222150977eabd8ab97c4ab8fcd19f92667aba69a048a6 SHA512 e680565ed911bc15165c27281428c1daf35e95292dc3abc64aab6633068ec0d7e7ae626e692e0574b2c696a0c4aec2c79b2b02c3760acd2bd1b579a4c42d9585 WHIRLPOOL c0301c9a8f1357aa06be8e6a53bee9825a5d56cd31a2734862bcfd1f7c944935a4cd2c8c2ed49028493cb7c998008c9853b2d4bd7f6e0519ed353bbd3b7d0a8c
+DIST ADOL-C-2.5.2.tgz 2320010 SHA256 2fa514d9799989d6379738c2bcf75070d9834e4d227eb32a5b278840893b2af9 SHA512 3d2ef6e42504de9e9c1b5777afda8ece83fa61ab7c22fd471dce6bcb74af0a789d37cd2a6c9c9ead13f6c78e07ba985e7d14e79bcdf35fa56f8e73a2411905b5 WHIRLPOOL 55043cabe44b9913a7fba73ddaf0d64caa234d7002582d78dd9cfc05510ce3fbcb6dd3d1c40a2d6425f5ee1b7cc986d525d065671191096fbb303e122089c954
+DIST ADOL-C-2.6.2.tgz 2413458 SHA256 f6326e7ba994d02074816132d4461915221069267c31862b31fab7020965c658 SHA512 7825b57a06ea146b5095f3345592566887622e4a8b93bf8ef946083486652b5ecd6a44b7b5f1c7a5b5c45cfdb14d78ab2dd5f4d228114226046e99a46257f5be WHIRLPOOL 24a2013e99b2fcbab348f2051a5592b5040ccd0349801838397a60833ba3baf36a21f125234bb8a721dcda7e504f3f4e79e792bdf8ad4965dae6158ccbef0054
+DIST ADOL-C-2.6.3.tgz 2416928 SHA256 6ed74580695a0d2c960581e5430ebfcd380eb5da9337daf488bf2e89039e9c21 SHA512 e3c44b1f8ab5211a8a3c3163124e35b6d1e9551672ab4944d983dd3117f609d512c1b08c61e535dc4d50089295ee565bec07aaca67aa88b57b17bc3906573262 WHIRLPOOL e3d7d175e3d7af2fc6042011007a1a15f9743ee00c4bf9859157abbd42360a87b1caf1d4f8ce7717264db628cca1a0f75e2d4137a6c14ff5472877db61bd024e
+EBUILD adolc-2.4.1.ebuild 863 SHA256 69deccfa04201b4694e040d51d8211aadd629379a90a1b830280f9f66566c084 SHA512 c409dd49db0d5c1043a50aae33d6dfd07e24c1f62f18abd4906ea7468944ec46f89d1e80be97af6c166b0cf1d00a2a38383555e7d1e76e062a136b32ab98006d WHIRLPOOL fc6dc97ea3236cfe65c21a21908aafc24cb11018c2de189dbe842d8ae7f2665be4d3a8ba971a85e453eaf8368beec7001fd79f96d9953fb78da58fbeb6c95ab9
+EBUILD adolc-2.5.0.ebuild 990 SHA256 4fbb01f0484b1d813fd41e45f230964012946a30b39cfe38bb208a715bb05818 SHA512 7ffd2b636f10003e8adec6c7a935c78f16501db370d42613d69e7984b8e115f9d883417e84d05b572d5d4349c812e4f7ca56643e2d58e0d30949a3811ccf83b7 WHIRLPOOL 4fa7ddbfebb41a4b09f5b7eab2e5a02df55a34783c204494f1c4a230586f36ee3b099b1afad3c73ba410d33b16d6106c13be15dd5c85d0ef56a64b4fe3680fa7
+EBUILD adolc-2.5.2.ebuild 1053 SHA256 a342f58cc3900d4fd2617d34830a7aaf77a3587a4a1eb4912cdd686465d4f5a0 SHA512 bfdc3010c409ac7365ff8b9dfdb96c4ed2cf78989bdc0f793d496db81860131e88f526485d8613fa72a1936a5d76a3c5a648be855afb15be27d53bcf60ccfb27 WHIRLPOOL 7218426dcbfb76568efd8d58758cee0a19df07157f972e089df4a73c7b87fae92e06c3dc4c65dc142d5019b7b66f0675e3100f035236c5d975a3523a68dd1175
+EBUILD adolc-2.6.2.ebuild 1093 SHA256 7574cfbcb345f8c8a322c1e8e8bcd79dbc6eb4a105aa02c6f436eb66990de2b3 SHA512 e5463934dd35be1828f937f2e36dee69667a8354128ccef478e23c01fd586bc760a047d2f08ec824445f44ada1f440bcf0a0a3377cff4a2c026d869b627dc506 WHIRLPOOL 9ea325747d5a1eb91e5cf1c85a5a38eab97dc80ac618a146fc962303c3a17da73591c920dbf85e0d9e5456c81c712eb3c4b44bacfcb49e75830befcccb437c8a
+EBUILD adolc-2.6.3.ebuild 1098 SHA256 677976f3f9d14634edf3e37a21cfe41be86d4b51662b7d0af1d19d53671b2420 SHA512 115b5b68777e7d84c2e9811387bd1ecf925103214fdf9be6f936cb691eed9c8f827dc4a5a6a9fafebe1bdff8956e2cbb65f19b54b1d1fcd81739ddea7733f457 WHIRLPOOL 820012cf1a5e6c39052325d247ace072bd6a36ead1b35a98d468d119efa35aacc6803ff706ab59753bc12758277bfc6e695ec7f173e09775bee591ad0ebac630
+EBUILD adolc-9999.ebuild 1236 SHA256 39bf004031bb8a508d432302cda5ab5ddd9b503499556cc59c10642f2606aaad SHA512 86e6214629709111d6aaf31d4b5e9faeab0ed8ff8f5c42591a636754c18ab459e02efae12281e3a2b0c68777a6baa959d28be8ae77872dbb2f1b922380e12bf8 WHIRLPOOL 5c0097688b0066e55e512f43c5a10249a7729fdd11f47cf5a75f167005d4d32fd55cfe0d36c99263333d067cd33462d67f23c223d1a8aabcc50a899a034094b6
+MISC ChangeLog 2978 SHA256 aaee6df17ee59b7dd69a01bd6666ba7367200b7aa638feaf8c457b813f88c93d SHA512 e0ed2ecc19c6bbd538cd738aaf65ad097d55cdbc4797cc1bd91d0e5c8c668d0e0284c9835f31b6cda8ecf0c94e959ac2c76b44e92d735f04067aa6ca8fa49efd WHIRLPOOL 7a8862f07c3592ea4e3fadce9f6628f1cb668d509906bb7edc0b1ddd0c33ec535ad8d53976a6f823f4408642b78133a47523ca777f391a4861809f5e51623511
+MISC ChangeLog-2015 2120 SHA256 5df62a490dfd1acc2b73fae163cb4a3d09d2e2b04cbd763e01a26aab01ee143e SHA512 f2c728324215332c431e88deb3bb8911a573a8138fe101549b58f83c885830c75c8edb397ce8b63cd97519611bde97d9c54db14c9d5027fb6755498077a55fb1 WHIRLPOOL a90579d9e7ab0693d4dd3a6bc15936627c46656482b5ee42e7bb2529c60f0e3de38989aed890d06bd9b719814aaf0f4e4d71f40dfd22cfe1b43d2e8ed050139f
+MISC metadata.xml 651 SHA256 1e4452cfee25bf661f2a26058ed36fdfaaf2b69e88fb2ee884786999ee06f07d SHA512 bab109356a0cfc40b0c21518628774bdbb35874247fa71baf12a6755a41fc6d6cd5a8551ae568f3d24e84d7a5ef4026ea2cbda182724ed78d0d962b0c5a80c89 WHIRLPOOL 80e2efe5ae5573db0d64de59a192648e720858ae771422ae6d91650c4da393eca51fdd3a16fe5d712481c80f1865aab2d5165ffad499b01d2af636d66a44106a
diff --git a/sci-libs/adolc/adolc-2.4.1.ebuild b/sci-libs/adolc/adolc-2.4.1.ebuild
new file mode 100644
index 000000000000..d8eda2e65133
--- /dev/null
+++ b/sci-libs/adolc/adolc-2.4.1.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+AUTOTOOLS_AUTORECONF=yes
+AUTOTOOLS_IN_SOURCE_BUILD=yes
+inherit autotools-utils toolchain-funcs
+
+MYPN=ADOL-C
+
+DESCRIPTION="Automatic differentiation system for C/C++"
+HOMEPAGE="https://projects.coin-or.org/ADOL-C/"
+SRC_URI="http://www.coin-or.org/download/source/${MYPN}/${MYPN}-${PV}.tgz"
+
+LICENSE="|| ( EPL-1.0 GPL-2 )"
+SLOT="0/1"
+KEYWORDS="amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="sparse static-libs"
+
+RDEPEND="sparse? ( sci-libs/colpack )"
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}/${MYPN}-${PV}"
+
+PATCHES=( "${FILESDIR}"/${PN}-2.4.0-no-colpack.patch )
+
+src_configure() {
+ local myeconfargs=(
+ $(use_enable sparse)
+ $(use_with sparse colpack "${EPREFIX}"/usr)
+ )
+ autotools-utils_src_configure
+}
+
+src_test() {
+ autotools-utils_src_test test
+}
diff --git a/sci-libs/adolc/adolc-2.5.0.ebuild b/sci-libs/adolc/adolc-2.5.0.ebuild
new file mode 100644
index 000000000000..8b54bd951b7b
--- /dev/null
+++ b/sci-libs/adolc/adolc-2.5.0.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+AUTOTOOLS_AUTORECONF=yes
+#AUTOTOOLS_IN_SOURCE_BUILD=yes
+
+inherit autotools-utils toolchain-funcs
+
+MYPN=ADOL-C
+
+DESCRIPTION="Automatic differentiation system for C/C++"
+HOMEPAGE="https://projects.coin-or.org/ADOL-C/"
+SRC_URI="http://www.coin-or.org/download/source/${MYPN}/${MYPN}-${PV}.tgz"
+
+LICENSE="|| ( EPL-1.0 GPL-2 )"
+SLOT="0/1"
+KEYWORDS="~amd64 ~hppa ~x86 ~amd64-linux ~x86-linux"
+IUSE="mpi sparse static-libs"
+
+RDEPEND="mpi? ( sys-cluster/ampi:0= )
+ sparse? ( sci-libs/colpack:0= )"
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}/${MYPN}-${PV}"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-2.5.0-no-colpack.patch
+ "${FILESDIR}"/${PN}-2.5.0-pkgconfig-no-ldflags.patch
+)
+
+src_configure() {
+ local myeconfargs=(
+ $(use_enable mpi ampi)
+ $(use_enable sparse)
+ $(use_with sparse colpack "${EPREFIX}"/usr)
+ )
+ autotools-utils_src_configure
+}
+
+src_test() {
+ autotools-utils_src_test test
+}
diff --git a/sci-libs/adolc/adolc-2.5.2.ebuild b/sci-libs/adolc/adolc-2.5.2.ebuild
new file mode 100644
index 000000000000..b625ae76398f
--- /dev/null
+++ b/sci-libs/adolc/adolc-2.5.2.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+AUTOTOOLS_AUTORECONF=yes
+#AUTOTOOLS_IN_SOURCE_BUILD=yes
+
+inherit autotools-utils toolchain-funcs
+
+MYPN=ADOL-C
+
+DESCRIPTION="Automatic differentiation system for C/C++"
+HOMEPAGE="https://projects.coin-or.org/ADOL-C/"
+SRC_URI="http://www.coin-or.org/download/source/${MYPN}/${MYPN}-${PV}.tgz"
+
+LICENSE="|| ( EPL-1.0 GPL-2 )"
+SLOT="0/1"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="mpi sparse static-libs"
+
+RDEPEND="
+ mpi? ( sys-cluster/ampi:0= )
+ sparse? ( sci-libs/colpack:0= )"
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}/${MYPN}-${PV}"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-2.5.0-no-colpack.patch
+ "${FILESDIR}"/${PN}-2.5.0-pkgconfig-no-ldflags.patch
+ "${FILESDIR}"/${P}-dash.patch
+)
+
+src_configure() {
+ local myeconfargs=(
+ $(use_enable mpi ampi)
+ $(use_enable sparse)
+ $(use_with sparse colpack "${EPREFIX}"/usr)
+ )
+ autotools-utils_src_configure
+}
+
+src_test() {
+ autotools-utils_src_test test
+}
diff --git a/sci-libs/adolc/adolc-2.6.2.ebuild b/sci-libs/adolc/adolc-2.6.2.ebuild
new file mode 100644
index 000000000000..52b9d2868659
--- /dev/null
+++ b/sci-libs/adolc/adolc-2.6.2.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools toolchain-funcs eutils
+
+MYPN=ADOL-C
+
+DESCRIPTION="Automatic differentiation system for C/C++"
+HOMEPAGE="https://projects.coin-or.org/ADOL-C/"
+SRC_URI="http://www.coin-or.org/download/source/${MYPN}/${MYPN}-${PV}.tgz"
+
+LICENSE="|| ( EPL-1.0 GPL-2 )"
+SLOT="0/2"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="mpi sparse static-libs"
+
+RDEPEND="
+ mpi? ( sys-cluster/ampi:0= )
+ sparse? ( sci-libs/colpack:0= )
+"
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}/${MYPN}-${PV}"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-2.5.0-no-colpack.patch
+ "${FILESDIR}"/${PN}-2.5.0-pkgconfig-no-ldflags.patch
+ "${FILESDIR}"/${PN}-2.6.2-dash.patch
+)
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ $(use_enable static-libs static) \
+ $(use_enable mpi ampi) \
+ $(use_enable sparse) \
+ $(use_with sparse colpack "${EPREFIX}"/usr)
+}
+
+src_test() {
+ emake test
+}
+
+src_install() {
+ default
+ use static-libs || prune_libtool_files --all
+}
diff --git a/sci-libs/adolc/adolc-2.6.3.ebuild b/sci-libs/adolc/adolc-2.6.3.ebuild
new file mode 100644
index 000000000000..eb2ddb931e3d
--- /dev/null
+++ b/sci-libs/adolc/adolc-2.6.3.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools toolchain-funcs eutils
+
+MYPN=ADOL-C
+
+DESCRIPTION="Automatic differentiation system for C/C++"
+HOMEPAGE="https://projects.coin-or.org/ADOL-C/"
+SRC_URI="http://www.coin-or.org/download/source/${MYPN}/${MYPN}-${PV}.tgz"
+
+LICENSE="|| ( EPL-1.0 GPL-2 )"
+SLOT="0/2"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="mpi sparse static-libs"
+
+RDEPEND="
+ mpi? ( sys-cluster/ampi:0= )
+ sparse? ( sci-libs/colpack:0= )
+"
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}/${MYPN}-${PV}"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-2.5.0-no-colpack.patch
+ "${FILESDIR}"/${PN}-2.5.0-pkgconfig-no-ldflags.patch
+ "${FILESDIR}"/${PN}-2.6.2-dash.patch
+)
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ $(use_enable static-libs static) \
+ $(use_enable mpi ampi) \
+ $(use_enable sparse) \
+ $(use_with sparse colpack "${EPREFIX}"/usr)
+}
+
+src_test() {
+ emake test
+}
+
+src_install() {
+ default
+ use static-libs || prune_libtool_files --all
+}
diff --git a/sci-libs/adolc/adolc-9999.ebuild b/sci-libs/adolc/adolc-9999.ebuild
new file mode 100644
index 000000000000..c029efc2ea29
--- /dev/null
+++ b/sci-libs/adolc/adolc-9999.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools toolchain-funcs eutils git-r3
+
+MYPN=ADOL-C
+
+DESCRIPTION="Automatic differentiation system for C/C++"
+HOMEPAGE="https://projects.coin-or.org/ADOL-C/"
+
+if [[ ${PV} = *9999* ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://gitlab.com/adol-c/adol-c.git"
+ SRC_URI=""
+ KEYWORDS=""
+else
+ SRC_URI="http://www.coin-or.org/download/source/${MYPN}/${MYPN}-${PV}.tgz"
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc64 ~x86 ~amd64-linux ~x86-linux"
+ S="${WORKDIR}/${MYPN}-${PV}"
+fi
+
+LICENSE="|| ( EPL-1.0 GPL-2 )"
+SLOT="0/2"
+IUSE="mpi sparse static-libs"
+
+RDEPEND="
+ mpi? ( sys-cluster/ampi:0= )
+ sparse? ( sci-libs/colpack:0= )
+"
+DEPEND="${RDEPEND}"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-2.5.0-no-colpack.patch
+ "${FILESDIR}"/${PN}-2.5.0-pkgconfig-no-ldflags.patch
+ "${FILESDIR}"/${PN}-2.6.2-dash.patch
+)
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ $(use_enable static-libs static) \
+ $(use_enable mpi ampi) \
+ $(use_enable sparse) \
+ $(use_with sparse colpack "${EPREFIX}"/usr)
+}
+
+src_test() {
+ emake test
+}
+
+src_install() {
+ default
+ use static-libs || prune_libtool_files --all
+}
diff --git a/sci-libs/adolc/files/adolc-2.4.0-no-colpack.patch b/sci-libs/adolc/files/adolc-2.4.0-no-colpack.patch
new file mode 100644
index 000000000000..e3b5a4a2ca5f
--- /dev/null
+++ b/sci-libs/adolc/files/adolc-2.4.0-no-colpack.patch
@@ -0,0 +1,24 @@
+do not test colpack when user says no even when it is installed
+
+--- configure.ac.orig 2012-07-19 13:04:37.426461811 -0700
++++ configure.ac 2012-07-19 13:06:06.477916144 -0700
+@@ -281,7 +281,7 @@
+ COLPACK_LIBDIR=""
+ COLPACK_LIBS="-lColPack"
+ ])
+-
++if test x$colpack != xno; then
+ AC_LANG_PUSH([C++])
+ save_CPPFLAGS="$CPPFLAGS"
+ save_LIBS="$LIBS"
+@@ -301,7 +301,9 @@
+ CPPFLAGS="$save_CPPFLAGS"
+ LIBS="$save_LIBS"
+ AC_LANG_POP([C++])
+-
++else
++ have_colpack=no
++fi
+ AM_CONDITIONAL(HAVE_LIBCOLPACK,[test x$have_colpack = xyes])
+ if test x$have_colpack = xyes; then
+ sparse=yes
diff --git a/sci-libs/adolc/files/adolc-2.5.0-no-colpack.patch b/sci-libs/adolc/files/adolc-2.5.0-no-colpack.patch
new file mode 100644
index 000000000000..779890c8cf2b
--- /dev/null
+++ b/sci-libs/adolc/files/adolc-2.5.0-no-colpack.patch
@@ -0,0 +1,57 @@
+ autoconf/colpack.m4 | 23 +++++++++++++----------
+ 1 file changed, 13 insertions(+), 10 deletions(-)
+
+diff --git a/autoconf/colpack.m4 b/autoconf/colpack.m4
+index 9792786..bd4ba5e 100644
+--- a/autoconf/colpack.m4
++++ b/autoconf/colpack.m4
+@@ -8,20 +8,20 @@ AC_ARG_WITH(colpack,
+ AS_HELP_STRING([--with-colpack=DIR],[path to the colpack library and headers [default=system libraries]])],
+ [
+ colpack=$withval
+-COLPACK_CFLAGS="-I$colpack/include"
+-if test x${_lib} != xlib ; then
+- D[[0]]="$colpack/${_lib}"
+- D[[1]]="$colpack/lib"
+-else
+- D[[0]]="$colpack/${_lib}"
+-fi
+ ],
+ [
+ COLPACK_CFLAGS=""
+ COLPACK_LIBS="-lColPack"
+ D[[0]]=""
+ ])
+-
++if test x$colpack != xno; then
++COLPACK_CFLAGS="-I$colpack/include"
++if test x${_lib} != xlib ; then
++ D[[0]]="$colpack/${_lib}"
++ D[[1]]="$colpack/lib"
++else
++ D[[0]]="$colpack/${_lib}"
++fi
+ AC_LANG_PUSH([C++])
+ save_CXXFLAGS="$CXXFLAGS"
+ save_CPPFLAGS="$CPPFLAGS"
+@@ -33,8 +33,8 @@ have_colpackheaders=no
+ CPPFLAGS="$save_CPPFLAGS"
+ CXXFLAGS="$save_CXXFLAGS"
+ ])
+-for ((i=0; i < ${#D[@]} ; i++)); do
+-COLPACK_LIBDIR="${D[[$i]]}"
++for i in ${D[@]}; do
++COLPACK_LIBDIR="${i}"
+ if test -n "$COLPACK_LIBDIR" ; then
+ COLPACK_LIBS="-L$COLPACK_LIBDIR -lColPack -Wl,-rpath,$COLPACK_LIBDIR"
+ fi
+@@ -56,6 +56,9 @@ else
+ fi
+ done
+ AC_LANG_POP([C++])
++else
++ have_colpack=no
++fi
+
+ AM_CONDITIONAL(HAVE_LIBCOLPACK,[test x$have_colpack = xyes])
+ if test x$have_colpack = xyes; then
diff --git a/sci-libs/adolc/files/adolc-2.5.0-pkgconfig-no-ldflags.patch b/sci-libs/adolc/files/adolc-2.5.0-pkgconfig-no-ldflags.patch
new file mode 100644
index 000000000000..258f835ca9e8
--- /dev/null
+++ b/sci-libs/adolc/files/adolc-2.5.0-pkgconfig-no-ldflags.patch
@@ -0,0 +1,9 @@
+--- a/adolclib.pc.in 2014-05-21 09:09:10.060824555 -0700
++++ b/adolclib.pc.in 2014-05-21 09:09:10.060824555 -0700
+@@ -7,5 +7,5 @@
+ Version: @PACKAGE_VERSION@
+ Description: Algorithmic Differentiation Library for C/C++
+ Requires:
+-Libs: -L${libdir} -l@adolclib@ -Wl,-rpath,${libdir} @LDFLAGS@ @LIBS@
++Libs: -L${libdir} -l@adolclib@ @LIBS@
+ Cflags: -I${includedir}
diff --git a/sci-libs/adolc/files/adolc-2.5.2-dash.patch b/sci-libs/adolc/files/adolc-2.5.2-dash.patch
new file mode 100644
index 000000000000..3aa5a3035a14
--- /dev/null
+++ b/sci-libs/adolc/files/adolc-2.5.2-dash.patch
@@ -0,0 +1,148 @@
+ configure.ac | 45 +++++++++++++++++----------------------------
+ 1 file changed, 17 insertions(+), 28 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index 926832c..1310025 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -29,12 +29,12 @@ AM_SILENT_RULES([yes])
+
+ adolclib=adolc
+
+-if test "x$CFLAGS" == x ; then
++if test "x$CFLAGS" = x ; then
+ ac_shell_cflags="not_set"
+ else
+ ac_shell_cflags="$CFLAGS"
+ fi
+-if test "x$CXXFLAGS" == x ; then
++if test "x$CXXFLAGS" = x ; then
+ ac_shell_cxxflags="not_set"
+ else
+ ac_shell_cxxflags="$CXXFLAGS"
+@@ -225,12 +225,12 @@ AS_HELP_STRING([--enable-harddebug],[enable ADOL-C hard debug mode
+ AC_MSG_RESULT(no)
+ ])
+
+-if test x$adolc_harddebug == xyes ; then
++if test x$adolc_harddebug = xyes ; then
+ adolc_debug=yes
+ AC_DEFINE(ADOLC_HARDDEBUG,1,[ADOL-C hard debug mode])
+ fi
+
+-if test x$adolc_debug == xyes ; then
++if test x$adolc_debug = xyes ; then
+ AC_DEFINE(ADOLC_DEBUG,1,[ADOL-C debug mode])
+ fi
+
+@@ -248,7 +248,7 @@ AS_HELP_STRING([--disable-stdczero],[adouble default constructor does not initia
+ AC_MSG_RESULT(yes)
+ ])
+
+-if test x$adolc_stdczero == xyes; then
++if test x$adolc_stdczero = xyes; then
+ AC_DEFINE(ADOLC_ADOUBLE_STDCZERO,1,[ADOL-C adouble zeroing mode])
+ fi
+
+@@ -265,7 +265,7 @@ AS_HELP_STRING([--enable-lateinit],[adouble constructors need to be called. With
+ AC_MSG_RESULT(no)
+ ])
+
+-if test x$adolc_late_init == xyes; then
++if test x$adolc_late_init = xyes; then
+ AC_DEFINE(ADOLC_ADOUBLE_LATEINIT,1,[ADOL-C adouble late initialization mode])
+ fi
+
+@@ -282,7 +282,7 @@ AS_HELP_STRING([--enable-tserrno],[use errno as thread number cache [default=no]
+ AC_MSG_RESULT(no)
+ ])
+
+-if test x$adolc_tserrno == xyes ; then
++if test x$adolc_tserrno = xyes ; then
+ AC_DEFINE(ADOLC_THREADSAVE_ERRNO,1,[ADOL-C thread save errno mode])
+ fi
+
+@@ -351,8 +351,8 @@ AC_ARG_WITH(cflags,
+ [AS_HELP_STRING([--with-cflags=FLAGS],
+ [use CFLAGS=FLAGS (default: -O2)])],
+ [ac_adolc_cflags="$withval"
+- if test x${adolc_debug} == xyes ||
+- test x${adolc_harddebug} == xyes ; then
++ if test "x${adolc_debug}" = xyes ||
++ test "x${adolc_harddebug}" = xyes ; then
+ ac_adolc_cflags="$ac_adolc_cflags -g -O0"
+ fi
+ ac_adolc_cflags="$ac_adolc_cflags $ac_adolc_openmpflag"
+@@ -360,8 +360,8 @@ AC_ARG_WITH(cflags,
+ AC_MSG_RESULT($ac_adolc_cflags)],
+ [if test "$ac_shell_cflags" = "not_set"; then
+ ac_adolc_cflags="-O2"
+- if test x${adolc_debug} == xyes ||
+- test x${adolc_harddebug} == xyes ; then
++ if test "x${adolc_debug}" = xyes ||
++ test "x${adolc_harddebug}" = xyes ; then
+ ac_adolc_cflags="-g -O0 -Wall -ansi"
+ fi
+ else
+@@ -377,8 +377,8 @@ AC_ARG_WITH(cxxflags,
+ [AS_HELP_STRING([--with-cxxflags=FLAGS],
+ [use CXXFLAGS=FLAGS (default: -O2)])],
+ [ac_adolc_cxxflags="$withval"
+- if test x${adolc_debug} == xyes ||
+- test x${adolc_harddebug} == xyes ; then
++ if test x${adolc_debug} = xyes ||
++ test x${adolc_harddebug} = xyes ; then
+ ac_adolc_cxxflags="$ac_adolc_cxxflags -g -O0"
+ fi
+ ac_adolc_cxxflags="$ac_adolc_cxxflags $ac_adolc_openmpflag"
+@@ -386,8 +386,8 @@ AC_ARG_WITH(cxxflags,
+ AC_MSG_RESULT($ac_adolc_cxxflags)],
+ [if test "$ac_shell_cxxflags" = "not_set"; then
+ ac_adolc_cxxflags="-O2"
+- if test x${adolc_debug} == xyes ||
+- test x${adolc_harddebug} == xyes ; then
++ if test x${adolc_debug} = xyes ||
++ test x${adolc_harddebug} = xyes ; then
+ ac_adolc_cxxflags="-g -O0 -Wall"
+ fi
+ else
+@@ -420,7 +420,7 @@ AC_ARG_ENABLE(tapedoc_values,
+ ])
+ AC_MSG_RESULT($tapedoc_values)
+
+-if test x$tapedoc_values == xyes; then
++if test x$tapedoc_values = xyes; then
+ AC_DEFINE(ADOLC_TAPE_DOC_VALUES,1,[ADOL-C tape_doc routine computes values])
+ fi
+
+@@ -583,7 +583,7 @@ while test "x${pdir}" != "x/" ; do
+ break
+ fi
+ done
+-if test "x${pdir}" == "x/" ; then
++if test "x${pdir}" = "x/" ; then
+ writable=false
+ fi
+ if ! ${writable} ; then
+@@ -595,15 +595,6 @@ if ! ${writable} ; then
+ warn=true
+ fi
+
+-case ${prefix} in
+- ${HOME}|${HOME}/*)
+-if $warn ; then
+- for (( i=5; i>0; i-- )); do
+- echo -ne "\rPlease read the above messages carefully, continuing in ${i} seconds"
+- sleep 1
+- done
+- echo -e "\rPlease read the above messages carefully "
+-fi
+ echo \
+ "
+ *****************************************************************************
+@@ -629,5 +620,3 @@ echo \
+
+ *****************************************************************************
+ "
+-;;
+-esac
diff --git a/sci-libs/adolc/files/adolc-2.6.2-dash.patch b/sci-libs/adolc/files/adolc-2.6.2-dash.patch
new file mode 100644
index 000000000000..b8d4fe5ad64d
--- /dev/null
+++ b/sci-libs/adolc/files/adolc-2.6.2-dash.patch
@@ -0,0 +1,146 @@
+--- a/configure.ac 2016-08-31 12:49:35.000000000 +0000
++++ b/configure.ac 2017-03-04 00:58:02.354372332 +0000
+@@ -29,12 +29,12 @@
+
+ adolclib=adolc
+
+-if test "x$CFLAGS" == x ; then
++if test "x$CFLAGS" = x ; then
+ ac_shell_cflags="not_set"
+ else
+ ac_shell_cflags="$CFLAGS"
+ fi
+-if test "x$CXXFLAGS" == x ; then
++if test "x$CXXFLAGS" = x ; then
+ ac_shell_cxxflags="not_set"
+ else
+ ac_shell_cxxflags="$CXXFLAGS"
+@@ -231,12 +231,12 @@
+ AC_MSG_RESULT(no)
+ ])
+
+-if test x$adolc_harddebug == xyes ; then
++if test x$adolc_harddebug = xyes ; then
+ adolc_debug=yes
+ AC_DEFINE(ADOLC_HARDDEBUG,1,[ADOL-C hard debug mode])
+ fi
+
+-if test x$adolc_debug == xyes ; then
++if test x$adolc_debug = xyes ; then
+ AC_DEFINE(ADOLC_DEBUG,1,[ADOL-C debug mode])
+ fi
+
+@@ -254,7 +254,7 @@
+ AC_MSG_RESULT(yes)
+ ])
+
+-if test x$adolc_stdczero == xyes; then
++if test x$adolc_stdczero = xyes; then
+ AC_DEFINE(ADOLC_ADOUBLE_STDCZERO,1,[ADOL-C adouble zeroing mode])
+ fi
+
+@@ -271,7 +271,7 @@
+ AC_MSG_RESULT(no)
+ ])
+
+-if test x$adolc_late_init == xyes; then
++if test x$adolc_late_init = xyes; then
+ AC_DEFINE(ADOLC_ADOUBLE_LATEINIT,1,[ADOL-C adouble late initialization mode])
+ fi
+
+@@ -288,7 +288,7 @@
+ AC_MSG_RESULT(no)
+ ])
+
+-if test x$adolc_tserrno == xyes ; then
++if test x$adolc_tserrno = xyes ; then
+ AC_DEFINE(ADOLC_THREADSAVE_ERRNO,1,[ADOL-C thread save errno mode])
+ fi
+
+@@ -376,8 +376,8 @@
+ [AS_HELP_STRING([--with-cflags=FLAGS],
+ [use CFLAGS=FLAGS (default: -O2)])],
+ [ac_adolc_cflags="$withval"
+- if test x${adolc_debug} == xyes ||
+- test x${adolc_harddebug} == xyes ; then
++ if test "x${adolc_debug}" = xyes ||
++ test "x${adolc_harddebug}" = xyes ; then
+ ac_adolc_cflags="$ac_adolc_cflags -g -O0"
+ fi
+ ac_adolc_cflags="$ac_adolc_cflags $ac_adolc_openmpflag"
+@@ -385,8 +385,8 @@
+ AC_MSG_RESULT($ac_adolc_cflags)],
+ [if test "$ac_shell_cflags" = "not_set"; then
+ ac_adolc_cflags="-O2"
+- if test x${adolc_debug} == xyes ||
+- test x${adolc_harddebug} == xyes ; then
++ if test "x${adolc_debug}" = xyes ||
++ test "x${adolc_harddebug}" = xyes ; then
+ ac_adolc_cflags="-g -O0 -Wall -ansi"
+ fi
+ else
+@@ -402,8 +402,8 @@
+ [AS_HELP_STRING([--with-cxxflags=FLAGS],
+ [use CXXFLAGS=FLAGS (default: -O2)])],
+ [ac_adolc_cxxflags="$withval"
+- if test x${adolc_debug} == xyes ||
+- test x${adolc_harddebug} == xyes ; then
++ if test x${adolc_debug} = xyes ||
++ test x${adolc_harddebug} = xyes ; then
+ ac_adolc_cxxflags="$ac_adolc_cxxflags -g -O0"
+ fi
+ ac_adolc_cxxflags="$ac_adolc_cxxflags $ac_adolc_openmpflag"
+@@ -411,8 +411,8 @@
+ AC_MSG_RESULT($ac_adolc_cxxflags)],
+ [if test "$ac_shell_cxxflags" = "not_set"; then
+ ac_adolc_cxxflags="-O2"
+- if test x${adolc_debug} == xyes ||
+- test x${adolc_harddebug} == xyes ; then
++ if test x${adolc_debug} = xyes ||
++ test x${adolc_harddebug} = xyes ; then
+ ac_adolc_cxxflags="-g -O0 -Wall"
+ fi
+ else
+@@ -445,7 +445,7 @@
+ ])
+ AC_MSG_RESULT($tapedoc_values)
+
+-if test x$tapedoc_values == xyes; then
++if test x$tapedoc_values = xyes; then
+ AC_DEFINE(ADOLC_TAPE_DOC_VALUES,1,[ADOL-C tape_doc routine computes values])
+ fi
+
+@@ -614,7 +614,7 @@
+ break
+ fi
+ done
+-if test "x${pdir}" == "x/" ; then
++if test "x${pdir}" = "x/" ; then
+ writable=false
+ fi
+ if ! ${writable} ; then
+@@ -626,15 +626,6 @@
+ warn=true
+ fi
+
+-case ${prefix} in
+- ${HOME}|${HOME}/*)
+-if $warn ; then
+- for (( i=5; i>0; i-- )); do
+- echo -ne "\rPlease read the above messages carefully, continuing in ${i} seconds"
+- sleep 1
+- done
+- echo -e "\rPlease read the above messages carefully "
+-fi
+ echo \
+ "
+ *****************************************************************************
+@@ -660,8 +651,6 @@
+
+ *****************************************************************************
+ "
+-;;
+-esac
+ if test "x$enable_static" != "xno" ; then
+ echo \
+ " Linking a user program with a static ADOL-C library will always result
diff --git a/sci-libs/adolc/metadata.xml b/sci-libs/adolc/metadata.xml
new file mode 100644
index 000000000000..150156feaded
--- /dev/null
+++ b/sci-libs/adolc/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>sci@gentoo.org</email>
+ <name>Gentoo Science Project</name>
+ </maintainer>
+ <longdescription lang="en">
+ The ADOLC system automatically calculates exact derivatives of a
+ C/C++ function. It uses C++ overloading to record arithmetic
+ operations, which it plays back later in various ways to calculate
+ the requested values.
+</longdescription>
+ <use>
+ <flag name="sparse">Add support for sparse matrix algebra with <pkg>sci-libs/colpack</pkg></flag>
+ </use>
+</pkgmetadata>