Add a develop documentation app for all GNOME OS and GNOME SDK

parent 41a81e8a
Pipeline #190411 failed with stages
in 113 minutes and 5 seconds
kind: flatpak_image
build-depends:
- vm/doc-app/extract-doc.bst
- freedesktop-sdk.bst:integration/platform-integration.bst
config:
directory: '/app'
metadata:
Application:
name: org.gnome.GnomeOSDoc
# We need Sdk to have man
runtime: org.gnome.Sdk/%{gcc_arch}/%{branch}
sdk: org.gnome.Sdk/%{gcc_arch}/%{branch}
command: yelp
Context:
sockets: "wayland;"
devices: "dri;"
Environment:
MANPATH: /app/share/man
INFOPATH: /app/share/info
XML_CATALOG_FILES: /app/etc/xml/catalog
#Should be already defined by SDK: XDG_DATA_DIRS: /app/share
kind: script
build-depends:
- vm/common-deps.bst
- sdk.bst
- freedesktop-sdk.bst:bootstrap-import.bst
config:
layout:
- element: vm/common-deps.bst
destination: "/sysroot"
- element: sdk.bst
destination: "/sysroot"
- element: bootstrap-import.bst
destination: "/"
commands:
- mkdir -p "%{install-root}/app/share"
- mkdir -p "%{install-root}/app/share/xml"
- mkdir -p "%{install-root}/app/share/gnome"
- mkdir -p "%{install-root}/etc"
- cp -r "/sysroot%{mandir}" "%{install-root}/app/share/man"
- cp -r "/sysroot%{infodir}" "%{install-root}/app/share/info"
- |
if [ -d "/sysroot%{datadir}/gnome/help" ]; then
cp -r "/sysroot%{datadir}/gnome/help" "%{install-root}/app/share/gnome/help"
fi
- cp -r "/sysroot%{datadir}/help" "%{install-root}/app/share/help"
- cp -r "/sysroot%{datadir}/doc" "%{install-root}/app/share/doc"
- cp -r "/sysroot%{datadir}/gtk-doc" "%{install-root}/app/share/gtk-doc"
- cp -r "/sysroot%{datadir}/xml/docbook" "%{install-root}/app/share/xml"
- cp -r "/sysroot/etc/xml" "%{install-root}/app/etc"
- sed -i 's,%{datadir},/app/share,g' "%{install-root}/app/etc"/*
kind: flatpak_repo
build-depends:
- core-deps/flatpak.bst
- vm/doc-app/doc-application.bst
config:
environment:
- core-deps/flatpak.bst
arch: '%{gcc_arch}'
repo-mode: bare-user-only
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment