1
0
mirror of synced 2024-12-22 21:00:20 +01:00
TheChymera-overlay/sci-visualization/mricrogl/mricrogl-1.2.20190902.ebuild
Horea Christian e681420da1
sci-visualization/mricrogl: version bump 1.2.20200324
Package-Manager: Portage-2.3.96, Repoman-2.3.22
Signed-off-by: Horea Christian <chr@chymera.eu>
2020-03-30 19:15:19 -04:00

57 lines
1.3 KiB
Bash

# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit eutils gnome2-utils
DESCRIPTION="A simple medical imaging visualization tool"
HOMEPAGE="https://github.com/neurolabusc/MRIcroGL"
SRC_URI="
https://github.com/rordenlab/MRIcroGL12/archive/v${PV}.tar.gz -> ${P}.tar.gz
https://github.com/neurolabusc/Metal-Demos/archive/f487b6a74a8837faa01d1f33bdcdba2e829a16c3.tar.gz
"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
RDEPEND=""
DEPEND="dev-lang/fpc
>=dev-lang/lazarus-1.6.2"
S="${WORKDIR}/MRIcroGL12-${PV}"
#src_prepare() {
# ls
# pwd
# die
# default
#}
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 --verbose-pkgsearch lazopenglcontext --verbose-pkgsearch python4lazarus_package || die
#lazbuild -B MRIcroGL.lpr
lazbuild -B --lazarusdir="/usr/share/lazarus/" --pcp="system-lazarus-config" MRIcroGL_NoPython.lpi || die
}
src_install() {
dobin MRIcroGL
insinto /usr/share/mricrogl
doins -r lut script shaders
doicon -s scalable mricrogl.svg
make_desktop_entry MRIcroGL MRIcroGL /usr/share/icons/hicolor/scalable/apps/mricrogl.svg
}
pkg_postinst() {
gnome2_icon_cache_update
}
pkg_postrm() {
gnome2_icon_cache_update
}