pkgsrc-Changes archive

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

CVS commit: pkgsrc/textproc/dwdiff



Module Name:    pkgsrc
Committed By:   cheusov
Date:           Mon May  6 10:42:51 UTC 2024

Modified Files:
        pkgsrc/textproc/dwdiff: Makefile PLIST
Added Files:
        pkgsrc/textproc/dwdiff: options.mk

Log Message:
Add support for option "nls"


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 pkgsrc/textproc/dwdiff/Makefile
cvs rdiff -u -r1.1 -r1.2 pkgsrc/textproc/dwdiff/PLIST
cvs rdiff -u -r0 -r1.1 pkgsrc/textproc/dwdiff/options.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/textproc/dwdiff/Makefile
diff -u pkgsrc/textproc/dwdiff/Makefile:1.11 pkgsrc/textproc/dwdiff/Makefile:1.12
--- pkgsrc/textproc/dwdiff/Makefile:1.11        Wed Nov  8 13:21:04 2023
+++ pkgsrc/textproc/dwdiff/Makefile     Mon May  6 10:42:51 2024
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.11 2023/11/08 13:21:04 wiz Exp $
+# $NetBSD: Makefile,v 1.12 2024/05/06 10:42:51 cheusov Exp $
 
 DISTNAME=      dwdiff-2.1.3
 PKGREVISION=   6
@@ -14,9 +14,10 @@ LICENSE=     gnu-gpl-v3
 GNU_CONFIGURE=         yes
 USE_PKGLOCALEDIR=      yes
 USE_TOOLS+=            pkg-config
-USE_TOOLS+=            msgfmt msgmerge xgettext
 MAKE_FLAGS+=           mandir=${PREFIX}/${PKGMANDIR}
 
-.include "../../devel/gettext-lib/buildlink3.mk"
+.include "../../mk/bsd.prefs.mk"
+.include "options.mk"
+
 .include "../../textproc/icu/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"

Index: pkgsrc/textproc/dwdiff/PLIST
diff -u pkgsrc/textproc/dwdiff/PLIST:1.1 pkgsrc/textproc/dwdiff/PLIST:1.2
--- pkgsrc/textproc/dwdiff/PLIST:1.1    Fri Jun  5 12:43:53 2020
+++ pkgsrc/textproc/dwdiff/PLIST        Mon May  6 10:42:51 2024
@@ -1,16 +1,16 @@
-@comment $NetBSD: PLIST,v 1.1 2020/06/05 12:43:53 ryoon Exp $
+@comment $NetBSD: PLIST,v 1.2 2024/05/06 10:42:51 cheusov Exp $
 bin/dwdiff
 bin/dwfilter
 man/man1/dwdiff.1
 man/man1/dwfilter.1
-man/nl.UTF-8/man1/dwdiff.1
-man/nl.UTF-8/man1/dwfilter.1
-man/nl/man1/dwdiff.1
-man/nl/man1/dwfilter.1
+${PLIST.nls}man/nl.UTF-8/man1/dwdiff.1
+${PLIST.nls}man/nl.UTF-8/man1/dwfilter.1
+${PLIST.nls}man/nl/man1/dwdiff.1
+${PLIST.nls}man/nl/man1/dwfilter.1
 share/doc/${PKGNAME}/COPYING
 share/doc/${PKGNAME}/Changelog
 share/doc/${PKGNAME}/README
-share/locale/de/LC_MESSAGES/dwdiff.mo
-share/locale/es/LC_MESSAGES/dwdiff.mo
-share/locale/fr/LC_MESSAGES/dwdiff.mo
-share/locale/nl/LC_MESSAGES/dwdiff.mo
+${PLIST.nls}share/locale/de/LC_MESSAGES/dwdiff.mo
+${PLIST.nls}share/locale/es/LC_MESSAGES/dwdiff.mo
+${PLIST.nls}share/locale/fr/LC_MESSAGES/dwdiff.mo
+${PLIST.nls}share/locale/nl/LC_MESSAGES/dwdiff.mo

Added files:

Index: pkgsrc/textproc/dwdiff/options.mk
diff -u /dev/null pkgsrc/textproc/dwdiff/options.mk:1.1
--- /dev/null   Mon May  6 10:42:51 2024
+++ pkgsrc/textproc/dwdiff/options.mk   Mon May  6 10:42:51 2024
@@ -0,0 +1,17 @@
+# $NetBSD: options.mk,v 1.1 2024/05/06 10:42:51 cheusov Exp $
+
+PKG_OPTIONS_VAR=       PKG_OPTIONS.dwdiff
+
+PKG_SUPPORTED_OPTIONS= nls
+PKG_SUGGESTED_OPTIONS= nls
+
+PLIST_VARS+=           nls
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mnls)
+USE_TOOLS+=            msgfmt msgmerge xgettext
+PLIST.nls=             yes
+.else
+CONFIGURE_ARGS+=       --without-gettext
+.endif



Home | Main Index | Thread Index | Old Index