Merge pull request #61598 from worldofpeace/gtk-doc/meson
gtk-doc: build with meson, etc
This commit is contained in:
commit
8e2fe5c1d9
@ -0,0 +1,24 @@
|
|||||||
|
From 95a75c95c5c4e641ce7cda0ded968d66f07f822a Mon Sep 17 00:00:00 2001
|
||||||
|
From: worldofpeace <worldofpeace@protonmail.ch>
|
||||||
|
Date: Sat, 18 May 2019 14:44:08 -0400
|
||||||
|
Subject: [PATCH] highlight: fix permission on file style
|
||||||
|
|
||||||
|
---
|
||||||
|
gtkdoc/highlight.py | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/gtkdoc/highlight.py b/gtkdoc/highlight.py
|
||||||
|
index 8f6e470..d11c432 100644
|
||||||
|
--- a/gtkdoc/highlight.py
|
||||||
|
+++ b/gtkdoc/highlight.py
|
||||||
|
@@ -47,6 +47,6 @@ def highlight_code(code, lang='c'):
|
||||||
|
|
||||||
|
|
||||||
|
def append_style_defs(css_file_name):
|
||||||
|
- os.chmod(css_file_name, stat.S_IWRITE)
|
||||||
|
+ os.chmod(css_file_name, 0o664)
|
||||||
|
with open(css_file_name, 'at', newline='\n', encoding='utf-8') as css:
|
||||||
|
css.write(HTML_FORMATTER.get_style_defs())
|
||||||
|
--
|
||||||
|
2.21.0
|
||||||
|
|
@ -1,5 +1,15 @@
|
|||||||
{ stdenv, fetchurl, autoreconfHook, pkgconfig, perl, python3, libxml2Python, libxslt, which
|
{ stdenv
|
||||||
, docbook_xml_dtd_43, docbook_xsl, gnome-doc-utils, gettext, itstool, gnome3
|
, fetchFromGitLab
|
||||||
|
, meson
|
||||||
|
, ninja
|
||||||
|
, pkgconfig
|
||||||
|
, python3
|
||||||
|
, libxml2Python
|
||||||
|
, docbook_xml_dtd_43
|
||||||
|
, docbook_xsl
|
||||||
|
, libxslt
|
||||||
|
, gettext
|
||||||
|
, gnome3
|
||||||
, withDblatex ? false, dblatex
|
, withDblatex ? false, dblatex
|
||||||
}:
|
}:
|
||||||
|
|
||||||
@ -7,29 +17,48 @@ stdenv.mkDerivation rec {
|
|||||||
pname = "gtk-doc";
|
pname = "gtk-doc";
|
||||||
version = "1.30";
|
version = "1.30";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchFromGitLab {
|
||||||
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
domain = "gitlab.gnome.org";
|
||||||
sha256 = "17h6nwhis66z4dxjrc833wvfl6pqjp81yfx3fq6x7k1qp2749xm4";
|
owner = "GNOME";
|
||||||
|
repo = pname;
|
||||||
|
rev = "GTK_DOC_${stdenv.lib.replaceStrings ["."] ["_"] version }";
|
||||||
|
sha256 = "05lr6apj3pd3s59a7k6p45k9ywwrp577ra4pvkhxvb5p7v90c2fi";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
passthru.respect_xml_catalog_files_var_patch
|
passthru.respect_xml_catalog_files_var_patch
|
||||||
|
# https://gitlab.gnome.org/GNOME/gtk-doc/issues/84
|
||||||
|
./0001-highlight-fix-permission-on-file-style.patch
|
||||||
];
|
];
|
||||||
|
|
||||||
outputDevdoc = "out";
|
outputDevdoc = "out";
|
||||||
|
|
||||||
nativeBuildInputs = [ autoreconfHook ];
|
nativeBuildInputs = [
|
||||||
buildInputs =
|
gettext
|
||||||
[ pkgconfig perl python3 libxml2Python libxslt docbook_xml_dtd_43 docbook_xsl
|
meson
|
||||||
gnome-doc-utils gettext which itstool
|
ninja
|
||||||
] ++ stdenv.lib.optional withDblatex dblatex;
|
];
|
||||||
|
|
||||||
configureFlags = [ "--disable-scrollkeeper" ];
|
buildInputs = [
|
||||||
|
docbook_xml_dtd_43
|
||||||
|
docbook_xsl
|
||||||
|
libxslt
|
||||||
|
pkgconfig
|
||||||
|
python3
|
||||||
|
libxml2Python
|
||||||
|
]
|
||||||
|
++ stdenv.lib.optional withDblatex dblatex
|
||||||
|
;
|
||||||
|
|
||||||
# Make six available for binaries, python.withPackages creates a wrapper
|
mesonFlags = [
|
||||||
|
"-Dtests=false"
|
||||||
|
"-Dyelp_manual=false"
|
||||||
|
];
|
||||||
|
|
||||||
|
# Make pygments available for binaries, python.withPackages creates a wrapper
|
||||||
# but scripts are not allowed in shebangs so we link it into sys.path.
|
# but scripts are not allowed in shebangs so we link it into sys.path.
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
ln -s ${python3.pkgs.six}/${python3.sitePackages}/* $out/share/gtk-doc/python/
|
ln -s ${python3.pkgs.pygments}/${python3.sitePackages}/* $out/share/gtk-doc/python/
|
||||||
'';
|
'';
|
||||||
|
|
||||||
doCheck = false; # requires a lot of stuff
|
doCheck = false; # requires a lot of stuff
|
||||||
|
Loading…
x
Reference in New Issue
Block a user