Merge pull request #72269 from worldofpeace/gtk-no-gtk-doc-macos

gtk3: only build docs on linux
This commit is contained in:
worldofpeace 2019-10-29 22:33:55 +00:00 committed by GitHub
commit 374e6e95c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,6 +36,7 @@
, wayland-protocols , wayland-protocols
, xineramaSupport ? stdenv.isLinux , xineramaSupport ? stdenv.isLinux
, cupsSupport ? stdenv.isLinux , cupsSupport ? stdenv.isLinux
, withGtkDoc ? stdenv.isLinux
, cups ? null , cups ? null
, AppKit , AppKit
, Cocoa , Cocoa
@ -49,7 +50,7 @@ stdenv.mkDerivation rec {
pname = "gtk+3"; pname = "gtk+3";
version = "3.24.12"; version = "3.24.12";
outputs = [ "out" "dev" "devdoc" ]; outputs = [ "out" "dev" ] ++ optional withGtkDoc "devdoc";
outputBin = "dev"; outputBin = "dev";
setupHooks = [ setupHooks = [
@ -81,7 +82,7 @@ stdenv.mkDerivation rec {
separateDebugInfo = stdenv.isLinux; separateDebugInfo = stdenv.isLinux;
mesonFlags = [ mesonFlags = [
"-Dgtk_doc=true" "-Dgtk_doc=${boolToString withGtkDoc}"
"-Dtests=false" "-Dtests=false"
]; ];
@ -109,10 +110,7 @@ stdenv.mkDerivation rec {
''; '';
nativeBuildInputs = [ nativeBuildInputs = [
docbook_xml_dtd_43
docbook_xsl
gettext gettext
gtk-doc
gobject-introspection gobject-introspection
makeWrapper makeWrapper
meson meson
@ -121,6 +119,10 @@ stdenv.mkDerivation rec {
python3 python3
sassc sassc
setupHooks setupHooks
] ++ optionals withGtkDoc [
docbook_xml_dtd_43
docbook_xsl
gtk-doc
]; ];
buildInputs = [ buildInputs = [