aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcrees <crees@FreeBSD.org>2011-08-31 19:43:08 +0800
committercrees <crees@FreeBSD.org>2011-08-31 19:43:08 +0800
commit8ae2264c7b67e1074ede68cbdc2cc3fd571e0b06 (patch)
tree27ec6e390b02555d6bce8d7e83cc6d6f6a99a71f
parent4a05f930f7f9289ca94ce0226f13777872513daf (diff)
downloadfreebsd-ports-gnome-8ae2264c7b67e1074ede68cbdc2cc3fd571e0b06.tar.gz
freebsd-ports-gnome-8ae2264c7b67e1074ede68cbdc2cc3fd571e0b06.tar.zst
freebsd-ports-gnome-8ae2264c7b67e1074ede68cbdc2cc3fd571e0b06.zip
PR: ports/159605
Submitted by: Pedro Garcia Freitas <sawp@sawp.com.br> (maintainer), Ruslan Mahmatkhanov <cvs-src@yandex.ru>
-rw-r--r--deskutils/x-tile/Makefile23
-rw-r--r--deskutils/x-tile/distinfo4
-rw-r--r--deskutils/x-tile/files/patch-x-tile15
-rw-r--r--deskutils/x-tile/pkg-plist87
4 files changed, 79 insertions, 50 deletions
diff --git a/deskutils/x-tile/Makefile b/deskutils/x-tile/Makefile
index 782a5d733585..a6f5d6355226 100644
--- a/deskutils/x-tile/Makefile
+++ b/deskutils/x-tile/Makefile
@@ -6,19 +6,34 @@
#
PORTNAME= x-tile
-PORTVERSION= 1.8.1
+PORTVERSION= 2.1
CATEGORIES= deskutils devel python
-MASTER_SITES= http://www.sawp.com.br/share/xtile/
+MASTER_SITES= http://www.giuspen.com/software/ \
+ http://www.sawp.com.br/share/xtile/
MAINTAINER= sawp@sawp.com.br
COMMENT= A GNOME applet to tile the opened windows
+LICENSE= GPLv2
+
USE_GNOME= pygtk2
USE_PYTHON= yes
USE_PYDISTUTILS= yes
-PYDISTUTILS_EGGINFO= X_Tile-${PYDISTUTILS_PKGVERSION}-${PYTHON_VERSION:S/thon//}.egg-info
+PYDISTUTILS_PKGNAME= X_Tile
post-patch:
- @${REINPLACE_CMD} -i "" -e 's|: docfiles|: []|g' ${WRKSRC}/setup.py
+ @${REINPLACE_CMD} -e 's|/usr/share|${PREFIX}/share|g' \
+ ${WRKSRC}/x-tile ${WRKSRC}/linux/x-tile.desktop \
+ ${WRKSRC}/modules/cons.py
+
+
+.if !defined(WITHOUT_NLS)
+USE_GETTEXT= yes
+PLIST_SUB+= NLS=""
+.else
+PYDISTUTILS_BUILD_TARGET= --without-gettext build
+PYDISTUTILS_INSTALL_TARGET= --without-gettext install
+PLIST_SUB+= NLS="@comment "
+.endif
.include <bsd.port.mk>
diff --git a/deskutils/x-tile/distinfo b/deskutils/x-tile/distinfo
index 46246b08b767..5db57b4c2add 100644
--- a/deskutils/x-tile/distinfo
+++ b/deskutils/x-tile/distinfo
@@ -1,2 +1,2 @@
-SHA256 (x-tile-1.8.1.tar.gz) = e828ad4b918d0bfddce1ddfd6648c297b91edfa65ab08ac5c8a402180f57483b
-SIZE (x-tile-1.8.1.tar.gz) = 171631
+SHA256 (x-tile-2.1.tar.gz) = 1355909079c5d640b545f5bb00052b27c0e22d9414a468edfca356f410595e79
+SIZE (x-tile-2.1.tar.gz) = 175189
diff --git a/deskutils/x-tile/files/patch-x-tile b/deskutils/x-tile/files/patch-x-tile
new file mode 100644
index 000000000000..8dc2df8ba182
--- /dev/null
+++ b/deskutils/x-tile/files/patch-x-tile
@@ -0,0 +1,15 @@
+$FreeBSD$
+
+Fix ctypes warning, by Ruslan Mahmatkhanov <cvs-src@yandex.ru>
+
+--- x-tile.orig 2011-07-04 01:41:29.000000000 +0400
++++ x-tile 2011-08-22 20:20:30.000000000 +0400
+@@ -56,7 +56,7 @@
+ try:
+ libc = ctypes.cdll.LoadLibrary(ctypes.util.find_library("libc"))
+ libc.prctl(15, cons.APP_NAME, 0, 0, 0)
+-except: print "libc.prctl not available, the process name will be python and not x-tile"
++except: pass
+
+ # icons generation
+ factory = gtk.IconFactory()
diff --git a/deskutils/x-tile/pkg-plist b/deskutils/x-tile/pkg-plist
index 72f4fd0d2dc4..8f765a2a752d 100644
--- a/deskutils/x-tile/pkg-plist
+++ b/deskutils/x-tile/pkg-plist
@@ -1,48 +1,47 @@
bin/x-tile
-lib/bonobo/servers/x-tile.server
share/applications/x-tile.desktop
-share/locale/de/LC_MESSAGES/x-tile.mo
-share/locale/es/LC_MESSAGES/x-tile.mo
-share/locale/fr/LC_MESSAGES/x-tile.mo
-share/locale/it/LC_MESSAGES/x-tile.mo
-share/locale/ja/LC_MESSAGES/x-tile.mo
-share/locale/pt_BR/LC_MESSAGES/x-tile.mo
-share/locale/ru/LC_MESSAGES/x-tile.mo
-share/locale/zh_TW/LC_MESSAGES/x-tile.mo
+%%NLS%%share/locale/cs/LC_MESSAGES/x-tile.mo
+%%NLS%%share/locale/de/LC_MESSAGES/x-tile.mo
+%%NLS%%share/locale/es_AR/LC_MESSAGES/x-tile.mo
+%%NLS%%share/locale/fr/LC_MESSAGES/x-tile.mo
+%%NLS%%share/locale/it/LC_MESSAGES/x-tile.mo
+%%NLS%%share/locale/ru/LC_MESSAGES/x-tile.mo
+%%NLS%%share/locale/zh_CN/LC_MESSAGES/x-tile.mo
+%%NLS%%share/locale/zh_TW/LC_MESSAGES/x-tile.mo
share/pixmaps/x-tile.svg
-share/x-tile/glade/checkbox_checked.svg
-share/x-tile/glade/checkbox_unchecked.svg
-share/x-tile/glade/close-checked-windows.svg
-share/x-tile/glade/help-contents.svg
-share/x-tile/glade/maximize-checked-windows.svg
-share/x-tile/glade/reload-windows-list.svg
-share/x-tile/glade/tile-custom-1-exe.svg
-share/x-tile/glade/tile-custom-1-set.svg
-share/x-tile/glade/tile-custom-2-exe.svg
-share/x-tile/glade/tile-custom-2-set.svg
-share/x-tile/glade/tile-custom-exe.svg
-share/x-tile/glade/tile-custom-set.svg
-share/x-tile/glade/tile-horizontally.svg
-share/x-tile/glade/tile-quad.svg
-share/x-tile/glade/tile-triangle-down.svg
-share/x-tile/glade/tile-triangle-left.svg
-share/x-tile/glade/tile-triangle-right.svg
-share/x-tile/glade/tile-triangle-up.svg
-share/x-tile/glade/tile-vertically.svg
-share/x-tile/glade/toolbar.png
-share/x-tile/glade/unmaximize-checked-windows.svg
-share/x-tile/glade/vbuttonbox.png
-share/x-tile/glade/x-tile.glade
-share/x-tile/glade/x-tile.glade.h
-share/x-tile/glade/x-tile.svg
-share/x-tile/modules/cons.py
-share/x-tile/modules/core.py
-share/x-tile/modules/globs.py
-share/x-tile/modules/support.py
-share/x-tile/modules/tilings.py
-@dirrm share/x-tile/modules
-@dirrm share/x-tile/glade
-@dirrm share/x-tile
+%%DATADIR%%/glade/checkbox_checked.svg
+%%DATADIR%%/glade/checkbox_unchecked.svg
+%%DATADIR%%/glade/close-checked-windows.svg
+%%DATADIR%%/glade/help-contents.svg
+%%DATADIR%%/glade/invert-tiling.svg
+%%DATADIR%%/glade/maximize-checked-windows.svg
+%%DATADIR%%/glade/quit-app.svg
+%%DATADIR%%/glade/reload-windows-list.svg
+%%DATADIR%%/glade/tile-custom-1-exe.svg
+%%DATADIR%%/glade/tile-custom-1-set.svg
+%%DATADIR%%/glade/tile-custom-2-exe.svg
+%%DATADIR%%/glade/tile-custom-2-set.svg
+%%DATADIR%%/glade/tile-grid.svg
+%%DATADIR%%/glade/tile-horizontally.svg
+%%DATADIR%%/glade/tile-quad.svg
+%%DATADIR%%/glade/tile-triangle-down.svg
+%%DATADIR%%/glade/tile-triangle-left.svg
+%%DATADIR%%/glade/tile-triangle-right.svg
+%%DATADIR%%/glade/tile-triangle-up.svg
+%%DATADIR%%/glade/tile-vertically.svg
+%%DATADIR%%/glade/toolbar.png
+%%DATADIR%%/glade/unmaximize-checked-windows.svg
+%%DATADIR%%/glade/x-tile.glade
+%%DATADIR%%/glade/x-tile.glade.h
+%%DATADIR%%/glade/x-tile.svg
+%%DATADIR%%/modules/cons.py
+%%DATADIR%%/modules/core.py
+%%DATADIR%%/modules/globs.py
+%%DATADIR%%/modules/support.py
+%%DATADIR%%/modules/tilings.py
+@dirrm %%DATADIR%%/modules
+@dirrm %%DATADIR%%/glade
+@dirrm %%DATADIR%%
+%%NLS%%@dirrmtry share/locale/es_AR/LC_MESSAGES
+%%NLS%%@dirrmtry share/locale/es_AR
@dirrmtry share/applications
-@dirrmtry lib/bonobo/servers
-@dirrmtry lib/bonobo