mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 02:25:18 +03:00
gnu.org/groff (#2985)
* gnu.org/groff * wip * replace hardcoded prefix * clean * GROFF_FONT_PATH & GROFF_TMAC_PATH +testfile * wip * wip
This commit is contained in:
parent
7a2c5a3eea
commit
b21ce4431c
93
projects/gnu.org/groff/package.yml
Normal file
93
projects/gnu.org/groff/package.yml
Normal file
|
@ -0,0 +1,93 @@
|
|||
distributable:
|
||||
url: https://ftp.gnu.org/gnu/groff/groff-{{version}}.tar.gz
|
||||
strip-components: 1
|
||||
versions:
|
||||
url: https://ftp.gnu.org/gnu/groff/
|
||||
match: /groff-\d+\.\d+\.\d+\.tar\.gz/
|
||||
strip:
|
||||
- /^groff-/
|
||||
- /\.tar\.gz/
|
||||
dependencies:
|
||||
ghostscript.com: '*'
|
||||
netpbm.sourceforge.net: '*'
|
||||
github.com/rrthomas/psutils: '*'
|
||||
freedesktop.org/uchardet: '*'
|
||||
perl.org: '*'
|
||||
linux:
|
||||
gnome.org/glib: '*'
|
||||
runtime:
|
||||
env:
|
||||
GROFF_FONT_PATH: "{{prefix}}/share/groff/{{version}}/font"
|
||||
GROFF_TMAC_PATH: "{{prefix}}/share/groff/{{version}}/tmac"
|
||||
build:
|
||||
dependencies:
|
||||
darwin:
|
||||
tea.xyz/gx/cc: c99
|
||||
linux:
|
||||
gnu.org/gcc: '*'
|
||||
gnu.org/make: '*'
|
||||
freedesktop.org/pkg-config: '*'
|
||||
gnu.org/bison: '*'
|
||||
gnu.org/texinfo: '*'
|
||||
script:
|
||||
- ./configure $ARGS
|
||||
- make --jobs {{hw.concurrency}}
|
||||
- make --jobs {{hw.concurrency}} install
|
||||
- run: |
|
||||
sed -i.bak "1s|.*|#!/usr/bin/env perl|g" afmtodit grog gropdf mmroff pdfmom
|
||||
sed -i.bak "s|$TEA_PREFIX|\$ENV{'TEA_PREFIX'}|g" afmtodit chem glilypond gperl gropdf
|
||||
sed -i.bak "s|$TEA_PREFIX|\$TEA_PREFIX|g" neqn nroff
|
||||
rm ./*.bak
|
||||
working-directory: "{{prefix}}/bin"
|
||||
env:
|
||||
ARGS:
|
||||
- --prefix="{{prefix}}"
|
||||
- --without-x
|
||||
- --with-uchardet
|
||||
provides:
|
||||
- bin/addftinfo
|
||||
- bin/afmtodit
|
||||
- bin/chem
|
||||
- bin/eqn
|
||||
- bin/eqn2graph
|
||||
- bin/gdiffmk
|
||||
- bin/glilypond
|
||||
- bin/gperl
|
||||
- bin/gpinyin
|
||||
- bin/grap2graph
|
||||
- bin/grn
|
||||
- bin/grodvi
|
||||
- bin/groff
|
||||
- bin/grog
|
||||
- bin/grolbp
|
||||
- bin/grolj4
|
||||
- bin/gropdf
|
||||
- bin/grops
|
||||
- bin/grotty
|
||||
- bin/hpftodit
|
||||
- bin/indxbib
|
||||
- bin/lkbib
|
||||
- bin/lookbib
|
||||
- bin/mmroff
|
||||
- bin/neqn
|
||||
- bin/nroff
|
||||
- bin/pdfmom
|
||||
- bin/pdfroff
|
||||
- bin/pfbtops
|
||||
- bin/pic
|
||||
- bin/pic2graph
|
||||
- bin/post-grohtml
|
||||
- bin/preconv
|
||||
- bin/pre-grohtml
|
||||
- bin/refer
|
||||
- bin/soelim
|
||||
- bin/tbl
|
||||
- bin/tfmtodit
|
||||
- bin/troff
|
||||
test:
|
||||
script:
|
||||
- groff --version | grep {{version}}
|
||||
- grog --version | grep {{version}}
|
||||
- neqn --version | grep {{version}}
|
||||
- groff -Tps test.ms > test.ps
|
||||
- cat test.ps | grep {{version}}
|
22
projects/gnu.org/groff/test.ms
Normal file
22
projects/gnu.org/groff/test.ms
Normal file
|
@ -0,0 +1,22 @@
|
|||
.\" Sample groff input file
|
||||
.\" This is a comment
|
||||
.
|
||||
.TH MySampleDocument "1" "August 2023" "Sample Document"
|
||||
.SH NAME
|
||||
MySampleDocument \- An example groff document
|
||||
.SH DESCRIPTION
|
||||
This is a sample groff document.
|
||||
.PP
|
||||
It demonstrates basic formatting using the groff typesetting system.
|
||||
.PP
|
||||
This is a new paragraph.
|
||||
.SH EXAMPLES
|
||||
Here are some examples of how to use groff:
|
||||
.B
|
||||
groff -Tps mydoc.groff > mydoc.ps
|
||||
.I
|
||||
groff -Thtml mydoc.groff > mydoc.html
|
||||
.SH AUTHOR
|
||||
John Doe (johndoe@example.com)
|
||||
.SH SEE ALSO
|
||||
man(1), groff(7)
|
Loading…
Reference in a new issue