mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-15 10:27:58 +00:00
Added possibility to enable SVG in ImageMagick, updated pidgin-latex, added missed xorgserver xkb patch.
svn path=/nixpkgs/trunk/; revision=9623
This commit is contained in:
parent
f38d6d0f15
commit
61f4326752
@ -1,6 +1,5 @@
|
||||
{stdenv, fetchurl, bzip2, freetype, graphviz, ghostscript,
|
||||
libjpeg, libpng, libtiff, libX11, libxml2, zlib}:
|
||||
stdenv.mkDerivation {
|
||||
args: with args;
|
||||
(stdenv.mkDerivation ({
|
||||
name = "ImageMagick-6.3.5";
|
||||
|
||||
src = fetchurl {
|
||||
@ -9,8 +8,16 @@ stdenv.mkDerivation {
|
||||
};
|
||||
|
||||
configureFlags = " --with-dots --with-gs-font-dir="+ ghostscript +
|
||||
"/share/ghostscript/fonts --with-gslib ";
|
||||
"/share/ghostscript/fonts --with-gslib " +(
|
||||
if args ? tetex then " --with-frozenpaths " else ""
|
||||
);
|
||||
|
||||
buildInputs = [bzip2 freetype ghostscript graphviz libjpeg libpng
|
||||
libtiff libX11 libxml2 zlib ];
|
||||
}
|
||||
libtiff libX11 libxml2 zlib ] ++ (if args ? tetex then [args.tetex] else [])
|
||||
++ (if args ? librsvg then [args.librsvg] else [])
|
||||
;
|
||||
} // (if args ? tetex then {
|
||||
preConfigure = "
|
||||
export DVIDecodeDelegate=${args.tetex}/bin/dvips
|
||||
";
|
||||
} else {})))
|
||||
|
@ -3,16 +3,20 @@
|
||||
stdenv.mkDerivation {
|
||||
name = "pidgin-latex";
|
||||
|
||||
src = fetchurl {
|
||||
url = http://tapas.affenbande.org/pidgin-latex.tgz;
|
||||
md5 = "12509b38f7a92bb22d565cc73cbd83c7";
|
||||
};
|
||||
src =
|
||||
fetchurl {
|
||||
url = http://tapas.affenbande.org/pidgin-latex/pidgin-latex-0.9.tgz;
|
||||
sha256 = "1yqd3qgxd3n8hm60qg7yv7j1crr6f3d4yrdpgwdpw2pyf92p8nxp";
|
||||
};
|
||||
|
||||
preBuild = "sed -e '/^PREFIX/d' -i Makefile ;
|
||||
sed -e 's@/bin/bash@/var/run/current-system/sw&@; s@/dev/stdin@/proc/self/fd/0@' -i pidgin-latex-convert.sh;
|
||||
sed -e 's@^latex.*@pdf& ; if let \$?; then rm /tmp/pidgin-latex-tmp.png; exit 1; fi; @' -i pidgin-latex-convert.sh ;
|
||||
sed -e 's@[.]dvi@.pdf@' -i pidgin-latex-convert.sh;
|
||||
";
|
||||
preBuild = "
|
||||
sed -e '/^PREFIX/d' -i Makefile ;
|
||||
sed -e 's@/usr/bin/latex@${tetex}/bin/pdflatex@g' -i pidgin-latex.h
|
||||
sed -e 's@/usr/bin/convert@${imagemagick}/bin/convert@g' -i pidgin-latex.h
|
||||
sed -e 's@.*convert_path.*@const gchar *convert = CONVERT_PATH;@'
|
||||
sed -e 's@.*latex_path.*@const gchar *convert = LATEX_PATH;@'
|
||||
sed -e 's/%s.dvi/%s.pdf/' -i pidgin-latex.c
|
||||
";
|
||||
|
||||
makeFlags="PREFIX=\$(out)";
|
||||
|
||||
|
20
pkgs/servers/x11/xorg/xorgserver-xkb-leds.patch
Normal file
20
pkgs/servers/x11/xorg/xorgserver-xkb-leds.patch
Normal file
@ -0,0 +1,20 @@
|
||||
--- xorg-server-1.4/dix/devices.c.orig 2007-10-19 17:04:51.000000000 -0200
|
||||
+++ xorg-server-1.4/dix/devices.c 2007-10-23 17:50:38.000000000 -0200
|
||||
@@ -294,7 +294,17 @@ CoreKeyboardBell(int volume, DeviceIntPt
|
||||
static void
|
||||
CoreKeyboardCtl(DeviceIntPtr pDev, KeybdCtrl *ctrl)
|
||||
{
|
||||
+#ifdef XKB
|
||||
+ if (!noXkbExtension) {
|
||||
+ DeviceIntPtr dev = (DeviceIntPtr)
|
||||
+ pDev->devPrivates[CoreDevicePrivatesIndex].ptr;
|
||||
+
|
||||
+ if (dev && dev->key && dev->key->xkbInfo && dev->key->xkbInfo->kbdProc)
|
||||
+ (*dev->key->xkbInfo->kbdProc)(dev, ctrl);
|
||||
+ }
|
||||
+#else
|
||||
return;
|
||||
+#endif
|
||||
}
|
||||
|
||||
/**
|
@ -3654,7 +3654,8 @@ rec {
|
||||
};
|
||||
|
||||
pidginlatex = import ../applications/networking/instant-messengers/pidgin-plugins/pidgin-latex {
|
||||
inherit fetchurl stdenv tetex pkgconfig imagemagick ghostscript pidgin;
|
||||
inherit fetchurl stdenv tetex pkgconfig ghostscript pidgin;
|
||||
imagemagick = imagemagickBig;
|
||||
inherit (gtkLibs) glib gtk;
|
||||
};
|
||||
|
||||
@ -3722,12 +3723,22 @@ rec {
|
||||
inherit (xlibs) libX11 libXft libXext libXinerama libXrandr;
|
||||
};
|
||||
|
||||
imagemagick = import ../applications/graphics/ImageMagick {
|
||||
inherit stdenv fetchurl bzip2 freetype graphviz
|
||||
ghostscript libjpeg libpng libtiff libxml2 zlib;
|
||||
inherit (xlibs) libX11;
|
||||
imagemagickFun = lib.sumArgs (import ../applications/graphics/ImageMagick) {
|
||||
inherit stdenv fetchurl;
|
||||
};
|
||||
|
||||
imagemagick = imagemagickFun {
|
||||
inherit bzip2 freetype graphviz ghostscript libjpeg libpng libtiff
|
||||
libxml2 zlib;
|
||||
inherit (xlibs) libX11;
|
||||
} null;
|
||||
|
||||
imagemagickBig = imagemagickFun {
|
||||
inherit bzip2 freetype graphviz ghostscript libjpeg libpng libtiff
|
||||
libxml2 zlib tetex librsvg;
|
||||
inherit (xlibs) libX11;
|
||||
} null;
|
||||
|
||||
inkscape = import ../applications/graphics/inkscape {
|
||||
inherit fetchurl perl perlXMLParser pkgconfig zlib
|
||||
popt libxml2 libxslt libpng boehmgc fontconfig gtkmm
|
||||
|
Loading…
Reference in New Issue
Block a user