From f5e889e38d27f8c57c96556c8d731962ea485b15 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Oliver=20Gro=C3=9F?= Date: Wed, 3 Feb 2010 11:48:24 +0100 Subject: [PATCH] fixed gentoo support --- gentoo/{qbat-9999.ebuild => qbat-9999-r1.ebuild} | 30 ++++-------------------- 1 file changed, 4 insertions(+), 26 deletions(-) rename gentoo/{qbat-9999.ebuild => qbat-9999-r1.ebuild} (51%) diff --git a/gentoo/qbat-9999.ebuild b/gentoo/qbat-9999-r1.ebuild similarity index 51% rename from gentoo/qbat-9999.ebuild rename to gentoo/qbat-9999-r1.ebuild index fd89b28..1dfa8d1 100644 --- a/gentoo/qbat-9999.ebuild +++ b/gentoo/qbat-9999-r1.ebuild @@ -1,7 +1,7 @@ EGIT_REPO_URI="git://repo.or.cz/qbat.git" -inherit eutils flag-o-matic git +inherit cmake-utils eutils git DESCRIPTION="QBat is a small tool based on Qt4 to display battery stats in system tray." HOMEPAGE="http://repo.or.cz/qbat.git" @@ -18,18 +18,11 @@ RDEPEND=" " DEPEND="${RDEPEND} - sys-kernel/linux-headers" + sys-kernel/linux-headers + dev-util/cmake" S=${WORKDIR}/${EGIT_PROJECT} -pkg_setup() { - if ! qmake --version | grep -i qt4 ; then - eerror "qmake does not point to qmake-qt4" - die "Install qmake-qt4 and set symlinks correctly" - fi -} - - src_unpack() { #check version: if [ "$PV" != 9999 ]; then @@ -38,23 +31,8 @@ src_unpack() { git_src_unpack } -src_compile() { - cd "${S}" - config_defines="" - config_release="" - if use debug; then - config_release="debug" - else - config_release="release" - config_defines="$config_defines QT_NO_DEBUG_OUTPUT" - fi - - qmake -recursive -Wall "CONFIG+=$config_release" "DEFINES+=$config_defines" - emake || die -} - src_install() { - make INSTALL_ROOT="${D}" install || die + cmake-utils_src_install doman "${S}/res/qbat.1" } -- 2.11.4.GIT