blob: 139ac426ebca3c76bfe9c5f39499b2c810316c12 (
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
38
39
|
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
FORTRAN_STANDARD=90
inherit cmake-utils fortran-2
DESCRIPTION="Assist the transition from PGPlot to PLplot in Fortran programs"
HOMEPAGE="http://pg2plplot.sourceforge.net"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
IUSE="X png postscript static-libs"
DEPEND="sci-libs/plplot[fortran]"
# If USE="png" or "postscript", ensure PLplot has USE="cairo":
RDEPEND="${DEPEND}
sci-libs/plplot[fortran,X?]
png? ( sci-libs/plplot[cairo] )
postscript? ( sci-libs/plplot[cairo] )"
DOCS=( CHANGELOG README VERSION )
src_prepare() {
sed -i -e "s:/usr:${EPREFIX}/usr:g" CMake/CMakeLocations.cmake || die
cmake-utils_src_prepare
}
src_configure() {
local mycmakeargs=(
$(cmake-utils_use static-libs CREATE_STATICLIB)
)
cmake-utils_src_configure
}
|