mandoc.bsd.lv (#2752)

* mandoc.bsd.lv

* without env

* use prop:

---------

Co-authored-by: Jacob Heider <jacob@tea.xyz>
This commit is contained in:
Andrew 2023-08-07 01:33:35 +03:00 committed by GitHub
parent c39b15a6de
commit 796b1a8d6c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,54 @@
distributable:
url: https://mandoc.bsd.lv/snapshots/mandoc-{{version}}.tar.gz
strip-components: 1
versions:
url: https://mandoc.bsd.lv/snapshots
match: /mandoc-\d+\.\d+\.\d+\.tar\.gz/
strip:
- /^mandoc-/
- /\.tar\.gz/
dependencies:
zlib.net: '*'
build:
dependencies:
tea.xyz/gx/cc: c99
gnu.org/make: '*'
script:
- mv cgi.h.example cgi.h # For man.cgi
- run: |
cat $PROP >configure.local
prop: |
PREFIX={{prefix}}
INCLUDEDIR={{prefix}}/include
LIBDIR={{prefix}}/lib
MANDIR={{prefix}}/share/man
WWWPREFIX={{prefix}}/var/www
EXAMPLEDIR={{prefix}}/share/examples
BINM_MAN=bsdman
BINM_APROPOS=bsdapropos
BINM_WHATIS=bsdwhatis
BINM_MAKEWHATIS=bsdmakewhatis
BINM_SOELIM=bsdsoelim
MANM_MAN=man
MANM_MDOC=mdoc
MANM_ROFF=mandoc_roff
MANM_EQN=eqn
MANM_TBL=tbl
OSNAME='$(uname -a)'
MANPATH_DEFAULT={{prefix}}/share/man
HAVE_MANPATH=0
STATIC=
BUILD_CGI=1
- ./configure
- make --jobs {{ hw.concurrency }}
- make --jobs {{ hw.concurrency }} install
provides:
- bin/bsdapropos
- bin/bsdman
- bin/bsdsoelim
- bin/bsdwhatis
- bin/demandoc
- bin/mandoc
test:
script:
- mandoc -Thtml -Ostyle={{prefix}}/share/examples/example.style.css {{prefix}}/share/man/man1/mandoc.1