aboutsummaryrefslogtreecommitdiff
blob: 7ce360f7967482efac82cc9a11d366fc5871f316 (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
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

DESCRIPTION="Converts Bruker ParaVision MRI data to the NIfTI file format"
HOMEPAGE="https://github.com/neurolabusc/Bru2Nii"
SRC_URI="https://github.com/neurolabusc/Bru2Nii/archive/v${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="|| ( Artistic GPL-1+ )"
SLOT="0"
KEYWORDS="~amd64"
IUSE="gui"

RDEPEND=""
DEPEND="dev-lang/fpc
	gui? ( dev-lang/lazarus )"

S="${WORKDIR}/Bru2Nii-${PV}"

src_compile() {
	fpc -Tlinux Bru2.lpr || die
	if use gui ; then
		lazbuild -B --lazarusdir="/usr/share/lazarus/" Bru2Nii.lpr || die
	fi
}

src_install() {
	dobin Bru2
	use gui && dobin Bru2Nii
	dodoc README.md
}