aboutsummaryrefslogtreecommitdiff
path: root/sysutils/gnomesystemtools
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/gnomesystemtools')
-rw-r--r--sysutils/gnomesystemtools/Makefile1
-rw-r--r--sysutils/gnomesystemtools/files/patch-backends_xml.pl.in19
2 files changed, 20 insertions, 0 deletions
diff --git a/sysutils/gnomesystemtools/Makefile b/sysutils/gnomesystemtools/Makefile
index cee3df8a5fba..6d3799d618fc 100644
--- a/sysutils/gnomesystemtools/Makefile
+++ b/sysutils/gnomesystemtools/Makefile
@@ -7,6 +7,7 @@
PORTNAME= gnomesystemtools
PORTVERSION= 0.90.0
+PORTREVISION= 1
CATEGORIES= sysutils gnome
MASTER_SITES= ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= sources/gnome-system-tools/0.90
diff --git a/sysutils/gnomesystemtools/files/patch-backends_xml.pl.in b/sysutils/gnomesystemtools/files/patch-backends_xml.pl.in
new file mode 100644
index 000000000000..7edd3edb1608
--- /dev/null
+++ b/sysutils/gnomesystemtools/files/patch-backends_xml.pl.in
@@ -0,0 +1,19 @@
+--- backends/xml.pl.in.orig Sun Aug 15 12:24:15 2004
++++ backends/xml.pl.in Sun Aug 15 12:24:58 2004
+@@ -37,12 +37,10 @@
+
+ use Text::ParseWords;
+
+-eval "use Encode";
+-$has_encode = ($@ eq "");
+-
+-if ($has_encode)
+-{
+- use Encode;
++$has_encode = 0;
++if (eval "require Encode") {
++ Encode->import( );
++ $has_encode = 1;
+ }
+
+ # --- XML print formatting --- #