summaryrefslogtreecommitdiffstats
path: root/arch/master/trinity-poppler-qt3
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-07-10 21:32:26 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-07-10 21:32:26 -0500
commit6848d2bd98a338151ca1fb48370358085d0c8997 (patch)
treea1289f3493c46a8bcdea99416a312d56e5e4b2c1 /arch/master/trinity-poppler-qt3
parent9b2075d9b89fc628c447fbb98f43ef72e4a9c81d (diff)
downloadtde-packaging-6848d2bd98a338151ca1fb48370358085d0c8997.tar.gz
tde-packaging-6848d2bd98a338151ca1fb48370358085d0c8997.zip
Added arch directory for cmorrison
Diffstat (limited to 'arch/master/trinity-poppler-qt3')
-rw-r--r--arch/master/trinity-poppler-qt3/PKGBUILD65
-rw-r--r--arch/master/trinity-poppler-qt3/poppler-bindings.patch176
2 files changed, 241 insertions, 0 deletions
diff --git a/arch/master/trinity-poppler-qt3/PKGBUILD b/arch/master/trinity-poppler-qt3/PKGBUILD
new file mode 100644
index 000000000..30863e299
--- /dev/null
+++ b/arch/master/trinity-poppler-qt3/PKGBUILD
@@ -0,0 +1,65 @@
+# Maintainer: Peter Lewis <plewis@aur.archlinux.org>
+# Contributor: Jan de Groot <jgc@archlinux.org>
+# 2010-03-11 Modified by catweazle for poppler 0.12.4
+# 2010-06-23 Modified by catweazle for poppler 0.14.0
+# 2010-10-16 Modified by rankin for poppler 0.14.4
+# 2010-10-16 Modified by rankin for poppler 0.14.5
+
+pkgbase=trinity
+pkgname=trinity-poppler-qt3
+pkgver=0.16.4
+pkgrel=3
+pkgdesc="Trinity - Poppler Qt3 bindings"
+arch=(i686 x86_64)
+license=('GPL')
+depends=('trinity-qt3' "poppler>=${pkgver}")
+makedepends=('pkgconfig')
+provides=('trinity-poppler-qt3' 'poppler-qt3')
+conflicts=('poppler-qt3')
+replaces=('poppler-qt3')
+options=('libtool' '!strip')
+url="http://poppler.freedesktop.org/"
+source=(http://poppler.freedesktop.org/poppler-${pkgver/trinity-/}.tar.gz
+ poppler-bindings.patch)
+sha256sums=('0e48e54d6e6d7269f049cf9d060e3ed078cad69808bda8a6da285a7b41c3a2a6'
+ '0f9fa33dca271c6c0e31d66cce1847099b63c1443a002aa9bde99a8cb20ad770')
+
+build() {
+
+ # set default Qt dir
+ _qtdir=/opt/qt
+
+ # source qt3 profile.d/qt3.sh
+ if [[ -r /etc/profile.d/qt3.sh ]]; then
+ . /etc/profile.d/qt3.sh
+ [[ -n $QTDIR ]] && _qtdir=$QTDIR
+ else
+ [[ ${PATH%%:*} =~ ${_qtdir}/bin ]] || export PATH=${_qtdir}/bin:$PATH
+ fi
+
+ cd "${srcdir}/poppler-${pkgver}"
+
+ patch -Np2 -i ../poppler-bindings.patch
+
+ libtoolize --force --copy
+ AT_M4DIR="m4" autoreconf -i
+ ./configure --prefix=${_qtdir} --sysconfdir=/etc \
+ --localstatedir=/var --disable-static \
+ --enable-zlib \
+ --enable-libjpeg \
+ --enable-cairo-output \
+ --enable-poppler-qt \
+ --disable-poppler-glib \
+ --disable-gtk-test \
+ --disable-poppler-qt4
+ sed -i -e 's|^LDFLAGS =|LDFLAGS = -L${_qtdir}/lib -lqt-mt|' qt/Makefile
+ pushd poppler
+ make libpoppler-cairo.la
+ popd
+ make
+}
+
+package() {
+ cd "${srcdir}/poppler-${pkgver}"
+ make DESTDIR="${pkgdir}" install
+}
diff --git a/arch/master/trinity-poppler-qt3/poppler-bindings.patch b/arch/master/trinity-poppler-qt3/poppler-bindings.patch
new file mode 100644
index 000000000..475418332
--- /dev/null
+++ b/arch/master/trinity-poppler-qt3/poppler-bindings.patch
@@ -0,0 +1,176 @@
+--- src/poppler-0.14.0//Makefile.am 2010-03-15 15:25:51.000000000 -0400
++++ patch/Makefile.am 2010-06-23 22:07:12.000000000 -0400
+@@ -34,7 +34,7 @@
+ utils_subdir = utils
+ endif
+
+-SUBDIRS = goo fofi $(splash_subdir) poppler $(utils_subdir) $(glib_subdir) $(qt_subdir) test $(qt4_subdir) $(cpp_subdir)
++SUBDIRS = $(glib_subdir) $(qt_subdir) $(qt4_subdir)
+
+ EXTRA_DIST = \
+ README-XPDF \
+@@ -46,13 +46,9 @@
+
+ pkgconfigdir = $(libdir)/pkgconfig
+ pkgconfig_DATA = \
+- poppler.pc \
+- $(cairo_pc_file) \
+- $(splash_pc_file) \
+ $(glib_pc_file) \
+ $(qt_pc_file) \
+- $(qt4_pc_file) \
+- $(cpp_pc_file)
++ $(qt4_pc_file)
+
+ # Add CMake buildsystem files here so they get added on make dist
+ EXTRA_DIST += \
+--- src/poppler-0.14.0//glib/Makefile.am 2010-06-08 15:18:44.000000000 -0400
++++ patch/glib_Makefile.am 2010-06-23 22:01:39.000000000 -0400
+@@ -67,7 +67,7 @@
+ poppler-private.h
+
+ libpoppler_glib_la_LIBADD = \
+- $(top_builddir)/poppler/libpoppler.la \
++ -lpoppler \
+ $(top_builddir)/poppler/libpoppler-cairo.la \
+ $(POPPLER_GLIB_LIBS) \
+ $(GDK_LIBS) \
+@@ -83,7 +83,7 @@
+ test-poppler-glib.cc
+
+ test_poppler_glib_LDADD = \
+- $(top_builddir)/poppler/libpoppler.la \
++ -lpoppler \
+ libpoppler-glib.la \
+ $(POPPLER_GLIB_LIBS) \
+ $(GDK_LIBS) \
+--- src/poppler-0.14.0//glib/demo/Makefile.am 2010-02-16 17:11:06.000000000 -0500
++++ patch/glib_demo_Makefile.am 2010-06-23 21:52:33.000000000 -0400
+@@ -49,5 +49,5 @@
+
+ LDADD = \
+ $(top_builddir)/glib/libpoppler-glib.la \
+- $(top_builddir)/poppler/libpoppler.la \
++ -lpoppler \
+ $(GTK_TEST_LIBS)
+--- src/poppler-0.14.0//glib/reference/Makefile.am 2010-01-16 18:43:07.000000000 -0500
++++ patch/glib_reference_Makefile.am 2010-06-23 21:53:36.000000000 -0400
+@@ -73,7 +73,7 @@
+ $(GDK_CFLAGS) \
+ $(FREETYPE_CFLAGS)
+
+-GTKDOC_LIBS=$(top_builddir)/poppler/libpoppler.la \
++GTKDOC_LIBS=-lpoppler \
+ $(top_builddir)/glib/libpoppler-glib.la \
+ $(POPPLER_GLIB_LIBS) \
+ $(FREETYPE_LIBS) \
+--- src/poppler-0.14.0//qt/Makefile.am 2010-03-27 09:08:46.000000000 -0400
++++ patch/qt_Makefile.am 2010-06-23 21:54:50.000000000 -0400
+@@ -25,7 +25,7 @@
+ poppler-private.h
+
+ libpoppler_qt_la_LIBADD = \
+- $(top_builddir)/poppler/libpoppler.la \
++ -lpoppler \
+ $(POPPLER_QT_LIBS) \
+ $(FREETYPE_LIBS) \
+ $(FONTCONFIG_LIBS)
+@@ -42,7 +42,7 @@
+ test-poppler-qt.cpp
+
+ test_poppler_qt_LDADD = \
+- $(top_builddir)/poppler/libpoppler.la \
++ -lpoppler \
+ libpoppler-qt.la \
+ $(libqt3_LIBS) \
+ $(FREETYPE_LIBS)
+--- src/poppler-0.14.0//qt4/demos/Makefile.am 2010-01-16 18:43:07.000000000 -0500
++++ patch/qt4_demos_Makefile.am 2010-06-23 21:55:38.000000000 -0400
+@@ -7,7 +7,7 @@
+ $(POPPLER_QT4_CFLAGS)
+
+ LDADDS = \
+- $(top_builddir)/poppler/libpoppler.la \
++ -lpoppler \
+ $(top_builddir)/qt4/src/libpoppler-qt4.la \
+ $(FONTCONFIG_LIBS) \
+ $(POPPLER_QT4_LIBS)
+--- src/poppler-0.14.0//qt4/src/Makefile.am 2010-06-08 15:28:43.000000000 -0400
++++ patch/qt4_src_Makefile.am 2010-06-23 21:56:14.000000000 -0400
+@@ -52,7 +52,7 @@
+ poppler-page-transition-private.h
+
+ libpoppler_qt4_la_LIBADD = \
+- $(top_builddir)/poppler/libpoppler.la \
++ -lpoppler \
+ $(top_builddir)/poppler/libpoppler-arthur.la \
+ $(FONTCONFIG_LIBS) \
+ $(POPPLER_QT4_LIBS)
+--- src/poppler-0.14.0//qt4/tests/Makefile.am 2010-01-16 18:43:07.000000000 -0500
++++ patch/qt4_tests_Makefile.am 2010-06-23 21:57:00.000000000 -0400
+@@ -7,7 +7,7 @@
+ $(POPPLER_QT4_CFLAGS)
+
+ LDADDS = \
+- $(top_builddir)/poppler/libpoppler.la \
++ -lpoppler \
+ $(top_builddir)/qt4/src/libpoppler-qt4.la \
+ $(FONTCONFIG_LIBS) \
+ $(POPPLER_QT4_LIBS)
+--- src/poppler-0.14.0//test/Makefile.am 2010-01-16 18:43:07.000000000 -0500
++++ patch/test_Makefile.am 2010-06-23 21:58:59.000000000 -0400
+@@ -53,14 +53,14 @@
+ gtk-splash-test.cc
+
+ gtk_splash_test_LDADD = \
+- $(top_builddir)/poppler/libpoppler.la \
++ -lpoppler \
+ $(GTK_TEST_LIBS)
+
+ gtk_cairo_test_SOURCES = \
+ gtk-cairo-test.cc
+
+ gtk_cairo_test_LDADD = \
+- $(top_builddir)/poppler/libpoppler.la \
++ -lpoppler \
+ $(top_builddir)/glib/libpoppler-glib.la \
+ $(CAIRO_LIBS) \
+ $(GTK_TEST_LIBS) \
+@@ -71,7 +71,7 @@
+
+ pdf_inspector_LDADD = \
+ $(top_builddir)/poppler/libpoppler-cairo.la \
+- $(top_builddir)/poppler/libpoppler.la \
++ -lpoppler \
+ $(CAIRO_LIBS) \
+ $(FREETYPE_LIBS) \
+ $(GTK_TEST_LIBS) \
+@@ -82,7 +82,7 @@
+ perf-test-preview-dummy.cc
+
+ perf_test_LDADD = \
+- $(top_builddir)/poppler/libpoppler.la \
++ -lpoppler \
+ $(FREETYPE_LIBS) \
+ $(X_EXTRA_LIBS)
+
+@@ -90,7 +90,7 @@
+ pdf-fullrewrite.cc
+
+ pdf_fullrewrite_LDADD = \
+- $(top_builddir)/poppler/libpoppler.la
++ -lpoppler
+
+ EXTRA_DIST = \
+ pdf-operators.c \
+--- src/poppler-0.14.0//utils/Makefile.am 2010-01-16 18:43:07.000000000 -0500
++++ patch/utils_Makefile.am 2010-06-23 21:59:28.000000000 -0400
+@@ -20,7 +20,7 @@
+ $(ABIWORD_CFLAGS)
+
+ LDADD = \
+- $(top_builddir)/poppler/libpoppler.la \
++ -lpoppler \
+ $(UTILS_LIBS) \
+ $(FONTCONFIG_LIBS)
+