mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 08:13:04 +00:00
pango: 1.47.0 → 1.48.3
https://gitlab.gnome.org/GNOME/pango/-/blob/1.48.3/NEWS#L1-34
This commit is contained in:
parent
17e45089da
commit
534800263c
@ -1,57 +1,91 @@
|
||||
{ lib, stdenv, fetchurl, fetchpatch, pkg-config, cairo, harfbuzz
|
||||
, libintl, libthai, gobject-introspection, darwin, fribidi, gnome3
|
||||
, gtk-doc, docbook_xsl, docbook_xml_dtd_43, makeFontsConf, freefont_ttf
|
||||
, meson, ninja, glib
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchurl
|
||||
, fetchpatch
|
||||
, pkg-config
|
||||
, cairo
|
||||
, harfbuzz
|
||||
, libintl
|
||||
, libthai
|
||||
, gobject-introspection
|
||||
, darwin
|
||||
, fribidi
|
||||
, gnome3
|
||||
, gi-docgen
|
||||
, makeFontsConf
|
||||
, freefont_ttf
|
||||
, meson
|
||||
, ninja
|
||||
, glib
|
||||
, x11Support? !stdenv.isDarwin, libXft
|
||||
}:
|
||||
|
||||
with lib;
|
||||
|
||||
let
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "pango";
|
||||
version = "1.47.0";
|
||||
in stdenv.mkDerivation rec {
|
||||
name = "${pname}-${version}";
|
||||
version = "1.48.3";
|
||||
|
||||
outputs = [ "bin" "out" "dev" "devdoc" ];
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${name}.tar.xz";
|
||||
sha256 = "0ry3j9n0lvdfmjwi2w7wa4gkalnip56kghqq6bh8hcf45xjvh3bk";
|
||||
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
||||
sha256 = "0ijbkcs6217ygzphlpi0vajxkccifdbsl0jdjpy8wz11h9f19sin";
|
||||
};
|
||||
|
||||
# FIXME: docs fail on darwin
|
||||
outputs = [ "bin" "dev" "out" ] ++ optional (!stdenv.isDarwin) "devdoc";
|
||||
patches = [
|
||||
# Install developer documentation.
|
||||
(fetchpatch {
|
||||
url = "https://gitlab.gnome.org/GNOME/pango/commit/a2f35860115e8cd44f07d5158e2df059e8163a08.patch";
|
||||
sha256 = "hN7O4DBk4A+TmBl6DGx6RHni5qRBg6akdjv9o3iWKDQ=";
|
||||
})
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
meson ninja
|
||||
glib # for glib-mkenum
|
||||
pkg-config gobject-introspection gtk-doc docbook_xsl docbook_xml_dtd_43
|
||||
pkg-config
|
||||
gobject-introspection
|
||||
gi-docgen
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
fribidi
|
||||
libthai
|
||||
] ++ optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
|
||||
] ++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
|
||||
ApplicationServices
|
||||
Carbon
|
||||
CoreGraphics
|
||||
CoreText
|
||||
]);
|
||||
propagatedBuildInputs = [ cairo glib libintl harfbuzz ] ++
|
||||
optional x11Support libXft;
|
||||
|
||||
mesonFlags = [
|
||||
"-Dgtk_doc=${if stdenv.isDarwin then "false" else "true"}"
|
||||
] ++ lib.optionals stdenv.isDarwin [
|
||||
"-Dxft=disabled" # only works with x11
|
||||
propagatedBuildInputs = [
|
||||
cairo
|
||||
glib
|
||||
libintl
|
||||
harfbuzz
|
||||
] ++ lib.optionals x11Support [
|
||||
libXft
|
||||
];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
mesonFlags = [
|
||||
"-Dgtk_doc=true"
|
||||
] ++ lib.optionals (!x11Support) [
|
||||
"-Dxft=disabled" # only works with x11
|
||||
];
|
||||
|
||||
# Fontconfig error: Cannot load default config file
|
||||
FONTCONFIG_FILE = makeFontsConf {
|
||||
fontDirectories = [ freefont_ttf ];
|
||||
};
|
||||
|
||||
doCheck = false; # /layout/valid-1.markup: FAIL
|
||||
doCheck = false; # test-font: FAIL
|
||||
|
||||
postInstall = ''
|
||||
# So that devhelp can find this.
|
||||
# https://gitlab.gnome.org/GNOME/pango/merge_requests/293/diffs#note_1058448
|
||||
mkdir -p "$devdoc/share/devhelp"
|
||||
mv "$out/share/doc/pango/reference" "$devdoc/share/devhelp/books"
|
||||
rmdir -p --ignore-fail-on-non-empty "$out/share/doc/pango"
|
||||
'';
|
||||
|
||||
passthru = {
|
||||
updateScript = gnome3.updateScript {
|
||||
@ -73,7 +107,7 @@ in stdenv.mkDerivation rec {
|
||||
homepage = "https://www.pango.org/";
|
||||
license = licenses.lgpl2Plus;
|
||||
|
||||
maintainers = with maintainers; [ raskin ];
|
||||
maintainers = with maintainers; [ raskin ] ++ teams.gnome.members;
|
||||
platforms = platforms.linux ++ platforms.darwin;
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user