aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--japanese/alias-fonts/Makefile2
-rw-r--r--japanese/alias-fonts/pkg-deinstall6
2 files changed, 5 insertions, 3 deletions
diff --git a/japanese/alias-fonts/Makefile b/japanese/alias-fonts/Makefile
index 9ce7cbee9b71..c60eeba0ca21 100644
--- a/japanese/alias-fonts/Makefile
+++ b/japanese/alias-fonts/Makefile
@@ -7,7 +7,7 @@
PORTNAME= alias-fonts
PORTVERSION= 1.0
-PORTREVISION= 6
+PORTREVISION= 7
CATEGORIES= japanese x11-fonts
MASTER_SITES= # empty
DISTFILES= # empty
diff --git a/japanese/alias-fonts/pkg-deinstall b/japanese/alias-fonts/pkg-deinstall
index 30fef6cb237d..a22d2653fb25 100644
--- a/japanese/alias-fonts/pkg-deinstall
+++ b/japanese/alias-fonts/pkg-deinstall
@@ -1,6 +1,10 @@
#!/bin/sh
# $FreeBSD$
+if [ $2 != "DEINSTALL" ]; then
+ exit 0
+fi
+
dir="${PKG_PREFIX}/lib/X11/fonts/local";
to="$dir/fonts.alias";
from="$to.orig";
@@ -20,5 +24,3 @@ while read line; do
*) echo $line;;
esac
done < $from > $to
-
-rm $from