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