Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Jan 2013 22:43:07 +0000 (UTC)
From:      Nicola Vitale <nivit@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r310953 - in head/x11: . gnome-pie gnome-pie/files
Message-ID:  <201301242243.r0OMh71w014621@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: nivit
Date: Thu Jan 24 22:43:07 2013
New Revision: 310953
URL: http://svnweb.freebsd.org/changeset/ports/310953

Log:
  Gnome-Pie is a circular application launcher. It is made of several pies,
  each consisting of multiple slices. The user presses a key stroke which
  opens the desired pie. By activating one of its slices, applications may
  be launched, key presses may be simulated or files can be opened.
  
  WWW: http://gnome-pie.simonschneegans.de/

Added:
  head/x11/gnome-pie/
  head/x11/gnome-pie/Makefile   (contents, props changed)
  head/x11/gnome-pie/distinfo   (contents, props changed)
  head/x11/gnome-pie/files/
  head/x11/gnome-pie/files/patch-CMakeLists.txt   (contents, props changed)
  head/x11/gnome-pie/files/patch-resources__gnome-pie.desktop   (contents, props changed)
  head/x11/gnome-pie/files/patch-src__CMakeLists.txt   (contents, props changed)
  head/x11/gnome-pie/files/patch-src__actionGroups__windowListGroup.vala   (contents, props changed)
  head/x11/gnome-pie/files/patch-src__actions__actionRegistry.vala   (contents, props changed)
  head/x11/gnome-pie/files/patch-src__utilities__paths.vala   (contents, props changed)
  head/x11/gnome-pie/files/pkg-message.in   (contents, props changed)
  head/x11/gnome-pie/pkg-descr   (contents, props changed)
  head/x11/gnome-pie/pkg-plist   (contents, props changed)
Modified:
  head/x11/Makefile

Modified: head/x11/Makefile
==============================================================================
--- head/x11/Makefile	Thu Jan 24 22:32:36 2013	(r310952)
+++ head/x11/Makefile	Thu Jan 24 22:43:07 2013	(r310953)
@@ -83,6 +83,7 @@
     SUBDIR += gnome-menus
     SUBDIR += gnome-panel
     SUBDIR += gnome-panel-reference
+    SUBDIR += gnome-pie
     SUBDIR += gnome-screensaver
     SUBDIR += gnome-session
     SUBDIR += gnome-shell

Added: head/x11/gnome-pie/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/x11/gnome-pie/Makefile	Thu Jan 24 22:43:07 2013	(r310953)
@@ -0,0 +1,74 @@
+# Created by: Nicola Vitale <nivit@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME=	gnome-pie
+PORTVERSION=	0.5.2
+#PORTREVISION=	0
+CATEGORIES=	x11
+# Waiting for a tag on the GitHub repository https://github.com/Simmesimme/Gnome-Pie...
+MASTER_SITES=	LOCAL/nivit/${PORTNAME}/
+
+MAINTAINER=	nivit@FreeBSD.org
+COMMENT=	Circular application launcher
+
+LICENSE=	GPLv3
+
+BUILD_DEPENDS=	valac:${PORTSDIR}/lang/vala
+RUN_DEPENDS=	gnome-icons-elementary>=2.5:${PORTSDIR}/x11-themes/gnome-icons-elementary \
+		gnome-settings-daemon>=2.32.1_4:${PORTSDIR}/sysutils/gnome-settings-daemon
+LIB_DEPENDS=	Xtst:${PORTSDIR}/x11/libXtst \
+		cairo:${PORTSDIR}/graphics/cairo \
+		gee:${PORTSDIR}/devel/libgee \
+		unique:${PORTSDIR}/x11-toolkits/unique
+
+INSTALLS_ICONS=	yes
+OPTIONS_DEFINE=	DOCS MANPAGES NLS
+OPTIONS_DEFAULT=	DOCS MANPAGES NLS
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MDOCS}
+CMAKE_ARGS=	-DINSTALL_DOCS:BOOL=ON
+.endif
+
+.if ${PORT_OPTIONS:MMANPAGES}
+MAN1=	gnome-pie.1
+.else
+CMAKE_ARGS+=	-DNO_INSTALL_MANPAGES:BOOL=ON
+.endif
+
+.if ${PORT_OPTIONS:MNLS}
+CMAKE_ARGS+=	-DINSTALL_NLS:BOOL=ON
+USE_GETTEXT=	yes
+PLIST_SUB=	NLS=""
+.else
+CMAKE_ARGS+=	-DINSTALL_NLS:BOOL=OFF
+PLIST_SUB=	NLS="@comment "
+.endif
+
+PLIST_SUB+=	DESKTOPDIR=${DESKTOPDIR:S,${PREFIX}/,,}
+
+REINPLACE_ARGS=	-e 's,%%DATADIR%%,${DATADIR},1' \
+		-e 's,%%DESKTOPDIR%%,${DESKTOPDIR},1' \
+		-e 's,%%PREFIX%%,${PREFIX},1' \
+		-i.bak
+
+SUB_FILES=	pkg-message
+SUB_LIST=	PORTSDIR=${PORTSDIR}
+
+USE_BZIP2=	yes
+USE_CMAKE=	yes
+USE_GNOME=	gconf2 gnomemenus gtk20 libwnck
+USE_PKGCONFIG=	build
+
+post-patch:
+	${REINPLACE_CMD} ${WRKSRC}/src/actions/actionRegistry.vala ${WRKSRC}/src/utilities/paths.vala
+
+post-install:
+	@${CAT} ${PKGMESSAGE}
+
+gnome-pie-user:
+	gconftool-2 --type string --set /desktop/gnome/interface/icon_theme "elementary"
+	gconftool-2 --type bool --set /desktop/gnome/interface/menus_have_icons true
+
+.include <bsd.port.mk>

