Browse Source

git subrepo clone gitea@gitea.artixlinux.org:packagesG/gtk-doc.git

subrepo:
  subdir:   "gtk-doc"
  merged:   "30128d7"
upstream:
  origin:   "gitea@gitea.artixlinux.org:packagesG/gtk-doc.git"
  branch:   "master"
  commit:   "30128d7"
git-subrepo:
  version:  "0.4.0"
  origin:   "???"
  commit:   "???"
master
artoo 3 years ago
parent
commit
5436b99b13
Signed by: artoo
GPG Key ID: 3292CD0BB0DB310B
  1. 5
      gtk-doc/.artixlinux/agent.yaml
  2. 33
      gtk-doc/.gitignore
  3. 12
      gtk-doc/.gitrepo
  4. 3
      gtk-doc/Jenkinsfile
  5. 2
      gtk-doc/README.md
  6. 43
      gtk-doc/repos/extra-any/PKGBUILD
  7. 41
      gtk-doc/repos/extra-any/fix.diff
  8. 43
      gtk-doc/trunk/PKGBUILD
  9. 41
      gtk-doc/trunk/fix.diff

5
gtk-doc/.artixlinux/agent.yaml

@ -0,0 +1,5 @@
%YAML 1.2
---
label: master

33
gtk-doc/.gitignore vendored

@ -0,0 +1,33 @@
# ---> ArchLinuxPackages
*.tar
*.tar.*
*.jar
*.exe
*.msi
*.zip
*.tgz
*.log
*.log.*
*.sig
pkg/
src/
# ---> Archives
*.7z
*.rar
*.gz
*.bzip
*.bz2
*.xz
*.lzma
*.cab
# ---> systemd
*.service
*.socket
*.timer
# ---> snap
*.snap

12
gtk-doc/.gitrepo

@ -0,0 +1,12 @@
; DO NOT EDIT (unless you know what you are doing)
;
; This subdirectory is a git "subrepo", and this file is maintained by the
; git-subrepo command. See https://github.com/git-commands/git-subrepo#readme
;
[subrepo]
remote = gitea@gitea.artixlinux.org:packagesG/gtk-doc.git
branch = master
commit = 30128d76116b4562b57911c19b2028ee7ea4a891
parent = 09e8a9c0c6c5cd24613516e9b0787b79133b6b28
method = merge
cmdver = 0.4.0

3
gtk-doc/Jenkinsfile vendored

@ -0,0 +1,3 @@
@Library('artix-ci') import org.artixlinux.RepoPackage
PackagePipeline(new RepoPackage(this))

2
gtk-doc/README.md

@ -0,0 +1,2 @@
# gtk-doc

43
gtk-doc/repos/extra-any/PKGBUILD

@ -0,0 +1,43 @@
# Maintainer: Jan de Groot <jgc@archlinux.org>
pkgname=gtk-doc
pkgver=1.31
pkgrel=2
pkgdesc="Documentation tool for public library API"
url="https://www.gtk.org/gtk-doc/"
arch=(any)
license=(GPL FDL)
depends=(docbook-xsl docbook-xml glib2-docs python-lxml python-pygments
python-anytree)
makedepends=(dblatex git yelp-tools meson)
checkdepends=(bc gtk3 python-six python-parameterized)
optdepends=('dblatex: PDF support')
_commit=c268fa535424d193953487c694e2a8f770d3255f # tags/GTK_DOC_1_31^0
source=("git+https://gitlab.gnome.org/GNOME/gtk-doc.git#commit=$_commit"
fix.diff)
sha256sums=('SKIP'
'25362c503667167f71f6991dc3d42d6a2a0bae4e6ecd128d9d2f9c62c4f5c74b')
pkgver() {
cd $pkgname
git describe --tags | sed -e 's/GTK_DOC_//' -e 's/_/\./g' -e 's/-/+/g'
}
prepare() {
cd $pkgname
patch -Np1 -i ../fix.diff
}
build() {
arch-meson $pkgname build
ninja -C build
}
check() {
# Tests don't work yet
meson test -C build --print-errorlogs || :
}
package() {
DESTDIR="$pkgdir" meson install -C build
}

41
gtk-doc/repos/extra-any/fix.diff

