poppler: Add support for gobject-introspection
This optionally adds support for GI, because it's needed for paperwork-backend. The new poppler_gi attribute is also marked as lowPrio so that users won't accidentally install it. Signed-off-by: aszlig <aszlig@redmoonstudios.org> Cc: @ttuegel
This commit is contained in:
parent
0409ce2330
commit
f805209a78
@ -3,6 +3,7 @@
|
||||
, withData ? false, poppler_data
|
||||
, qt4Support ? false, qt4 ? null
|
||||
, qt5Support ? false, qtbase ? null
|
||||
, introspectionSupport ? false, gobjectIntrospection ? null
|
||||
, utils ? false
|
||||
, minimal ? false, suffix ? "glib"
|
||||
}:
|
||||
@ -28,7 +29,8 @@ stdenv.mkDerivation rec {
|
||||
[ zlib freetype fontconfig libjpeg openjpeg ]
|
||||
++ optionals (!minimal) [ cairo lcms curl ]
|
||||
++ optional qt4Support qt4
|
||||
++ optional qt5Support qtbase;
|
||||
++ optional qt5Support qtbase
|
||||
++ optional introspectionSupport gobjectIntrospection;
|
||||
|
||||
nativeBuildInputs = [ pkgconfig ];
|
||||
|
||||
@ -47,7 +49,8 @@ stdenv.mkDerivation rec {
|
||||
"--disable-poppler-glib" "--disable-poppler-cpp"
|
||||
"--disable-libcurl"
|
||||
]
|
||||
++ optional (!utils) "--disable-utils" ;
|
||||
++ optional (!utils) "--disable-utils"
|
||||
++ optional introspectionSupport "--enable-introspection";
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
|
@ -8926,6 +8926,10 @@ in
|
||||
|
||||
poppler = callPackage ../development/libraries/poppler { lcms = lcms2; };
|
||||
|
||||
poppler_gi = lowPrio (poppler.override {
|
||||
introspectionSupport = true;
|
||||
});
|
||||
|
||||
poppler_min = poppler.override { # TODO: maybe reduce even more
|
||||
minimal = true;
|
||||
suffix = "min";
|
||||
|
Loading…
Reference in New Issue
Block a user