aboutsummaryrefslogtreecommitdiff
blob: 2f0060938c7cc2b8fe1615e61609a3c0097b49c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=4

AUTOTOOLS_AUTORECONF=1

inherit autotools-utils fortran-2

MY_PV=${PV/_}
MY_P=${PN}-${MY_PV}

DESCRIPTION="OpenCL interface for Fortran 90"
HOMEPAGE="http://code.google.com/p/fortrancl/"
SRC_URI="http://${PN}.googlecode.com/files/${MY_P}.tar.gz"

LICENSE="LGPL-3"
SLOT="0"
KEYWORDS="~amd64"
IUSE="examples static-libs"

DEPEND="virtual/opencl"
RDEPEND="${DEPEND}"

S=${WORKDIR}/${MY_P}

DOCS=( AUTHORS ChangeLog README )
PATCHES=( "${FILESDIR}"/${P}-gentoo.patch )

src_install() {
	autotools-utils_src_install
	if use examples ; then
		insinto /usr/share/doc/${PF}/examples
		doins examples/*.{f90,cl}
	fi
}