forked from wolfi-dev/os
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fontforge.yaml
125 lines (114 loc) · 3.18 KB
/
fontforge.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
package:
name: fontforge
version: "20230101"
epoch: 1
description: Free (libre) font editor
copyright:
- license: GPL-3.0-or-later
dependencies:
runtime:
- gnu-libiconv-dev
- libspiro
- py3-setuptools
- woff2-dev
environment:
contents:
packages:
- autoconf
- automake
- build-base
- busybox
- ca-certificates-bundle
- cmake
- freetype-dev
- giflib-dev
- gnu-libiconv-dev
- gtk-3-dev
- libspiro-dev
- libxml2-dev
- openssf-compiler-options
- pango-dev
- potrace
- py3-setuptools
- python3-dev
- readline-dev
- samurai
- tiff-dev
- woff2-dev
pipeline:
- uses: git-checkout
with:
repository: https://github.com/fontforge/fontforge
expected-commit: a1dad3e81da03d5d5f3c4c1c1b9b5ca5ebcfcecf
tag: ${{package.version}}
- uses: patch
with:
patches: gettext-0.22.patch
- runs: |
mkdir -p build
export CFLAGS="$CFLAGS -flto=auto -I/usr/include/gnu-libiconv"
export CXXFLAGS="$CXXFLAGS -flto=auto -I/usr/include/gnu-libiconv"
cd build
cmake \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DENABLE_MAINTAINER_TOOLS=TRUE \
-DENABLE_FONTFORGE_EXTRAS=TRUE \
-DENABLE_GUI=OFF \
-DENABLE_LIBSPIRO=ON \
-DENABLE_LIBREADLINE=ON \
-DENABLE_WOFF2=ON \
-DENABLE_DOCS=OFF \
-DUNIX=TRUE \
..
make
make DESTDIR="${{targets.destdir}}" install
- uses: strip
subpackages:
- name: fontforge-dev
pipeline:
- uses: split/dev
dependencies:
runtime:
- fontforge
description: fontforge dev
- name: fontforge-doc
pipeline:
- uses: split/manpages
description: fontforge manpages
- name: py3-fontforge
pipeline:
- runs: |
PYVER=$(python --version | awk '{print $2}' | awk -F. '{print $1"."$2}')
mkdir -p "${{targets.subpkgdir}}"/usr/lib/python${PYVER}/site-packages
mkdir -p "${{targets.subpkgdir}}"/usr/share/fontforge/python
# use find and exec to move them to the right place
find ${{targets.destdir}}/usr/lib/python${PYVER}/site-packages -name "fontforge.so" -exec mv {} "${{targets.subpkgdir}}"/usr/lib/python${PYVER}/site-packages \;
find ${{targets.destdir}}/usr/lib/python${PYVER}/site-packages -name "psMat.so" -exec mv {} "${{targets.subpkgdir}}"/usr/lib/python${PYVER}/site-packages \;
mv ${{targets.destdir}}/usr/share/fontforge/python "${{targets.subpkgdir}}"/usr/share/fontforge/python
description: Python 3 bindings for fontforge
update:
enabled: true
github:
identifier: fontforge/fontforge
test:
pipeline:
# AUTOGENERATED
- runs: |
acorn2sfd --version
dewoff --version
fontforge --version
fontimage --version
fontlint --help
pcl2ttf --version
pfadecrypt --version
sfddiff --version
woff --version
acorn2sfd --help
dewoff --help
fontforge --help
fontimage --help
pcl2ttf --help
pfadecrypt --help
sfddiff --help
woff --help