blob: fe31a2ec945d7d76b3b8eeac78612d1fbc03ccf8 (
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
|
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
inherit cmake-utils git-2 eutils toolchain-funcs
DESCRIPTION="INDI driver the for QHY CCD cameras"
HOMEPAGE="http://indilib.org"
EGIT_REPO_URI="https://github.com/indilib/indi.git"
EGIT_PROJECT="indilib"
EGIT_SOURCEDIR="${WORKDIR}/${P}"
LICENSE="LGPL-2 GPL-3 qhyccd"
KEYWORDS=""
SLOT="0"
DEPEND="=sci-libs/indilib-9999
=sci-libs/libqhy-9999"
RDEPEND="${DEPEND}"
INDI_GIT_DIR="${PN%%lib-driver-*}${PN##*-driver}"
S="${EGIT_SOURCEDIR}/3rdparty/${INDI_GIT_DIR}"
pkg_pretend() {
if gcc-major-version < 5; then
ewarn "You need to activate GCC 5 in order to compile this driver."
ewarn "This is because the binary included in sci-libs/libqhy has been compiled with GCC 5"
ewarn "Install >sys-devel/gcc-5.0.0, then rebuild at least sci-libs/indilib."
ewarn "Upgrading GCC is major task. Please refer to https://wiki.gentoo.org/wiki/Upgrading_GCC beforehand"
ewarn "and especialy to https://wiki.gentoo.org/wiki/Upgrading_GCC#libstdc.2B.2B.so.6:_version_.60GLIBCXX_3.4.15.27_not_found"
die "${PN} won't build with <sys-devel/gcc-5.0.0"
fi
}
|