Merge pull request #39379 from flokli/pdf-quench

pdf-quench: init at 1.0.5
This commit is contained in:
Jörg Thalheim 2018-04-30 21:18:59 +01:00 committed by GitHub
commit c696ac9221
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 41 additions and 1 deletions

View File

@ -0,0 +1,36 @@
{ stdenv, fetchFromGitHub, pkgs, pythonPackages, wrapGAppsHook}:
pythonPackages.buildPythonApplication rec {
name = "pdf-quench-${version}";
version = "1.0.5";
src = fetchFromGitHub {
owner = "linuxerwang";
repo = "pdf-quench";
rev = "b72b3970b371026f9a7ebe6003581e8a63af98f6";
sha256 = "1rp9rlwr6rarcsxygv5x2c5psgwl6r69k0lsgribgyyla9cf2m7n";
};
nativeBuildInputs = [ wrapGAppsHook ];
buildInputs = with pkgs; [
gtk3
gobjectIntrospection
goocanvas2
poppler_gi
];
propagatedBuildInputs = with pythonPackages; [ pygobject3 pypdf2 ];
format = "other";
doCheck = false;
installPhase = ''
install -D -T -m 755 src/pdf_quench.py $out/bin/pdf-quench
'';
meta = with stdenv.lib; {
homepage = https://github.com/linuxerwang/pdf-quench;
description = "A visual tool for cropping pdf files";
platforms = platforms.linux;
maintainers = with maintainers; [ flokli ];
};
}

View File

@ -13,11 +13,13 @@ in stdenv.mkDerivation rec {
};
nativeBuildInputs = [ pkgconfig gettext gtk-doc python2 ];
buildInputs = [ gtk3 cairo glib ];
buildInputs = [ gtk3 cairo glib gobjectIntrospection ];
configureFlags = [
"--disable-python"
];
PKG_CONFIG_GOBJECT_INTROSPECTION_1_0_GIRDIR = "$(dev)/share/gir-1.0";
PKG_CONFIG_GOBJECT_INTROSPECTION_1_0_TYPELIBDIR = "$(out)/lib/girepository-1.0";
meta = with stdenv.lib; {
description = "Canvas widget for GTK+ based on the the Cairo 2D library";

View File

@ -4286,6 +4286,8 @@ with pkgs;
pdfmod = callPackage ../applications/misc/pdfmod { };
pdf-quench = callPackage ../applications/misc/pdf-quench { };
jbig2enc = callPackage ../tools/graphics/jbig2enc { };
pdfread = callPackage ../tools/graphics/pdfread {