pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/cross/avr-libc Make documentation optional.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/adeaead24d72
branches:  trunk
changeset: 354934:adeaead24d72
user:      riastradh <riastradh%pkgsrc.org@localhost>
date:      Tue Nov 15 20:30:01 2016 +0000

description:
Make documentation optional.

Significantly reduces build time and dependencies.  doc option is
enabled by default so there's no change without explicit
configuration.

>From i3enedek on Freenode.

Splitting this into a separate doc package is left as an exercise for
the reader.

diffstat:

 cross/avr-libc/Makefile   |    50 +-
 cross/avr-libc/PLIST      |  2550 ++++++++++++++++++++++----------------------
 cross/avr-libc/options.mk |    63 +
 3 files changed, 1340 insertions(+), 1323 deletions(-)

diffs (truncated from 2718 to 300 lines):

diff -r 406caf65a9f1 -r adeaead24d72 cross/avr-libc/Makefile
--- a/cross/avr-libc/Makefile   Tue Nov 15 17:48:56 2016 +0000
+++ b/cross/avr-libc/Makefile   Tue Nov 15 20:30:01 2016 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.43 2016/07/09 06:37:58 wiz Exp $
+# $NetBSD: Makefile,v 1.44 2016/11/15 20:30:01 riastradh Exp $
 
 DISTNAME=              avr-libc-1.8.1
 PKGREVISION=           3
@@ -11,39 +11,12 @@
 COMMENT=               C and math library for Atmel AVR 8-bit microcontrollers
 LICENSE=               modified-bsd
 
-BUILD_DEPENDS+=                doxygen>=1.8.9.1.nb1:../../devel/doxygen
-BUILD_DEPENDS+=                tex-psnfss-[0-9]*:../../fonts/tex-psnfss
-BUILD_DEPENDS+=                tex-wasysym-[0-9]*:../../fonts/tex-wasysym
-BUILD_DEPENDS+=                netpbm-[0-9]*:../../graphics/netpbm
-BUILD_DEPENDS+=                tex-epstopdf-[0-9]*:../../graphics/tex-epstopdf
-BUILD_DEPENDS+=                tex-adjustbox-[0-9]*:../../print/tex-adjustbox
-BUILD_DEPENDS+=                tex-caption-[0-9]*:../../print/tex-caption
-BUILD_DEPENDS+=                tex-collectbox-[0-9]*:../../print/tex-collectbox
-BUILD_DEPENDS+=                tex-colortbl-[0-9]*:../../print/tex-colortbl
-BUILD_DEPENDS+=                tex-fancyhdr-[0-9]*:../../print/tex-fancyhdr
-BUILD_DEPENDS+=                tex-float-[0-9]*:../../print/tex-float
-BUILD_DEPENDS+=                tex-geometry-[0-9]*:../../print/tex-geometry
-BUILD_DEPENDS+=                tex-graphics-cfg-[0-9]*:../../print/tex-graphics-cfg
-BUILD_DEPENDS+=                tex-hyperref-[0-9]*:../../print/tex-hyperref
-BUILD_DEPENDS+=                tex-latex-bin-[0-9]*:../../print/tex-latex-bin
-BUILD_DEPENDS+=                tex-multirow-[0-9]*:../../print/tex-multirow
-BUILD_DEPENDS+=                tex-natbib-[0-9]*:../../print/tex-natbib
-BUILD_DEPENDS+=                tex-pgf-[0-9]*:../../print/tex-pgf
-BUILD_DEPENDS+=                tex-sectsty-[0-9]*:../../print/tex-sectsty
-BUILD_DEPENDS+=                tex-tabu-[0-9]*:../../print/tex-tabu
-BUILD_DEPENDS+=                tex-tocloft-[0-9]*:../../print/tex-tocloft
-BUILD_DEPENDS+=                tex-xcolor-[0-9]*:../../print/tex-xcolor
-BUILD_DEPENDS+=                tex-xkeyval-[0-9]*:../../print/tex-xkeyval
-BUILD_DEPENDS+=                transfig-[0-9]*:../../print/transfig
-BUILD_DEPENDS+=                makeindexk-[0-9]*:../../textproc/makeindexk
-
 USE_TOOLS+=            gmake perl
 GNU_CONFIGURE=         yes
 USE_GNU_CONFIGURE_HOST= no
 
 CONFIGURE_ARGS+=       --build=${MACHINE_GNU_PLATFORM:Q}
 CONFIGURE_ARGS+=       --host=avr
