pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
textproc/groff-pdfmark Adding groff-pdfmark package to make available the pdfmark macros and supporting scripts that were removed from the main groff distribution in recent versions.
Module Name: pkgsrc-wip
Committed By: Louis Guillaume <louis%zabrico.com@localhost>
Pushed By: louis
Date: Tue Nov 10 10:56:15 2026 -0500
Changeset: 0f15f7418f88cf2422230ee2a5a834eb30cf4854
Added Files:
groff-pdfmark/DESCR
groff-pdfmark/Makefile
groff-pdfmark/PLIST
groff-pdfmark/distinfo
Log Message:
textproc/groff-pdfmark
Adding groff-pdfmark package to make available the pdfmark macros and supporting scripts that were removed from the main groff distribution in recent versions.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=0f15f7418f88cf2422230ee2a5a834eb30cf4854
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
groff-pdfmark/DESCR | 13 +++++++
groff-pdfmark/Makefile | 101 +++++++++++++++++++++++++++++++++++++++++++++++++
groff-pdfmark/PLIST | 35 +++++++++++++++++
groff-pdfmark/distinfo | 5 +++
4 files changed, 154 insertions(+)
diffs:
diff --git a/groff-pdfmark/DESCR b/groff-pdfmark/DESCR
new file mode 100644
index 0000000000..0635993b72
--- /dev/null
+++ b/groff-pdfmark/DESCR
@@ -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.
diff --git a/groff-pdfmark/Makefile b/groff-pdfmark/Makefile
new file mode 100644
index 0000000000..cca8ced3e5
--- /dev/null
+++ b/groff-pdfmark/Makefile
@@ -0,0 +1,101 @@
+# $NetBSD$
+
+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
+
+USE_TOOLS+= sed
+NO_CONFIGURE= yes
+
+# Runtime requirements
+DEPENDS+= groff-[0-9]*:../../textproc/groff
+DEPENDS+= ghostscript-[0-9]*:../../print/ghostscript
+
+# All man pages shipped by the independent project
+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
+
+# 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
+
+INSTALLATION_DIRS= bin \
+ ${PKGMANDIR}/man1 ${PKGMANDIR}/man7 \
+ share/groff/site-tmac \
+ share/examples/groff-pdfmark \
+ share/examples/groff-pdfmark/artwork \
+ share/doc/groff-pdfmark
+
+# Generate man pages the same way the old groff build did:
+do-build:
+.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
+ # pdfroff script - update the version
+ ${SED} -e 's|@VERSION@|${PKGVERSION}|g' \
+ ${WRKSRC}/pdfroff.sh > ${WRKDIR}/pdfroff
+ ${CHMOD} +x ${WRKDIR}/pdfroff
+
+do-install:
+ ${INSTALL_SCRIPT} ${WRKDIR}/pdfroff ${DESTDIR}${PREFIX}/bin/pdfroff
+
+.for f in ${TMAC_FILES}
+ ${INSTALL_DATA} ${WRKSRC}/tmac/${f} \
+ ${DESTDIR}${PREFIX}/share/groff/site-tmac/
+.endfor
+
+.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"
diff --git a/groff-pdfmark/PLIST b/groff-pdfmark/PLIST
new file mode 100644
index 0000000000..4b3ad51c42
--- /dev/null
+++ b/groff-pdfmark/PLIST
@@ -0,0 +1,35 @@
+@comment $NetBSD$
+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.tmac
+share/groff/site-tmac/spdf-toc.tmac
+share/groff/site-tmac/strcase.tmac
+share/groff/site-tmac/toc-base.tmac
+share/groff/site-tmac/toc-class.tmac
diff --git a/groff-pdfmark/distinfo b/groff-pdfmark/distinfo
new file mode 100644
index 0000000000..ceba042b49
--- /dev/null
+++ b/groff-pdfmark/distinfo
@@ -0,0 +1,5 @@
+$NetBSD$
+
+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