fontforge-gtk: Add support for libspiro.
Add Spiro toolkit in fontforge-gtk for designing fonts. libspiro: Init at c26afeb.
This commit is contained in:
parent
bd613c20f4
commit
4cd7b284e8
|
@ -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;
|
||||||
|
};
|
||||||
|
}
|
|
@ -1,6 +1,7 @@
|
||||||
{ stdenv, fetchFromGitHub, fetchpatch, lib
|
{ stdenv, fetchFromGitHub, fetchpatch, lib
|
||||||
, autoconf, automake, gnum4, libtool, perl, gnulib, uthash, pkgconfig, gettext
|
, autoconf, automake, gnum4, libtool, perl, gnulib, uthash, pkgconfig, gettext
|
||||||
, python, freetype, zlib, glib, libungif, libpng, libjpeg, libtiff, libxml2, pango
|
, python, freetype, zlib, glib, libungif, libpng, libjpeg, libtiff, libxml2, pango
|
||||||
|
, withSpiro ? false, libspiro
|
||||||
, withGTK ? false, gtk2
|
, withGTK ? false, gtk2
|
||||||
, withPython ? true
|
, withPython ? true
|
||||||
, Carbon ? null, Cocoa ? null
|
, Carbon ? null, Cocoa ? null
|
||||||
|
@ -29,6 +30,7 @@ stdenv.mkDerivation rec {
|
||||||
autoconf automake gnum4 libtool perl pkgconfig gettext uthash
|
autoconf automake gnum4 libtool perl pkgconfig gettext uthash
|
||||||
python freetype zlib glib libungif libpng libjpeg libtiff libxml2
|
python freetype zlib glib libungif libpng libjpeg libtiff libxml2
|
||||||
]
|
]
|
||||||
|
++ lib.optionals withSpiro [libspiro]
|
||||||
++ lib.optionals withGTK [ gtk2 pango ]
|
++ lib.optionals withGTK [ gtk2 pango ]
|
||||||
++ lib.optionals stdenv.isDarwin [ Carbon Cocoa ];
|
++ lib.optionals stdenv.isDarwin [ Carbon Cocoa ];
|
||||||
|
|
||||||
|
|
|
@ -1738,6 +1738,7 @@ with pkgs;
|
||||||
inherit (darwin.apple_sdk.frameworks) Carbon Cocoa;
|
inherit (darwin.apple_sdk.frameworks) Carbon Cocoa;
|
||||||
});
|
});
|
||||||
fontforge-gtk = callPackage ../tools/misc/fontforge {
|
fontforge-gtk = callPackage ../tools/misc/fontforge {
|
||||||
|
withSpiro = true;
|
||||||
withGTK = true;
|
withGTK = true;
|
||||||
gtk2 = gtk2-x11;
|
gtk2 = gtk2-x11;
|
||||||
inherit (darwin.apple_sdk.frameworks) Carbon Cocoa;
|
inherit (darwin.apple_sdk.frameworks) Carbon Cocoa;
|
||||||
|
@ -8495,6 +8496,8 @@ with pkgs;
|
||||||
|
|
||||||
libsoup = callPackage ../development/libraries/libsoup { };
|
libsoup = callPackage ../development/libraries/libsoup { };
|
||||||
|
|
||||||
|
libspiro = callPackage ../development/libraries/libspiro {};
|
||||||
|
|
||||||
libssh = callPackage ../development/libraries/libssh { };
|
libssh = callPackage ../development/libraries/libssh { };
|
||||||
|
|
||||||
libssh2 = callPackage ../development/libraries/libssh2 { };
|
libssh2 = callPackage ../development/libraries/libssh2 { };
|
||||||
|
|
Loading…
Reference in New Issue