2008-04-24 19:00:28 +02:00
|
|
|
args : with args;
|
|
|
|
rec {
|
|
|
|
src = fetchurl {
|
|
|
|
url = http://mesh.dl.sourceforge.net/sourceforge/pidgin-latex/pidgin-latex-1.2.1.tar.bz2;
|
|
|
|
sha256 = "19h76fwsx5y30l5wda2930k10r385aipngfljz5bdi7b9y52lii7";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [texLive pkgconfig gtk imagemagick glib pidgin which];
|
|
|
|
configureFlags = [];
|
|
|
|
installFlags = [
|
|
|
|
"PREFIX=$out"
|
|
|
|
];
|
|
|
|
|
2009-05-20 01:25:58 +02:00
|
|
|
preBuild = fullDepEntry (''
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p $out/bin
|
2008-04-24 19:00:28 +02:00
|
|
|
ln -s $(which convert) $out/bin
|
2008-06-08 22:06:46 +02:00
|
|
|
ln -s $(which xelatex) $out/bin
|
2008-04-24 19:00:28 +02:00
|
|
|
ln -s $(which dvips) $out/bin
|
2008-06-08 22:06:46 +02:00
|
|
|
|
|
|
|
sed -e 's/-Wl,-soname//' -i Makefile
|
|
|
|
sed -e 's/\(PATH("\)latex/\1xelatex/' -i LaTeX.c
|
|
|
|
sed -e 's/|| execute(cmddvips, dvipsopts, 10) //' -i LaTeX.c
|
|
|
|
sed -e 's/ strcat([*]file_ps, "[.]ps");/ strcat(*file_ps, ".pdf");/' -i LaTeX.c
|
|
|
|
sed -e 's/\([*]convertopts\[5\]=[{]"\)\(\\"",\)/\1 -trim \2/' -i LaTeX.c
|
|
|
|
sed -e 's/\(#define HEADER ".*\)12pt\(.*\)"/\116pt\2\\\\usepackage{fontspec}\\\\usepackage{xunicode}"/' -i LaTeX.h
|
|
|
|
'') ["minInit" "addInputs" "defEnsureDir" "doUnpack"];
|
|
|
|
|
2009-05-20 01:25:58 +02:00
|
|
|
postInstall = fullDepEntry (''
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p $out/lib
|
|
|
|
mkdir -p $out/share/pidgin-latex
|
2008-06-08 22:06:46 +02:00
|
|
|
ln -s ../../lib/pidgin/LaTeX.so $out/share/pidgin-latex
|
|
|
|
'') ["minInit" "defEnsureDir" "doMakeInstall"];
|
2008-04-24 19:00:28 +02:00
|
|
|
|
|
|
|
/* doConfigure should be specified separately */
|
2008-06-08 22:06:46 +02:00
|
|
|
phaseNames = [ "preBuild" "doMakeInstall" "postInstall"];
|
2008-04-24 19:00:28 +02:00
|
|
|
|
|
|
|
name = "pidgin-latex-1.2.1";
|
|
|
|
meta = {
|
|
|
|
description = "LaTeX rendering plugin for Pidgin IM";
|
|
|
|
priority = "10";
|
|
|
|
};
|
|
|
|
}
|