aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2004-12-16 13:49:27 +0800
committerkris <kris@FreeBSD.org>2004-12-16 13:49:27 +0800
commit7b7c9bd0dc7d6b6913f2fa5e8ba139254cdbe135 (patch)
tree190106e9bf54a571703d713bb45b9e73a9c9d8c7 /games
parentbefba174ca2c351e960ed7779aef28e6453785ff (diff)
downloadfreebsd-ports-gnome-7b7c9bd0dc7d6b6913f2fa5e8ba139254cdbe135.tar.gz
freebsd-ports-gnome-7b7c9bd0dc7d6b6913f2fa5e8ba139254cdbe135.tar.zst
freebsd-ports-gnome-7b7c9bd0dc7d6b6913f2fa5e8ba139254cdbe135.zip
Clean up handling of locale directories at deinstall-time:
* Don't remove "system directories" (which were created by BSD.*.dist) * Silently try to remove locale directories which we might have created
Diffstat (limited to 'games')
-rw-r--r--games/freeciv/pkg-plist26
-rw-r--r--games/gnubg/pkg-plist2
-rw-r--r--games/gturing/pkg-plist2
-rw-r--r--games/wesnoth-devel/pkg-plist2
-rw-r--r--games/wesnoth/pkg-plist2
5 files changed, 6 insertions, 28 deletions
diff --git a/games/freeciv/pkg-plist b/games/freeciv/pkg-plist
index a043fb2d08e5..5c7fe271919a 100644
--- a/games/freeciv/pkg-plist
+++ b/games/freeciv/pkg-plist
@@ -165,42 +165,16 @@ share/locale/ro/LC_MESSAGES/freeciv.mo
share/locale/ru/LC_MESSAGES/freeciv.mo
share/locale/sv/LC_MESSAGES/freeciv.mo
share/locale/uk/LC_MESSAGES/freeciv.mo
-@unexec rmdir %D/share/locale/da/LC_MESSAGES 2>/dev/null || true
-@unexec rmdir %D/share/locale/da 2>/dev/null || true
-@unexec rmdir %D/share/locale/de/LC_MESSAGES 2>/dev/null || true
-@unexec rmdir %D/share/locale/de 2>/dev/null || true
-@unexec rmdir %D/share/locale/en_GB/LC_MESSAGES 2>/dev/null || true
-@unexec rmdir %D/share/locale/en_GB 2>/dev/null || true
-@unexec rmdir %D/share/locale/es/LC_MESSAGES 2>/dev/null || true
-@unexec rmdir %D/share/locale/es 2>/dev/null || true
-@unexec rmdir %D/share/locale/et/LC_MESSAGES 2>/dev/null || true
-@unexec rmdir %D/share/locale/et 2>/dev/null || true
@unexec rmdir %D/share/locale/fi/LC_MESSAGES 2>/dev/null || true
@unexec rmdir %D/share/locale/fi 2>/dev/null || true
-@unexec rmdir %D/share/locale/fr/LC_MESSAGES 2>/dev/null || true
-@unexec rmdir %D/share/locale/fr 2>/dev/null || true
-@unexec rmdir %D/share/locale/hu/LC_MESSAGES 2>/dev/null || true
-@unexec rmdir %D/share/locale/hu 2>/dev/null || true
-@unexec rmdir %D/share/locale/it/LC_MESSAGES 2>/dev/null || true
-@unexec rmdir %D/share/locale/it 2>/dev/null || true
-@unexec rmdir %D/share/locale/ja/LC_MESSAGES 2>/dev/null || true
-@unexec rmdir %D/share/locale/ja 2>/dev/null || true
-@unexec rmdir %D/share/locale/nl/LC_MESSAGES 2>/dev/null || true
-@unexec rmdir %D/share/locale/nl 2>/dev/null || true
@unexec rmdir %D/share/locale/no/LC_MESSAGES 2>/dev/null || true
@unexec rmdir %D/share/locale/no 2>/dev/null || true
@unexec rmdir %D/share/locale/pl/LC_MESSAGES 2>/dev/null || true
@unexec rmdir %D/share/locale/pl 2>/dev/null || true
@unexec rmdir %D/share/locale/pt/LC_MESSAGES 2>/dev/null || true
@unexec rmdir %D/share/locale/pt 2>/dev/null || true
-@unexec rmdir %D/share/locale/pt_BR/LC_MESSAGES 2>/dev/null || true
-@unexec rmdir %D/share/locale/pt_BR 2>/dev/null || true
@unexec rmdir %D/share/locale/ro/LC_MESSAGES 2>/dev/null || true
@unexec rmdir %D/share/locale/ro 2>/dev/null || true
-@unexec rmdir %D/share/locale/ru/LC_MESSAGES 2>/dev/null || true
-@unexec rmdir %D/share/locale/ru 2>/dev/null || true
-@unexec rmdir %D/share/locale/sv/LC_MESSAGES 2>/dev/null || true
-@unexec rmdir %D/share/locale/sv 2>/dev/null || true
@unexec rmdir %D/share/locale/sk/LC_MESSAGES 2>/dev/null || true
@unexec rmdir %D/share/locale/sk 2>/dev/null || true
@dirrm %%DATADIR%%/trident
diff --git a/games/gnubg/pkg-plist b/games/gnubg/pkg-plist
index ab142c1211a3..90d2cfb5370c 100644
--- a/games/gnubg/pkg-plist
+++ b/games/gnubg/pkg-plist
@@ -45,3 +45,5 @@ share/locale/is/LC_MESSAGES/gnubg.mo
share/locale/it/LC_MESSAGES/gnubg.mo
share/locale/ja/LC_MESSAGES/gnubg.mo
share/locale/tr/LC_MESSAGES/gnubg.mo
+@unexec rmdir %D/share/locale/en_US/LC_MESSAGES 2> /dev/null || true
+@unexec rmdir %D/share/locale/en_US 2> /dev/null || true
diff --git a/games/gturing/pkg-plist b/games/gturing/pkg-plist
index aaf54a520af0..57940fa09755 100644
--- a/games/gturing/pkg-plist
+++ b/games/gturing/pkg-plist
@@ -41,8 +41,6 @@ share/gnome/help/gturing/C/gturing.xml
share/gnome/help/gturing/C/figures/mainwin.png
share/gnome/applications/gturing.desktop
bin/gturing
-@unexec rmdir %D/share/locale/*/LC_MESSAGES 2>/dev/null || true
-@unexec rmdir %D/share/locale/* 2>/dev/null || true
%%PORTDOCS%%share/examples/gturing/subst.tur
%%PORTDOCS%%share/examples/gturing/sort.tur
%%PORTDOCS%%share/examples/gturing/dec2bin_shift.tur
diff --git a/games/wesnoth-devel/pkg-plist b/games/wesnoth-devel/pkg-plist
index b840191404bc..7e60f9659bdc 100644
--- a/games/wesnoth-devel/pkg-plist
+++ b/games/wesnoth-devel/pkg-plist
@@ -2771,6 +2771,8 @@ share/wesnoth/sounds/wolf-attack.wav
share/wesnoth/sounds/wolf-cry.wav
share/wesnoth/sounds/zombie-attack.wav
share/wesnoth/sounds/zombie-hit.wav
+@unexec rmdir %D/share/locale/el_GR/LC_MESSAGES 2> /dev/null || true
+@unexec rmdir %D/share/locale/el_GR 2> /dev/null || true
@dirrm share/wesnoth/sounds
%%LITE:%%@dirrm share/wesnoth/music
@dirrm share/wesnoth/images/tools/exploder
diff --git a/games/wesnoth/pkg-plist b/games/wesnoth/pkg-plist
index b840191404bc..7e60f9659bdc 100644
--- a/games/wesnoth/pkg-plist
+++ b/games/wesnoth/pkg-plist
@@ -2771,6 +2771,8 @@ share/wesnoth/sounds/wolf-attack.wav
share/wesnoth/sounds/wolf-cry.wav
share/wesnoth/sounds/zombie-attack.wav
share/wesnoth/sounds/zombie-hit.wav
+@unexec rmdir %D/share/locale/el_GR/LC_MESSAGES 2> /dev/null || true
+@unexec rmdir %D/share/locale/el_GR 2> /dev/null || true
@dirrm share/wesnoth/sounds
%%LITE:%%@dirrm share/wesnoth/music
@dirrm share/wesnoth/images/tools/exploder