diff options
author | Ctibor <ctibor@brancik.cz> | 2017-03-08 20:20:01 +0100 |
---|---|---|
committer | Ctibor <ctibor@brancik.cz> | 2017-03-08 20:20:01 +0100 |
commit | 73b5b6f550a3b8600b55889183ccfb06c1e77204 (patch) | |
tree | dc8c6262c198dbabbe701f9244194e18440bcd79 /sci-libs/indilib-driver-qhy | |
parent | 41766c4e4b36ec89011835ddeec771a2b49ec7b6 (diff) | |
download | brancik-overlay-73b5b6f550a3b8600b55889183ccfb06c1e77204.tar.gz brancik-overlay-73b5b6f550a3b8600b55889183ccfb06c1e77204.tar.bz2 |
Add sci-libs/indilib-driver-qhy check for GCC 5
Diffstat (limited to 'sci-libs/indilib-driver-qhy')
-rw-r--r-- | sci-libs/indilib-driver-qhy/indilib-driver-qhy-1.4.1.ebuild | 13 | ||||
-rw-r--r-- | sci-libs/indilib-driver-qhy/indilib-driver-qhy-9999.ebuild | 13 |
2 files changed, 24 insertions, 2 deletions
diff --git a/sci-libs/indilib-driver-qhy/indilib-driver-qhy-1.4.1.ebuild b/sci-libs/indilib-driver-qhy/indilib-driver-qhy-1.4.1.ebuild index e127f48..c492259 100644 --- a/sci-libs/indilib-driver-qhy/indilib-driver-qhy-1.4.1.ebuild +++ b/sci-libs/indilib-driver-qhy/indilib-driver-qhy-1.4.1.ebuild @@ -6,7 +6,7 @@ EAPI=5 MY_PN="${PN%%lib-driver-**}" -inherit cmake-utils eutils +inherit cmake-utils eutils toolchain-funcs DESCRIPTION="INDI driver for the QHY CCD cameras" HOMEPAGE="http://indilib.org" @@ -25,3 +25,14 @@ 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 + 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 +} diff --git a/sci-libs/indilib-driver-qhy/indilib-driver-qhy-9999.ebuild b/sci-libs/indilib-driver-qhy/indilib-driver-qhy-9999.ebuild index f62c6a1..fe31a2e 100644 --- a/sci-libs/indilib-driver-qhy/indilib-driver-qhy-9999.ebuild +++ b/sci-libs/indilib-driver-qhy/indilib-driver-qhy-9999.ebuild @@ -4,7 +4,7 @@ EAPI=5 -inherit cmake-utils git-2 eutils +inherit cmake-utils git-2 eutils toolchain-funcs DESCRIPTION="INDI driver the for QHY CCD cameras" HOMEPAGE="http://indilib.org" @@ -25,3 +25,14 @@ 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 +} |