diff options
author | Michael Palimaka <kensington@gentoo.org> | 2018-01-26 00:26:08 +1100 |
---|---|---|
committer | Michael Palimaka <kensington@gentoo.org> | 2018-01-26 00:26:44 +1100 |
commit | f78d336c8792bd154dce291e2647ecab8362ac4f (patch) | |
tree | 346a40302568d46ab2fc4ae8cadd34881153e10c /dev-libs/atcore/atcore-1.0.0.ebuild | |
parent | sys-libs/musl-nscd: add myself as second maintainer (diff) | |
download | gentoo-f78d336c8792bd154dce291e2647ecab8362ac4f.tar.gz gentoo-f78d336c8792bd154dce291e2647ecab8362ac4f.tar.bz2 gentoo-f78d336c8792bd154dce291e2647ecab8362ac4f.zip |
dev-libs/atcore: new package
Package-Manager: Portage-2.3.19, Repoman-2.3.6
Diffstat (limited to 'dev-libs/atcore/atcore-1.0.0.ebuild')
-rw-r--r-- | dev-libs/atcore/atcore-1.0.0.ebuild | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/dev-libs/atcore/atcore-1.0.0.ebuild b/dev-libs/atcore/atcore-1.0.0.ebuild new file mode 100644 index 000000000000..357745bd6e64 --- /dev/null +++ b/dev-libs/atcore/atcore-1.0.0.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit cmake-utils kde5-functions + +DESCRIPTION="API to manage the serial connection between the computer and 3D Printers" +SRC_URI="mirror://kde/stable/${PN}/${PV}/${P}.tar.xz" +HOMEPAGE="https://atelier.kde.org/" + +LICENSE="|| ( LGPL-2.1+ LGPL-3 ) gui? ( GPL-3+ )" +SLOT="0" +KEYWORDS="~amd64" +IUSE="doc gui test" + +RDEPEND=" + $(add_qt_dep qtcore) + $(add_qt_dep qtserialport) + gui? ( + $(add_qt_dep qtcharts) + $(add_qt_dep qtgui) + $(add_qt_dep qtwidgets) + ) +" +DEPEND="${RDEPEND} + $(add_frameworks_dep extra-cmake-modules) + doc? ( app-doc/doxygen[dot] ) + test? ( $(add_qt_dep qttest) ) +" + +src_prepare() { + cmake-utils_src_prepare + + sed -e "s/${PN}/${PF}/" -i doc/CMakeLists.txt || die + + use gui || punt_bogus_dep Qt5 Charts + if ! use test; then + cmake_comment_add_subdirectory unittests + punt_bogus_dep Qt5 Test + fi +} + +src_configure() { + local mycmakeargs=( + -DBUILD_DOCS=$(usex doc) + -DBUILD_TEST_GUI=$(usex gui) + ) + + cmake-utils_src_configure +} |