@ -0,0 +1,41 @@
diff --git i/gtkdoc/highlight.py w/gtkdoc/highlight.py
index ba1c601..226aa12 100644
--- i/gtkdoc/highlight.py
+++ w/gtkdoc/highlight.py
@@ -46,6 +46,9 @@ def highlight_code(code, lang='c'):
def append_style_defs(css_file_name):
- os.chmod(css_file_name, 0o644)
+ try:
+ os.chmod(css_file_name, 0o644)
+ except OSError:
+ pass
with open(css_file_name, 'at', newline='\n', encoding='utf-8') as css:
css.write(HTML_FORMATTER.get_style_defs())
diff --git i/gtkdoc/scan.py w/gtkdoc/scan.py
index d04d4d4..2103d02 100644
--- i/gtkdoc/scan.py
+++ w/gtkdoc/scan.py
@@ -961,8 +961,8 @@ def ScanHeaderContent(input_lines, decl_list, get_types, options):
logging.info('struct/union level : %d', level)
# here we want in_declaration=='', otherwise we have a partial declaration
- if in_declaration != '':
- raise RuntimeError('partial declaration (%s) : %s ' % (in_declaration, decl))
+ #if in_declaration != '':
+ # raise RuntimeError('partial declaration (%s) : %s ' % (in_declaration, decl))
# print remaining forward declarations
for symbol in sorted(forward_decls.keys()):
diff --git i/meson.build w/meson.build
index 85e83ca..5e4d288 100644
--- i/meson.build
+++ w/meson.build
@@ -1,5 +1,5 @@
project('gtk-doc', 'c',
- version: '1.30.1',
+ version: '1.31',
license: 'GPL2+',
meson_version: '>= 0.50.0', # needed for https://mesonbuild.com/Python-module.html#path
)

43
gtk-doc/trunk/PKGBUILD

@ -0,0 +1,43 @@
# Maintainer: Jan de Groot <jgc@archlinux.org>
pkgname=gtk-doc
pkgver=1.31
pkgrel=2
pkgdesc="Documentation tool for public library API"
url="https://www.gtk.org/gtk-doc/"
arch=(any)
license=(GPL FDL)
depends=(docbook-xsl docbook-xml glib2-docs python-lxml python-pygments
python-anytree)
makedepends=(dblatex git yelp-tools meson)
checkdepends=(bc gtk3 python-six python-parameterized)
optdepends=('dblatex: PDF support')
_commit=c268fa535424d193953487c694e2a8f770d3255f # tags/GTK_DOC_1_31^0
source=("git+https://gitlab.gnome.org/GNOME/gtk-doc.git#commit=$_commit"
fix.diff)
sha256sums=('SKIP'
'25362c503667167f71f6991dc3d42d6a2a0bae4e6ecd128d9d2f9c62c4f5c74b')
pkgver() {
cd $pkgname
git describe --tags | sed -e 's/GTK_DOC_//' -e 's/_/\./g' -e 's/-/+/g'
}
prepare() {
cd $pkgname
patch -Np1 -i ../fix.diff
}
build() {
arch-meson $pkgname build
ninja -C build
}
check() {
# Tests don't work yet
meson test -C build --print-errorlogs || :
}
package() {
DESTDIR="$pkgdir" meson install -C build
}

41
gtk-doc/trunk/fix.diff

@ -0,0 +1,41 @@
diff --git i/gtkdoc/highlight.py w/gtkdoc/highlight.py
index ba1c601..226aa12 100644
--- i/gtkdoc/highlight.py
+++ w/gtkdoc/highlight.py
@@ -46,6 +46,9 @@ def highlight_code(code, lang='c'):
def append_style_defs(css_file_name):
- os.chmod(css_file_name, 0o644)
+ try:
+ os.chmod(css_file_name, 0o644)
+ except OSError:
+ pass
with open(css_file_name, 'at', newline='\n', encoding='utf-8') as css:
css.write(HTML_FORMATTER.get_style_defs())
diff --git i/gtkdoc/scan.py w/gtkdoc/scan.py
index d04d4d4..2103d02 100644
--- i/gtkdoc/scan.py
+++ w/gtkdoc/scan.py
@@ -961,8 +961,8 @@ def ScanHeaderContent(input_lines, decl_list, get_types, options):
logging.info('struct/union level : %d', level)
# here we want in_declaration=='', otherwise we have a partial declaration
- if in_declaration != '':
- raise RuntimeError('partial declaration (%s) : %s ' % (in_declaration, decl))
+ #if in_declaration != '':
+ # raise RuntimeError('partial declaration (%s) : %s ' % (in_declaration, decl))
# print remaining forward declarations
for symbol in sorted(forward_decls.keys()):
diff --git i/meson.build w/meson.build
index 85e83ca..5e4d288 100644
--- i/meson.build
+++ w/meson.build
@@ -1,5 +1,5 @@
project('gtk-doc', 'c',
- version: '1.30.1',
+ version: '1.31',
license: 'GPL2+',
meson_version: '>= 0.50.0', # needed for https://mesonbuild.com/Python-module.html#path
)
Loading…
Cancel
Save