From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 0EE791384B4 for ; Thu, 31 Dec 2015 11:34:08 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 69C0721C02B; Thu, 31 Dec 2015 11:34:04 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id EC87021C02B for ; Thu, 31 Dec 2015 11:34:03 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 7E5943408A6 for ; Thu, 31 Dec 2015 11:34:02 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 8653B173 for ; Thu, 31 Dec 2015 11:33:55 +0000 (UTC) From: "Pacho Ramos" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Pacho Ramos" Message-ID: <1451561630.632f38845a2fb3d05467baf7dadd6107f3ce75b8.pacho@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: x11-misc/easystroke/, x11-misc/easystroke/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: x11-misc/easystroke/easystroke-0.6.0-r2.ebuild x11-misc/easystroke/files/easystroke-0.6.0-cxx11.patch X-VCS-Directories: x11-misc/easystroke/files/ x11-misc/easystroke/ X-VCS-Committer: pacho X-VCS-Committer-Name: Pacho Ramos X-VCS-Revision: 632f38845a2fb3d05467baf7dadd6107f3ce75b8 X-VCS-Branch: master Date: Thu, 31 Dec 2015 11:33:55 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: af9f3c49-65ea-4958-97e1-a93f10be160e X-Archives-Hash: c0a2c3c6c8d949fb86bdc829756d1de4 commit: 632f38845a2fb3d05467baf7dadd6107f3ce75b8 Author: Pacho Ramos gentoo org> AuthorDate: Thu Dec 31 11:33:40 2015 +0000 Commit: Pacho Ramos gentoo org> CommitDate: Thu Dec 31 11:33:50 2015 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=632f3884 x11-misc/easystroke: Fix building with latest glibmm/libsigc++ with ArchLinux patch (#569606) Package-Manager: portage-2.2.26 x11-misc/easystroke/easystroke-0.6.0-r2.ebuild | 65 ++++++++++++++++++++++ .../easystroke/files/easystroke-0.6.0-cxx11.patch | 18 ++++++ 2 files changed, 83 insertions(+) diff --git a/x11-misc/easystroke/easystroke-0.6.0-r2.ebuild b/x11-misc/easystroke/easystroke-0.6.0-r2.ebuild new file mode 100644 index 0000000..ef52536 --- /dev/null +++ b/x11-misc/easystroke/easystroke-0.6.0-r2.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils flag-o-matic toolchain-funcs + +DESCRIPTION="a gesture-recognition application for X11" +HOMEPAGE="http://sourceforge.net/apps/trac/easystroke/" +SRC_URI="mirror://sourceforge/project/${PN}/${PN}/${PV}/${P}.tar.gz" + +LICENSE="ISC" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + dev-cpp/gtkmm:3.0 + dev-libs/boost + dev-libs/dbus-glib + dev-libs/glib:2 + x11-base/xorg-server + x11-libs/libX11 + x11-libs/libXext + x11-libs/libXfixes + x11-libs/libXi + x11-libs/libXtst +" +DEPEND=" + ${RDEPEND} + dev-util/intltool + sys-devel/gettext +" + +src_prepare() { + epatch "${FILESDIR}"/${P}-cellrendertextish.patch + epatch "${FILESDIR}"/${P}-desktop.patch + epatch "${FILESDIR}"/${P}-gentoo.patch + epatch "${FILESDIR}"/${P}-reinstate-signal-handlers.patch + epatch "${FILESDIR}"/${P}-buttons-scroll-send.patch + epatch "${FILESDIR}"/${P}-cxx11.patch + + tc-export CC CXX PKG_CONFIG + + if ! [[ -z ${LINGUAS} ]]; then + strip-linguas -i po/ + + local es_lingua lang + for es_lingua in $( printf "%s\n" po/*.po ); do + lang=${es_lingua/po\/} + has ${lang/.po/} ${LINGUAS} || rm ${es_lingua} + done + fi +} + +src_compile() { + append-cxxflags -std=c++11 + emake \ + AOFLAGS='' \ + LDFLAGS="${LDFLAGS}" \ + PREFIX=/usr +} + +src_install() { + emake DESTDIR="${D}" PREFIX=/usr install +} diff --git a/x11-misc/easystroke/files/easystroke-0.6.0-cxx11.patch b/x11-misc/easystroke/files/easystroke-0.6.0-cxx11.patch new file mode 100644 index 0000000..b628d1b --- /dev/null +++ b/x11-misc/easystroke/files/easystroke-0.6.0-cxx11.patch @@ -0,0 +1,18 @@ +diff -uprb easystroke-0.6.0.orig/actions.cc easystroke-0.6.0/actions.cc +--- easystroke-0.6.0.orig/actions.cc 2013-03-27 17:52:38.000000000 +0200 ++++ easystroke-0.6.0/actions.cc 2015-12-07 22:07:17.720041171 +0200 +@@ -51,10 +51,11 @@ void TreeViewMulti::on_drag_begin(const + context->set_icon(pb, pb->get_width(), pb->get_height()); + } + +-bool negate(bool b) { return !b; } +- + TreeViewMulti::TreeViewMulti() : Gtk::TreeView(), pending(false) { +- get_selection()->set_select_function(sigc::group(&negate, sigc::ref(pending))); ++ get_selection()->set_select_function( ++ [this](Glib::RefPtr const&, Gtk::TreeModel::Path const&, bool) { ++ return !pending; ++ }); + } + + enum Type { COMMAND, KEY, TEXT, SCROLL, IGNORE, BUTTON, MISC };