Source-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/cross/avrdude avrdude: make docs optional (TeX is quit...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/08a800608bd2
branches:  trunk
changeset: 436426:08a800608bd2
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Sun Aug 02 21:20:33 2020 +0000

description:
avrdude: make docs optional (TeX is quite heavy dependency)

diffstat:

 cross/avrdude/Makefile |  29 +++++++++++++++++++-------
 cross/avrdude/PLIST    |  54 +++++++++++++++++++++++++-------------------------
 2 files changed, 48 insertions(+), 35 deletions(-)

diffs (121 lines):

diff -r 2b080a882a0f -r 08a800608bd2 cross/avrdude/Makefile
--- a/cross/avrdude/Makefile    Sun Aug 02 20:59:21 2020 +0000
+++ b/cross/avrdude/Makefile    Sun Aug 02 21:20:33 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.47 2020/01/18 23:30:15 rillig Exp $
+# $NetBSD: Makefile,v 1.48 2020/08/02 21:20:33 tnn Exp $
 
 DISTNAME=              avrdude-6.3
 PKGREVISION=           2
@@ -10,9 +10,6 @@
 COMMENT=               Downloader/uploader for Atmel AVR 8-bit RISC microcontrollers
 LICENSE=               gnu-gpl-v2
 
-BUILD_DEPENDS+=                dvipsk-[0-9]*:../../print/dvipsk
-BUILD_DEPENDS+=                tex-latex-fonts-[0-9]*:../../fonts/tex-latex-fonts
-BUILD_DEPENDS+=                tex-pdftex-[0-9]*:../../print/tex-pdftex
 
 .include "../../mk/bsd.prefs.mk"
 
@@ -29,7 +26,27 @@
 CONF_FILES_PERMS=      ${EGDIR}/avrdude.conf ${PKG_SYSCONFDIR}/avrdude.conf \
                        ${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 644
 
+PKG_OPTIONS_VAR=               PKG_OPTIONS.avrdude
+PKG_SUPPORTED_OPTIONS=         doc
+PKG_SUGGESTED_OPTIONS=         doc
+
+.include "../../mk/bsd.options.mk"
+
+PLIST_VARS+=           doc
+.if !empty(PKG_OPTIONS:Mdoc)
+PLIST.doc=             yes
+BUILD_DEPENDS+=                dvipsk-[0-9]*:../../print/dvipsk
+BUILD_DEPENDS+=                tex-latex-fonts-[0-9]*:../../fonts/tex-latex-fonts
+BUILD_DEPENDS+=                tex-pdftex-[0-9]*:../../print/tex-pdftex
+# DragonFly has stripped makeinfo in the base - without texi2dvi.
+.  if ${OPSYS} == "DragonFly"
+BUILD_DEPENDS+=                gtexinfo-[0-9]*:../../devel/gtexinfo
+.  endif
 CONFIGURE_ARGS+=       --enable-doc
+.else
+CONFIGURE_ARGS+=       --disable-doc
+.endif
+
 CONFIGURE_ARGS+=       --sysconfdir=${PKG_SYSCONFDIR}
 CONFIGURE_ENV+=                DEFAULT_SER_PORT=${DEFAULT_SERIAL_DEVICE}
 PLIST_SUBST+=          DISTNAME=${DISTNAME}
@@ -39,10 +56,6 @@
 pre-configure:
        cd ${WRKSRC} && autoreconf -vif
 
-# DragonFly has stripped makeinfo in the base - without texi2dvi.
-.if ${OPSYS} == "DragonFly"
-BUILD_DEPENDS+=                gtexinfo-[0-9]*:../../devel/gtexinfo
-.endif
 
 .include "../../devel/libftdi/buildlink3.mk"
 .include "../../devel/libhid/buildlink3.mk"
diff -r 2b080a882a0f -r 08a800608bd2 cross/avrdude/PLIST
--- a/cross/avrdude/PLIST       Sun Aug 02 20:59:21 2020 +0000
+++ b/cross/avrdude/PLIST       Sun Aug 02 21:20:33 2020 +0000
@@ -1,32 +1,32 @@
-@comment $NetBSD: PLIST,v 1.11 2017/01/29 02:24:54 mef Exp $
+@comment $NetBSD: PLIST,v 1.12 2020/08/02 21:20:33 tnn Exp $
 bin/avrdude
 include/libavrdude.h
-info/avrdude.info
+${PLIST.doc}info/avrdude.info
 lib/libavrdude.la
 man/man1/avrdude.1
-share/doc/${DISTNAME}/avrdude-html/avrdude.html
-share/doc/${DISTNAME}/avrdude-html/avrdude_1.html
-share/doc/${DISTNAME}/avrdude-html/avrdude_10.html
-share/doc/${DISTNAME}/avrdude-html/avrdude_11.html
-share/doc/${DISTNAME}/avrdude-html/avrdude_12.html
-share/doc/${DISTNAME}/avrdude-html/avrdude_13.html
-share/doc/${DISTNAME}/avrdude-html/avrdude_14.html
-share/doc/${DISTNAME}/avrdude-html/avrdude_15.html
-share/doc/${DISTNAME}/avrdude-html/avrdude_16.html
-share/doc/${DISTNAME}/avrdude-html/avrdude_17.html
-share/doc/${DISTNAME}/avrdude-html/avrdude_18.html
-share/doc/${DISTNAME}/avrdude-html/avrdude_19.html
-share/doc/${DISTNAME}/avrdude-html/avrdude_2.html
-share/doc/${DISTNAME}/avrdude-html/avrdude_20.html
-share/doc/${DISTNAME}/avrdude-html/avrdude_3.html
-share/doc/${DISTNAME}/avrdude-html/avrdude_4.html
-share/doc/${DISTNAME}/avrdude-html/avrdude_5.html
-share/doc/${DISTNAME}/avrdude-html/avrdude_6.html
-share/doc/${DISTNAME}/avrdude-html/avrdude_7.html
-share/doc/${DISTNAME}/avrdude-html/avrdude_8.html
-share/doc/${DISTNAME}/avrdude-html/avrdude_9.html
-share/doc/${DISTNAME}/avrdude-html/avrdude_abt.html
-share/doc/${DISTNAME}/avrdude-html/avrdude_toc.html
-share/doc/${DISTNAME}/avrdude.pdf
-share/doc/${DISTNAME}/avrdude.ps
+${PLIST.doc}share/doc/${DISTNAME}/avrdude-html/avrdude.html
+${PLIST.doc}share/doc/${DISTNAME}/avrdude-html/avrdude_1.html
+${PLIST.doc}share/doc/${DISTNAME}/avrdude-html/avrdude_10.html
+${PLIST.doc}share/doc/${DISTNAME}/avrdude-html/avrdude_11.html
+${PLIST.doc}share/doc/${DISTNAME}/avrdude-html/avrdude_12.html
+${PLIST.doc}share/doc/${DISTNAME}/avrdude-html/avrdude_13.html
+${PLIST.doc}share/doc/${DISTNAME}/avrdude-html/avrdude_14.html
+${PLIST.doc}share/doc/${DISTNAME}/avrdude-html/avrdude_15.html
+${PLIST.doc}share/doc/${DISTNAME}/avrdude-html/avrdude_16.html
+${PLIST.doc}share/doc/${DISTNAME}/avrdude-html/avrdude_17.html
+${PLIST.doc}share/doc/${DISTNAME}/avrdude-html/avrdude_18.html
+${PLIST.doc}share/doc/${DISTNAME}/avrdude-html/avrdude_19.html
+${PLIST.doc}share/doc/${DISTNAME}/avrdude-html/avrdude_2.html
+${PLIST.doc}share/doc/${DISTNAME}/avrdude-html/avrdude_20.html
+${PLIST.doc}share/doc/${DISTNAME}/avrdude-html/avrdude_3.html
+${PLIST.doc}share/doc/${DISTNAME}/avrdude-html/avrdude_4.html
+${PLIST.doc}share/doc/${DISTNAME}/avrdude-html/avrdude_5.html
+${PLIST.doc}share/doc/${DISTNAME}/avrdude-html/avrdude_6.html
+${PLIST.doc}share/doc/${DISTNAME}/avrdude-html/avrdude_7.html
+${PLIST.doc}share/doc/${DISTNAME}/avrdude-html/avrdude_8.html
+${PLIST.doc}share/doc/${DISTNAME}/avrdude-html/avrdude_9.html
+${PLIST.doc}share/doc/${DISTNAME}/avrdude-html/avrdude_abt.html
+${PLIST.doc}share/doc/${DISTNAME}/avrdude-html/avrdude_toc.html
+${PLIST.doc}share/doc/${DISTNAME}/avrdude.pdf
+${PLIST.doc}share/doc/${DISTNAME}/avrdude.ps
 share/examples/avrdude/avrdude.conf



Home | Main Index | Thread Index | Old Index