From a33dc947c62feafb56cd8919f066c57d13f1e876 Mon Sep 17 00:00:00 2001 From: Armijn Hemel Date: Sun, 18 Jun 2006 11:58:00 +0000 Subject: [PATCH] disable local build of pangoxsl, add patch to remove "pangoxsl" from SUBDIRS, otherwise it will still try to build the local pangoxsl (and fail) svn path=/nixpkgs/trunk/; revision=5468 --- pkgs/tools/typesetting/xmlroff/default.nix | 11 ++++++++--- pkgs/tools/typesetting/xmlroff/xmlroff.patch | 12 ++++++++++++ 2 files changed, 20 insertions(+), 3 deletions(-) create mode 100644 pkgs/tools/typesetting/xmlroff/xmlroff.patch diff --git a/pkgs/tools/typesetting/xmlroff/default.nix b/pkgs/tools/typesetting/xmlroff/default.nix index fc86566b483..3c2eb728ec7 100644 --- a/pkgs/tools/typesetting/xmlroff/default.nix +++ b/pkgs/tools/typesetting/xmlroff/default.nix @@ -2,10 +2,11 @@ , glib, pango, libgnomeprint, pangoxsl, gtk}: stdenv.mkDerivation { - name = "xmlroff-0.3.5"; + #name = "xmlroff-0.3.5"; + name = "xmlroff-0.3.98"; src = fetchurl { - url = http://nix.cs.uu.nl/dist/tarballs/xmlroff-0.3.5.tar.gz; - md5 = "4f03dffa0451c28e7c777f6ee1fa38da"; + url = http://surfnet.dl.sourceforge.net/sourceforge/xmlroff/xmlroff-0.3.98.tar.gz; + md5 = "6c1d05b6480e98870751bf9102ea68e2"; }; buildInputs = [ @@ -19,4 +20,8 @@ stdenv.mkDerivation { gtk popt ]; + + configureFlags = "--disable-pangoxsl"; + + patches = [./xmlroff.patch]; } diff --git a/pkgs/tools/typesetting/xmlroff/xmlroff.patch b/pkgs/tools/typesetting/xmlroff/xmlroff.patch new file mode 100644 index 00000000000..16bd7b0a76d --- /dev/null +++ b/pkgs/tools/typesetting/xmlroff/xmlroff.patch @@ -0,0 +1,12 @@ +diff -ruN xmlroff-0.3.98/Makefile.in xmlroff-0.3.98.new/Makefile.in +--- xmlroff-0.3.98/Makefile.in 2006-05-30 17:46:37.000000000 +0200 ++++ xmlroff-0.3.98.new/Makefile.in 2006-06-18 13:47:37.000000000 +0200 +@@ -288,7 +288,7 @@ + subdirs = @subdirs@ + sysconfdir = @sysconfdir@ + target_alias = @target_alias@ +-SUBDIRS = pangoxsl libfo area fo datatype property expr util . examples docs ++SUBDIRS = libfo area fo datatype property expr util . examples docs + @PLATFORM_WIN32_TRUE@no_undefined = -no-undefined + INCLUDES = \ + -DG_LOG_DOMAIN=\"libfo\" \