Added: head/x11/gnome-pie/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/x11/gnome-pie/distinfo	Thu Jan 24 22:43:07 2013	(r310953)
@@ -0,0 +1,2 @@
+SHA256 (gnome-pie-0.5.2.tar.bz2) = 12fd55ea199f4a22bcfe76989e6e44650dd1f169b7b3592b1cfff3fe01e95d8d
+SIZE (gnome-pie-0.5.2.tar.bz2) = 185397

Added: head/x11/gnome-pie/files/patch-CMakeLists.txt
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/x11/gnome-pie/files/patch-CMakeLists.txt	Thu Jan 24 22:43:07 2013	(r310953)
@@ -0,0 +1,30 @@
+--- ./CMakeLists.txt.orig	2013-01-23 23:33:16.000000000 +0100
++++ ./CMakeLists.txt	2013-01-24 21:41:21.000000000 +0100
+@@ -32,13 +32,11 @@
+     pkg_check_modules(INDICATOR3 appindicator3-0.1)
+     pkg_check_modules(UNIQUE REQUIRED unique-3.0)
+     pkg_check_modules(WNCK REQUIRED libwnck-3.0)
+-    pkg_check_modules(BAMF REQUIRED libbamf3)
+ else (${GTK3_FOUND})
+     pkg_check_modules(GTK2 REQUIRED gtk+-2.0)
+     pkg_check_modules(INDICATOR appindicator-0.1)
+     pkg_check_modules(UNIQUE REQUIRED unique-1.0)
+     pkg_check_modules(WNCK REQUIRED libwnck-1.0)
+-    pkg_check_modules(BAMF REQUIRED libbamf)
+ endif (${GTK3_FOUND})
+ 
+ pkg_check_modules(GIO REQUIRED gio-unix-2.0)
+@@ -180,13 +178,11 @@
+ if (${GTK3_FOUND})
+     LIST(APPEND VALA_PKGS gtk+-3.0)
+     LIST(APPEND VALA_PKGS gdk-x11-3.0)
+-    LIST(APPEND VALA_PKGS libbamf3)
+     LIST(APPEND VALA_PKGS libwnck-3.0)
+     LIST(APPEND VALA_PKGS unique-3.0)
+ else (${GTK3_FOUND})
+     LIST(APPEND VALA_PKGS gtk+-2.0)
+     LIST(APPEND VALA_PKGS gdk-x11-2.0)
+-    LIST(APPEND VALA_PKGS bamf)
+     LIST(APPEND VALA_PKGS libwnck-1.0)
+     LIST(APPEND VALA_PKGS unique-1.0)
+ endif (${GTK3_FOUND})

Added: head/x11/gnome-pie/files/patch-resources__gnome-pie.desktop
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/x11/gnome-pie/files/patch-resources__gnome-pie.desktop	Thu Jan 24 22:43:07 2013	(r310953)
@@ -0,0 +1,8 @@
+--- ./resources/gnome-pie.desktop.orig	2013-01-23 23:33:16.000000000 +0100
++++ ./resources/gnome-pie.desktop	2013-01-24 21:41:21.000000000 +0100
+@@ -4,4 +4,4 @@
+ Comment=Cakes don't lie.
+ Exec=gnome-pie
+ Icon=gnome-pie
+-Categories=GNOME;Utility;
++Categories=GTK;GNOME;Utility;

