svn commit: r312251 - in head/deskutils: . easystroke easystroke/files
Martin Wilke
miwi at FreeBSD.org
Fri Feb 15 01:51:32 UTC 2013
Author: miwi
Date: Fri Feb 15 01:51:30 2013
New Revision: 312251
URL: http://svnweb.freebsd.org/changeset/ports/312251
Log:
Easystroke is a gesture-recognition application for X11. Gestures or
strokes are movements that you make with your mouse (or your pen,
finger etc.) while holding down a specific mouse button. Easystroke
will execute certain actions if it recognizes the stroke; currently
easystroke can emulate key presses, execute shell commands, hold down
modifiers and emulate a scroll wheel. The program was designed with
Tablet PCs in mind and can be used effectively even without access to
a keyboard.
WWW: http://easystroke.sourceforge.net/
PR: ports/176083
Submitted by: Tobias Kortkamp <tobias.kortkamp at gmail.com>
Added:
head/deskutils/easystroke/
head/deskutils/easystroke/Makefile (contents, props changed)
head/deskutils/easystroke/distinfo (contents, props changed)
head/deskutils/easystroke/files/
head/deskutils/easystroke/files/patch-Makefile (contents, props changed)
head/deskutils/easystroke/files/patch-main.cc (contents, props changed)
head/deskutils/easystroke/pkg-descr (contents, props changed)
head/deskutils/easystroke/pkg-plist (contents, props changed)
Modified:
head/deskutils/Makefile
Modified: head/deskutils/Makefile
==============================================================================
--- head/deskutils/Makefile Thu Feb 14 23:41:53 2013 (r312250)
+++ head/deskutils/Makefile Fri Feb 15 01:51:30 2013 (r312251)
@@ -44,6 +44,7 @@
SUBDIR += dosage
SUBDIR += dragstack
SUBDIR += drivel
+ SUBDIR += easystroke
SUBDIR += ecru
SUBDIR += egroupware
SUBDIR += epoch
Added: head/deskutils/easystroke/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/deskutils/easystroke/Makefile Fri Feb 15 01:51:30 2013 (r312251)
@@ -0,0 +1,61 @@
+# Created by: Tobias Kortkamp <tobias.kortkamp at gmail.com>
+# $FreeBSD$
+
+PORTNAME= easystroke
+PORTVERSION= 0.5.6
+CATEGORIES= deskutils
+MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTVERSION}
+
+MAINTAINER= tobias.kortkamp at gmail.com
+COMMENT= Easystroke is a gesture-recognition application for X11
+
+BUILD_DEPENDS= help2man:${PORTSDIR}/misc/help2man \
+ ${LOCALBASE}/include/xorg/xserver-properties.h:${PORTSDIR}/x11-servers/xorg-server
+LIB_DEPENDS= gtkmm-2.4:${PORTSDIR}/x11-toolkits/gtkmm24 \
+ dbus-glib:${PORTSDIR}/devel/dbus-glib \
+ boost_serialization:${PORTSDIR}/devel/boost-libs
+
+MAN1= easystroke.1
+
+USE_GCC= any
+USE_XORG= x11 xtst
+USE_GMAKE= yes
+INSTALLS_ICONS= yes
+
+OPTIONS_DEFINE= NLS
+
+.include <bsd.port.options.mk>
+
+USE_GETTEXT= yes
+
+.if ${PORT_OPTIONS:MNLS}
+BUILD_DEPENDS+= intltool-merge:${PORTSDIR}/textproc/intltool
+PLIST_SUB+= NLS=""
+ALL_TARGET= easystroke.desktop all man
+.else
+# This builds easystroke without translations
+ALL_TARGET= man
+PLIST_SUB+= NLS="@comment "
+# Create a .desktop file without translations.
+# It's usually created by intltool-merge during the build.
+pre-build:
+ @${CP} ${WRKSRC}/${PORTNAME}.desktop.in ${WRKSRC}/${PORTNAME}.desktop
+.endif
+
+do-install:
+ @${MKDIR} ${PREFIX}/bin/
+ @${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/${PORTNAME}
+ @${MKDIR} ${PREFIX}/share/applications/
+ @${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.desktop ${PREFIX}/share/applications/
+ @${MKDIR} ${PREFIX}/share/pixmaps/
+ @${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.svg ${PREFIX}/share/pixmaps/
+ @${MKDIR} ${PREFIX}/man/man1/
+ @${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${MAN1PREFIX}/man/man1
+
+.if ${PORT_OPTIONS:MNLS}
+ @${MKDIR} ${PREFIX}/share/locale/
+ @(cd ${WRKSRC}/po/ && \
+ ${COPYTREE_SHARE} \* ${PREFIX}/share/locale/ "-name *.mo")
+.endif
+
+.include <bsd.port.mk>
Added: head/deskutils/easystroke/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/deskutils/easystroke/distinfo Fri Feb 15 01:51:30 2013 (r312251)
@@ -0,0 +1,2 @@
+SHA256 (easystroke-0.5.6.tar.gz) = aee0b9127610ea2b75d0d9ff056e804f059c2241e5e94eae49140268c7fc13ab
+SIZE (easystroke-0.5.6.tar.gz) = 111143
Added: head/deskutils/easystroke/files/patch-Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/deskutils/easystroke/files/patch-Makefile Fri Feb 15 01:51:30 2013 (r312251)
@@ -0,0 +1,14 @@
+--- Makefile.orig 2013-02-14 11:04:30.880047783 +0100
++++ Makefile 2013-02-14 11:05:05.096047700 +0100
+@@ -78,9 +78,9 @@
+ easystroke.desktop: easystroke.desktop.in $(MOFILES)
+ intltool-merge po/ -d -u $< $@
+
+-desktop.c: easystroke.desktop
++desktop.c:
+ echo "const char *desktop_file = \"\\" > $@
+- sed 's/Exec=easystroke/Exec=%s/' $< | sed 's/"/\\"/g' | sed 's/.*/&\\n\\/' >> $@
++ sed 's/Exec=easystroke/Exec=%s/' easystroke.desktop | sed 's/"/\\"/g' | sed 's/.*/&\\n\\/' >> $@
+ echo "\";" >> $@
+
+ dbus-server.cc: dbus-server.h
Added: head/deskutils/easystroke/files/patch-main.cc
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/deskutils/easystroke/files/patch-main.cc Fri Feb 15 01:51:30 2013 (r312251)
@@ -0,0 +1,11 @@
+--- main.cc~ 2012-10-06 08:07:11.000000000 +0200
++++ main.cc 2013-02-12 17:29:51.103190380 +0100
+@@ -1350,7 +1350,7 @@
+ config_dir += "/.easystroke";
+ }
+ struct stat st;
+- char *name = canonicalize_file_name(config_dir.c_str());
++ char *name = realpath(config_dir.c_str(), NULL);
+
+ // check if the directory does not exist
+ if (lstat(name, &st) == -1) {
Added: head/deskutils/easystroke/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/deskutils/easystroke/pkg-descr Fri Feb 15 01:51:30 2013 (r312251)
@@ -0,0 +1,10 @@
+Easystroke is a gesture-recognition application for X11. Gestures or
+strokes are movements that you make with your mouse (or your pen,
+finger etc.) while holding down a specific mouse button. Easystroke
+will execute certain actions if it recognizes the stroke; currently
+easystroke can emulate key presses, execute shell commands, hold down
+modifiers and emulate a scroll wheel. The program was designed with
+Tablet PCs in mind and can be used effectively even without access to
+a keyboard.
+
+WWW: http://easystroke.sourceforge.net/
Added: head/deskutils/easystroke/pkg-plist
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/deskutils/easystroke/pkg-plist Fri Feb 15 01:51:30 2013 (r312251)
@@ -0,0 +1,21 @@
+share/pixmaps/easystroke.svg
+%%NLS%%share/locale/ru/LC_MESSAGES/easystroke.mo
+%%NLS%%share/locale/ko/LC_MESSAGES/easystroke.mo
+%%NLS%%share/locale/fi/LC_MESSAGES/easystroke.mo
+%%NLS%%share/locale/el/LC_MESSAGES/easystroke.mo
+%%NLS%%share/locale/ja/LC_MESSAGES/easystroke.mo
+%%NLS%%share/locale/de/LC_MESSAGES/easystroke.mo
+%%NLS%%share/locale/vi/LC_MESSAGES/easystroke.mo
+%%NLS%%share/locale/zh_CN/LC_MESSAGES/easystroke.mo
+%%NLS%%share/locale/it/LC_MESSAGES/easystroke.mo
+%%NLS%%share/locale/ca/LC_MESSAGES/easystroke.mo
+%%NLS%%share/locale/zh_TW/LC_MESSAGES/easystroke.mo
+%%NLS%%share/locale/hu/LC_MESSAGES/easystroke.mo
+%%NLS%%share/locale/es/LC_MESSAGES/easystroke.mo
+%%NLS%%share/locale/pl/LC_MESSAGES/easystroke.mo
+%%NLS%%share/locale/fr/LC_MESSAGES/easystroke.mo
+%%NLS%%share/locale/he/LC_MESSAGES/easystroke.mo
+%%NLS%%share/locale/cs/LC_MESSAGES/easystroke.mo
+share/applications/easystroke.desktop
+bin/easystroke
+ at dirrmtry share/applications
More information about the svn-ports-all
mailing list