dev-libs/atcore: new package

Package-Manager: Portage-2.3.19, Repoman-2.3.6
This commit is contained in:
Michael Palimaka
2018-01-26 00:26:08 +11:00
parent fd9992891b
commit f78d336c87
3 changed files with 63 additions and 0 deletions

1
dev-libs/atcore/Manifest Normal file
View File

@@ -0,0 +1 @@
DIST atcore-1.0.0.tar.xz 169116 BLAKE2B 8aaafe18edfbb0dcbe08b99c9cfba2d2390a9e9aaf5ed8ebbc61b6320c37ac4e893a7c64e5c56a131e32ec112fa0d9e253749e634661834de3d03e2cced97dea SHA512 8be63850d939aa9b89651252e91cd3295d52d2d0603f88b846783cca25fc0e29dd3569bfef97aeaf6c115a3bc3328fb127e126b20aaf67faf1c319ac8be7b88b

View File

@@ -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
}

View File

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>kde@gentoo.org</email>
<name>Gentoo KDE Project</name>
</maintainer>
<use>
<flag name="gui">Build test GUI</flag>
</use>
</pkgmetadata>