pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/graphics/sane-backends sane-backends: Handle nls corre...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b7d0af0675ce
branches:  trunk
changeset: 380398:b7d0af0675ce
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Tue May 15 14:58:08 2018 +0000

description:
sane-backends: Handle nls correctly.

diffstat:

 graphics/sane-backends/PLIST      |  24 +++++++++++++++++++++++-
 graphics/sane-backends/options.mk |  13 ++++++++++---
 2 files changed, 33 insertions(+), 4 deletions(-)

diffs (71 lines):

diff -r 2c3f98ef91f0 -r b7d0af0675ce graphics/sane-backends/PLIST
--- a/graphics/sane-backends/PLIST      Tue May 15 14:14:09 2018 +0000
+++ b/graphics/sane-backends/PLIST      Tue May 15 14:58:08 2018 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.32 2018/02/25 21:22:07 wiz Exp $
+@comment $NetBSD: PLIST,v 1.33 2018/05/15 14:58:08 jperkin Exp $
 bin/gamma4scanimage
 bin/sane-config
 bin/sane-find-scanner
@@ -7,6 +7,28 @@
 include/sane/sane.h
 include/sane/saneopts.h
 lib/libsane.la
+${PLIST.nls}share/locale/bg/LC_MESSAGES/sane-backends.mo
+${PLIST.nls}share/locale/cs/LC_MESSAGES/sane-backends.mo
+${PLIST.nls}share/locale/da/LC_MESSAGES/sane-backends.mo
+${PLIST.nls}share/locale/de/LC_MESSAGES/sane-backends.mo
+${PLIST.nls}share/locale/en@boldquot/LC_MESSAGES/sane-backends.mo
+${PLIST.nls}share/locale/en@quot/LC_MESSAGES/sane-backends.mo
+${PLIST.nls}share/locale/en_GB/LC_MESSAGES/sane-backends.mo
+${PLIST.nls}share/locale/eo/LC_MESSAGES/sane-backends.mo
+${PLIST.nls}share/locale/es/LC_MESSAGES/sane-backends.mo
+${PLIST.nls}share/locale/fi/LC_MESSAGES/sane-backends.mo
+${PLIST.nls}share/locale/fr/LC_MESSAGES/sane-backends.mo
+${PLIST.nls}share/locale/gl/LC_MESSAGES/sane-backends.mo
+${PLIST.nls}share/locale/hu/LC_MESSAGES/sane-backends.mo
+${PLIST.nls}share/locale/it/LC_MESSAGES/sane-backends.mo
+${PLIST.nls}share/locale/ja/LC_MESSAGES/sane-backends.mo
+${PLIST.nls}share/locale/nb/LC_MESSAGES/sane-backends.mo
+${PLIST.nls}share/locale/nl/LC_MESSAGES/sane-backends.mo
+${PLIST.nls}share/locale/pl/LC_MESSAGES/sane-backends.mo
+${PLIST.nls}share/locale/pt/LC_MESSAGES/sane-backends.mo
+${PLIST.nls}share/locale/ru/LC_MESSAGES/sane-backends.mo
+${PLIST.nls}share/locale/sv/LC_MESSAGES/sane-backends.mo
+${PLIST.nls}share/locale/uk/LC_MESSAGES/sane-backends.mo
 lib/pkgconfig/sane-backends.pc
 lib/sane/libsane-abaton.la
 lib/sane/libsane-agfafocus.la
diff -r 2c3f98ef91f0 -r b7d0af0675ce graphics/sane-backends/options.mk
--- a/graphics/sane-backends/options.mk Tue May 15 14:14:09 2018 +0000
+++ b/graphics/sane-backends/options.mk Tue May 15 14:58:08 2018 +0000
@@ -1,12 +1,12 @@
-# $NetBSD: options.mk,v 1.9 2012/06/12 15:45:56 wiz Exp $
+# $NetBSD: options.mk,v 1.10 2018/05/15 14:58:08 jperkin Exp $
 
 PKG_OPTIONS_VAR=               PKG_OPTIONS.sane-backends
-PKG_SUPPORTED_OPTIONS=         inet6 snmp
+PKG_SUPPORTED_OPTIONS=         inet6 nls snmp
 PKG_SUGGESTED_OPTIONS=         inet6
 
 .include "../../mk/bsd.options.mk"
 
-# Package-specific option-handling
+PLIST_VARS+=   nls
 
 .if !empty(PKG_OPTIONS:Minet6)
 CONFIGURE_ARGS+=       --enable-ipv6
@@ -14,6 +14,13 @@
 CONFIGURE_ARGS+=       --disable-ipv6
 .endif
 
+.if !empty(PKG_OPTIONS:Mnls)
+CONFIGURE_ARGS+=       --enable-nls
+PLIST.nls=             yes
+.else
+CONFIGURE_ARGS+=       --disable-nls
+.endif
+
 .if !empty(PKG_OPTIONS:Msnmp)
 CONFIGURE_ARGS+=       --with-snmp=yes
 .include "../../net/net-snmp/buildlink3.mk"



Home | Main Index | Thread Index | Old Index