aboutsummaryrefslogtreecommitdiffstats
path: root/x11-wm/windowmaker/files
diff options
context:
space:
mode:
authorsobomax <sobomax@FreeBSD.org>2001-05-27 23:31:06 +0800
committersobomax <sobomax@FreeBSD.org>2001-05-27 23:31:06 +0800
commitd418c2368af86b9a07b855c2fa061e11f81ff389 (patch)
treeeaecaa5900eb58a7750caa23d37b97c64a7015d4 /x11-wm/windowmaker/files
parentf3fa237e508d8ea3d7c35487ac056d13b7cb0020 (diff)
downloadfreebsd-ports-gnome-d418c2368af86b9a07b855c2fa061e11f81ff389.tar.gz
freebsd-ports-gnome-d418c2368af86b9a07b855c2fa061e11f81ff389.tar.zst
freebsd-ports-gnome-d418c2368af86b9a07b855c2fa061e11f81ff389.zip
1. Backport two patches from windowmaker-i18n port;
2. add wmicons into RUN_DEPENDS and remove similar functionality from this port; 3. due to (1) bump PORTREVISION.
Diffstat (limited to 'x11-wm/windowmaker/files')
-rw-r--r--x11-wm/windowmaker/files/patch-am27
-rw-r--r--x11-wm/windowmaker/files/patch-wsetfont127
2 files changed, 154 insertions, 0 deletions
diff --git a/x11-wm/windowmaker/files/patch-am b/x11-wm/windowmaker/files/patch-am
new file mode 100644
index 000000000000..47a7586b7e2f
--- /dev/null
+++ b/x11-wm/windowmaker/files/patch-am
@@ -0,0 +1,27 @@
+--- util/wm-oldmenu2new.orig Wed Jan 20 21:39:18 1999
++++ util/wm-oldmenu2new Wed Jan 20 21:39:29 1999
+@@ -112,7 +112,7 @@
+ # This is the interesting bit. Edit the old style menu and
+ # convert into new style property-list menu.
+ #
+-perl - $T <<-'EOF' > $T-p
++%%PERL%% - $T <<-'EOF' > $T-p
+ $v=chr(22);
+ for (<>) {
+ push @foo,$_;
+@@ -127,6 +127,7 @@
+ for (@foo2) {
+ s/^(\s*)"([^"]*)"\s\s*END/\1),/;
+ s/^(\s*)"([^"]*)"\s\s*EXEC\s\s*(.*)$/\1($v\n\1"\2",$v\n\1EXEC,$v\n\1"\3"$v\n\1),/;
++ s/^(\s*)"([^"]*)"\s\s*SHEXEC\s\s*(.*)$/\1($v\n\1"\2",$v\n\1SHEXEC,$v\n\1"\3"$v\n\1),/;
+ push @foo,split "\n";
+ }
+ @foo2=();
+@@ -144,6 +145,7 @@
+ for (@foo) {
+ s/^(\s*)([^ ]*)\s\s*END/\1),/;
+ s/^(\s*)([^ ]*)\s\s*EXEC\s\s*(.*)$/\1($v\n\1"\2",$v\n\1EXEC,$v\n\1"\3"$v\n\1),/;
++ s/^(\s*)([^ ]*)\s\s*SHEXEC\s\s*(.*)$/\1($v\n\1"\2",$v\n\1SHEXEC,$v\n\1"\3"$v\n\1),/;
+ push @foo2,split "\n";
+ }
+ @foo=();
diff --git a/x11-wm/windowmaker/files/patch-wsetfont b/x11-wm/windowmaker/files/patch-wsetfont
new file mode 100644
index 000000000000..b2d89dd0deb1
--- /dev/null
+++ b/x11-wm/windowmaker/files/patch-wsetfont
@@ -0,0 +1,127 @@
+--- util/wsetfont.orig Fri May 18 22:09:24 2001
++++ util/wsetfont Fri May 18 22:09:40 2001
+@@ -77,7 +77,7 @@
+ "--auto")
+ auto="YES";;
+ *)
+- if echo $i |grep "^--locale=" &>/dev/null; then
++ if echo $i |grep "^--locale=" >/dev/null 2>&1; then
+ new_locale=$(echo $i |sed -e "s|--locale=||" -)
+ elif [ -z $family ]; then
+ family=$i
+@@ -115,7 +115,7 @@
+
+ for i in $DomainNames; do
+ tmp="Domain$i"
+- AllKeys="$AllKeys ${!tmp}"
++ AllKeys="$AllKeys `eval echo '${'$tmp'}'`"
+ done
+
+ #
+@@ -212,8 +212,8 @@
+ family="default"
+ else
+ for i in $all_codings; do
+- for j in ${!i}; do
+- if [ "$j" == "${locale%_*}" ]; then
++ for j in `eval echo '${'$i'}'`; do
++ if [ "$j" = "${locale%_*}" ]; then
+ family="$i"
+ break 2
+ fi
+@@ -227,7 +227,7 @@
+ #
+ is_supported=""
+ for i in $Supported; do
+- if test "$family" == "$i"; then
++ if test "$family" = "$i"; then
+ is_supported="YES"
+ break
+ fi
+@@ -245,7 +245,7 @@
+ #
+ is_nodef_unable=""
+ for i in $NodefUnable; do
+- if test "$family" == "$i"; then
++ if test "$family" = "$i"; then
+ if test -n "$nodef"; then # --nodef with one from $NodefUnable
+ echo -e "\n"\
+ "Sorry, --nodef argument is not allowed for these font codings:\n"\
+@@ -268,22 +268,22 @@
+ for i in $AllKeys; do
+ if test -n "$is_nodef_unable"; then # japanese,... defaults
+ tmp="$family$i"
+- eval $i=${!tmp}
++ eval $i=`eval echo '${'$tmp'}'`
+ else # rest, load defaults
+ not_font=""
+ for j in $NotFont; do
+- if test "$i" == "$j"; then
++ if test "$i" = "$j"; then
+ not_font="YES"
+ break
+ fi
+ done
+ if test -n "$not_font"; then # don't append coding (not default!)
+ tmp="${family}$i"
+- eval $i="${!tmp}"
++ eval $i="`eval echo '${'$tmp'}'`"
+ else # append coding
+ tmp="Default$i"
+ tmp1="${family}Coding"
+- eval $i="${!tmp}${!tmp1}"
++ eval $i="`eval echo '${'$tmp'}${'$tmp1'}'`"
+ fi
+ fi
+ done
+@@ -305,36 +305,38 @@
+ echo
+ echo "Setting up $i domain file..."
+ tmp="Domain$i"
+- for j in ${!tmp}; do
++ for j in `eval echo '${'$tmp'}'`; do
+ if test -n "$nodef"; then # --nodef, change coding only
+ not_font=""
+ for k in $NotFont; do
+- if test "$k" == "$j"; then
++ if test "$k" = "$j"; then
+ not_font="YES"
+ break;
+ fi
+ done
+ if test -n "$not_font"; then # don't append coding
+ tmp1="${family}$j"
+- eval $j=${!tmp1}
++ eval $j=`eval echo '${'$tmp1'}'`
+ else # append coding
+ #TODO:make this funny sed script a lot smarter to let us make changes in font
+ # lists, etc... (then we can enable --nodef for NodefUnable codings)
+ #TODO:better (or at least any) check, whether wmaker is installed...
+- tmp1="${family}Coding"
+- eval $j=$($WDREAD $i $j | sed -e "s/\(^-.*-\).*-.*$/\1${!tmp1}/g")
+- if test -z "${!j}"; then # failed, load default
++ tmp1="`eval echo '${'${family}Coding'}'`"
++ eval $j=`$WDREAD $i $j | sed -e "s/\(^-.*-\).*-.*$/\1${tmp1}/g"`
++ if test -z "`eval echo '${'$j'}'`"; then # failed, load default
+ tmp2="Default$j"
+- eval $j=${!tmp2}
++ eval $j=`eval echo '${'$tmp2'}'`
+ fi
+ fi
+ fi
+- tmp1="$j=\"${!j}\"" # cosmetic length workaround
+- if (( ${#tmp1} > 80 )); then
+- tmp1=$(echo "${tmp1:0:76}...\"")
++ tmp1="$j=\"`eval echo '${'$j'}'`\"" # cosmetic length workaround
++ echo '<<<<'
++ if [ ${#tmp1} -lt 80 ]; then
++ tmp1=`echo $tmp1 | sed -e 's/^\(.\{1,76\}\).*/\1/'`
+ fi
++ echo '>>>>'
+ echo "$tmp1"
+- $WDWRITE $i $j \"${!j}\"
++ $WDWRITE $i $j \"`eval echo '${'$j'}'`\"
+ done
+ done
+ echo
+