pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
wla-dx: make building the documentation optional
Module Name: pkgsrc-wip
Committed By: Dean Matzkov <bapabooiee%gmail.com@localhost>
Pushed By: bapa
Date: Sun Feb 3 18:05:06 2019 -0700
Changeset: 49626c7d6cd60daac8709bd351b0b396daba46c7
Modified Files:
wla-dx/Makefile
wla-dx/PLIST
Added Files:
wla-dx/MESSAGE
wla-dx/options.mk
Log Message:
wla-dx: make building the documentation optional
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=49626c7d6cd60daac8709bd351b0b396daba46c7
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
wla-dx/MESSAGE | 11 +++++++++++
wla-dx/Makefile | 25 ++++++++++++++-----------
wla-dx/PLIST | 30 +++++++++++++++---------------
wla-dx/options.mk | 15 +++++++++++++++
4 files changed, 55 insertions(+), 26 deletions(-)
diffs:
diff --git a/wla-dx/MESSAGE b/wla-dx/MESSAGE
new file mode 100644
index 0000000000..675406c613
--- /dev/null
+++ b/wla-dx/MESSAGE
@@ -0,0 +1,11 @@
+===========================================================================
+$NetBSD$
+
+If you'd like the complete documentation for wla-dx, such as wla-dx.txt,
+wla-dx.html and the manpages, consider building with:
+`PKG_OPTIONS.wla-dx+= doc' set.
+
+An online copy of the documentation is also available here:
+ http://www.villehelin.com/wla-README.html
+
+===========================================================================
diff --git a/wla-dx/Makefile b/wla-dx/Makefile
index b01298bdfd..29e36fc0eb 100644
--- a/wla-dx/Makefile
+++ b/wla-dx/Makefile
@@ -10,6 +10,8 @@ HOMEPAGE= http://www.villehelin.com/wla.html
COMMENT= Assembler that targets many CPUs
LICENSE= gnu-gpl-v2
+.include "options.mk"
+
USE_CMAKE= yes
USE_LANGUAGES= c c++
@@ -25,16 +27,17 @@ do-install:
. for f in ${WLADX_BINARIES}
${INSTALL_PROGRAM} ${WRKSRC}/binaries/${f} ${DESTDIR}${PREFIX}/bin
. endfor
-
-. for f in binaries/doc/{wla-dx.txt,wla-dx.html} FILE_FORMATS CHANGELOG
- ${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
-. endfor
-
-. for f in binaries/doc/*.1
- ${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
-. endfor
-. for f in binaries/doc/*.7
- ${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${PREFIX}/${PKGMANDIR}/man7
-. endfor
+ # Yes, even the manual pages require textproc/py-sphinx.
+. if !empty(PKG_OPTIONS:Mdoc)
+. for f in binaries/doc/{wla-dx.txt,wla-dx.html} FILE_FORMATS CHANGELOG
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
+. endfor
+. for f in binaries/doc/*.1
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
+. endfor
+. for f in binaries/doc/*.7
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${PREFIX}/${PKGMANDIR}/man7
+. endfor
+. endif
.include "../../mk/bsd.pkg.mk"
diff --git a/wla-dx/PLIST b/wla-dx/PLIST
index 174c853a9f..7d2f96450e 100644
--- a/wla-dx/PLIST
+++ b/wla-dx/PLIST
@@ -9,18 +9,18 @@ bin/wla-spc700
bin/wla-z80
bin/wlab
bin/wlalink
-man/man1/wla-6502.1
-man/man1/wla-6510.1
-man/man1/wla-65816.1
-man/man1/wla-65c02.1
-man/man1/wla-gb.1
-man/man1/wla-huc6280.1
-man/man1/wla-spc700.1
-man/man1/wla-z80.1
-man/man1/wlab.1
-man/man1/wlalink.1
-man/man7/wla-dx.7
-share/doc/wla-dx/CHANGELOG
-share/doc/wla-dx/FILE_FORMATS
-share/doc/wla-dx/wla-dx.html
-share/doc/wla-dx/wla-dx.txt
+${PLIST.doc}man/man1/wla-6502.1
+${PLIST.doc}man/man1/wla-6510.1
+${PLIST.doc}man/man1/wla-65816.1
+${PLIST.doc}man/man1/wla-65c02.1
+${PLIST.doc}man/man1/wla-gb.1
+${PLIST.doc}man/man1/wla-huc6280.1
+${PLIST.doc}man/man1/wla-spc700.1
+${PLIST.doc}man/man1/wla-z80.1
+${PLIST.doc}man/man1/wlab.1
+${PLIST.doc}man/man1/wlalink.1
+${PLIST.doc}man/man7/wla-dx.7
+${PLIST.doc}share/doc/wla-dx/CHANGELOG
+${PLIST.doc}share/doc/wla-dx/FILE_FORMATS
+${PLIST.doc}share/doc/wla-dx/wla-dx.html
+${PLIST.doc}share/doc/wla-dx/wla-dx.txt
diff --git a/wla-dx/options.mk b/wla-dx/options.mk
new file mode 100644
index 0000000000..50686aa48b
--- /dev/null
+++ b/wla-dx/options.mk
@@ -0,0 +1,15 @@
+# $NetBSD$
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.wla-dx
+PKG_SUPPORTED_OPTIONS= doc
+PKG_SUGGESTED_OPTIONS=
+
+PLIST_VARS+= doc
+
+.include "../../mk/bsd.options.mk"
+
+
+.if !empty(PKG_OPTIONS:Mdoc)
+BUILD_DEPENDS+= py[0-9]*-sphinx-[0-9]*:../../textproc/py-sphinx
+PLIST.doc= yes
+.endif
Home |
Main Index |
Thread Index |
Old Index