fontforge: 20190413 -> 20190801

- Init libuninameslist at 20190701 as it is a new dependency to fontforge
- Remove gnulib, as it is not used anymore
- Remove a non-applying patch
- Add myself as maintainer
This commit is contained in:
Justin Humm 2020-01-13 15:59:01 +01:00 committed by Frederik Rietdijk
parent 452f481853
commit 4496f8f4b8
4 changed files with 37 additions and 41 deletions

View file

@ -0,0 +1,28 @@
{ stdenv
, fetchFromGitHub
, autoreconfHook
}:
stdenv.mkDerivation rec {
pname = "libuninameslist";
version = "20190701";
src = fetchFromGitHub {
owner = "fontforge";
repo = pname;
rev = version;
sha256 = "sha256:034c8clnskvqbwyiq7si4dad1kbngi3jmnrj064i39msqixmpdzb";
};
nativeBuildInputs = [
autoreconfHook
];
meta = with stdenv.lib; {
homepage = https://github.com/fontforge/libuninameslist/;
description = "A Library of Unicode names and annotation data";
license = licenses.bsd3;
maintainers = with maintainers; [ erictapen ];
platforms = platforms.all;
};
}

View file

@ -1,7 +1,7 @@
{ stdenv, fetchurl, lib
, autoconf, automake, gnum4, libtool, perl, gnulib, uthash, pkgconfig, gettext
, autoconf, automake, gnum4, libtool, perl, uthash, pkgconfig, gettext
, python, freetype, zlib, glib, libungif, libpng, libjpeg, libtiff, libxml2, cairo, pango
, readline, woff2, zeromq
, readline, woff2, zeromq, libuninameslist
, withSpiro ? false, libspiro
, withGTK ? false, gtk2
, withPython ? true
@ -11,15 +11,13 @@
stdenv.mkDerivation rec {
pname = "fontforge";
version = "20190413";
version = "20190801";
src = fetchurl {
url = "https://github.com/${pname}/${pname}/releases/download/${version}/${pname}-${version}.tar.gz";
sha256 = "05v640mnk4fy4jzmxb6c4n4qm800x7hy4sl5gcdgzmm3md2s0qk7";
sha256 = "0lh8yx01asbzxm6car5cfi64njh5p4lxc7iv8dldr5rwg357a86r";
};
patches = [ ./fontforge-20140813-use-system-uthash.patch ];
# use $SOURCE_DATE_EPOCH instead of non-deterministic timestamps
postPatch = ''
find . -type f -name '*.c' -exec sed -r -i 's#\btime\(&(.+)\)#if (getenv("SOURCE_DATE_EPOCH")) \1=atol(getenv("SOURCE_DATE_EPOCH")); else &#g' {} \;
@ -34,7 +32,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkgconfig autoconf automake gnum4 libtool perl gettext ];
buildInputs = [
readline uthash woff2 zeromq
readline uthash woff2 zeromq libuninameslist
python freetype zlib glib libungif libpng libjpeg libtiff libxml2
]
++ lib.optionals withSpiro [libspiro]
@ -53,9 +51,7 @@ stdenv.mkDerivation rec {
export SOURCE_DATE_EPOCH=$(date -d ${version} +%s)
export GIT="$(type -P true)"
cp -r "${gnulib}" ./gnulib
chmod +w -R ./gnulib
./bootstrap --skip-git --gnulib-srcdir=./gnulib --force
./bootstrap --skip-git --force
'';
doCheck = false; # tries to wget some fonts
@ -74,5 +70,6 @@ stdenv.mkDerivation rec {
homepage = http://fontforge.github.io;
platforms = stdenv.lib.platforms.all;
license = stdenv.lib.licenses.bsd3;
maintainers = [ stdenv.lib.maintainers.erictapen ];
};
}

View file

@ -1,31 +0,0 @@
--- a/Makefile.am.old 2014-08-12 10:07:32.000000000 +0530
+++ b/Makefile.am 2014-09-08 16:23:56.046996941 +0530
@@ -43,7 +43,6 @@
AM_CPPFLAGS =
AM_LDFLAGS =
-BUILT_SOURCES = uthash/src
EXTRA_DIST =
CLEANFILES =
MOSTLYCLEANFILES =
@@ -113,8 +112,7 @@
Packaging/FontForge-doc.spec \
Packaging/FontForge.spec \
Packaging/FontForge.static.spec \
README \
- uthash/src \
$(NULL)
#--------------------------------------------------------------------------
@@ -129,11 +127,6 @@
#--------------------------------------------------------------------------
-uthash/src:
- if [ ! -e uthash/src ]; then \
- if [ -e uthash ] ; then rm -r uthash ; fi ; \
- git clone https://github.com/troydhanson/uthash ; \
- fi ;
# We import a selection of targets from Frank's standard packaging Makefile.

View file

@ -13072,6 +13072,8 @@ in
libunibreak = callPackage ../development/libraries/libunibreak { };
libuninameslist = callPackage ../development/libraries/libuninameslist { };
libunique = callPackage ../development/libraries/libunique { };
libunique3 = callPackage ../development/libraries/libunique/3.x.nix { };