2010-07-28 11:55:54 +00:00
|
|
|
{ stdenv, fetchurl, perl, freetype }:
|
|
|
|
|
2009-04-14 12:27:42 +00:00
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "ttf2pt1-3.4.4";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = http://prdownloads.sourceforge.net/ttf2pt1/ttf2pt1-3.4.4.tgz;
|
|
|
|
sha256 = "1l718n4k4widx49xz7qrj4mybzb8q67kp2jw7f47604ips4654mf";
|
|
|
|
};
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
find -type f | xargs sed -i 's@/usr/bin/perl@${perl}/bin/perl@'
|
|
|
|
ensureDir $out
|
|
|
|
sed -e 's/chown/true/' \
|
|
|
|
-e 's/chgrp/true/' \
|
|
|
|
-e 's@^CFLAGS_FT =.*@CFLAGS_FT=-DUSE_FREETYPE -I${freetype}/include/freetype2@' \
|
|
|
|
-i scripts/{inst_dir,inst_file} Makefile
|
|
|
|
makeFlags="INSTDIR=$out OWNER=`id -u`"
|
|
|
|
'';
|
|
|
|
|
2010-07-28 11:55:54 +00:00
|
|
|
buildInputs = [ freetype ];
|
|
|
|
|
2009-04-14 12:27:42 +00:00
|
|
|
patches = ./gentoo-makefile.patch; # also contains the freetype patch
|
|
|
|
|
|
|
|
meta = {
|
2010-07-28 11:55:54 +00:00
|
|
|
description = "True Type to Postscript Type 3 converter, fpdf";
|
|
|
|
homepage = "http://ttf2pt1.sourceforge.net/index.html";
|
|
|
|
license = "ttf2pt1";
|
2009-04-14 12:27:42 +00:00
|
|
|
};
|
|
|
|
}
|