pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/textproc/groff-pdfmark
Module Name: pkgsrc
Committed By: wiz
Date: Sat Nov 14 07:36:01 UTC 2026
Added Files:
pkgsrc/textproc/groff-pdfmark: DESCR Makefile PLIST distinfo
Log Message:
textproc/groff-pdfmark: import groff-pdfmark-26.10
Packaged for wip by Louis Guillaume.
The groff-pdfmark package provides a suite of GNU roff macro
packages together with the pdfroff Bourne shell driver script. It
facilitates creation of PDF files that contain active hyperlinks,
bookmarks, document metadata and other PDF features, using GNU
troff as the primary typesetting engine.
Originally distributed as a contributed component of GNU groff, the
macros and pdfroff were removed from the main groff distribution
starting with version 1.24 and are now maintained separately.
This package installs the macros into share/groff/site-tmac so that
they are automatically found by groff without modifying the main
groff package.
To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/textproc/groff-pdfmark/DESCR \
pkgsrc/textproc/groff-pdfmark/Makefile \
pkgsrc/textproc/groff-pdfmark/PLIST \
pkgsrc/textproc/groff-pdfmark/distinfo
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Added files:
Index: pkgsrc/textproc/groff-pdfmark/DESCR
diff -u /dev/null pkgsrc/textproc/groff-pdfmark/DESCR:1.1
--- /dev/null Sat Nov 14 07:36:01 2026
+++ pkgsrc/textproc/groff-pdfmark/DESCR Sat Nov 14 07:36:01 2026
@@ -0,0 +1,13 @@
+The groff-pdfmark package provides a suite of GNU roff macro
+packages together with the pdfroff Bourne shell driver script. It
+facilitates creation of PDF files that contain active hyperlinks,
+bookmarks, document metadata and other PDF features, using GNU
+troff as the primary typesetting engine.
+
+Originally distributed as a contributed component of GNU groff, the
+macros and pdfroff were removed from the main groff distribution
+starting with version 1.24 and are now maintained separately.
+
+This package installs the macros into share/groff/site-tmac so that
+they are automatically found by groff without modifying the main
+groff package.
Index: pkgsrc/textproc/groff-pdfmark/Makefile
diff -u /dev/null pkgsrc/textproc/groff-pdfmark/Makefile:1.1
--- /dev/null Sat Nov 14 07:36:01 2026
+++ pkgsrc/textproc/groff-pdfmark/Makefile Sat Nov 14 07:36:01 2026
@@ -0,0 +1,120 @@
+# $NetBSD: Makefile,v 1.1 2026/11/14 07:36:01 wiz Exp $
+
+DISTNAME= groff-pdfmark-20261029.1
+PKGNAME= groff-pdfmark-26.10
+CATEGORIES= textproc
+MASTER_SITES= https://download.savannah.gnu.org/releases/groff-pdfmark/
+EXTRACT_SUFX= -src.tar.xz
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://savannah.nongnu.org/projects/groff-pdfmark/
+COMMENT= PDF publishing macros and pdfroff driver for GNU troff
+LICENSE= gnu-gpl-v3
+
+WRKSRC= ${WRKDIR}/groff-pdfmark-26.10
+
+GNU_CONFIGURE= yes
+USE_TOOLS+= gmake sed
+
+# Upstream's Makefile is mostly for release tarballs.
+# We only need it to generate a proper pdfroff script.
+BUILD_TARGET= pdfroff-posix
+
+# Runtime requirements
+DEPENDS+= groff-[0-9]*:../../textproc/groff
+DEPENDS+= ghostscript-[0-9]*:../../print/ghostscript
+
+# Macro packages to site-tmac only
+TMAC_FILES= pdfmark.tmac spdf.tmac omit.tmac opmode.tmac \
+ sanitize.tmac pdfroff.tmac strcase.tmac newpage.tmac \
+ float.tmac redirect.tmac appendix.tmac anpdf.tmac \
+ toc-base.tmac toc-class.tmac spdf-toc.tmac fdl-setup.tmac
+
+MAN1= pdfroff.1
+MAN7= pdfroff.7 groff_pdfmark.7 groff_pdfhref.7 groff_pdfnote.7 \
+ groff_mspdf.7 groff_omit.7 groff_opmode.7 groff_sanitize.7 \
+ groff_toc.7
+
+INSTALLATION_DIRS= bin \
+ ${PKGMANDIR}/man1 ${PKGMANDIR}/man7 \
+ share/groff/site-tmac \
+ share/examples/groff-pdfmark \
+ share/examples/groff-pdfmark/artwork \
+ share/doc/groff-pdfmark
+
+# Set a default GROFF_BIN_PATH to use pkgsrc groff, but make it so
+# that users can still override the GROFF_BIN_PATH or GROFF_BIN_DIR
+# variable at runtime.
+
+SUBST_CLASSES+= groffbin
+SUBST_STAGE.groffbin= post-build
+SUBST_FILES.groffbin= ${BUILD_TARGET}
+
+# Place default groff path expression before the
+# first non-comment line in "pdfroff"
+
+SUBST_FILTER_CMD.groffbin= \
+ ${AWK} '!inserted && /^[^\#]/ \
+ { \
+ print "\# Use the groff installed in ${PREFIX} when GROFF_BIN_PATH is not set."; \
+ print "\# Users may still override with GROFF_BIN_DIR or GROFF_BIN_PATH."; \
+ print "\n : $${GROFF_BIN_PATH:=${PREFIX}/bin}\n"; \
+ inserted=1; \
+ } \
+ { print }'
+
+# Build only the POSIX pdfroff script
+do-build:
+ cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} ${BUILD_TARGET}
+.for f in ${MAN1} ${MAN7}
+ ${SED} \
+ -e 's|@MAN1EXT@|1|g' \
+ -e 's|@MAN7EXT@|7|g' \
+ -e 's|@VERSION@|${PKGVERSION}|g' \
+ -e 's|@MDATE@|${PKGVERSION}|g' \
+ -e 's|@SITE_TMACDIR@|${PREFIX}/share/groff/site-tmac|g' \
+ -e 's|@PDFDOCDIR@|${PREFIX}/share/doc/groff-pdfmark|g' \
+ -e 's|@AUTHOR_MT_ADDRESS@|keith.d.marshall%ntlworld.com@localhost|g' \
+ -e 's|@PROJECT_HOSTING_SITE@|https://savannah.nongnu.org/projects/groff-pdfmark/|g' \
+ -e '/@IMPORT_LOCAL_FALLBACK_MACROS@/d' \
+ -e '/@ENUMERATE_MR_REFERENCES@/d' \
+ ${WRKSRC}/man/${f}.man > ${WRKDIR}/${f}
+.endfor
+
+do-install:
+ # Generated driver (upstream builds it as pdfroff-posix)
+ ${INSTALL_SCRIPT} ${WRKSRC}/pdfroff-posix \
+ ${DESTDIR}${PREFIX}/bin/pdfroff
+
+# Macros
+.for f in ${TMAC_FILES}
+ ${INSTALL_DATA} ${WRKSRC}/tmac/${f} \
+ ${DESTDIR}${PREFIX}/share/groff/site-tmac/
+.endfor
+
+# Man pages
+.for f in ${MAN1}
+ ${INSTALL_MAN} ${WRKDIR}/${f} ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/${f}
+.endfor
+.for f in ${MAN7}
+ ${INSTALL_MAN} ${WRKDIR}/${f} ${DESTDIR}${PREFIX}/${PKGMANDIR}/man7/${f}
+.endfor
+
+ # Example sources so users can rebuild the reference document
+ ${INSTALL_DATA} ${WRKSRC}/pdfmark.ms \
+ ${DESTDIR}${PREFIX}/share/examples/groff-pdfmark/
+ ${INSTALL_DATA} ${WRKSRC}/cover.ms \
+ ${DESTDIR}${PREFIX}/share/examples/groff-pdfmark/
+ ${INSTALL_DATA} ${WRKSRC}/cover-info.ms \
+ ${DESTDIR}${PREFIX}/share/examples/groff-pdfmark/
+ ${INSTALL_DATA} ${WRKSRC}/fdl-typesetting.ms \
+ ${DESTDIR}${PREFIX}/share/examples/groff-pdfmark/
+ ${INSTALL_DATA} ${WRKSRC}/artwork/gnu.eps \
+ ${DESTDIR}${PREFIX}/share/examples/groff-pdfmark/artwork/
+
+ ${INSTALL_DATA} ${WRKSRC}/ChangeLog \
+ ${DESTDIR}${PREFIX}/share/doc/groff-pdfmark/
+ ${INSTALL_DATA} ${WRKSRC}/gpl-v3.0.txt \
+ ${DESTDIR}${PREFIX}/share/doc/groff-pdfmark/
+
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/textproc/groff-pdfmark/PLIST
diff -u /dev/null pkgsrc/textproc/groff-pdfmark/PLIST:1.1
--- /dev/null Sat Nov 14 07:36:01 2026
+++ pkgsrc/textproc/groff-pdfmark/PLIST Sat Nov 14 07:36:01 2026
@@ -0,0 +1,35 @@
+@comment $NetBSD: PLIST,v 1.1 2026/11/14 07:36:01 wiz Exp $
+bin/pdfroff
+man/man1/pdfroff.1
+man/man7/groff_mspdf.7
+man/man7/groff_omit.7
+man/man7/groff_opmode.7
+man/man7/groff_pdfhref.7
+man/man7/groff_pdfmark.7
+man/man7/groff_pdfnote.7
+man/man7/groff_sanitize.7
+man/man7/groff_toc.7
+man/man7/pdfroff.7
+share/doc/groff-pdfmark/ChangeLog
+share/doc/groff-pdfmark/gpl-v3.0.txt
+share/examples/groff-pdfmark/artwork/gnu.eps
+share/examples/groff-pdfmark/cover-info.ms
+share/examples/groff-pdfmark/cover.ms
+share/examples/groff-pdfmark/fdl-typesetting.ms
+share/examples/groff-pdfmark/pdfmark.ms
+share/groff/site-tmac/anpdf.tmac
+share/groff/site-tmac/appendix.tmac
+share/groff/site-tmac/fdl-setup.tmac
+share/groff/site-tmac/float.tmac
+share/groff/site-tmac/newpage.tmac
+share/groff/site-tmac/omit.tmac
+share/groff/site-tmac/opmode.tmac
+share/groff/site-tmac/pdfmark.tmac
+share/groff/site-tmac/pdfroff.tmac
+share/groff/site-tmac/redirect.tmac
+share/groff/site-tmac/sanitize.tmac
+share/groff/site-tmac/spdf-toc.tmac
+share/groff/site-tmac/spdf.tmac
+share/groff/site-tmac/strcase.tmac
+share/groff/site-tmac/toc-base.tmac
+share/groff/site-tmac/toc-class.tmac
Index: pkgsrc/textproc/groff-pdfmark/distinfo
diff -u /dev/null pkgsrc/textproc/groff-pdfmark/distinfo:1.1
--- /dev/null Sat Nov 14 07:36:01 2026
+++ pkgsrc/textproc/groff-pdfmark/distinfo Sat Nov 14 07:36:01 2026
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2026/11/14 07:36:01 wiz Exp $
+
+BLAKE2s (groff-pdfmark-20261029.1-src.tar.xz) = 54abc9e65a0d72c0ca5a5d32e8b5f4423dd5e60fcf6d5b855e2ece29ea5620fa
+SHA512 (groff-pdfmark-20261029.1-src.tar.xz) = 1460a2394451dffd5be029be0bec193c1810580e4a51d6f6f761690694e475cd40d6d60564f865529afbd4b843cae4bfa41f87e37b84343959f91df97072829d
+Size (groff-pdfmark-20261029.1-src.tar.xz) = 293272 bytes
Home |
Main Index |
Thread Index |
Old Index