commit:     2bf7cce9aa019ef4ed480de21b10eb00bef13c9f
Author:     Alexey Korepanov <kaikaikai <AT> yandex <DOT> ru>
AuthorDate: Fri Apr 22 10:01:16 2016 +0000
Commit:     Patrice Clement <monsieurp <AT> gentoo <DOT> org>
CommitDate: Sun Jun  5 08:29:43 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2bf7cce9

lxde-base/lxterminal: Version bump. Add gtk3 USE flag.

Closes: https://github.com/gentoo/gentoo/pull/1323
Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org>

 ...rminal-0.2.0.ebuild => lxterminal-0.2.0-r1.ebuild} | 19 ++++++++++---------
 lxde-base/lxterminal/metadata.xml                     |  3 +++
 2 files changed, 13 insertions(+), 9 deletions(-)

diff --git a/lxde-base/lxterminal/lxterminal-0.2.0.ebuild 
b/lxde-base/lxterminal/lxterminal-0.2.0-r1.ebuild
similarity index 64%
rename from lxde-base/lxterminal/lxterminal-0.2.0.ebuild
rename to lxde-base/lxterminal/lxterminal-0.2.0-r1.ebuild
index 83a43a1..d2c87cc 100644
--- a/lxde-base/lxterminal/lxterminal-0.2.0.ebuild
+++ b/lxde-base/lxterminal/lxterminal-0.2.0-r1.ebuild
@@ -1,8 +1,8 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
-EAPI=5
+EAPI=6
 
 DESCRIPTION="Lightweight vte-based tabbed terminal emulator for LXDE"
 HOMEPAGE="http://lxde.sf.net/";
@@ -11,17 +11,18 @@ SRC_URI="mirror://sourceforge/lxde/${P}.tar.gz"
 LICENSE="GPL-2"
 KEYWORDS="~alpha ~amd64 ~arm ~mips ~ppc ~x86 ~x86-interix ~amd64-linux 
~arm-linux ~x86-linux"
 SLOT="0"
-IUSE=""
+IUSE="gtk3"
 
-RDEPEND="x11-libs/gtk+:2
-       dev-libs/glib:2
-       x11-libs/vte:0"
+RDEPEND="dev-libs/glib:2
+       !gtk3? ( x11-libs/gtk+:2 x11-libs/vte:0 )
+       gtk3?  ( x11-libs/gtk+:3 x11-libs/vte:2.90 )"
 DEPEND="${RDEPEND}
        virtual/pkgconfig
        sys-devel/gettext
        >=dev-util/intltool-0.40.0"
 
-src_install () {
-       emake DESTDIR="${D}" install
-       dodoc AUTHORS README
+DOCS=( AUTHORS README )
+
+src_configure() {
+       econf $(use_enable gtk3)
 }

diff --git a/lxde-base/lxterminal/metadata.xml 
b/lxde-base/lxterminal/metadata.xml
index b31e527..be43ebb 100644
--- a/lxde-base/lxterminal/metadata.xml
+++ b/lxde-base/lxterminal/metadata.xml
@@ -5,6 +5,9 @@
     <email>[email protected]</email>
     <name>Gentoo LXDE Project</name>
   </maintainer>
+  <use>
+    <flag name="gtk3">Use GTK+3 instead of GTK+2</flag>
+  </use>
   <upstream>
     <remote-id type="sourceforge">lxde</remote-id>
   </upstream>

Reply via email to