Index | Thread | Search

From:
"Anthony J. Bentley" <bentley@openbsd.org>
Subject:
Re: font module: add MODFONT_DOCFILES
Cc:
ports@openbsd.org
Date:
Mon, 15 Apr 2024 14:26:56 -0600

Download raw body.

Thread
Anthony J. Bentley writes:
> This diff adds the variables MODFONT_DOCDIR (which defaults to
> ${PREFIX}/share/doc/${MODFONT_FAMILY}) and MODFONT_DOCFILES (a user-
> specified list of files relative to WRKSRC).

And the manpage diff:

Index: port-modules.5
===================================================================
RCS file: /cvs/src/share/man/man5/port-modules.5,v
diff -u -p -r1.268 port-modules.5
--- port-modules.5	15 Apr 2024 16:11:01 -0000	1.268
+++ port-modules.5	15 Apr 2024 20:24:53 -0000
@@ -698,6 +698,8 @@ it sets
 should be set to the name of the font family.
 This sets
 .Ev MODFONT_DIR
+and
+.Ev MODFONT_DOCDIR
 using said family name.
 A
 .Cm do-install
@@ -709,6 +711,12 @@ If one or more file extensions are liste
 .Ev MODFONT_TYPES ,
 files of those types will be used.
 Otherwise, otf files are preferred, with a fallback to ttf.
+If filenames (relative to
+.Ev WRKSRC )
+are listed in
+.Ev MODFONT_DOCFILES ,
+they will be installed to
+.Ev MODFONT_DOCDIR .
 .It fortran
 Sets
 .Ev MODFORTRAN_LIB_DEPENDS ,