ttfautohint: 1.8.3 -> 1.8.4

This commit is contained in:
kyehn
2025-09-02 06:04:08 +00:00
committed by kyehn
parent 737ce9d193
commit e9f18b5ec3
2 changed files with 15 additions and 18 deletions
+14 -17
View File
@@ -4,49 +4,47 @@
fetchurl,
pkg-config,
autoreconfHook,
perl,
freetype,
harfbuzz,
libiconv,
qtbase,
libsForQt5,
enableGUI ? true,
}:
stdenv.mkDerivation rec {
version = "1.8.3";
version = "1.8.4";
pname = "ttfautohint";
src = fetchurl {
url = "mirror://savannah/freetype/ttfautohint-${version}.tar.gz";
sha256 = "0zpqgihn3yh3v51ynxwr8asqrijvs4gv686clwv7bm8sawr4kfw7";
hash = "sha256-iodhF/puv9L/4bNoKpqYyALA9HGJ9X09tLmXdCBoMuE=";
};
postPatch = ''
echo "${version}" > VERSION
'';
postAutoreconf = ''
substituteInPlace configure --replace "macx-g++" "macx-clang"
substituteInPlace configure --replace-fail "macx-g++" "macx-clang"
'';
nativeBuildInputs = [
pkg-config
autoreconfHook
];
perl
]
++ lib.optionals enableGUI [ libsForQt5.qt5.wrapQtAppsHook ];
buildInputs = [
freetype
harfbuzz
libiconv
]
++ lib.optional enableGUI qtbase;
++ lib.optionals enableGUI [ libsForQt5.qt5.qtbase ];
configureFlags = [ ''--with-qt=${if enableGUI then "${qtbase}/lib" else "no"}'' ];
# workaround https://github.com/NixOS/nixpkgs/issues/155458
preBuild = lib.optionalString stdenv.cc.isClang ''
rm version
'';
configureFlags = [ ''--with-qt=${if enableGUI then "${libsForQt5.qt5.qtbase}/lib" else "no"}'' ];
enableParallelBuilding = true;
dontWrapQtApps = true;
meta = with lib; {
description = "Automatic hinter for TrueType fonts";
mainProgram = "ttfautohint";
@@ -61,5 +59,4 @@ stdenv.mkDerivation rec {
maintainers = [ ];
platforms = platforms.unix;
};
}
+1 -1
View File
@@ -4343,7 +4343,7 @@ with pkgs;
trytond = with python3Packages; toPythonApplication trytond;
ttfautohint = libsForQt5.callPackage ../tools/misc/ttfautohint { };
ttfautohint = callPackage ../tools/misc/ttfautohint { };
ttfautohint-nox = ttfautohint.override { enableGUI = false; };
twilight = callPackage ../tools/graphics/twilight {