blob: 845e43e48fefd51de3bfe6a8d8a6435b11e97398 (
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
|
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit desktop xdg
DESCRIPTION="A simple medical imaging visualization tool"
HOMEPAGE="https://github.com/neurolabusc/surf-ice"
SRC_URI="https://github.com/neurolabusc/surf-ice/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
RDEPEND=""
DEPEND="${RDEPEND}
dev-lang/fpc
>=dev-lang/lazarus-1.6.2[python(-)]
"
src_compile() {
# Python support will only be vaialable for the default implementation:
# https://github.com/neurolabusc/MRIcroGL/issues/30#issuecomment-423216197
cp -rf /etc/lazarus system-lazarus-config
lazbuild -B --lazarusdir="/usr/share/lazarus/" --pcp="system-lazarus-config" surfice.lpi || die
}
src_install() {
dobin surfice
doicon -s scalable Surfice.jpg
make_desktop_entry surfice surfice /usr/share/icons/hicolor/scalable/apps/Surfice.jpg
}
|