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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sun Nov 9 13:53:09 2014 UTC (5 years, 8 months ago) by jlec
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +2 -1 lines
sci-libs/colpack: Fix compilation with gcc-4.9, #514534

(Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key B9D4F231BD1558AB!)

1 # Copyright 1999-2014 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.9.ebuild,v 1.1 2014/04/05 23:19:57 bicatali Exp $
4
5 EAPI=5
6
7 AUTOTOOLS_IN_SOURCE_BUILD=1
8 AUTOTOOLS_AUTORECONF=1
9
10 inherit eutils toolchain-funcs autotools-utils
11
12 MYPN=ColPack
13
14 DESCRIPTION="C++ algorithms for specialized vertex coloring problems"
15 LICENSE="GPL-3 LGPL-3"
16 HOMEPAGE="http://www.cscapes.org/coloringpage/software.htm"
17 SRC_URI="http://cscapes.cs.purdue.edu/download/${MYPN}/${MYPN}-${PV}.tar.gz"
18
19 SLOT="0"
20 IUSE="openmp static-libs"
21 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
22
23 RDEPEND=""
24 DEPEND="${RDEPEND}"
25
26 S="${WORKDIR}/${MYPN}-${PV}"
27
28 PATCHES=(
29 "${FILESDIR}"/${PN}-1.0.6-flags.patch
30 "${FILESDIR}"/${PN}-1.0.8-no-bin.patch
31 "${FILESDIR}"/${P}-fix_gcc49_omp.patch
32 )
33
34 pkg_setup() {
35 if use openmp && [[ $(tc-getCC)$ == *gcc* ]] && ! tc-has-openmp; then
36 ewarn "You are using gcc without OpenMP"
37 die "Need an OpenMP capable compiler"
38 fi
39 }
40
41 src_configure() {
42 local myeconfargs=( $(use_enable openmp) )
43 autotools-utils_src_configure
44 }

  ViewVC Help
Powered by ViewVC 1.1.20