poppler: split out -qt4 subpkgs into its own pkg to avoid circular dep with qt/cups.

This commit is contained in:
Juan RP 2012-05-17 09:33:37 +02:00
parent 1dd3230540
commit f3368e4434
8 changed files with 33 additions and 26 deletions

View file

@ -1 +0,0 @@
poppler

View file

@ -1 +0,0 @@
poppler

1
srcpkgs/poppler-qt4/depends Symbolic link
View file

@ -0,0 +1 @@
../poppler/depends

View file

@ -5,13 +5,13 @@ long_desc="${long_desc}
This package contains development files for QT 4 bindings."
Add_dependency run poppler-devel ">=${version}"
Add_dependency run poppler-qt4 ">=${version}"
revision=1
revision=2
do_install()
{
do_install() {
vmove usr/include/poppler/qt4 usr/include/poppler
vmove usr/lib/libpoppler-qt4.a usr/lib
vmove usr/lib/pkgconfig/poppler-qt4.pc usr/lib
vmove usr/lib/pkgconfig/poppler-qt4.pc usr/lib/pkgconfig
rm -rf ${SRCPKGDESTDIR}/usr/include
}

View file

@ -4,13 +4,13 @@ libpng14.so.14
libcurl.so.4
libfreetype.so.6
libfontconfig.so.1
libQtGui.so.4
libQtXml.so.4
libQtCore.so.4
libz.so.1
libtiff.so.5
libstdc++.so.6
libm.so.6
libc.so.6
libgcc_s.so.1
libtiff.so.5
libpoppler.so.19
libQtGui.so.4
libQtXml.so.4
libQtCore.so.4

View file

@ -0,0 +1,21 @@
# Template file for 'poppler-qt4'.
. ${XBPS_SRCPKGDIR}/poppler/template
pkgname=poppler-qt4
wrksrc="poppler-${version}"
short_desc="${short_desc} -- QT bindings"
long_desc="${long_desc}
This package contains the poppler QT 4 bindings."
configure_args="${configure_args} --disable-poppler-glib --enable-poppler-qt4
--disable-poppler-cpp --disable-utils --disable-gtk-test"
subpackages="poppler-qt4-devel"
Add_dependency build qt-devel
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
}

View file

@ -1,12 +0,0 @@
# Template file for 'poppler-qt4'.
#
short_desc="${short_desc} (QT bindings)"
long_desc="${long_desc}
This package contains ${sourcepkg} QT 4 bindings."
revision=1
do_install() {
vmove "usr/lib/libpoppler-qt4.so*" usr/lib
}

View file

@ -7,7 +7,7 @@ distfiles="${homepage}/$pkgname-$version.tar.gz"
build_style=gnu-configure
configure_args="--enable-zlib --enable-libcurl --enable-libjpeg
--enable-libtiff --disable-libopenjpeg --enable-cairo-output
--enable-xpdf-headers"
--enable-xpdf-headers --disable-poppler-qt4"
short_desc="PDF rendering library"
maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-2"
@ -24,7 +24,7 @@ long_desc="
subpackages="$pkgname-glib $pkgname-glib-devel $pkgname-utils"
subpackages="$subpackages $pkgname-cpp $pkgname-cpp-devel"
subpackages="$subpackages $pkgname-qt4 $pkgname-qt4-devel $pkgname-devel"
subpackages="$subpackages $pkgname-devel"
Add_dependency build pkg-config
Add_dependency build gobject-introspection
@ -32,4 +32,3 @@ Add_dependency build tiff-devel
Add_dependency build lcms-devel
Add_dependency build libcurl-devel
Add_dependency build gtk+-devel
Add_dependency build qt-devel