diff --git a/common/shlibs b/common/shlibs index ac84df07d4..9f939601ae 100644 --- a/common/shlibs +++ b/common/shlibs @@ -342,6 +342,7 @@ libpoppler.so.50 poppler-0.31.0_1 libpoppler-glib.so.8 poppler-glib-0.18.2_1 libpoppler-cpp.so.0 poppler-cpp-0.18.2_1 libpoppler-qt4.so.4 poppler-qt4-0.22.3_1 +libpoppler-qt5.so.1 poppler-qt5-0.31.0_1 libtcl8.6.so tcl-8.6.0_1 libtk8.6.so tk-8.6.1_3 libsqlite3.so.0 sqlite-3.6.13_1 diff --git a/srcpkgs/poppler-qt5-devel b/srcpkgs/poppler-qt5-devel new file mode 120000 index 0000000000..8cdcfdfe2b --- /dev/null +++ b/srcpkgs/poppler-qt5-devel @@ -0,0 +1 @@ +poppler-qt5 \ No newline at end of file diff --git a/srcpkgs/poppler-qt5/template b/srcpkgs/poppler-qt5/template new file mode 100644 index 0000000000..382f5004e6 --- /dev/null +++ b/srcpkgs/poppler-qt5/template @@ -0,0 +1,42 @@ +# Template file for 'poppler-qt5' +# +# THIS PKG MUST BE SYNCHRONIZED WITH "srcpkgs/poppler"; IT IS SPLITTED TO AVOID +# A CYCLIC DEPENDENCY: qt5 -> cups -> poppler -> qt5. +# +pkgname=poppler-qt5 +version=0.31.0 +revision=1 +wrksrc="poppler-${version}" +build_style=gnu-configure +configure_args="--enable-zlib --enable-libcurl --enable-libjpeg + --enable-libtiff --disable-libopenjpeg --enable-cairo-output + --enable-xpdf-headers --disable-gtk-test --disable-poppler-glib + --disable-poppler-qt4 --enable-poppler-qt5 --disable-poppler-cpp + --disable-utils --disable-static --disable-introspection" +hostmakedepends="pkg-config" +makedepends="libpng-devel>=1.6 tiff-devel lcms2-devel libcurl-devel + fontconfig-devel cairo-devel qt5-devel" +short_desc="PDF rendering library - Qt5 bindings" +maintainer="Juan RP " +license="GPL-2" +homepage="http://poppler.freedesktop.org" +distfiles="${homepage}/poppler-$version.tar.xz" +checksum=943290270dca390d8f14467d54b06a25d9d6f70dc5853b0a9b89c62f74570694 + +post_install() { + rm -f ${DESTDIR}/usr/lib/libpoppler.* + for f in poppler-cairo poppler-splash poppler; do + rm -f ${DESTDIR}/usr/lib/pkgconfig/${f}.pc + done +} + +poppler-qt5-devel_package() { + depends="poppler-devel>=${version} ${sourcepkg}-${version}_${revision}" + short_desc+=" - development files" + pkg_install() { + vmove usr/include/poppler/qt5 + vmove usr/lib/libpoppler-qt5.so + vmove usr/lib/pkgconfig/poppler-qt5.pc + rm -rf ${DESTDIR}/usr/include + } +} diff --git a/srcpkgs/poppler-qt5/update b/srcpkgs/poppler-qt5/update new file mode 100644 index 0000000000..53821bc929 --- /dev/null +++ b/srcpkgs/poppler-qt5/update @@ -0,0 +1 @@ +pkgname=poppler diff --git a/srcpkgs/poppler/template b/srcpkgs/poppler/template index d3d8cdfd24..2f2f989037 100644 --- a/srcpkgs/poppler/template +++ b/srcpkgs/poppler/template @@ -1,6 +1,6 @@ # Template file for 'poppler' # -# THIS PKG MUST BE SYNCHRONIZED WITH "srcpkgs/poppler-qt4". +# THIS PKG MUST BE SYNCHRONIZED WITH "srcpkgs/poppler-qt{4,5}". # pkgname=poppler version=0.31.0