/[gentoo-x86]/sci-libs/colpack/colpack-1.0.6.ebuild
Gentoo

Contents of /sci-libs/colpack/colpack-1.0.6.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Thu Jun 28 23:39:16 2012 UTC (8 years, 5 months ago) by bicatali
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +4 -8 lines
keyword amd64-linux and x86-linux. cleaned up openmp check

(Portage version: 2.2.01.20430-prefix/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-libs/colpack/colpack-1.0.6.ebuild,v 1.1 2012/04/13 03:24:24 bicatali Exp $
4
5 EAPI=4
6
7 inherit eutils toolchain-funcs autotools
8
9 MYPN=ColPack
10
11 DESCRIPTION="C++ algorithms for specialized vertex coloring problems"
12 LICENSE="GPL-3 LGPL-3"
13 HOMEPAGE="http://www.cscapes.org/coloringpage/software.htm"
14 SRC_URI="http://www.cscapes.org/download/${MYPN}/${MYPN}-${PV}.tar.gz"
15
16 SLOT="0"
17 IUSE="openmp static-libs"
18 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
19
20 RDEPEND=""
21 DEPEND="${RDEPEND}"
22
23 S="${WORKDIR}/${MYPN}-${PV}"
24
25 pkg_setup() {
26 if use openmp && [[ $(tc-getCC)$ == *gcc* ]] && ! tc-has-openmp; then
27 ewarn "You are using gcc without OpenMP"
28 die "Need an OpenMP capable compiler"
29 fi
30 }
31
32 src_prepare() {
33 epatch "${FILESDIR}"/${P}-flags.patch
34 eautoreconf
35 }
36
37 src_configure() {
38 econf \
39 $(use_enable openmp) \
40 $(use_enable static-libs static)
41 }

  ViewVC Help
Powered by ViewVC 1.1.20