diffpdf: init at 2.1.3

+71
+53
pkgs/applications/misc/diffpdf/default.nix
··· 1 + { stdenv, fetchurl, qt4, poppler_qt4 }: 2 + 3 + stdenv.mkDerivation rec { 4 + version = "2.1.3"; 5 + name = "diffpdf-${version}"; 6 + 7 + src = fetchurl { 8 + url = "http://www.qtrac.eu/${name}.tar.gz"; 9 + sha256 = "0cr468fi0d512jjj23r5flfzx957vibc9c25gwwhi0d773h2w566"; 10 + }; 11 + 12 + patches = [ ./fix_path_poppler_qt4.patch ]; 13 + 14 + buildInputs = [ qt4 poppler_qt4 ]; 15 + 16 + preBuild = '' 17 + substituteInPlace diffpdf.pro --replace @@NIX_POPPLER_QT4@@ ${poppler_qt4} 18 + [ -e "*.qm" ] && make clean 19 + lrelease diffpdf.pro 20 + qmake -makefile PREFIX=\$out 21 + ''; 22 + 23 + installPhase = '' 24 + mkdir -p $out/bin $out/share/man/man1 25 + 26 + install -Dpm755 -D diffpdf $out/bin/diffpdf 27 + install -Dpm644 -D diffpdf.1 $out/share/man/man1/diffpdf.1 28 + 29 + install -dpm755 $out/share/doc/${name} $out/share/licenses/${name} $out/share/pixmaps $out/share/applications 30 + install -Dpm644 CHANGES README help.html $out/share/doc/${name}/ 31 + install -Dpm644 gpl-2.0.txt $out/share/licenses/${name}/ 32 + install -Dpm644 images/icon.png $out/share/pixmaps/${name}.png 33 + 34 + cat > $out/share/applications/diffpdf.desktop <<EOF 35 + [Desktop Entry] 36 + Type=Application 37 + Version=1.0 38 + Name=diffpdf 39 + Comment=PDF diffing tool 40 + Exec=$out/bin/diffpdf 41 + Terminal=false 42 + EOF 43 + ''; 44 + 45 + meta = { 46 + homepage = http://www.qtrac.eu/diffpdfc.html; 47 + description = "Tool for diffing pdf files visually or textually"; 48 + license = stdenv.lib.licenses.gpl2Plus; 49 + maintainers = with stdenv.lib.maintainers; [ tstrobel ]; 50 + platforms = with stdenv.lib.platforms; linux; 51 + inherit version; 52 + }; 53 + }
+16
pkgs/applications/misc/diffpdf/fix_path_poppler_qt4.patch
··· 1 + diff -uNr diffpdf-2.1.3/diffpdf.pro diffpdf-2.1.3-new/diffpdf.pro 2 + --- diffpdf-2.1.3/diffpdf.pro 2013-10-15 09:01:22.000000000 +0200 3 + +++ diffpdf-2.1.3-new/diffpdf.pro 2015-07-07 23:13:36.445572148 +0200 4 + @@ -47,9 +47,9 @@ 5 + INCLUDEPATH += /c/poppler_lib/include/poppler/qt4 6 + LIBS += -Wl,-rpath -Wl,/c/poppler_lib/bin -Wl,-L/c/poppler_lib/bin 7 + } else { 8 + - exists(/usr/include/poppler/qt4) { 9 + - INCLUDEPATH += /usr/include/poppler/cpp 10 + - INCLUDEPATH += /usr/include/poppler/qt4 11 + + exists(@@NIX_POPPLER_QT4@@/include/poppler/qt4) { 12 + + INCLUDEPATH += @@NIX_POPPLER_QT4@@/include/poppler/cpp 13 + + INCLUDEPATH += @@NIX_POPPLER_QT4@@/include/poppler/qt4 14 + } else { 15 + INCLUDEPATH += /usr/local/include/poppler/cpp 16 + INCLUDEPATH += /usr/local/include/poppler/qt4
+2
pkgs/top-level/all-packages.nix
··· 12136 12136 openjpeg = openjpeg_2_0; 12137 12137 }; 12138 12138 12139 + diffpdf = callPackage ../applications/misc/diffpdf { }; 12140 + 12139 12141 mypaint = callPackage ../applications/graphics/mypaint { }; 12140 12142 12141 12143 mythtv = callPackage ../applications/video/mythtv { };