fontforge-gtk: Add support for libspiro.

Add Spiro toolkit in fontforge-gtk for designing fonts.
libspiro: Init at c26afeb.
This commit is contained in:
Lprndn 2017-02-01 14:59:35 +01:00
parent bd613c20f4
commit 4cd7b284e8
3 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,18 @@
{stdenv, pkgconfig, fetchurl}:
stdenv.mkDerivation rec {
name = "libspiro-${version}";
version = "0.5.20150702";
src = fetchurl {
url = "https://github.com/fontforge/libspiro/releases/download/${version}/${name}.tar.gz";
sha256 = "0z4zpxd3nwwchqdsbmmjbp13aw5jg8v5p1993190bpykkrjlh6nv";
};
nativeBuildInputs = [pkgconfig];
meta = with stdenv.lib; {
description = "A library that simplifies the drawing of beautiful curves";
homepage = "https://github.com/fontforge/libspiro";
license = licenses.gpl3Plus;
};
}

View File

@ -1,6 +1,7 @@
{ stdenv, fetchFromGitHub, fetchpatch, lib
, autoconf, automake, gnum4, libtool, perl, gnulib, uthash, pkgconfig, gettext
, python, freetype, zlib, glib, libungif, libpng, libjpeg, libtiff, libxml2, pango
, withSpiro ? false, libspiro
, withGTK ? false, gtk2
, withPython ? true
, Carbon ? null, Cocoa ? null
@ -29,6 +30,7 @@ stdenv.mkDerivation rec {
autoconf automake gnum4 libtool perl pkgconfig gettext uthash
python freetype zlib glib libungif libpng libjpeg libtiff libxml2
]
++ lib.optionals withSpiro [libspiro]
++ lib.optionals withGTK [ gtk2 pango ]
++ lib.optionals stdenv.isDarwin [ Carbon Cocoa ];

View File

@ -1738,6 +1738,7 @@ with pkgs;
inherit (darwin.apple_sdk.frameworks) Carbon Cocoa;
});
fontforge-gtk = callPackage ../tools/misc/fontforge {
withSpiro = true;
withGTK = true;
gtk2 = gtk2-x11;
inherit (darwin.apple_sdk.frameworks) Carbon Cocoa;
@ -8495,6 +8496,8 @@ with pkgs;
libsoup = callPackage ../development/libraries/libsoup { };
libspiro = callPackage ../development/libraries/libspiro {};
libssh = callPackage ../development/libraries/libssh { };
libssh2 = callPackage ../development/libraries/libssh2 { };