2019-02-01 07:28:34 -08:00
|
|
|
{ stdenv, fetchurl, autoreconfHook, pkgconfig, perl, python3, libxml2Python, libxslt, which
|
2019-04-24 23:46:07 -07:00
|
|
|
, docbook_xml_dtd_43, docbook_xsl, gnome-doc-utils, gettext, itstool, gnome3
|
2018-09-16 16:33:20 -07:00
|
|
|
, withDblatex ? false, dblatex
|
2018-05-28 10:11:29 -07:00
|
|
|
}:
|
2018-03-10 02:39:11 -08:00
|
|
|
|
2014-10-05 13:50:22 -07:00
|
|
|
stdenv.mkDerivation rec {
|
2019-04-24 23:46:07 -07:00
|
|
|
pname = "gtk-doc";
|
2019-05-11 08:13:27 -07:00
|
|
|
version = "1.30";
|
2012-03-18 21:36:41 -07:00
|
|
|
|
2009-09-29 22:27:34 -07:00
|
|
|
src = fetchurl {
|
2019-04-24 23:46:07 -07:00
|
|
|
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2019-05-11 08:13:27 -07:00
|
|
|
sha256 = "17h6nwhis66z4dxjrc833wvfl6pqjp81yfx3fq6x7k1qp2749xm4";
|
2009-09-29 22:27:34 -07:00
|
|
|
};
|
2010-05-27 06:08:21 -07:00
|
|
|
|
2017-10-06 15:07:40 -07:00
|
|
|
patches = [
|
2017-12-01 19:10:47 -08:00
|
|
|
passthru.respect_xml_catalog_files_var_patch
|
2017-10-06 15:07:40 -07:00
|
|
|
];
|
2009-09-29 22:27:34 -07:00
|
|
|
|
2017-10-06 15:07:40 -07:00
|
|
|
outputDevdoc = "out";
|
2009-09-29 22:27:34 -07:00
|
|
|
|
2017-10-06 15:07:40 -07:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
2010-05-27 06:08:21 -07:00
|
|
|
buildInputs =
|
2019-02-01 07:28:34 -08:00
|
|
|
[ pkgconfig perl python3 libxml2Python libxslt docbook_xml_dtd_43 docbook_xsl
|
2018-09-16 16:33:20 -07:00
|
|
|
gnome-doc-utils gettext which itstool
|
|
|
|
] ++ stdenv.lib.optional withDblatex dblatex;
|
2018-05-28 10:11:29 -07:00
|
|
|
|
|
|
|
configureFlags = [ "--disable-scrollkeeper" ];
|
2014-10-05 13:50:22 -07:00
|
|
|
|
2018-05-28 10:11:29 -07:00
|
|
|
# Make six available for binaries, python.withPackages creates a wrapper
|
|
|
|
# but scripts are not allowed in shebangs so we link it into sys.path.
|
|
|
|
postInstall = ''
|
2019-02-01 07:28:34 -08:00
|
|
|
ln -s ${python3.pkgs.six}/${python3.sitePackages}/* $out/share/gtk-doc/python/
|
2018-05-28 10:11:29 -07:00
|
|
|
'';
|
2017-10-06 15:07:40 -07:00
|
|
|
|
2018-04-24 20:20:18 -07:00
|
|
|
doCheck = false; # requires a lot of stuff
|
|
|
|
doInstallCheck = false; # fails
|
|
|
|
|
2017-12-01 19:10:47 -08:00
|
|
|
passthru = {
|
|
|
|
# Consumers are expected to copy the m4 files to their source tree, let them reuse the patch
|
|
|
|
respect_xml_catalog_files_var_patch = ./respect-xml-catalog-files-var.patch;
|
2019-04-24 23:46:07 -07:00
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = pname;
|
|
|
|
versionPolicy = "none";
|
|
|
|
};
|
2017-12-01 19:10:47 -08:00
|
|
|
};
|
|
|
|
|
2014-10-05 13:50:22 -07:00
|
|
|
meta = with stdenv.lib; {
|
2017-08-02 14:50:51 -07:00
|
|
|
homepage = https://www.gtk.org/gtk-doc;
|
2014-10-05 13:50:22 -07:00
|
|
|
description = "Tools to extract documentation embedded in GTK+ and GNOME source code";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = with maintainers; [ pSub ];
|
|
|
|
};
|
2009-09-29 22:27:34 -07:00
|
|
|
}
|