-CONFIGURE_ARGS+=       --enable-doc
 CONFIGURE_ARGS+=       --disable-versioned-doc
 CONFIGURE_ARGS+=       CC=${PREFIX}/bin/avr-gcc
 CONFIGURE_ARGS+=       CPPFLAGS="-I${PREFIX}/include -I${PREFIX}/avr/include"
@@ -62,26 +35,7 @@
 SUBST_FILES.demo=      doc/Makefile.in
 SUBST_SED.demo=                -e 's|@@@PATH@@@|${PREFIX}/bin:${PATH:Q}|g'
 
-post-extract:
-       ${MKDIR} ${WRKSRC}/doc/api/latex_src
-       ${LN} -s ../../examples/largedemo/largedemo-setup.jpg ${WRKSRC}/doc/api/latex_src
-       ${LN} -s ../../examples/largedemo/largedemo-wiring.jpg ${WRKSRC}/doc/api/latex_src
-       ${LN} -s ../../examples/largedemo/largedemo-wiring2.jpg ${WRKSRC}/doc/api/latex_src
-       ${LN} -s ../../examples/stdiodemo/stdiodemo-setup.jpg ${WRKSRC}/doc/api/latex_src
-
-post-install:
-       ${INSTALL_DATA} \
-               ${WRKSRC}/LICENSE \
-               ${WRKSRC}/AUTHORS \
-               ${DESTDIR}${PREFIX}/share/doc/avr-libc
-       ## delete following or similar files, which includes PATH at build time.
-       ##_usr_pkgsrc_cross_avr-libc_work_avr-libc-1.8.0_libc_string_.3
-       ${RM} ${DESTDIR}${PREFIX}/share/doc/avr-libc/man/man3/*${PKGVERSION_NOREV}*
-.for f in Makefile demo.c demo.bin demo.hex demo.pdf demo.srec
-       ${INSTALL_DATA} ${WRKSRC}/doc/examples/demo/${f} \
-               ${DESTDIR}${PREFIX}/share/doc/avr-libc/examples/demo
-.endfor
-
+.include "options.mk"
 .include "../../cross/avr-binutils/buildlink3.mk"
 .include "../../cross/avr-gcc/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 406caf65a9f1 -r adeaead24d72 cross/avr-libc/PLIST
--- a/cross/avr-libc/PLIST      Tue Nov 15 17:48:56 2016 +0000
+++ b/cross/avr-libc/PLIST      Tue Nov 15 20:30:01 2016 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.21 2015/02/25 15:46:52 mef Exp $
+@comment $NetBSD: PLIST,v 1.22 2016/11/15 20:30:01 riastradh Exp $
 avr/include/alloca.h
 avr/include/assert.h
 avr/include/avr/boot.h
@@ -626,273 +626,273 @@
 avr/lib/tiny-stack/libscanf_flt.a
 avr/lib/tiny-stack/libscanf_min.a
 bin/avr-man
-share/doc/avr-libc/AUTHORS
-share/doc/avr-libc/LICENSE
-share/doc/avr-libc/avr-libc-user-manual.pdf
-share/doc/avr-libc/avr-libc-user-manual/FAQ.html
-share/doc/avr-libc/avr-libc-user-manual/acks.html
-share/doc/avr-libc/avr-libc-user-manual/alloca_8h_source.html
-share/doc/avr-libc/avr-libc-user-manual/annotated.html
-share/doc/avr-libc/avr-libc-user-manual/arrowdown.png
-share/doc/avr-libc/avr-libc-user-manual/arrowright.png
-share/doc/avr-libc/avr-libc-user-manual/assembler.html
-share/doc/avr-libc/avr-libc-user-manual/assert_8h.html
-share/doc/avr-libc/avr-libc-user-manual/assert_8h_source.html
-share/doc/avr-libc/avr-libc-user-manual/atomic_8h.html
-share/doc/avr-libc/avr-libc-user-manual/atomic_8h_source.html
-share/doc/avr-libc/avr-libc-user-manual/avrs.png
-share/doc/avr-libc/avr-libc-user-manual/bc_s.png
-share/doc/avr-libc/avr-libc-user-manual/bdwn.png
-share/doc/avr-libc/avr-libc-user-manual/benchmarks.html
-share/doc/avr-libc/avr-libc-user-manual/boot_8h.html
-share/doc/avr-libc/avr-libc-user-manual/boot_8h_source.html
-share/doc/avr-libc/avr-libc-user-manual/classes.html
-share/doc/avr-libc/avr-libc-user-manual/closed.png
-share/doc/avr-libc/avr-libc-user-manual/compat_2twi_8h_source.html
-share/doc/avr-libc/avr-libc-user-manual/cpufunc_8h.html
-share/doc/avr-libc/avr-libc-user-manual/cpufunc_8h_source.html
-share/doc/avr-libc/avr-libc-user-manual/crc16_8h.html
-share/doc/avr-libc/avr-libc-user-manual/crc16_8h_source.html
-share/doc/avr-libc/avr-libc-user-manual/ctype_8h.html
-share/doc/avr-libc/avr-libc-user-manual/ctype_8h_source.html
-share/doc/avr-libc/avr-libc-user-manual/defines_8h_source.html
-share/doc/avr-libc/avr-libc-user-manual/delay_8h.html
-share/doc/avr-libc/avr-libc-user-manual/delay_8h_source.html
-share/doc/avr-libc/avr-libc-user-manual/delay__basic_8h.html
-share/doc/avr-libc/avr-libc-user-manual/delay__basic_8h_source.html
-share/doc/avr-libc/avr-libc-user-manual/demo.png
-share/doc/avr-libc/avr-libc-user-manual/deprecated.html
-share/doc/avr-libc/avr-libc-user-manual/deprecated_8h_source.html
-share/doc/avr-libc/avr-libc-user-manual/dir_000000.html
-share/doc/avr-libc/avr-libc-user-manual/dir_000001.html
-share/doc/avr-libc/avr-libc-user-manual/dir_000002.html
-share/doc/avr-libc/avr-libc-user-manual/dir_000003.html
-share/doc/avr-libc/avr-libc-user-manual/dir_000004.html
-share/doc/avr-libc/avr-libc-user-manual/dir_000005.html
-share/doc/avr-libc/avr-libc-user-manual/dir_000006.html
-share/doc/avr-libc/avr-libc-user-manual/dir_000007.html
-share/doc/avr-libc/avr-libc-user-manual/dir_000008.html
-share/doc/avr-libc/avr-libc-user-manual/dir_000009.html
-share/doc/avr-libc/avr-libc-user-manual/dir_000010.html
-share/doc/avr-libc/avr-libc-user-manual/dir_000011.html
-share/doc/avr-libc/avr-libc-user-manual/dir_000012.html
-share/doc/avr-libc/avr-libc-user-manual/dir_000013.html
-share/doc/avr-libc/avr-libc-user-manual/dir_000014.html
-share/doc/avr-libc/avr-libc-user-manual/dir_000015.html
-share/doc/avr-libc/avr-libc-user-manual/dir_000016.html
-share/doc/avr-libc/avr-libc-user-manual/doc.png
-share/doc/avr-libc/avr-libc-user-manual/dox.css
-share/doc/avr-libc/avr-libc-user-manual/doxygen.png
-share/doc/avr-libc/avr-libc-user-manual/dtoa__conv_8h_source.html
-share/doc/avr-libc/avr-libc-user-manual/eedef_8h_source.html
-share/doc/avr-libc/avr-libc-user-manual/eeprom_8h_source.html
-share/doc/avr-libc/avr-libc-user-manual/ephemera__common_8h_source.html
-share/doc/avr-libc/avr-libc-user-manual/errno_8h.html
-share/doc/avr-libc/avr-libc-user-manual/errno_8h_source.html
-share/doc/avr-libc/avr-libc-user-manual/eu__dst_8h_source.html
-share/doc/avr-libc/avr-libc-user-manual/fdevopen_8c.html
-share/doc/avr-libc/avr-libc-user-manual/files.html
-share/doc/avr-libc/avr-libc-user-manual/folderclosed.png
-share/doc/avr-libc/avr-libc-user-manual/folderopen.png
-share/doc/avr-libc/avr-libc-user-manual/functions.html
-share/doc/avr-libc/avr-libc-user-manual/functions_vars.html
-share/doc/avr-libc/avr-libc-user-manual/fuse_8h.html
-share/doc/avr-libc/avr-libc-user-manual/fuse_8h_source.html
-share/doc/avr-libc/avr-libc-user-manual/globals.html
-share/doc/avr-libc/avr-libc-user-manual/globals_a.html
-share/doc/avr-libc/avr-libc-user-manual/globals_b.html
-share/doc/avr-libc/avr-libc-user-manual/globals_c.html
-share/doc/avr-libc/avr-libc-user-manual/globals_d.html
-share/doc/avr-libc/avr-libc-user-manual/globals_defs.html
-share/doc/avr-libc/avr-libc-user-manual/globals_defs_a.html
-share/doc/avr-libc/avr-libc-user-manual/globals_defs_b.html
-share/doc/avr-libc/avr-libc-user-manual/globals_defs_c.html
-share/doc/avr-libc/avr-libc-user-manual/globals_defs_d.html
-share/doc/avr-libc/avr-libc-user-manual/globals_defs_e.html
-share/doc/avr-libc/avr-libc-user-manual/globals_defs_f.html
-share/doc/avr-libc/avr-libc-user-manual/globals_defs_g.html
-share/doc/avr-libc/avr-libc-user-manual/globals_defs_h.html
-share/doc/avr-libc/avr-libc-user-manual/globals_defs_i.html
-share/doc/avr-libc/avr-libc-user-manual/globals_defs_l.html
-share/doc/avr-libc/avr-libc-user-manual/globals_defs_m.html
-share/doc/avr-libc/avr-libc-user-manual/globals_defs_n.html
-share/doc/avr-libc/avr-libc-user-manual/globals_defs_o.html
-share/doc/avr-libc/avr-libc-user-manual/globals_defs_p.html
-share/doc/avr-libc/avr-libc-user-manual/globals_defs_r.html
-share/doc/avr-libc/avr-libc-user-manual/globals_defs_s.html
-share/doc/avr-libc/avr-libc-user-manual/globals_defs_t.html
-share/doc/avr-libc/avr-libc-user-manual/globals_defs_u.html
-share/doc/avr-libc/avr-libc-user-manual/globals_defs_w.html
-share/doc/avr-libc/avr-libc-user-manual/globals_e.html
-share/doc/avr-libc/avr-libc-user-manual/globals_enum.html
-share/doc/avr-libc/avr-libc-user-manual/globals_f.html
-share/doc/avr-libc/avr-libc-user-manual/globals_func.html
-share/doc/avr-libc/avr-libc-user-manual/globals_g.html
-share/doc/avr-libc/avr-libc-user-manual/globals_h.html
-share/doc/avr-libc/avr-libc-user-manual/globals_i.html
-share/doc/avr-libc/avr-libc-user-manual/globals_l.html
-share/doc/avr-libc/avr-libc-user-manual/globals_m.html
-share/doc/avr-libc/avr-libc-user-manual/globals_n.html
-share/doc/avr-libc/avr-libc-user-manual/globals_o.html
-share/doc/avr-libc/avr-libc-user-manual/globals_p.html
-share/doc/avr-libc/avr-libc-user-manual/globals_q.html
-share/doc/avr-libc/avr-libc-user-manual/globals_r.html
-share/doc/avr-libc/avr-libc-user-manual/globals_s.html
-share/doc/avr-libc/avr-libc-user-manual/globals_t.html
-share/doc/avr-libc/avr-libc-user-manual/globals_type.html
-share/doc/avr-libc/avr-libc-user-manual/globals_u.html
-share/doc/avr-libc/avr-libc-user-manual/globals_v.html
-share/doc/avr-libc/avr-libc-user-manual/globals_vars.html
-share/doc/avr-libc/avr-libc-user-manual/globals_w.html
-share/doc/avr-libc/avr-libc-user-manual/group__alloca.html
-share/doc/avr-libc/avr-libc-user-manual/group__asmdemo.html
-share/doc/avr-libc/avr-libc-user-manual/group__avr__assert.html
-share/doc/avr-libc/avr-libc-user-manual/group__avr__boot.html
-share/doc/avr-libc/avr-libc-user-manual/group__avr__cpufunc.html
-share/doc/avr-libc/avr-libc-user-manual/group__avr__eeprom.html
-share/doc/avr-libc/avr-libc-user-manual/group__avr__errno.html
-share/doc/avr-libc/avr-libc-user-manual/group__avr__fuse.html
-share/doc/avr-libc/avr-libc-user-manual/group__avr__interrupts.html
-share/doc/avr-libc/avr-libc-user-manual/group__avr__inttypes.html
-share/doc/avr-libc/avr-libc-user-manual/group__avr__io.html
-share/doc/avr-libc/avr-libc-user-manual/group__avr__lock.html
-share/doc/avr-libc/avr-libc-user-manual/group__avr__math.html
-share/doc/avr-libc/avr-libc-user-manual/group__avr__pgmspace.html
-share/doc/avr-libc/avr-libc-user-manual/group__avr__power.html
-share/doc/avr-libc/avr-libc-user-manual/group__avr__sfr.html
-share/doc/avr-libc/avr-libc-user-manual/group__avr__sfr__notes.html
-share/doc/avr-libc/avr-libc-user-manual/group__avr__signature.html
-share/doc/avr-libc/avr-libc-user-manual/group__avr__sleep.html
-share/doc/avr-libc/avr-libc-user-manual/group__avr__stdint.html
-share/doc/avr-libc/avr-libc-user-manual/group__avr__stdio.html
-share/doc/avr-libc/avr-libc-user-manual/group__avr__stdlib.html
-share/doc/avr-libc/avr-libc-user-manual/group__avr__string.html
-share/doc/avr-libc/avr-libc-user-manual/group__avr__time.html
-share/doc/avr-libc/avr-libc-user-manual/group__avr__version.html
-share/doc/avr-libc/avr-libc-user-manual/group__avr__watchdog.html
-share/doc/avr-libc/avr-libc-user-manual/group__compat__ina90.html
-share/doc/avr-libc/avr-libc-user-manual/group__ctype.html
-share/doc/avr-libc/avr-libc-user-manual/group__demo__project.html
-share/doc/avr-libc/avr-libc-user-manual/group__demos.html
-share/doc/avr-libc/avr-libc-user-manual/group__deprecated__items.html
-share/doc/avr-libc/avr-libc-user-manual/group__largedemo.html
-share/doc/avr-libc/avr-libc-user-manual/group__setjmp.html
-share/doc/avr-libc/avr-libc-user-manual/group__stdiodemo.html
-share/doc/avr-libc/avr-libc-user-manual/group__twi__demo.html
-share/doc/avr-libc/avr-libc-user-manual/group__util__atomic.html
-share/doc/avr-libc/avr-libc-user-manual/group__util__crc.html
-share/doc/avr-libc/avr-libc-user-manual/group__util__delay.html
-share/doc/avr-libc/avr-libc-user-manual/group__util__delay__basic.html
-share/doc/avr-libc/avr-libc-user-manual/group__util__parity.html
-share/doc/avr-libc/avr-libc-user-manual/group__util__setbaud.html
-share/doc/avr-libc/avr-libc-user-manual/group__util__twi.html
-share/doc/avr-libc/avr-libc-user-manual/hd44780_8h_source.html
-share/doc/avr-libc/avr-libc-user-manual/ina90_8h_source.html
-share/doc/avr-libc/avr-libc-user-manual/index.html
-share/doc/avr-libc/avr-libc-user-manual/inline_asm.html
-share/doc/avr-libc/avr-libc-user-manual/install_tools.html
-share/doc/avr-libc/avr-libc-user-manual/interrupt_8h.html
-share/doc/avr-libc/avr-libc-user-manual/interrupt_8h_source.html
-share/doc/avr-libc/avr-libc-user-manual/inttypes_8h.html
-share/doc/avr-libc/avr-libc-user-manual/inttypes_8h_source.html
-share/doc/avr-libc/avr-libc-user-manual/io_8h.html
-share/doc/avr-libc/avr-libc-user-manual/io_8h_source.html
-share/doc/avr-libc/avr-libc-user-manual/iocompat_8h_source.html
-share/doc/avr-libc/avr-libc-user-manual/largedemo-setup.jpg
-share/doc/avr-libc/avr-libc-user-manual/largedemo-wiring.jpg
-share/doc/avr-libc/avr-libc-user-manual/largedemo-wiring2.jpg
-share/doc/avr-libc/avr-libc-user-manual/lcd_8h_source.html
-share/doc/avr-libc/avr-libc-user-manual/library.html
-share/doc/avr-libc/avr-libc-user-manual/lock_8h.html
-share/doc/avr-libc/avr-libc-user-manual/lock_8h_source.html
-share/doc/avr-libc/avr-libc-user-manual/malloc-std.png
-share/doc/avr-libc/avr-libc-user-manual/malloc-x1.png
-share/doc/avr-libc/avr-libc-user-manual/malloc-x2.png
-share/doc/avr-libc/avr-libc-user-manual/malloc.html
-share/doc/avr-libc/avr-libc-user-manual/math_8h.html
-share/doc/avr-libc/avr-libc-user-manual/math_8h_source.html
-share/doc/avr-libc/avr-libc-user-manual/mem_sections.html
-share/doc/avr-libc/avr-libc-user-manual/modules.html
-share/doc/avr-libc/avr-libc-user-manual/nav_f.png
-share/doc/avr-libc/avr-libc-user-manual/nav_g.png
-share/doc/avr-libc/avr-libc-user-manual/nav_h.png
-share/doc/avr-libc/avr-libc-user-manual/open.png
-share/doc/avr-libc/avr-libc-user-manual/optimization.html
-share/doc/avr-libc/avr-libc-user-manual/overview.html
-share/doc/avr-libc/avr-libc-user-manual/pages.html
-share/doc/avr-libc/avr-libc-user-manual/parity_8h.html
-share/doc/avr-libc/avr-libc-user-manual/parity_8h_source.html
-share/doc/avr-libc/avr-libc-user-manual/pgmspace.html
-share/doc/avr-libc/avr-libc-user-manual/pgmspace_8h.html
-share/doc/avr-libc/avr-libc-user-manual/pgmspace_8h_source.html
-share/doc/avr-libc/avr-libc-user-manual/porting.html
-share/doc/avr-libc/avr-libc-user-manual/portpins_8h_source.html
-share/doc/avr-libc/avr-libc-user-manual/power_8h.html
-share/doc/avr-libc/avr-libc-user-manual/power_8h_source.html
-share/doc/avr-libc/avr-libc-user-manual/project_8h_source.html
-share/doc/avr-libc/avr-libc-user-manual/release_method.html
-share/doc/avr-libc/avr-libc-user-manual/releases.png
-share/doc/avr-libc/avr-libc-user-manual/setbaud_8h.html
-share/doc/avr-libc/avr-libc-user-manual/setbaud_8h_source.html
-share/doc/avr-libc/avr-libc-user-manual/setjmp_8h.html
-share/doc/avr-libc/avr-libc-user-manual/setjmp_8h_source.html



Home | Main Index | Thread Index | Old Index