From owner-svn-ports-all@freebsd.org Tue May 30 18:33:59 2017 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7DB95BD330D; Tue, 30 May 2017 18:33:59 +0000 (UTC) (envelope-from tobik@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 34CE974969; Tue, 30 May 2017 18:33:59 +0000 (UTC) (envelope-from tobik@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v4UIXwRV071437; Tue, 30 May 2017 18:33:58 GMT (envelope-from tobik@FreeBSD.org) Received: (from tobik@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v4UIXvR2071431; Tue, 30 May 2017 18:33:57 GMT (envelope-from tobik@FreeBSD.org) Message-Id: <201705301833.v4UIXvR2071431@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: tobik set sender to tobik@FreeBSD.org using -f From: Tobias Kortkamp Date: Tue, 30 May 2017 18:33:57 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r442112 - in head/deskutils/easystroke: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 May 2017 18:33:59 -0000 Author: tobik Date: Tue May 30 18:33:57 2017 New Revision: 442112 URL: https://svnweb.freebsd.org/changeset/ports/442112 Log: Unbreak build with newer libsigc++ and glibmm - Fix lib dependencies - Respect PREFIX, CFLAGS, CXXFLAGS, and LDFLAGS Approved by: lme (mentor) Differential Revision: https://reviews.freebsd.org/D10815 Added: head/deskutils/easystroke/files/patch-actions.cc (contents, props changed) head/deskutils/easystroke/files/patch-actions.h (contents, props changed) Modified: head/deskutils/easystroke/Makefile head/deskutils/easystroke/files/patch-Makefile head/deskutils/easystroke/files/patch-handler.cc Modified: head/deskutils/easystroke/Makefile ============================================================================== --- head/deskutils/easystroke/Makefile Tue May 30 18:21:35 2017 (r442111) +++ head/deskutils/easystroke/Makefile Tue May 30 18:33:57 2017 (r442112) @@ -3,7 +3,7 @@ PORTNAME= easystroke PORTVERSION= 0.6.0 -PORTREVISION= 6 +PORTREVISION= 7 CATEGORIES= deskutils MASTER_SITES= SF @@ -13,16 +13,16 @@ COMMENT= Easystroke is a gesture-recognition applicati LICENSE= ISCL LICENSE_FILE= ${WRKSRC}/LICENSE -BROKEN= fails to build - BUILD_DEPENDS= help2man:misc/help2man \ ${LOCALBASE}/include/xorg/xserver-properties.h:x11-servers/xorg-server -LIB_DEPENDS= libgtkmm-3.0.so:x11-toolkits/gtkmm30 \ +LIB_DEPENDS= libdbus-1.so:devel/dbus \ libdbus-glib-1.so:devel/dbus-glib \ libboost_serialization.so:devel/boost-libs -USE_XORG= x11 xtst -USES= gettext gmake pkgconfig +USE_GNOME= gtkmm30 +USE_XORG= x11 xext xfixes xi xtst +USES= compiler:c++11-lang gettext gmake pkgconfig +USE_CXXSTD= c++11 INSTALLS_ICONS= yes OPTIONS_DEFINE= NLS Modified: head/deskutils/easystroke/files/patch-Makefile ============================================================================== --- head/deskutils/easystroke/files/patch-Makefile Tue May 30 18:21:35 2017 (r442111) +++ head/deskutils/easystroke/files/patch-Makefile Tue May 30 18:33:57 2017 (r442112) @@ -1,6 +1,30 @@ ---- Makefile.orig 2013-05-18 19:53:39.780480687 +0200 -+++ Makefile 2013-05-18 19:54:36.579483230 +0200 -@@ -82,9 +82,9 @@ +--- Makefile.orig 2013-03-27 15:52:38 UTC ++++ Makefile +@@ -12,19 +12,15 @@ + # OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN + # CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +-DESTDIR = +-PREFIX = /usr/local + BINDIR = $(PREFIX)/bin + ICONDIR = $(PREFIX)/share/icons/hicolor/scalable/apps + MENUDIR = $(PREFIX)/share/applications + LOCALEDIR= $(PREFIX)/share/locale + DFLAGS = +-OFLAGS = -O2 +-AOFLAGS = -O3 +-STROKEFLAGS = -Wall -std=c99 $(DFLAGS) +-CXXFLAGS = -Wall $(DFLAGS) -DLOCALEDIR=\"$(LOCALEDIR)\" `pkg-config gtkmm-3.0 dbus-glib-1 --cflags` +-CFLAGS = -Wall $(DFLAGS) -DLOCALEDIR=\"$(LOCALEDIR)\" `pkg-config gtk+-3.0 --cflags` -DGETTEXT_PACKAGE='"easystroke"' +-LDFLAGS = $(DFLAGS) ++STROKEFLAGS = -Wall -std=c99 $(CFLAGS) ++CXXFLAGS += -Wall $(DFLAGS) -DLOCALEDIR=\"$(LOCALEDIR)\" `pkg-config gtkmm-3.0 dbus-glib-1 --cflags` ++CFLAGS += -Wall $(DFLAGS) -DLOCALEDIR=\"$(LOCALEDIR)\" `pkg-config gtk+-3.0 --cflags` -DGETTEXT_PACKAGE='"easystroke"' ++LDFLAGS += $(DFLAGS) + + LIBS = $(DFLAGS) -lboost_serialization -lX11 -lXext -lXi -lXfixes -lXtst `pkg-config gtkmm-3.0 dbus-glib-1 --libs` + +@@ -82,9 +78,9 @@ gui.c: gui.glade easystroke.desktop: easystroke.desktop.in $(MOFILES) intltool-merge po/ -d -u $< $@ Added: head/deskutils/easystroke/files/patch-actions.cc ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/deskutils/easystroke/files/patch-actions.cc Tue May 30 18:33:57 2017 (r442112) @@ -0,0 +1,18 @@ +Fix build with libsigc++ 2.4+ (group was removed). + +https://aur.archlinux.org/cgit/aur.git/commit/sigc.patch?h=easystroke-git&id=3d16f0584c8cf0ade6c181cb56c12d7abe2e17b7 + +--- actions.cc.orig 2013-03-27 15:52:38 UTC ++++ actions.cc +@@ -51,10 +51,8 @@ void TreeViewMulti::on_drag_begin(const Glib::RefPtrset_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(sigc::mem_fun(*this, &TreeViewMulti::negate_pending)); + } + + enum Type { COMMAND, KEY, TEXT, SCROLL, IGNORE, BUTTON, MISC }; Added: head/deskutils/easystroke/files/patch-actions.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/deskutils/easystroke/files/patch-actions.h Tue May 30 18:33:57 2017 (r442112) @@ -0,0 +1,18 @@ +Fix build with libsigc++ 2.4+ (group was removed). + +https://aur.archlinux.org/cgit/aur.git/commit/sigc.patch?h=easystroke-git&id=3d16f0584c8cf0ade6c181cb56c12d7abe2e17b7 + +--- actions.h.orig 2013-03-27 15:52:38 UTC ++++ actions.h +@@ -31,6 +31,11 @@ class TreeViewMulti : public Gtk::TreeView { + virtual void on_drag_begin(const Glib::RefPtr &context); + public: + TreeViewMulti(); ++ bool negate_pending(const Glib::RefPtr& model, ++ const Gtk::TreeModel::Path& path, ++ bool path_currently_selected) { ++ return !pending; ++ } + }; + + class Actions { Modified: head/deskutils/easystroke/files/patch-handler.cc ============================================================================== --- head/deskutils/easystroke/files/patch-handler.cc Tue May 30 18:21:35 2017 (r442111) +++ head/deskutils/easystroke/files/patch-handler.cc Tue May 30 18:33:57 2017 (r442112) @@ -1,6 +1,6 @@ --- handler.cc.orig 2013-03-27 15:52:38 UTC +++ handler.cc -@@ -533,8 +533,6 @@ public: +@@ -533,8 +533,6 @@ class WaitForPongHandler : public Handler, protected T virtual Grabber::State grab_mode() { return parent->grab_mode(); } };