2010-07-28 12:55:54 +01:00
|
|
|
{ stdenv, fetchurl, perl, freetype }:
|
|
|
|
|
2009-04-14 13:27:42 +01:00
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "ttf2pt1-3.4.4";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2020-04-01 02:11:51 +01:00
|
|
|
url = "mirror://sourceforge/ttf2pt1/ttf2pt1-3.4.4.tgz";
|
2009-04-14 13:27:42 +01:00
|
|
|
sha256 = "1l718n4k4widx49xz7qrj4mybzb8q67kp2jw7f47604ips4654mf";
|
|
|
|
};
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
find -type f | xargs sed -i 's@/usr/bin/perl@${perl}/bin/perl@'
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $out
|
2009-04-14 13:27:42 +01:00
|
|
|
sed -e 's/chown/true/' \
|
|
|
|
-e 's/chgrp/true/' \
|
2016-04-16 17:52:29 +01:00
|
|
|
-e 's@^CFLAGS_FT =.*@CFLAGS_FT=-DUSE_FREETYPE -I${freetype.dev}/include/freetype2@' \
|
2009-04-14 13:27:42 +01:00
|
|
|
-i scripts/{inst_dir,inst_file} Makefile
|
|
|
|
makeFlags="INSTDIR=$out OWNER=`id -u`"
|
|
|
|
'';
|
|
|
|
|
2010-07-28 12:55:54 +01:00
|
|
|
buildInputs = [ freetype ];
|
2012-12-28 18:20:09 +00:00
|
|
|
nativeBuildInputs = [ perl ];
|
2010-07-28 12:55:54 +01:00
|
|
|
|
2009-04-14 13:27:42 +01:00
|
|
|
patches = ./gentoo-makefile.patch; # also contains the freetype patch
|
|
|
|
|
|
|
|
meta = {
|
2010-07-28 12:55:54 +01:00
|
|
|
description = "True Type to Postscript Type 3 converter, fpdf";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://ttf2pt1.sourceforge.net/index.html";
|
2010-07-28 12:55:54 +01:00
|
|
|
license = "ttf2pt1";
|
2016-08-02 18:50:55 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2009-04-14 13:27:42 +01:00
|
|
|
};
|
|
|
|
}
|