svn commit: r313362 - in head/sysutils/xfce4-settings: . files
Olivier Duchateau
olivierd at FreeBSD.org
Sun Mar 3 15:42:00 UTC 2013
Author: olivierd
Date: Sun Mar 3 15:41:59 2013
New Revision: 313362
URL: http://svnweb.freebsd.org/changeset/ports/313362
Log:
- Fix stat option in appearance-install-theme script
PR: 168746
Submitted by: Akira Noda
Approved by: rene, miwi (mentors, implicit)
Added:
head/sysutils/xfce4-settings/files/
head/sysutils/xfce4-settings/files/patch-dialogs__appearance-settings__appearance-install-theme (contents, props changed)
Modified:
head/sysutils/xfce4-settings/Makefile
Modified: head/sysutils/xfce4-settings/Makefile
==============================================================================
--- head/sysutils/xfce4-settings/Makefile Sun Mar 3 15:29:34 2013 (r313361)
+++ head/sysutils/xfce4-settings/Makefile Sun Mar 3 15:41:59 2013 (r313362)
@@ -4,7 +4,7 @@
PORTNAME= xfce4-settings
PORTVERSION= 4.10.0
-PORTREVISION= 4
+PORTREVISION= 5
CATEGORIES= sysutils xfce
MASTER_SITES= ${MASTER_SITE_XFCE}
DIST_SUBDIR= xfce4
Added: head/sysutils/xfce4-settings/files/patch-dialogs__appearance-settings__appearance-install-theme
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/sysutils/xfce4-settings/files/patch-dialogs__appearance-settings__appearance-install-theme Sun Mar 3 15:41:59 2013 (r313362)
@@ -0,0 +1,24 @@
+--- ./dialogs/appearance-settings/appearance-install-theme.orig 2012-04-28 20:48:30.000000000 +0000
++++ ./dialogs/appearance-settings/appearance-install-theme 2013-02-18 21:08:13.000000000 +0000
+@@ -89,7 +89,11 @@
+
+ # check file size, abort if bigger then 50Mb, only works for files
+ if test x"`which stat 2>/dev/null`" != x""; then
+- dndsize=`stat -c %s "$dndfilename"`
++ if test "`uname -s`" = "Linux"; then
++ dndsize=`stat -c %s "$dndfilename"`
++ elif test "`uname -s`" = "FreeBSD"; then
++ dndsize=`stat -f %z "$dndfilename"`
++ fi
+ if test "$dndsize" -gt 52428800; then
+ # 2: File too big
+ exit 2
+@@ -140,7 +144,7 @@
+ detectthemes "gtk-2.0/gtkrc"
+
+ # install gtk-3.0 themes
+- detectthemes "gtk-3.0/gtkrc"
++ detectthemes "gtk-3.0/gtk.css"
+
+ # install xfwm4 themes
+ detectthemes "xfwm4/themerc"
More information about the svn-ports-all
mailing list