summaryrefslogtreecommitdiff
path: root/dev-libs/grantlee/grantlee-9999.ebuild
diff options
context:
space:
mode:
Diffstat (limited to 'dev-libs/grantlee/grantlee-9999.ebuild')
-rw-r--r--dev-libs/grantlee/grantlee-9999.ebuild44
1 files changed, 13 insertions, 31 deletions
diff --git a/dev-libs/grantlee/grantlee-9999.ebuild b/dev-libs/grantlee/grantlee-9999.ebuild
index 966a35c877d..cb19bfbf326 100644
--- a/dev-libs/grantlee/grantlee-9999.ebuild
+++ b/dev-libs/grantlee/grantlee-9999.ebuild
@@ -3,8 +3,11 @@
EAPI=7
+ECM_TEST="true"
+KFMIN=5.65.0
+QTMIN=5.12.3
VIRTUALX_REQUIRED="test"
-inherit kde.org cmake virtualx
+inherit kde.org ecm
DESCRIPTION="C++ string template engine based on the Django template system"
HOMEPAGE="https://github.com/steveire/grantlee"
@@ -12,48 +15,27 @@ HOMEPAGE="https://github.com/steveire/grantlee"
LICENSE="LGPL-2.1+"
SLOT="5"
KEYWORDS=""
-IUSE="debug doc test"
+IUSE="doc"
BDEPEND="
doc? ( app-doc/doxygen[dot] )
- test? ( dev-qt/linguist-tools:5 )
+ test? ( >=dev-qt/linguist-tools-${QTMIN}:5 )
"
RDEPEND="
- dev-qt/qtcore:5
- dev-qt/qtdeclarative:5
- dev-qt/qtgui:5
+ >=dev-qt/qtcore-${QTMIN}:5
+ >=dev-qt/qtdeclarative-${QTMIN}:5
+ >=dev-qt/qtgui-${QTMIN}:5
"
-DEPEND="${RDEPEND}
- test? ( dev-qt/qttest:5 )
-"
-
-RESTRICT+=" !test? ( test )"
-
-PATCHES=(
- "${FILESDIR}/${PN}-0.3.0-nonfatal-warnings.patch"
- "${FILESDIR}/${P}-slot.patch"
-)
+DEPEND="${RDEPEND}"
-src_configure() {
- local mycmakeargs=(
- -DBUILD_TESTS=$(usex test)
- )
-
- cmake_src_configure
-}
+PATCHES=( "${FILESDIR}/${P}-slot.patch" )
src_compile() {
- cmake_src_compile
-
+ ecm_src_compile
use doc && cmake_src_compile docs
}
-src_test() {
- virtx cmake_src_test
-}
-
src_install() {
use doc && local HTML_DOCS=("${BUILD_DIR}/apidox/")
-
- cmake_src_install
+ ecm_src_install
}