diff options
author | Mike Pagano <mpagano@gentoo.org> | 2008-04-11 12:08:53 +0000 |
---|---|---|
committer | Mike Pagano <mpagano@gentoo.org> | 2008-04-11 12:08:53 +0000 |
commit | 2a0ae9893fcfba0eef53226c057f9c2e12cb0a62 (patch) | |
tree | 6e49c7637d6d91f1a222002af62d334a917d0812 /sys-kernel/kccmp | |
parent | Add a patch to let it build with latest ffmpeg headers layout (diff) | |
download | gentoo-2-2a0ae9893fcfba0eef53226c057f9c2e12cb0a62.tar.gz gentoo-2-2a0ae9893fcfba0eef53226c057f9c2e12cb0a62.tar.bz2 gentoo-2-2a0ae9893fcfba0eef53226c057f9c2e12cb0a62.zip |
Changes for qt-4.4 as per bug #217175
(Portage version: 2.1.5_rc2)
Diffstat (limited to 'sys-kernel/kccmp')
-rw-r--r-- | sys-kernel/kccmp/ChangeLog | 7 | ||||
-rw-r--r-- | sys-kernel/kccmp/kccmp-0.2-r1.ebuild | 55 |
2 files changed, 61 insertions, 1 deletions
diff --git a/sys-kernel/kccmp/ChangeLog b/sys-kernel/kccmp/ChangeLog index f17da8ff8e85..21e02ee423df 100644 --- a/sys-kernel/kccmp/ChangeLog +++ b/sys-kernel/kccmp/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for sys-kernel/kccmp # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-kernel/kccmp/ChangeLog,v 1.7 2008/03/07 22:14:12 angelos Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-kernel/kccmp/ChangeLog,v 1.8 2008/04/11 12:08:53 mpagano Exp $ + +*kccmp-0.2-r1 (11 Apr 2008) + + 11 Apr 2008; Mike Pagano <mpagano@gentoo.org> +kccmp-0.2-r1.ebuild: + Changes for qt-4.4 as per bug #217175 07 Mar 2008; Christoph Mende <angelos@gentoo.org> kccmp-0.2.ebuild: Stable on amd64, bug #208045 diff --git a/sys-kernel/kccmp/kccmp-0.2-r1.ebuild b/sys-kernel/kccmp/kccmp-0.2-r1.ebuild new file mode 100644 index 000000000000..077981a68548 --- /dev/null +++ b/sys-kernel/kccmp/kccmp-0.2-r1.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-kernel/kccmp/kccmp-0.2-r1.ebuild,v 1.1 2008/04/11 12:08:53 mpagano Exp $ + +EAPI="1" +inherit qt3 qt4 + +DESCRIPTION="A simple tool for comparing two linux kernel .config files" +HOMEPAGE="http://stoopidsimple.com/kccmp/" +SRC_URI="http://stoopidsimple.com/files/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +IUSE="qt4" +RDEPEND="!qt4? ( =x11-libs/qt-3* ) + qt4? ( || ( x11-libs/qt-core:4 + x11-libs/qt-gui:4 ) + >=x11-libs/qt-4.3:4 )" +DEPEND="${RDEPEND}" + +src_unpack() { + unpack ${A} + cd "${S}" + + if use qt4 ; then + #uncomment define for qt4 support + sed -i 's/#DEFINES += KCCMP_QT_4/DEFINES += KCCMP_QT_4/' kccmp.pro \ + || die "Could not uncomment define for qt support" + else + #do not link to boost libs when not using qt4 + sed -i 's/LIBS/#LIBS/' kccmp.pro \ + || die "Could not remove linking to boost library" + fi +} + +src_compile() { + # Generates top-level Makefile + if use qt4 ; then + eqmake4 + else + eqmake3 + fi + + sed -i -e "/^CFLAGS =/s:-g:${CFLAGS}:" \ + Makefile || die "sed Makefile failed" + + emake || die "emake failed" +} + +src_install() { + dobin kccmp || die "installing binary failed" + dodoc README +} |