diff options
author | Ctibor Brančík <ctibor@brancik.cz> | 2018-06-16 13:33:06 +0200 |
---|---|---|
committer | Ctibor Brančík <ctibor@brancik.cz> | 2018-06-16 13:33:06 +0200 |
commit | 05d62cb4cb0bbd84e165d1bf7e3b0968096870a5 (patch) | |
tree | 6f5f48838ccb838e59c4689fd0a16c27ab95bb61 /sci-libs/indilib/indilib-1.7.0.ebuild | |
parent | 93e5c53e4e386e9401d3dd792cffc4d481466286 (diff) | |
download | brancik-overlay-05d62cb4cb0bbd84e165d1bf7e3b0968096870a5.tar.gz brancik-overlay-05d62cb4cb0bbd84e165d1bf7e3b0968096870a5.tar.bz2 |
Update indilib and all drivers to v1.7.0
Diffstat (limited to 'sci-libs/indilib/indilib-1.7.0.ebuild')
-rw-r--r-- | sci-libs/indilib/indilib-1.7.0.ebuild | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/sci-libs/indilib/indilib-1.7.0.ebuild b/sci-libs/indilib/indilib-1.7.0.ebuild new file mode 100644 index 0000000..0b493cb --- /dev/null +++ b/sci-libs/indilib/indilib-1.7.0.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +MY_PN="${PN/lib/}" + +inherit cmake-utils udev user + +DESCRIPTION="INDI Astronomical Control Protocol library" +HOMEPAGE="http://www.indilib.org/" +SRC_URI="https://github.com/${PN}/${MY_PN}/archive/v${PV}.tar.gz -> ${PN}-${PV}.tar.gz" + +LICENSE="LGPL-2.1+ BSD GPL-2+ LGPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="ogg test drivers qt5" + +RDEPEND=" + sci-libs/cfitsio + sci-libs/libnova + sci-libs/gsl + sys-libs/zlib + virtual/jpeg:0 + virtual/libusb:1 + net-misc/curl + qt5? ( dev-qt/qtnetwork:5 ) + ogg? ( + media-libs/libogg + media-libs/libtheora + ) +" +DEPEND="${RDEPEND} + sys-kernel/linux-headers + drivers? ( sci-libs/indilib-drivers ) + test? ( + dev-cpp/gmock + dev-cpp/gtest + ) +" + +DOCS=( AUTHORS ChangeLog README TODO ) + +S=${WORKDIR}/${MY_PN}-${PV}/libindi + +src_configure() { + local mycmakeargs=( + -DUDEVRULES_INSTALL_DIR=$(get_udevdir)/rules.d + -DINDI_BUILD_UNITTESTS=$(usex test) + $(cmake-utils_use qt5 INDI_BUILD_QT5_CLIENT) + $(cmake-utils_use_find_package ogg OggTheora) + ) + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + newinitd "${FILESDIR}/indiserver.sh" indiserver + newconfd "${FILESDIR}/indiserver.conf" indiserver +} + +pkg_postinst() { + enewgroup indiserver + enewuser indiserver -1 -1 -1 "usb,uucp,video,indiserver" + elog "You can use init script in /etc/init.d/indiserver to start" + elog "indiserver automatically." + elog "Configuration is in /etc/conf.d/indiserver." +} |