aboutsummaryrefslogtreecommitdiff
path: root/games/atomix
diff options
context:
space:
mode:
authorJohn Marino <marino@FreeBSD.org>2014-07-08 17:26:36 +0000
committerJohn Marino <marino@FreeBSD.org>2014-07-08 17:26:36 +0000
commit87f8b2e2dd831d333cf42c781b805177b21f4278 (patch)
tree2737e6ba9264d2988826c310fe806a21ca646058 /games/atomix
parenta8c79aa198bf63e714b1b52fc349b2b9efe09126 (diff)
downloadports-87f8b2e2dd831d333cf42c781b805177b21f4278.tar.gz
ports-87f8b2e2dd831d333cf42c781b805177b21f4278.zip
Notes
Diffstat (limited to 'games/atomix')
-rw-r--r--games/atomix/Makefile2
-rw-r--r--games/atomix/pkg-deinstall12
-rw-r--r--games/atomix/pkg-plist3
3 files changed, 13 insertions, 4 deletions
diff --git a/games/atomix/Makefile b/games/atomix/Makefile
index df65712e20f0..b7c1e58bbf50 100644
--- a/games/atomix/Makefile
+++ b/games/atomix/Makefile
@@ -4,7 +4,7 @@
PORTNAME= atomix
PORTVERSION= 2.14.0
-PORTREVISION= 11
+PORTREVISION= 12
CATEGORIES= games gnome
MASTER_SITES= GNOME
DIST_SUBDIR= gnome2
diff --git a/games/atomix/pkg-deinstall b/games/atomix/pkg-deinstall
new file mode 100644
index 000000000000..7b662cd79ab2
--- /dev/null
+++ b/games/atomix/pkg-deinstall
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+if [ "$2" = "POST-DEINSTALL" ]; then
+ GAMES=${PKG_PREFIX}/share/games
+ SCORES=${GAMES}/atomix.scores
+ if [ -f ${SCORES} ]; then
+ if [ ! -s ${SCORES} ]; then
+ rm -f ${SCORES}
+ rmdir ${GAMES} > /dev/null 2>&1 || :
+ fi
+ fi
+fi
diff --git a/games/atomix/pkg-plist b/games/atomix/pkg-plist
index 3e95ec8b1446..4ec8f6cac2e2 100644
--- a/games/atomix/pkg-plist
+++ b/games/atomix/pkg-plist
@@ -66,7 +66,6 @@ share/atomix/themes/default/wall-vertical-leftx.png
share/atomix/themes/default/wall-vertical-rightx.png
share/atomix/themes/default/wall-vertical-top-end.png
share/atomix/themes/default/wall-vertical.png
-@unexec [ -s %D/share/games/atomix.scores ] || rm -f %D/share/games/atomix.scores
share/gnome-2.0/ui/atomix-ui.xml
share/pixmaps/atomix-icon.png
share/locale/am/LC_MESSAGES/atomix.mo
@@ -128,5 +127,3 @@ share/locale/zh_TW/LC_MESSAGES/atomix.mo
@dirrm share/atomix/themes
@dirrm share/atomix/level
@dirrm share/atomix
-@dirrmtry share/locale/zh_HK/LC_MESSAGES
-@dirrmtry share/locale/zh_HK