sci-libs/colpack - 1.0.10 (gentoo)

Search

Package Information

Description:
C++ algorithms for specialized vertex coloring problems
Homepage:
https://cscapes.cs.purdue.edu/coloringpage/
License:
GPL-3 LGPL-3

Ebuild Details

Version EAPI Keywords Slot
1.0.10 7 ~alpha amd64 arm arm64 ~hppa ~ppc ppc64 ~riscv ~sparc ~x86 0
View Raw Ebuild
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit autotools toolchain-funcs

MYPN="ColPack"

DESCRIPTION="C++ algorithms for specialized vertex coloring problems"
HOMEPAGE="https://cscapes.cs.purdue.edu/coloringpage/"
SRC_URI="https://github.com/CSCsw/${MYPN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="GPL-3 LGPL-3"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ppc ppc64 ~riscv ~sparc ~x86"
IUSE="openmp"

S="${WORKDIR}/${MYPN}-${PV}"

pkg_pretend() {
	[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
}

pkg_setup() {
	[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
}

src_prepare() {
	default
	sed -e 's/-O3//' -i Makefile.am || die
	eautoreconf
}

src_configure() {
	econf \
		--disable-static \
		$(use_enable openmp)
}

src_install() {
	default
	rm -rf "${ED}"/usr/examples
	find "${ED}" -name '*.la' -delete || die
}

USE Flags

Manifest for 1.0.10

Type File Size Source URLs
DIST colpack-1.0.10.tar.gz 658087 bytes https://github.com/CSCsw/ColPack/archive/v1.0.10.tar.gz