blob: 46c3cbb5b45ab94dd1465c2b7f628bd6e8c10c34 (
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
|
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
MY_PN="${PN%%lib-driver-**}"
inherit cmake-utils eutils toolchain-funcs
DESCRIPTION="INDI driver for the QHY CCD cameras"
HOMEPAGE="http://indilib.org"
SRC_URI="https://github.com/${MY_PN}lib/${MY_PN}/archive/v${PV}.tar.gz -> ${MY_PN}lib-${PV}.tar.gz"
LICENSE="LGPL-2.1"
KEYWORDS="~amd64 ~x86"
SLOT="0"
DEPEND="<sci-libs/indilib-9999
<sci-libs/libqhy-9999"
RDEPEND="${DEPEND}"
INDI_TARGET_DIRECTORY="${PN%%lib-driver-**}${PN##*-driver}"
S="${WORKDIR}/${MY_PN}-${PV}/3rdparty/${INDI_TARGET_DIRECTORY}"
pkg_pretend() {
if [[ $(gcc-major-version) < 5 ]]; then
eerror "You need to activate GCC 5 in order to compile this driver."
eerror "This is because the binary included in sci-libs/libqhy has been built"
eerror "with GCC 5. You need to install and activate sys-devel/gcc-5*"
eerror "Please refer onto https://wiki.gentoo.org/wiki/Upgrading_GCC "
eerror "for complete Gentoo GCC upgrading guide."
die "GCC 5 is needed to build this package!"
fi
}
|