pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/multimedia/mkvtoolnix add a "doc" pkg option (default ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a9503875e622
branches:  trunk
changeset: 385964:a9503875e622
user:      mrg <mrg%pkgsrc.org@localhost>
date:      Thu Sep 29 08:13:17 2022 +0000

description:
add a "doc" pkg option (default present, retaining current usage.)

this allows the textproc/po4a build dependency to be removed, which
pulls in latex among other things.  since the defaults are not
changed, i have not bumped the pkgrevision.

diffstat:

 multimedia/mkvtoolnix/Makefile   |   3 +-
 multimedia/mkvtoolnix/PLIST      |  58 +---------------------------------------
 multimedia/mkvtoolnix/options.mk |  13 +++++++-
 3 files changed, 13 insertions(+), 61 deletions(-)

diffs (116 lines):

diff -r c67e4725ac3d -r a9503875e622 multimedia/mkvtoolnix/Makefile
--- a/multimedia/mkvtoolnix/Makefile    Thu Sep 29 07:47:52 2022 +0000
+++ b/multimedia/mkvtoolnix/Makefile    Thu Sep 29 08:13:17 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.200 2022/09/11 12:52:02 wiz Exp $
+# $NetBSD: Makefile,v 1.201 2022/09/29 08:13:17 mrg Exp $
 
 DISTNAME=      mkvtoolnix-70.0.0
 PKGREVISION=   1
@@ -12,7 +12,6 @@
 LICENSE=       gnu-gpl-v2
 
 BUILD_DEPENDS+=        docbook-xsl>=1.79.1nb5:../../textproc/docbook-xsl
-BUILD_DEPENDS+=        po4a-[0-9]*:../../textproc/po4a
 BUILD_DEPENDS+=        ${RUBY_BASE}>=${RUBY_VERSION}:${RUBY_SRCDIR}
 
 # 'The following features of the C++17 standards are not supported by c++:
diff -r c67e4725ac3d -r a9503875e622 multimedia/mkvtoolnix/PLIST
--- a/multimedia/mkvtoolnix/PLIST       Thu Sep 29 07:47:52 2022 +0000
+++ b/multimedia/mkvtoolnix/PLIST       Thu Sep 29 08:13:17 2022 +0000
@@ -1,68 +1,12 @@
-@comment $NetBSD: PLIST,v 1.13 2022/04/11 11:19:55 adam Exp $
+@comment $NetBSD: PLIST,v 1.14 2022/09/29 08:13:17 mrg Exp $
 bin/mkvextract
 bin/mkvinfo
 bin/mkvmerge
 bin/mkvpropedit
-man/bg/man1/mkvextract.1
-man/bg/man1/mkvinfo.1
-man/bg/man1/mkvmerge.1
-man/bg/man1/mkvpropedit.1
-man/ca/man1/mkvextract.1
-man/ca/man1/mkvinfo.1
-man/ca/man1/mkvmerge.1
-man/ca/man1/mkvpropedit.1
-man/de/man1/mkvextract.1
-man/de/man1/mkvinfo.1
-man/de/man1/mkvmerge.1
-man/de/man1/mkvpropedit.1
-man/es/man1/mkvextract.1
-man/es/man1/mkvinfo.1
-man/es/man1/mkvmerge.1
-man/es/man1/mkvpropedit.1
-man/fr/man1/mkvextract.1
-man/fr/man1/mkvinfo.1
-man/fr/man1/mkvmerge.1
-man/fr/man1/mkvpropedit.1
-man/it/man1/mkvextract.1
-man/it/man1/mkvinfo.1
-man/it/man1/mkvmerge.1
-man/it/man1/mkvpropedit.1
-man/ja/man1/mkvextract.1
-man/ja/man1/mkvinfo.1
-man/ja/man1/mkvmerge.1
-man/ja/man1/mkvpropedit.1
-man/ko/man1/mkvextract.1
-man/ko/man1/mkvinfo.1
-man/ko/man1/mkvmerge.1
-man/ko/man1/mkvpropedit.1
 man/man1/mkvextract.1
 man/man1/mkvinfo.1
 man/man1/mkvmerge.1
 man/man1/mkvpropedit.1
-man/nl/man1/mkvextract.1
-man/nl/man1/mkvinfo.1
-man/nl/man1/mkvmerge.1
-man/nl/man1/mkvpropedit.1
-man/pl/man1/mkvextract.1
-man/pl/man1/mkvinfo.1
-man/pl/man1/mkvmerge.1
-man/pl/man1/mkvpropedit.1
-man/ru/man1/mkvextract.1
-man/ru/man1/mkvinfo.1
-man/ru/man1/mkvmerge.1
-man/ru/man1/mkvpropedit.1
-man/uk/man1/mkvextract.1
-man/uk/man1/mkvinfo.1
-man/uk/man1/mkvmerge.1
-man/uk/man1/mkvpropedit.1
-man/zh_CN/man1/mkvextract.1
-man/zh_CN/man1/mkvinfo.1
-man/zh_CN/man1/mkvmerge.1
-man/zh_CN/man1/mkvpropedit.1
-man/zh_TW/man1/mkvextract.1
-man/zh_TW/man1/mkvinfo.1
-man/zh_TW/man1/mkvmerge.1
-man/zh_TW/man1/mkvpropedit.1
 share/locale/bg/LC_MESSAGES/mkvtoolnix.mo
 share/locale/ca/LC_MESSAGES/mkvtoolnix.mo
 share/locale/cs/LC_MESSAGES/mkvtoolnix.mo
diff -r c67e4725ac3d -r a9503875e622 multimedia/mkvtoolnix/options.mk
--- a/multimedia/mkvtoolnix/options.mk  Thu Sep 29 07:47:52 2022 +0000
+++ b/multimedia/mkvtoolnix/options.mk  Thu Sep 29 08:13:17 2022 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: options.mk,v 1.5 2022/05/23 11:55:17 adam Exp $
+# $NetBSD: options.mk,v 1.6 2022/09/29 08:13:17 mrg Exp $
 
 PKG_OPTIONS_VAR=       PKG_OPTIONS.mkvtoolnix
-PKG_SUPPORTED_OPTIONS= gui
+PKG_SUPPORTED_OPTIONS= gui doc
+PKG_DEFAULT_OPTIONS=   doc
 
 .include "../../mk/bsd.options.mk"
 
@@ -15,3 +16,11 @@
 .else
 CONFIGURE_ARGS+=       --disable-gui
 .endif
+
+.if !empty(PKG_OPTIONS:Mdoc)
+PLIST_SRC+=            PLIST.po4a
+CONFIGURE_ARGS+=       --with-po4a
+BUILD_DEPENDS+=        po4a-[0-9]*:../../textproc/po4a
+.else
+CONFIGURE_ARGS+=       --without-po4a
+.endif



Home | Main Index | Thread Index | Old Index