Added: head/x11/gnome-pie/files/patch-src__CMakeLists.txt
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/x11/gnome-pie/files/patch-src__CMakeLists.txt	Thu Jan 24 22:43:07 2013	(r310953)
@@ -0,0 +1,43 @@
+--- ./src/CMakeLists.txt.orig	2013-01-23 23:33:16.000000000 +0100
++++ ./src/CMakeLists.txt	2013-01-24 21:41:57.000000000 +0100
+@@ -43,6 +43,7 @@
+ 		${CMAKE_INSTALL_PREFIX}/bin
+ )
+ 
++if (INSTALL_DOCS)
+ # install credits
+ install(
+ 	FILES
+@@ -50,7 +51,9 @@
+ 	DESTINATION
+ 		${CMAKE_INSTALL_PREFIX}/share/doc/gnome-pie
+ )
++endif()
+ 
++if (INSTALL_NLS)
+ # install locales
+ install(
+ 	DIRECTORY
+@@ -61,6 +64,7 @@
+ 	PATTERN *.pot EXCLUDE
+ 	PATTERN *.sh EXCLUDE
+ )
++endif()
+ 
+ # install themes
+ install(
+@@ -95,11 +99,12 @@
+ 		${CMAKE_INSTALL_PREFIX}/share/applications
+ )
+ 
++if (NOT NO_INSTALL_MANPAGES)
+ # install manpage
+ install(
+ 	FILES
+ 		${CMAKE_SOURCE_DIR}/resources/gnome-pie.1
+ 	DESTINATION
+-		${CMAKE_INSTALL_PREFIX}/share/man/man1
++		${CMAKE_INSTALL_PREFIX}/man/man1
+ )
+-
++endif()

