blob: 1c2b20e2413f4c22d557a164d7dbb997727329a7 (
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
# Copyright 2019-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit cmake udev
DESCRIPTION="Processing, recording, and visualizing multichannel ephys data"
HOMEPAGE="https://open-ephys.org/gui/"
LICENSE="GPL-3"
if [[ ${PV} == "9999" ]] ; then
inherit git-r3
EGIT_REPO_URI="https://github.com/open-ephys/plugin-GUI"
EGIT_BRANCH="master"
Suffix=${EGIT_BRANCH}
SubDir=${P}
elif [[ ${PV} == "99999999" ]] ; then
inherit git-r3
EGIT_REPO_URI="https://github.com/open-ephys/plugin-GUI"
EGIT_BRANCH="development"
Suffix=${EGIT_BRANCH}
SubDir=${P}
else
SRC_URI="https://github.com/open-ephys/plugin-GUI/archive/v${PV}.tar.gz -> ${P}.tar.gz"
Suffix=${PV}
SubDir="plugin-GUI-${PV}"
S="${WORKDIR}/${SubDir}"
KEYWORDS="~amd64 ~x86"
fi
SLOT="${PV}"
IUSE="jack"
DEPEND="
media-libs/alsa-lib
media-libs/freeglut
media-libs/freetype
x11-libs/libXrandr
x11-libs/libXcursor
x11-libs/libXinerama
jack? ( || ( media-sound/jack-audio-connection-kit media-sound/jack2 ) )
"
RDEPEND="${DEPEND}"
BUILD_DIR="${S}/Build"
PATCHES=( "${FILESDIR}"/${P}.patch )
QA_PREBUILT="opt/open-ephys-*/shared/*.so"
QA_PRESTRIPPED="
opt/open-ephys-*/plugins/*.so
opt/open-ephys-*/open-ephys
"
src_prepare() {
cmake_src_prepare
if use jack; then
sed -i 's/JUCE_APP_VERSION=/JUCE_JACK=1\n JUCE_APP_VERSION=/' "${WORKDIR}/${SubDir}/CMakeLists.txt" || die "Sed failed!"
fi
}
src_configure() {
local mycmakeargs=( -DCMAKE_SKIP_RPATH=ON )
cmake_src_configure
}
src_install() {
dodir opt/open-ephys-"${Suffix}"/ lib/udev/rules.d/
cp -R "${BUILD_DIR}"/Gentoo/* "${ED}"/opt/open-ephys-"${Suffix}"/
udev_newrules "${WORKDIR}"/"${SubDir}"/Resources/Scripts/40-open-ephys.rules 40-open-ephys-"${Suffix}".rules
dosym ../../opt/open-ephys-"${Suffix}"/open-ephys usr/bin/open-ephys-"${Suffix}"
}
pkg_postinst() {
udev_reload
}
pkg_postrm() {
udev_reload
}
|