aboutsummaryrefslogtreecommitdiff
blob: 21ee9db1422ee3b5bfc6e4452f8491548438e40a (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
40
41
42
43
44
45
46
47
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=2

inherit eutils fortran

MY_PN="FoX"
MY_P="${MY_PN}-${PV}"

DESCRIPTION="A library designed to allow the easy use of XML from Fortran"
HOMEPAGE="http://uszla.me.uk/space/software/FoX/"
SRC_URI="http://www.uszla.me.uk/FoX/source/${MY_P}-full.tar.gz"
LICENSE="BSD ZLIB"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="debug"
RDEPEND=""
DEPEND="${RDEPEND}"
S="${WORKDIR}/${MY_P}"

FORTRAN="gfortran ifc"

src_prepare() {
	epatch "${FILESDIR}"/${PV}-install-customizations.patch
}

src_configure() {
	econf \
		$(use_enable debug) \
		FCFLAGS="${FCFLAGS:- ${FFLAGS:- -O2}}"
}

src_compile() {
	emake -j1 || die
}

src_test() {
	emake check || die
	einfo "Please look at the last few RESULT lines for a summary."
}

src_install() {
	emake DESTDIR="${D}" install || die
	dodoc README.FoX.txt Changelog || die
	dohtml -r DoX/ || die
}