pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/x11/xscreensaver The additional locale files only get ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/0136b1394ff2
branches: trunk
changeset: 497166:0136b1394ff2
user: tron <tron%pkgsrc.org@localhost>
date: Thu Jul 21 10:43:23 2005 +0000
description:
The additional locale files only get installed on systems with a recent
gettext version (e.g. NetBSD 3.99.7) but not systems with an older one
(e.g. NetBSD 3.0_BETA). We must therefore adapt the package list
dynamically.
diffstat:
x11/xscreensaver/Makefile | 8 +++++++-
x11/xscreensaver/PLIST | 6 +++---
2 files changed, 10 insertions(+), 4 deletions(-)
diffs (48 lines):
diff -r 3374ef1e55f6 -r 0136b1394ff2 x11/xscreensaver/Makefile
--- a/x11/xscreensaver/Makefile Thu Jul 21 09:22:17 2005 +0000
+++ b/x11/xscreensaver/Makefile Thu Jul 21 10:43:23 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.73 2005/07/21 06:41:12 hira Exp $
+# $NetBSD: Makefile,v 1.74 2005/07/21 10:43:23 tron Exp $
COMMENT= Screen saver and locker for the X window system
PKGREVISION= 1
@@ -13,5 +13,11 @@
CONFIGURE_ARGS+= --with-xml=${BUILDLINK_PREFIX.libxml2}
CONFIGURE_ARGS+= --with-configdir=${PREFIX}/libexec/xscreensaver/config
+.if exists(${PREFIX}/${PKGLOCALEDIR}/locale/ca/LC_MESSAGES/xscreensaver.mo)
+PLIST_SUBST+= OLD_GETTEXT=
+.else
+PLIST_SUBST+= OLD_GETTEXT="@comment "
+.endif
+
.include "../../textproc/libxml2/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff -r 3374ef1e55f6 -r 0136b1394ff2 x11/xscreensaver/PLIST
--- a/x11/xscreensaver/PLIST Thu Jul 21 09:22:17 2005 +0000
+++ b/x11/xscreensaver/PLIST Thu Jul 21 10:43:23 2005 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.25 2005/07/21 06:41:12 hira Exp $
+@comment $NetBSD: PLIST,v 1.26 2005/07/21 10:43:23 tron Exp $
bin/xscreensaver
bin/xscreensaver-command
bin/xscreensaver-getimage
@@ -612,7 +612,7 @@
man/man1/xsublim.1
man/man1/xteevee.1
man/man1/zoom.1
-${PKGLOCALEDIR}/locale/ca/LC_MESSAGES/xscreensaver.mo
+${OLD_GETTEXT}${PKGLOCALEDIR}/locale/ca/LC_MESSAGES/xscreensaver.mo
${PKGLOCALEDIR}/locale/da/LC_MESSAGES/xscreensaver.mo
${PKGLOCALEDIR}/locale/de/LC_MESSAGES/xscreensaver.mo
${PKGLOCALEDIR}/locale/es/LC_MESSAGES/xscreensaver.mo
@@ -628,7 +628,7 @@
${PKGLOCALEDIR}/locale/no/LC_MESSAGES/xscreensaver.mo
${PKGLOCALEDIR}/locale/pl/LC_MESSAGES/xscreensaver.mo
${PKGLOCALEDIR}/locale/pt/LC_MESSAGES/xscreensaver.mo
-${PKGLOCALEDIR}/locale/pt_BR/LC_MESSAGES/xscreensaver.mo
+${OLD_GETTEXT}${PKGLOCALEDIR}/locale/pt_BR/LC_MESSAGES/xscreensaver.mo
${PKGLOCALEDIR}/locale/ru/LC_MESSAGES/xscreensaver.mo
${PKGLOCALEDIR}/locale/sk/LC_MESSAGES/xscreensaver.mo
${PKGLOCALEDIR}/locale/sv/LC_MESSAGES/xscreensaver.mo
Home |
Main Index |
Thread Index |
Old Index