diff options
| author | Andreas Sturmlechner <asturm@gentoo.org> | 2020-01-12 09:34:31 +0100 |
|---|---|---|
| committer | Andreas Sturmlechner <asturm@gentoo.org> | 2020-01-12 10:11:53 +0100 |
| commit | a346f86521d1c3b901b8e016f7e829e082536db5 (patch) | |
| tree | 2a755f96ce23d7cb3a19cda78638dcc07a5e1cb4 /dev-libs/grantlee/grantlee-9999.ebuild | |
| parent | 7a9334741467f0c0db6e79f35573abe7a6909ade (diff) | |
| download | kde-a346f86521d1c3b901b8e016f7e829e082536db5.tar.gz kde-a346f86521d1c3b901b8e016f7e829e082536db5.tar.bz2 kde-a346f86521d1c3b901b8e016f7e829e082536db5.zip | |
dev-libs/grantlee: Revert "Use ecm.eclass", "Moved to kde.org"
This reverts commit 09e7eb596ec6441fc7a523809e3dad3f09b5be50.
This reverts commit ab4c576a77fad0ac660a114d24d226509a8440a9.
Dropped out of kde.org again, next try with KF6.
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'dev-libs/grantlee/grantlee-9999.ebuild')
| -rw-r--r-- | dev-libs/grantlee/grantlee-9999.ebuild | 45 |
1 files changed, 32 insertions, 13 deletions
diff --git a/dev-libs/grantlee/grantlee-9999.ebuild b/dev-libs/grantlee/grantlee-9999.ebuild index cf22c7b7cdc..50bf81645a8 100644 --- a/dev-libs/grantlee/grantlee-9999.ebuild +++ b/dev-libs/grantlee/grantlee-9999.ebuild @@ -3,39 +3,58 @@ EAPI=7 -ECM_TEST="true" -KFMIN=5.65.0 -QTMIN=5.12.3 VIRTUALX_REQUIRED="test" -inherit kde.org ecm +inherit cmake virtualx git-r3 DESCRIPTION="C++ string template engine based on the Django template system" HOMEPAGE="https://github.com/steveire/grantlee" +EGIT_REPO_URI=( "https://github.com/steveire/${PN}" ) LICENSE="LGPL-2.1+" SLOT="5" KEYWORDS="" -IUSE="doc" +IUSE="debug doc test" BDEPEND=" doc? ( app-doc/doxygen[dot] ) - test? ( >=dev-qt/linguist-tools-${QTMIN}:5 ) + test? ( dev-qt/linguist-tools:5 ) " RDEPEND=" - >=dev-qt/qtcore-${QTMIN}:5 - >=dev-qt/qtdeclarative-${QTMIN}:5 - >=dev-qt/qtgui-${QTMIN}:5 + dev-qt/qtcore:5 + dev-qt/qtdeclarative:5 + dev-qt/qtgui:5 " -DEPEND="${RDEPEND}" +DEPEND="${RDEPEND} + test? ( dev-qt/qttest:5 ) +" + +RESTRICT+=" !test? ( test )" + +PATCHES=( + "${FILESDIR}/${PN}-0.3.0-nonfatal-warnings.patch" + "${FILESDIR}/${P}-slot.patch" +) -PATCHES=( "${FILESDIR}/${P}-slot.patch" ) +src_configure() { + local mycmakeargs=( + -DBUILD_TESTS=$(usex test) + ) + + cmake_src_configure +} src_compile() { - ecm_src_compile + cmake_src_compile + use doc && cmake_src_compile docs } +src_test() { + virtx cmake_src_test +} + src_install() { use doc && local HTML_DOCS=("${BUILD_DIR}/apidox/") - ecm_src_install + + cmake_src_install } |
