-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathorg.denemo.Denemo.yaml
339 lines (320 loc) · 10.5 KB
/
org.denemo.Denemo.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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
---
app-id: org.denemo.Denemo
runtime: org.freedesktop.Platform
runtime-version: '23.08'
sdk: org.freedesktop.Sdk
sdk-extensions:
- org.freedesktop.Sdk.Extension.texlive
command: denemo
finish-args:
# Display
- --share=ipc
- --socket=fallback-x11
- --socket=wayland
# Folder access
- --filesystem=home
# Settings for point-and-click. Disabled, because Denemo does not support dbus.
# - --filesystem=/tmp # textedit links point to .ly files in /tmp
# - --talk-name=org.gnome.evince.Daemon # Evince internal synctex requires D-Bus
# Needed for PortAudio/MIDI
- --device=all
# Needed for note playpack
- --socket=pulseaudio
# Needed for JACK over PipeWire
- --filesystem=xdg-run/pipewire-0
# required to find texlive binaries
- --env=PATH=/app/texlive/bin/x86_64-linux:/app/texlive/bin/aarch64-linux:/app/bin:/usr/bin
modules:
# Fontforge build dependency
- name: libuinameslist
sources:
- type: archive
url: https://github.com/fontforge/libuninameslist/releases/download/20180701/libuninameslist-dist-20180701.tar.gz
sha256: 8aed97d0bc872d893d8bf642a14e49958b0613136e1bfe2a415c69599c803c90
cleanup:
- "*"
- name: fontforge
buildsystem: cmake-ninja
builddir: true
config-opts:
- -DENABLE_DOCS=false
- -DENABLE_LIBSPIRO=false
- -DREAL_TYPE=double
sources:
- type: archive
url: https://github.com/fontforge/fontforge/archive/refs/tags/20230101.tar.gz
sha256: ab0c4be41be15ce46a1be1482430d8e15201846269de89df67db32c7de4343f1
# From https://src.fedoraproject.org/rpms/fontforge/blob/rawhide/f/0001-Fix-errors-in-French-and-Italian-translations.patch
- type: patch
path: patches/fontforge-translation-errors.patch
cleanup:
- "*"
- name: t1utils
sources:
- type: archive
url: https://github.com/kohler/t1utils/archive/v1.41.tar.gz
sha256: 0129fbfabb212143f52ff1e5de8ccbef5e5295d46772bad3ed149115bab5a094
cleanup:
- "*"
- name: texgyre
sources:
- type: archive
url: http://www.gust.org.pl/projects/e-foundry/tex-gyre/whole/tg2_501otf.zip
sha256: d7f8be5317bec4e644cf16c5abf876abeeb83c43dbec0ccb4eee4516b73b1bbe
buildsystem: simple
build-commands:
- mkdir /app/share/fonts
- install * /app/share/fonts
- name: ghostscript
sources:
- type: archive
url: https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs9533/ghostscript-9.53.3.tar.xz
sha256: 9c9f5bc85b6c7eb08368c05b1e3339f7aaf9677ddca710c6283f872d55e2a234
- type: shell
commands:
- cp -p /usr/share/automake-*/config.{sub,guess} freetype/builds/unix/
- cp -p /usr/share/automake-*/config.{sub,guess} ijs/
- cp -p /usr/share/automake-*/config.{sub,guess} jpeg/
- cp -p /usr/share/automake-*/config.{sub,guess} libpng/
- cp -p /usr/share/automake-*/config.{sub,guess} lcms2mt/
- cp -p /usr/share/automake-*/config.{sub,guess} tiff/config/
- cp -p /usr/share/automake-*/config.{sub,guess} .
config-opts:
- --disable-contrib
- --disable-cups
- --disable-dbus
- --disable-fontconfig
- --disable-gtk
- --with-drivers=PNG,PS
- --without-cal
- --without-ijs
- --without-libidn
- --without-libpaper
- --without-libtiff
- --without-pdftoraster
- --without-urf
- --without-x
make-args:
- so
make-install-args:
- soinstall
cleanup:
- /include
- /share/doc
- /share/man
- /bin/gpcl6
- /bin/gxps
- name: guile
modules:
- name: gc
config-opts:
- --disable-docs
sources:
- type: archive
url: https://www.hboehm.info/gc/gc_source/gc-8.0.6.tar.gz
sha256: 3b4914abc9fa76593596773e4da671d7ed4d5390e3d46fbf2e5f155e121bea11
cleanup:
- /include
buildsystem: autotools
config-opts:
- --without-threads
- --disable-networking
- --disable-error-on-warning
sources:
- type: archive
url: https://ftp.gnu.org/gnu/guile/guile-2.2.7.tar.xz
sha256: cdf776ea5f29430b1258209630555beea6d2be5481f9da4d64986b077ff37504
- type: patch
path: patches/guile2-never-recompile.patch
cleanup:
- /include
- /lib/pkgconfig
- /share/aclocal
- /share/info
- /share/man
- name: lilypond
buildsystem: simple
build-commands:
- ./configure --prefix=/app --disable-documentation --enable-cairo-backend
- make
- make bytecode
- make install
- make install-bytecode
sources:
- type: archive
url: https://lilypond.org/download/sources/v2.24/lilypond-2.24.4.tar.gz
sha256: e96fa03571c79f20e1979653afabdbe4ee42765a3d9fd14953f0cd9eea51781c
build-options:
arch:
aarch64:
prepend-path: /usr/lib/sdk/texlive/bin/aarch64-linux:/usr/lib/sdk/texlive/bin
x86_64:
prepend-path: /usr/lib/sdk/texlive/bin/x86_64-linux:/usr/lib/sdk/texlive/bin
# Denemo requires intltool 0.35.0 or later.
- shared-modules/intltool/intltool-0.51.json
- name: aubio
buildsystem: simple
build-commands:
- ./waf configure --prefix=/app --libdir=/app/lib --disable-avcodec
- ./waf build -j $FLATPAK_BUILDER_N_JOBS
- ./waf install
sources:
- type: archive
url: http://aubio.org/pub/aubio-0.4.9.tar.bz2
sha256: d48282ae4dab83b3dc94c16cf011bcb63835c1c02b515490e1883049c3d1f3da
# From https://src.fedoraproject.org/rpms/aubio/tree/f39
- type: patch
path: patches/aubio-python.patch
cleanup:
- /bin
- /include
- /lib/pkgconfig
- /share/doc
- "*.a"
- name: gtksourceview3
config-opts:
- --enable-gtk-doc=no
- --enable-introspection=yes
cleanup:
- /include
- /lib/pkgconfig
- /share/gtk-doc
sources:
- type: archive
url: https://download.gnome.org/sources/gtksourceview/3.24/gtksourceview-3.24.11.tar.xz
sha256: 691b074a37b2a307f7f48edc5b8c7afa7301709be56378ccf9cc9735909077fd
- name: poppler-data
no-autogen: true
make-install-args:
- prefix=/app
sources:
- type: archive
url: https://poppler.freedesktop.org/poppler-data-0.4.11.tar.gz
sha256: 2cec05cd1bb03af98a8b06a1e22f6e6e1a65b1e2f3816cb3069bb0874825f08c
cleanup:
- /share/pkgconfig
- name: poppler
buildsystem: cmake-ninja
config-opts:
- -DCMAKE_INSTALL_LIBDIR=/app/lib
- -DCMAKE_INSTALL_INCLUDEDIR=/app/include
- -DENABLE_BOOST=OFF
- -DENABLE_LIBOPENJPEG=none
cleanup:
- /bin
- /include
- /lib/pkgconfig
- /share/man
- /share/pkgconfig
sources:
- type: archive
url: https://poppler.freedesktop.org/poppler-22.08.0.tar.xz
sha256: b493328721402f25cb7523f9cdc2f7d7c59f45ad999bde75c63c90604db0f20b
- name: evince
buildsystem: meson
config-opts:
- -Dcomics=disabled
# - -Ddbus=true # true by default
- -Dgtk_doc=false
- -Dinternal_synctex=true
- -Dintrospection=true
- -Dnautilus=false
- -Dpreviewer=false
- -Dsystemduserunitdir=no
- -Dthumbnail_cache=disabled
- -Duser_doc=false
- -Dviewer=false
cleanup:
- /include
- /lib/pkgconfig
- /man
- /share/applications
- /share/GConf
- /share/help
- /share/man
- /share/metainfo
sources:
- type: archive
url: https://download.gnome.org/sources/evince/44/evince-44.3.tar.xz
sha256: 3b8ba1581a47a6e9f57f6b6aa08f0fb67549c60121aa24e31140e93947b83622
- type: shell
commands:
# Remove libhandy dep, not needed with -Dviewer=false
- sed -i '/hdy_dep/d' meson.build
# Remove adwaita-icon-theme support, not needed with -Dviewer=false
- sed -i '/adwaita_icon_them/d' meson.build
- name: fluidsynth
buildsystem: cmake-ninja
config-opts:
- -DCMAKE_BUILD_TYPE=Release
cleanup:
- /include
- /lib/pkgconfig
- /share/man
sources:
- type: archive
url: https://github.com/FluidSynth/fluidsynth/archive/refs/tags/v2.3.4.tar.gz
sha256: 1529ef5bc3b9ef3adc2a7964505912f7305103e269e50cc0316f500b22053ac9
- name: vamp-plugin-sdk
no-parallel-make: true
sources:
- type: archive
url: https://code.soundsoftware.ac.uk/attachments/download/2691/vamp-plugin-sdk-2.10.0.tar.gz
sha256: aeaf3762a44b148cebb10cde82f577317ffc9df2720e5445c3df85f3739ff75f
post-install:
- install -Dm644 -t /app/share/licenses/vamp-plugin-sdk COPYING
cleanup:
- /bin
- /include
- /lib/pkgconfig
- /share/licenses
- "*.a"
- name: rubberband
buildsystem: meson
sources:
- type: archive
url: https://breakfastquay.com/files/releases/rubberband-3.3.0.tar.bz2
sha256: d9ef89e2b8ef9f85b13ac3c2faec30e20acf2c9f3a9c8c45ce637f2bc95e576c
cleanup:
- /include
- /lib/pkgconfig
- /share/ladspa
- /share/licenses
- "*.a"
- name: portaudio
buildsystem: cmake-ninja
cleanup:
- /include
- /lib/pkgconfig
- /share/doc
sources:
- type: archive
url: http://files.portaudio.com/archives/pa_stable_v190700_20210406.tgz
sha256: 47efbf42c77c19a05d22e627d42873e991ec0c1357219c0d74ce6a2948cb2def
- name: portmidi
buildsystem: cmake-ninja
config-opts:
- -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/app/lib
- -DCMAKE_ARCHIVE_OUTPUT_DIRECTORY=/app/lib
- -DCMAKE_RUNTIME_OUTPUT_DIRECTORY=/app/bin
sources:
- type: archive
url: https://github.com/PortMidi/portmidi/archive/refs/tags/v2.0.4.tar.gz
sha256: 64893e823ae146cabd3ad7f9a9a9c5332746abe7847c557b99b2577afa8a607c
cleanup:
- /bin
- /include
- name: denemo
sources:
- type: archive
url: https://git.savannah.gnu.org/cgit/denemo.git/snapshot/denemo-r2.6.34.tar.gz
sha256: 9e90a372687aee675fe81a09349b26dfff9fa386a47fc19c1824c80644ec8a27
- type: patch
path: patches/denemo-metainfo.patch
- type: file
path: org.denemo.Denemo.png
post-install:
# Flatpak expects the icon to be under /app/share/icons
#- mv ${FLATPAK_DEST}/share/pixmaps/org.denemo.Denemo.png ${FLATPAK_DEST}/share/icons/hicolor/128x128/apps/org.denemo.Denemo.png
# Copy 128px icon of this repository (for 2.6.34 release only):
- cp org.denemo.Denemo.png ${FLATPAK_DEST}/share/icons/hicolor/128x128/apps/org.denemo.Denemo.png