diff options
author | Stefan Schweizer <genstef@gentoo.org> | 2007-10-13 11:36:31 +0000 |
---|---|---|
committer | Stefan Schweizer <genstef@gentoo.org> | 2007-10-13 11:36:31 +0000 |
commit | 2bdd48ade48fb71fbb6721d3a0bbe1791458ae64 (patch) | |
tree | cfd552d04bd864c13bc5b40eabcd648d5913f854 /kde-misc | |
parent | Version bump to get foo2qpdl for bug 189768 (diff) | |
download | gentoo-2-2bdd48ade48fb71fbb6721d3a0bbe1791458ae64.tar.gz gentoo-2-2bdd48ade48fb71fbb6721d3a0bbe1791458ae64.tar.bz2 gentoo-2-2bdd48ade48fb71fbb6721d3a0bbe1791458ae64.zip |
Add USE=qt4 thanks to Roberto Castagnola <roberto.castagnola@gmail.com> in bug 194887
(Portage version: 2.1.3.12)
Diffstat (limited to 'kde-misc')
-rw-r--r-- | kde-misc/kgtk/ChangeLog | 9 | ||||
-rw-r--r-- | kde-misc/kgtk/files/digest-kgtk-0.9.1-r1 (renamed from kde-misc/kgtk/files/digest-kgtk-0.9.1) | 0 | ||||
-rw-r--r-- | kde-misc/kgtk/kgtk-0.9.1-r1.ebuild | 60 | ||||
-rw-r--r-- | kde-misc/kgtk/kgtk-0.9.1.ebuild | 36 |
4 files changed, 68 insertions, 37 deletions
diff --git a/kde-misc/kgtk/ChangeLog b/kde-misc/kgtk/ChangeLog index 96816bf0d0d1..1699a9a55ec7 100644 --- a/kde-misc/kgtk/ChangeLog +++ b/kde-misc/kgtk/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for kde-misc/kgtk # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/kde-misc/kgtk/ChangeLog,v 1.9 2007/10/09 16:52:00 genstef Exp $ +# $Header: /var/cvsroot/gentoo-x86/kde-misc/kgtk/ChangeLog,v 1.10 2007/10/13 11:36:31 genstef Exp $ + +*kgtk-0.9.1-r1 (13 Oct 2007) + + 13 Oct 2007; Stefan Schweizer <genstef@gentoo.org> -kgtk-0.9.1.ebuild, + +kgtk-0.9.1-r1.ebuild: + Add USE=qt4 thanks to Roberto Castagnola <roberto.castagnola@gmail.com> in + bug 194887 09 Oct 2007; Stefan Schweizer <genstef@gentoo.org> -files/kgtk-no-local.diff, -kgtk-0.7.ebuild, -kgtk-0.8.ebuild, diff --git a/kde-misc/kgtk/files/digest-kgtk-0.9.1 b/kde-misc/kgtk/files/digest-kgtk-0.9.1-r1 index 74f79607798f..74f79607798f 100644 --- a/kde-misc/kgtk/files/digest-kgtk-0.9.1 +++ b/kde-misc/kgtk/files/digest-kgtk-0.9.1-r1 diff --git a/kde-misc/kgtk/kgtk-0.9.1-r1.ebuild b/kde-misc/kgtk/kgtk-0.9.1-r1.ebuild new file mode 100644 index 000000000000..5b50c83b51e1 --- /dev/null +++ b/kde-misc/kgtk/kgtk-0.9.1-r1.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/kde-misc/kgtk/kgtk-0.9.1-r1.ebuild,v 1.1 2007/10/13 11:36:31 genstef Exp $ + +ARTS_REQUIRED="never" +inherit kde + +DESCRIPTION="Allows *some* Gtk, Qt3, and Qt4 applications to use KDE's file dialogs when run under KDE" +HOMEPAGE="http://www.kde-apps.org/content/show.php?content=36077" +SRC_URI="http://home.freeuk.com/cpdrummond/KGtk-${PV}.tar.bz2" +S=$WORKDIR/KGtk-$PV + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="qt4" + +DEPEND=">=x11-libs/gtk+-2.6 + dev-util/cmake + qt4? ( =x11-libs/qt-4* )" +need-kde 3.4 + +src_compile() { + mkdir -p "${S}/build" && cd "${S}/build" + cmake \ + -DCMAKE_INSTALL_PREFIX:PATH=/usr \ + .. || die "cmake (configure) failed" + emake || die "emake failed" + + if use qt4; then + mkdir -p "${S}/build4" && cd "${S}/build4" + cmake \ + -DCMAKE_INSTALL_PREFIX:PATH=/usr \ + -DKGTK_QT4=true -DKGTK_GTK2=false \ + .. || die "cmake (configure) failed" + emake || die "emake failed" + + fi +} + +src_install() { + cd "${S}/build" + emake install DESTDIR="${D}" || die "make install failed" + + if use qt4; then + cd "${S}/build4" + emake install DESTDIR="${D}" || die "make install failed" + fi + + dodoc ../{AUTHORS,ChangeLog,TODO,README} +} + +pkg_postinst() { + elog "To see the kde-file-selector in a gtk-application, just do:" + elog "cd /usr/local/bin" + elog "ln -s /usr/bin/kgtk-wrapper application(eg. firefox)" + elog "Make sure that /usr/local/bin is before /usr/bin in your \$PATH" + elog + elog "You need to restart kde and be sure to change your symlinks to non-.sh" +} diff --git a/kde-misc/kgtk/kgtk-0.9.1.ebuild b/kde-misc/kgtk/kgtk-0.9.1.ebuild deleted file mode 100644 index aa41b9686f22..000000000000 --- a/kde-misc/kgtk/kgtk-0.9.1.ebuild +++ /dev/null @@ -1,36 +0,0 @@ -# Copyright 1999-2007 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/kde-misc/kgtk/kgtk-0.9.1.ebuild,v 1.2 2007/10/09 16:52:00 genstef Exp $ - -inherit kde - -DESCRIPTION="Allows *some* Gtk applications to use KDE's file dialogs when run under KDE" -HOMEPAGE="http://www.kde-apps.org/content/show.php?content=36077" -SRC_URI="http://home.freeuk.com/cpdrummond/KGtk-${PV}.tar.bz2" -S=$WORKDIR/KGtk-$PV - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~ppc ~x86" -IUSE="" - -DEPEND=">=x11-libs/gtk+-2.6 - dev-util/cmake" -need-kde 3.4 - -src_compile() { - cmake \ - -DCMAKE_INSTALL_PREFIX:PATH=/usr \ - . || die "cmake (configure) failed" - - emake || die "emake failed" -} - -pkg_postinst() { - elog "To see the kde-file-selector in a gtk-application, just do:" - elog "cd /usr/local/bin" - elog "ln -s /usr/bin/kgtk-wrapper application(eg. firefox)" - elog "Make sure that /usr/local/bin is before /usr/bin in your \$PATH" - elog - elog "You need to restart kde and be sure to change your symlinks to non-.sh" -} |