Added: head/x11/gnome-pie/files/patch-src__actionGroups__windowListGroup.vala
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/x11/gnome-pie/files/patch-src__actionGroups__windowListGroup.vala	Thu Jan 24 22:43:07 2013	(r310953)
@@ -0,0 +1,28 @@
+--- ./src/actionGroups/windowListGroup.vala.orig	2013-01-23 23:33:16.000000000 +0100
++++ ./src/actionGroups/windowListGroup.vala	2013-01-24 21:41:21.000000000 +0100
+@@ -76,13 +76,13 @@
+     private void load() {
+         unowned GLib.List<Wnck.Window?> windows = this.screen.get_windows();
+         
+-        var matcher = Bamf.Matcher.get_default();
++        //var matcher = Bamf.Matcher.get_default();
+ 
+         foreach (var window in windows) {
+             if (window.get_window_type() == Wnck.WindowType.NORMAL
+             	&& !window.is_skip_pager() && !window.is_skip_tasklist()) {
+                 var application = window.get_application();
+-                var bamf_app = matcher.get_application_for_xid((uint32)window.get_xid());
++                //var bamf_app = matcher.get_application_for_xid((uint32)window.get_xid());
+                 
+                 string name = window.get_name();
+                 
+@@ -91,7 +91,8 @@
+                 
+                 var action = new SigAction(
+                     name,
+-                    (bamf_app == null) ? application.get_icon_name().down() : bamf_app.get_icon(),
++                    //(bamf_app == null) ? application.get_icon_name().down() : bamf_app.get_icon(),
++                    application.get_icon_name().down(),
+                     "%lu".printf(window.get_xid()) 
+                 );
+                 action.activated.connect(() => {

Added: head/x11/gnome-pie/files/patch-src__actions__actionRegistry.vala
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/x11/gnome-pie/files/patch-src__actions__actionRegistry.vala	Thu Jan 24 22:43:07 2013	(r310953)
@@ -0,0 +1,11 @@
+--- ./src/actions/actionRegistry.vala.orig	2013-01-23 23:33:16.000000000 +0100
++++ ./src/actions/actionRegistry.vala	2013-01-24 21:41:21.000000000 +0100
+@@ -108,7 +108,7 @@
+             case "application":
+                 var file_name = uri.split("//")[1];
+                 
+-                var desktop_file = GLib.File.new_for_path("/usr/share/applications/" + file_name);
++                var desktop_file = GLib.File.new_for_path("%%DESKTOPDIR%%/" + file_name);
+                 if (desktop_file.query_exists())
+                     return new_for_desktop_file(desktop_file.get_path());
+ 

Added: head/x11/gnome-pie/files/patch-src__utilities__paths.vala
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/x11/gnome-pie/files/patch-src__utilities__paths.vala	Thu Jan 24 22:43:07 2013	(r310953)
@@ -0,0 +1,27 @@
+--- ./src/utilities/paths.vala.orig	2013-01-23 23:33:16.000000000 +0100
++++ ./src/utilities/paths.vala	2013-01-24 21:41:21.000000000 +0100
+@@ -71,21 +71,21 @@
+     /// usually /usr/share/gnome-pie/themes.
+     /////////////////////////////////////////////////////////////////////
+     
+-    public static string global_themes { get; private set; default=""; }
++    public static string global_themes { get; private set; default="%%DATADIR%%/themes"; }
+     
+     /////////////////////////////////////////////////////////////////////
+     /// The directory containing locale files
+     /// usually /usr/share/locale.
+     /////////////////////////////////////////////////////////////////////
+     
+-    public static string locales { get; private set; default=""; }
++    public static string locales { get; private set; default="%%PREFIX%%/share/locale"; }
+     
+     /////////////////////////////////////////////////////////////////////
+     /// The directory containing UI declaration files
+     /// usually /usr/share/gnome-pie/ui/.
+     /////////////////////////////////////////////////////////////////////
+     
+-    public static string ui_files { get; private set; default=""; }
++    public static string ui_files { get; private set; default="%%DATADIR%%/ui"; }
+     
+     /////////////////////////////////////////////////////////////////////
+     /// The autostart file of gnome-pie_config

Added: head/x11/gnome-pie/files/pkg-message.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/x11/gnome-pie/files/pkg-message.in	Thu Jan 24 22:43:07 2013	(r310953)
@@ -0,0 +1,13 @@
+***************************************************************
+
+If you do not use GNOME as window manager, and do not see any
+icon in Gnome-Pie preferences, then run the following command:
+
+  (cd %%PORTSDIR%%/x11/gnome-pie && make gnome-pie-user)
+
+and add this line to your ~/.xinitrc
+
+  %%LOCALBASE%%/libexec/gnome-settings-daemon&
+  (sleep 2 && gnome-pie)&
+
+***************************************************************

Added: head/x11/gnome-pie/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/x11/gnome-pie/pkg-descr	Thu Jan 24 22:43:07 2013	(r310953)
@@ -0,0 +1,6 @@
+Gnome-Pie is a circular application launcher. It is made of several pies,
+each consisting of multiple slices. The user presses a key stroke which
+opens the desired pie. By activating one of its slices, applications may
+be launched, key presses may be simulated or files can be opened.
+
+WWW: http://gnome-pie.simonschneegans.de/

Added: head/x11/gnome-pie/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/x11/gnome-pie/pkg-plist	Thu Jan 24 22:43:07 2013	(r310953)
@@ -0,0 +1,98 @@
+@comment FreeBSD$
+bin/gnome-pie
+%%DESKTOPDIR%%/gnome-pie.desktop
+%%PORTDOCS%%%%DOCSDIR%%/README.md
+%%DATADIR%%/themes/adwaita/arrow.svg
+%%DATADIR%%/themes/adwaita/caption_mask.svg
+%%DATADIR%%/themes/adwaita/icon_active.svg
+%%DATADIR%%/themes/adwaita/icon_inactive.svg
+%%DATADIR%%/themes/adwaita/preview.png
+%%DATADIR%%/themes/adwaita/ring.svg
+%%DATADIR%%/themes/adwaita/theme.xml
+%%DATADIR%%/themes/bright/arrow.svg
+%%DATADIR%%/themes/bright/caption.svg
+%%DATADIR%%/themes/bright/caption_mask.svg
+%%DATADIR%%/themes/bright/gloss.svg
+%%DATADIR%%/themes/bright/icon_active.svg
+%%DATADIR%%/themes/bright/icon_inactive.svg
+%%DATADIR%%/themes/bright/preview.png
+%%DATADIR%%/themes/bright/ring.svg
+%%DATADIR%%/themes/bright/theme.xml
+%%DATADIR%%/themes/elementary/icon_bg.svg
+%%DATADIR%%/themes/elementary/preview.png
+%%DATADIR%%/themes/elementary/ring.svg
+%%DATADIR%%/themes/elementary/slice_caption.svg
+%%DATADIR%%/themes/elementary/theme.xml
+%%DATADIR%%/themes/funky/bg.svg
+%%DATADIR%%/themes/funky/blue.svg
+%%DATADIR%%/themes/funky/caption.svg
+%%DATADIR%%/themes/funky/icon_bg.svg
+%%DATADIR%%/themes/funky/icon_fg.svg
+%%DATADIR%%/themes/funky/preview.png
+%%DATADIR%%/themes/funky/red.svg
+%%DATADIR%%/themes/funky/slice_caption.svg
+%%DATADIR%%/themes/funky/star.svg
+%%DATADIR%%/themes/funky/theme.xml
+%%DATADIR%%/themes/gloss/arrow.svg
+%%DATADIR%%/themes/gloss/glow_bg.svg
+%%DATADIR%%/themes/gloss/icon_bg.svg
+%%DATADIR%%/themes/gloss/icon_fg.svg
+%%DATADIR%%/themes/gloss/icon_fg_active.svg
+%%DATADIR%%/themes/gloss/icon_mask.svg
+%%DATADIR%%/themes/gloss/preview.png
+%%DATADIR%%/themes/gloss/slice_caption.svg
+%%DATADIR%%/themes/gloss/theme.xml
+%%DATADIR%%/themes/minimalistic_text/bg.svg
+%%DATADIR%%/themes/minimalistic_text/fg.svg
+%%DATADIR%%/themes/minimalistic_text/preview.png
+%%DATADIR%%/themes/minimalistic_text/theme.xml
+%%DATADIR%%/themes/o-pie/arrow.svg
+%%DATADIR%%/themes/o-pie/caption1.svg
+%%DATADIR%%/themes/o-pie/caption2.svg
+%%DATADIR%%/themes/o-pie/preview.png
+%%DATADIR%%/themes/o-pie/ring.svg
+%%DATADIR%%/themes/o-pie/theme.xml
+%%DATADIR%%/themes/slim/bg.svg
+%%DATADIR%%/themes/slim/dot.svg
+%%DATADIR%%/themes/slim/preview.png
+%%DATADIR%%/themes/slim/slice_caption.svg
+%%DATADIR%%/themes/slim/theme.xml
+%%DATADIR%%/themes/unity/arrow.svg
+%%DATADIR%%/themes/unity/caption.svg
+%%DATADIR%%/themes/unity/caption_mask.svg
+%%DATADIR%%/themes/unity/gloss.svg
+%%DATADIR%%/themes/unity/icon_active.svg
+%%DATADIR%%/themes/unity/icon_inactive.svg
+%%DATADIR%%/themes/unity/preview.png
+%%DATADIR%%/themes/unity/ring.svg
+%%DATADIR%%/themes/unity/theme.xml
+%%DATADIR%%/ui/icon_select.ui
+%%DATADIR%%/ui/preferences.ui
+%%DATADIR%%/ui/rename_pie.ui
+%%DATADIR%%/ui/settings.ui
+%%DATADIR%%/ui/slice_select.ui
+%%DATADIR%%/ui/trigger_select.ui
+share/icons/hicolor/scalable/apps/gnome-pie-symbolic.svg
+share/icons/hicolor/scalable/apps/gnome-pie.svg
+%%NLS%%share/locale/bg/LC_MESSAGES/gnomepie.mo
+%%NLS%%share/locale/de/LC_MESSAGES/gnomepie.mo
+%%NLS%%share/locale/es/LC_MESSAGES/gnomepie.mo
+%%NLS%%share/locale/fr/LC_MESSAGES/gnomepie.mo
+%%NLS%%share/locale/it/LC_MESSAGES/gnomepie.mo
+%%NLS%%share/locale/ko/LC_MESSAGES/gnomepie.mo
+%%NLS%%share/locale/pt_BR/LC_MESSAGES/gnomepie.mo
+%%NLS%%share/locale/ru/LC_MESSAGES/gnomepie.mo
+%%NLS%%share/locale/zh_CN/LC_MESSAGES/gnomepie.mo
+@dirrm %%DATADIR%%/ui
+@dirrm %%DATADIR%%/themes/unity
+@dirrm %%DATADIR%%/themes/slim
+@dirrm %%DATADIR%%/themes/o-pie
+@dirrm %%DATADIR%%/themes/minimalistic_text
+@dirrm %%DATADIR%%/themes/gloss
+@dirrm %%DATADIR%%/themes/funky
+@dirrm %%DATADIR%%/themes/elementary
+@dirrm %%DATADIR%%/themes/bright
+@dirrm %%DATADIR%%/themes/adwaita
+@dirrm %%DATADIR%%/themes
+@dirrm %%DATADIR%%
+%%PORTDOCS%%@dirrm %%DOCSDIR%%



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201301242243.r0OMh71w014621>