summaryrefslogtreecommitdiff
path: root/sci-libs/colpack
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/colpack
reinit the tree, so we can have metadata
Diffstat (limited to 'sci-libs/colpack')
-rw-r--r--sci-libs/colpack/Manifest13
-rw-r--r--sci-libs/colpack/colpack-1.0.10.ebuild48
-rw-r--r--sci-libs/colpack/colpack-1.0.6.ebuild40
-rw-r--r--sci-libs/colpack/colpack-1.0.9-r1.ebuild56
-rw-r--r--sci-libs/colpack/files/colpack-1.0.6-flags.patch10
-rw-r--r--sci-libs/colpack/files/colpack-1.0.8-no-bin.patch15
-rw-r--r--sci-libs/colpack/files/colpack-1.0.9-fix-c++14.patch71
-rw-r--r--sci-libs/colpack/files/colpack-1.0.9-fix_gcc49_omp.patch26
-rw-r--r--sci-libs/colpack/metadata.xml16
9 files changed, 295 insertions, 0 deletions
diff --git a/sci-libs/colpack/Manifest b/sci-libs/colpack/Manifest
new file mode 100644
index 000000000000..22447c8f1ca1
--- /dev/null
+++ b/sci-libs/colpack/Manifest
@@ -0,0 +1,13 @@
+AUX colpack-1.0.6-flags.patch 408 SHA256 2a0e0321d7fd3b30a2fee3c8ecbfb3cef7ae1ca75f47d898fe99618216849e4d SHA512 5a614971ea0bb9da829596b352c59455b2a6d892cd96ffd68c5dd6a0f7aea63e35c2fda911a050df55d37109337cb95e52f1bab12174681f964c59c9e0721723 WHIRLPOOL 6ee703a74ff0a9214457b8ffbb0c2ba453eddbb82604a11ba4dcf062d2a36eb4ea47156c138048ca2068d7dab178c7427deeb7c11e15faceba23b3209521f9b8
+AUX colpack-1.0.8-no-bin.patch 442 SHA256 ecb7c0a70bde7fe0550264ab26a1ae4fe25374f2ee6d2196d8d54534f5f3348c SHA512 5424142f844626dca8f71f8deec53c4804c2aba6c618cfab8fb713026a11d6869bab04ed32562f0b77523f27e50db85485ec6346d8ce6f5efb5a1d6aa21b3410 WHIRLPOOL 5780ba08e4e8d21897d4aecd8f3031513219a8df89faf5edb28e3aed9edbe5baef21dfb7bbbee3a0293443c1616f1fa00dfcc1ba5dcc81dedd228502d6e8383b
+AUX colpack-1.0.9-fix-c++14.patch 2659 SHA256 ea06d8eb08fb06e6b861ee71759a70737bf1fbb4c89f937c7121812f8be3c171 SHA512 be2bdaf84e9a176bee1e9d2bb772274482fa8d3659f11c09bcc8fa21f7036d08ce49bb77d34370037ceaaf9290abcbd6278b97c68f0cf9916d5fc98459a9fd1a WHIRLPOOL 705db405c22a077543442c7bcc2c95cce523a708bcb8a97679b7601bcbcc5285d63d5f2a620942ab45504ff8b062fd9fc755649d430620ad90f84d5df7e5dd43
+AUX colpack-1.0.9-fix_gcc49_omp.patch 1072 SHA256 12c5b9d008e1eef0b63722870e1cbf9bba1f00472a9d35aa9e6e9c452b8c2771 SHA512 702bf542933b59c3fa086595aaf2e680041faae87909b58664a76d60a15e4136cc101a571cc0596277f734be46660a683107a68fbddde4af0c42c39beebe0e77 WHIRLPOOL 2f35c174c2d4465e5c554eac814093fc0ea760ed287227f03bf8bfed704f0c73e0181097dd0a67c199b29f8a36f93311711e96bea580d6ed8fca050220f5a487
+DIST ColPack-1.0.6.tar.gz 1027189 SHA256 d03208883aaa48544124c7fa950c2ea1aa88bc38c7997c4a563b176b6bc212ea SHA512 646ffdd459c40906f6c57888c0e38b791f9559a88ce649e9041271655a9d98658db1c6c0f3b09d64b9bd2c7d74c71a6bd8b13972ae7c7bbac42b300b8e3844c9 WHIRLPOOL 80e5c7f368b362bf4dda84661b364fa1f55215446339fec98bce5dfd7a7dcffc97a79c73329d0a721f012c7bc6651626f6ed5b1f5e284c1b540bcf047d0178b7
+DIST ColPack-1.0.9.tar.gz 1185335 SHA256 06c5d3e61ab873b27d7962a9f09e90cbc52ccd9f480e88f1ecb50e6bced11932 SHA512 762ab506f95788f9134033b60bf582472b80ab14766ad6795a7db1b780de0ae49bb30f1c9bd74b4f62cf46cc6029c37ef90a483e41b62bf4067cd4a71eb3db6c WHIRLPOOL f84e1766350265c3ecfb43d827327a018218be342f22adbd5f95d7172b9b489c12ed3978796b9c9d70b69058d88816ed6cb5979217ccca16c7691ecccedc3a51
+DIST colpack-1.0.10.tar.gz 658087 SHA256 b22ead7da80fa1735291b2d83198adf41bf36101e4fcb2c4f07c1cfacf211c75 SHA512 566b7906c5d0dbcd6dcb9c359510ee8b13bf3249e56d8f88f7806493d1df14f54638a0558d601ab4dbc28f36093795eede57a059a7c4e66438b47bf5a0119808 WHIRLPOOL c416c981aff798c6f0c9c33cf24f93fc0ab498e965159070697bc9eadb0014d9f6729858c7113811eec10e4219867075ef11191f6ca214320f83ccb2bf5bf625
+EBUILD colpack-1.0.10.ebuild 1077 SHA256 19b31460292d361db5d4bf763c3520a595c7d0e7ea63fdfebc58ed6b213afce3 SHA512 a038ace4f1e4c2f2287e55633903688f2da83515ad1b0c9bbf2fd5868333d1761a48dadedb8d2914f84bedd7222b82e6e98d81e84dd66dd88fc7cbd9d23a1e09 WHIRLPOOL 94f39bde414f6f3819eb6efe1c8ce3e0dea88d0e2fed0f2cf2eb9ac6fe2c86284347599d4782e54abab15d1125561678db985f77854f68566a4c8e9a48bb7051
+EBUILD colpack-1.0.6.ebuild 876 SHA256 91503f45a558206bbc4871f255d8fb8fd5cd623aa9587db5762d97be120b9e2b SHA512 2cc5bcdf1c4939b148eaa860aa74257d8c6a85e6d5a456969ab63a929422c4d195c5ed0cd20837b6fc52b46b038ff7d14312785ee49b037e56377fa3d3623505 WHIRLPOOL 32babd9bb18f0d7733e9ebf130d7f0e2e65c2e36f453f5bd1fa610c2b809b3f8c687660cba609ef350dcbf393903701cb134cdea51dd613ce971f6886b84b5a9
+EBUILD colpack-1.0.9-r1.ebuild 1193 SHA256 3d39c8e18a5bde2c6d3b663d17c27f6c794b1a97d12d34cc7e5952d850f2199a SHA512 27f4ec1eeef4085e13a4b989ac2af2e30f9845f482ed140f0cd6d196d837a1b8b77e6d2a430da400e42cbc7b49480ae34c6619ee89c8fccf2b994d484614d0c7 WHIRLPOOL 75e0c27894d19d7ae4494b956716361ed67d7d3220576bc76a1a482246ee1b8799d5c46d397da53ec6f0f6a6250d96e2f97a4a8044c729930b1b8cd6365521fb
+MISC ChangeLog 3430 SHA256 bd08de5cdef6186724d5c5bc1d402eb50aa61123499a785b8ab71cb65ff7d9eb SHA512 9a0ce2e4a8b2ecc915a6016ff028b4583a21703841775d2ada608c3b0eef0dc48bbdca309fca3abff6274222112221e7cfab3eadd0a23163f3ffc23ab5b495e0 WHIRLPOOL 76292c65acfb98f035ac2d7dd7b18c86ab96af81d91fc18d81eb646c2ad8753ef5a807521808bded8328f7cac2e12ee79f53e09be1eeb36b5bea928344565b9f
+MISC ChangeLog-2015 1119 SHA256 131bb1d08e926751e6ce5bd0c857a5438fe7ab31457b598f30e1197c2d976307 SHA512 847a4a10d851365365b1f4fad18668dabc1b59f288ea86c3c0f17f0953499e32d3725adab1570c6247c2d1b0659e79233fbeff0c241c5d794117fab2eb9d72ee WHIRLPOOL b423ff4b63e97a71f6ab96a7866e4773ce2f581ab48a0b5afee0220be45080745b011d3be5d752e3030648af6b39447729d16de976099f8caacd0b77ba3ecb7c
+MISC metadata.xml 605 SHA256 9ce899b0d9fe864c25b72883c7fc48946b561b1c9776ff344dd5438e7a3e0aee SHA512 28e191bbb72a212832b13ad84064538a884835b1f3e4f8e50d4b247b17189a12fa1de32138a675ab1e9fed58b40101c50d2e4472c554cf25f6f919f24059c17b WHIRLPOOL a8732cf371b603a8a6bba65d097ac213ec21b156b239f3ed550a3b911a684441cd22f08c70dbb31c36fc5c8d1e606530764665672bacb7ef790701cd73b14526
diff --git a/sci-libs/colpack/colpack-1.0.10.ebuild b/sci-libs/colpack/colpack-1.0.10.ebuild
new file mode 100644
index 000000000000..11fda0e326df
--- /dev/null
+++ b/sci-libs/colpack/colpack-1.0.10.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools eutils
+
+MYPN="ColPack"
+
+DESCRIPTION="C++ algorithms for specialized vertex coloring problems"
+LICENSE="GPL-3 LGPL-3"
+HOMEPAGE="http://cscapes.cs.purdue.edu/coloringpage/"
+SRC_URI="https://github.com/CSCsw/${MYPN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+SLOT="0"
+IUSE="openmp static-libs"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
+
+RDEPEND=""
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}/${MYPN}-${PV}"
+
+pkg_setup() {
+ if [[ ${MERGE_TYPE} != "binary" ]] && use openmp && [[ $(tc-getCC)$ == *gcc* ]] && ! tc-has-openmp; then
+ ewarn "You are using gcc without OpenMP"
+ die "Need an OpenMP capable compiler"
+ fi
+}
+
+src_prepare() {
+ default
+ sed -e 's/-O3//' -i Makefile.am || die
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ --enable-shared \
+ $(use_enable static-libs static) \
+ $(use_enable openmp)
+}
+
+src_install() {
+ default
+ rm -rf "${ED}"/usr/examples
+ use static-libs || prune_libtool_files --all
+}
diff --git a/sci-libs/colpack/colpack-1.0.6.ebuild b/sci-libs/colpack/colpack-1.0.6.ebuild
new file mode 100644
index 000000000000..14cc481ca736
--- /dev/null
+++ b/sci-libs/colpack/colpack-1.0.6.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit eutils toolchain-funcs autotools
+
+MYPN=ColPack
+
+DESCRIPTION="C++ algorithms for specialized vertex coloring problems"
+LICENSE="GPL-3 LGPL-3"
+HOMEPAGE="http://www.cscapes.org/coloringpage/software.htm"
+SRC_URI="http://www.cscapes.org/download/${MYPN}/${MYPN}-${PV}.tar.gz"
+
+SLOT="0"
+IUSE="openmp static-libs"
+KEYWORDS="amd64 ~x86 ~amd64-linux ~x86-linux"
+
+RDEPEND=""
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}/${MYPN}-${PV}"
+
+pkg_setup() {
+ if use openmp && [[ $(tc-getCC)$ == *gcc* ]] && ! tc-has-openmp; then
+ ewarn "You are using gcc without OpenMP"
+ die "Need an OpenMP capable compiler"
+ fi
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-flags.patch
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ $(use_enable openmp) \
+ $(use_enable static-libs static)
+}
diff --git a/sci-libs/colpack/colpack-1.0.9-r1.ebuild b/sci-libs/colpack/colpack-1.0.9-r1.ebuild
new file mode 100644
index 000000000000..bdb0039d0030
--- /dev/null
+++ b/sci-libs/colpack/colpack-1.0.9-r1.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools toolchain-funcs
+
+MY_PN="ColPack"
+
+DESCRIPTION="C++ algorithms for specialized vertex coloring problems"
+LICENSE="GPL-3 LGPL-3"
+HOMEPAGE="http://www.cscapes.org/coloringpage/software.htm"
+SRC_URI="http://cscapes.cs.purdue.edu/download/${MY_PN}/${MY_PN}-${PV}.tar.gz"
+
+SLOT="0"
+IUSE="openmp static-libs"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
+
+RDEPEND=""
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}/${MY_PN}-${PV}"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-1.0.6-flags.patch"
+ "${FILESDIR}/${PN}-1.0.8-no-bin.patch"
+ "${FILESDIR}/${PN}-1.0.9-fix_gcc49_omp.patch"
+ "${FILESDIR}/${PN}-1.0.9-fix-c++14.patch"
+)
+
+pkg_setup() {
+ if use openmp && [[ $(tc-getCC)$ == *gcc* ]] && ! tc-has-openmp; then
+ ewarn "You are using gcc without OpenMP"
+ die "Need an OpenMP capable compiler"
+ fi
+}
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ --enable-shared \
+ $(use_enable static-libs static) \
+ $(use_enable openmp)
+}
+
+src_install() {
+ default
+
+ if ! use static-libs; then
+ find "${D}" -name '*.la' -delete || die
+ fi
+}
diff --git a/sci-libs/colpack/files/colpack-1.0.6-flags.patch b/sci-libs/colpack/files/colpack-1.0.6-flags.patch
new file mode 100644
index 000000000000..6d4bb6a0d612
--- /dev/null
+++ b/sci-libs/colpack/files/colpack-1.0.6-flags.patch
@@ -0,0 +1,10 @@
+diff -Nur ColPack-1.0.6.orig/Makefile.am ColPack-1.0.6/Makefile.am
+--- ColPack-1.0.6.orig/Makefile.am 2012-04-13 03:25:37.000000000 +0100
++++ ColPack-1.0.6/Makefile.am 2012-04-13 03:30:35.000000000 +0100
+@@ -1,5 +1,5 @@
+ ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS}
+-COLPACK_COMMON_FLAGS = $(EXTRA_FLAGS) -O5
++COLPACK_COMMON_FLAGS = $(EXTRA_FLAGS)
+
+ INCLUDES = $(COLPACK_COMMON_FLAGS) \
+ -I$(top_srcdir)/Main \
diff --git a/sci-libs/colpack/files/colpack-1.0.8-no-bin.patch b/sci-libs/colpack/files/colpack-1.0.8-no-bin.patch
new file mode 100644
index 000000000000..e9230b0ff105
--- /dev/null
+++ b/sci-libs/colpack/files/colpack-1.0.8-no-bin.patch
@@ -0,0 +1,15 @@
+From: Sebastien Fabbro <bicatali@gentoo.org>
+Avoid installing the ColPack binary on an absolute path
+
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -17,8 +17,7 @@
+ LDADD = libColPack.la
+ AM_DEFAULT_SOURCE_EXT = .cpp
+
+-noinst_bin_PROGRAMS = ColPack
+-noinst_bindir = $(abs_top_builddir)/progs
++noinst_PROGRAMS = ColPack
+ lib_LTLIBRARIES = libColPack.la
+ pkginclude_HEADERS = \
+ Utilities/CoutLock.h Utilities/command_line_parameter_processor.h \
diff --git a/sci-libs/colpack/files/colpack-1.0.9-fix-c++14.patch b/sci-libs/colpack/files/colpack-1.0.9-fix-c++14.patch
new file mode 100644
index 000000000000..7076be5426a3
--- /dev/null
+++ b/sci-libs/colpack/files/colpack-1.0.9-fix-c++14.patch
@@ -0,0 +1,71 @@
+From 44851d9e90d9847fbfeaaea7b0ed1e7c3d093dcb Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Bj=C3=B6rn=20Esser?= <me@besser82.io>
+Date: Wed, 24 Feb 2016 23:26:20 +0100
+Subject: [PATCH] fix semantic errors in error-msgs
+
+---
+ Utilities/extra.cpp | 12 +++++-------
+ 1 file changed, 5 insertions(+), 7 deletions(-)
+
+diff --git a/Utilities/extra.cpp b/Utilities/extra.cpp
+index 21862e6..9f59263 100644
+--- a/Utilities/extra.cpp
++++ b/Utilities/extra.cpp
+@@ -49,7 +49,7 @@ int WriteMatrixMarket_ADOLCInput(string s_postfix, int i_mode, ...) {
+
+ ofstream out_Matrix (s_MatrixName.c_str());
+ if(!out_Matrix) {
+- cout<<"Error creating file: \""<<out_Matrix<<"\""<<endl;
++ cout<<"Error creating file: \""<<s_MatrixName<<"\""<<endl;
+ exit(1);
+ }
+
+@@ -84,7 +84,7 @@ int WriteMatrixMarket_ADOLCInput(string s_postfix, int i_mode, ...) {
+ string s_MatrixName = "pattern"+s_postfix+s_BaseName;
+ ofstream out_Matrix (s_MatrixName.c_str());
+ if(!out_Matrix) {
+- cout<<"Error creating file: \""<<out_Matrix<<"\""<<endl;
++ cout<<"Error creating file: \""<<s_MatrixName<<"\""<<endl;
+ exit(1);
+ }
+
+@@ -111,7 +111,7 @@ int WriteMatrixMarket_ADOLCInput(string s_postfix, int i_mode, ...) {
+ string s_CompressedMatrixName = "CompressedMatrix"+s_postfix+s_BaseName;
+ ofstream out_CompressedMatrix (s_CompressedMatrixName.c_str());
+ if(!out_CompressedMatrix) {
+- cout<<"Error creating file: \""<<out_CompressedMatrix<<"\""<<endl;
++ cout<<"Error creating file: \""<<s_CompressedMatrixName<<"\""<<endl;
+ exit(1);
+ }
+
+@@ -140,7 +140,7 @@ int WriteMatrixMarket_ADOLCInput(string s_postfix, int i_mode, ...) {
+ string s_MatrixName = "pattern_value"+s_postfix+s_BaseName;
+ ofstream out_Matrix (s_MatrixName.c_str());
+ if(!out_Matrix) {
+- cout<<"Error creating file: \""<<out_Matrix<<"\""<<endl;
++ cout<<"Error creating file: \""<<s_MatrixName<<"\""<<endl;
+ exit(1);
+ }
+
+@@ -167,7 +167,7 @@ int WriteMatrixMarket_ADOLCInput(string s_postfix, int i_mode, ...) {
+ string s_CompressedMatrixName = "CompressedMatrix"+s_postfix+s_BaseName;
+ ofstream out_CompressedMatrix (s_CompressedMatrixName.c_str());
+ if(!out_CompressedMatrix) {
+- cout<<"Error creating file: \""<<out_CompressedMatrix<<"\""<<endl;
++ cout<<"Error creating file: \""<<s_CompressedMatrixName<<"\""<<endl;
+ exit(1);
+ }
+
+@@ -671,7 +671,6 @@ int buildDotWithColor(ColPack::GraphColoringInterface &g, vector<string> &ListOf
+ }
+ }
+ }
+-
+ }
+ }
+ }
+@@ -1483,4 +1482,3 @@ int DisplayADICFormat_Value(std::list<std::vector<double> > &lvd_Value) {
+ }
+
+ #endif
+-
diff --git a/sci-libs/colpack/files/colpack-1.0.9-fix_gcc49_omp.patch b/sci-libs/colpack/files/colpack-1.0.9-fix_gcc49_omp.patch
new file mode 100644
index 000000000000..0510be9f90ef
--- /dev/null
+++ b/sci-libs/colpack/files/colpack-1.0.9-fix_gcc49_omp.patch
@@ -0,0 +1,26 @@
+Index: ColPack-1.0.9/BipartiteGraphPartialColoring/BipartiteGraphPartialColoring.cpp
+===================================================================
+--- ColPack-1.0.9.orig/BipartiteGraphPartialColoring/BipartiteGraphPartialColoring.cpp
++++ ColPack-1.0.9/BipartiteGraphPartialColoring/BipartiteGraphPartialColoring.cpp
+@@ -388,8 +388,9 @@ namespace ColPack
+ if ( m_vi_LeftVertexColors [m_vi_Edges [x]] == m_vi_LeftVertexColors[v] && f(v) > f(m_vi_Edges [x]) ) {
+ //Algo 4 - Line 18: add [v] to R ; cont <- false; break
+ #pragma omp critical
++ {
+ vi_verticesNeedNewColor.push_back(v);
+-#pragma omp end critical
++ }
+ cont = false;
+ break;
+ }
+@@ -575,8 +576,9 @@ namespace ColPack
+ if ( m_vi_RightVertexColors [m_vi_Edges [x]] == m_vi_RightVertexColors[v] && f(v) > f(m_vi_Edges [x]) ) {
+ //Algo 4 - Line 18: add [v] to R ; cont <- false; break
+ #pragma omp critical
++ {
+ vi_verticesNeedNewColor.push_back(v);
+-#pragma omp end critical
++ }
+ cont = false;
+ break;
+ }
diff --git a/sci-libs/colpack/metadata.xml b/sci-libs/colpack/metadata.xml
new file mode 100644
index 000000000000..c9aa068b01c3
--- /dev/null
+++ b/sci-libs/colpack/metadata.xml
@@ -0,0 +1,16 @@
+<?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">
+ ColPack is a package comprising of implementations of algorithms for
+ the specialized vertex coloring problems as well as algorithms for a
+ variety of related supporting tasks in derivative computation.
+ </longdescription>
+ <upstream>
+ <remote-id type="github">CSCsw/ColPack</remote-id>
+ </upstream>
+</pkgmetadata>