[arch-commits] Commit in xpdf/repos (6 files)

Jan de Groot jgc at archlinux.org
Mon May 21 16:28:06 UTC 2012


    Date: Monday, May 21, 2012 @ 12:28:05
  Author: jgc
Revision: 159334

db-move: moved xpdf from [staging] to [testing] (i686)

Added:
  xpdf/repos/testing-i686/
  xpdf/repos/testing-i686/PKGBUILD
    (from rev 159319, xpdf/repos/staging-i686/PKGBUILD)
  xpdf/repos/testing-i686/char.patch
    (from rev 159319, xpdf/repos/staging-i686/char.patch)
  xpdf/repos/testing-i686/desktop
    (from rev 159319, xpdf/repos/staging-i686/desktop)
  xpdf/repos/testing-i686/install
    (from rev 159319, xpdf/repos/staging-i686/install)
Deleted:
  xpdf/repos/staging-i686/

------------+
 PKGBUILD   |   64 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 char.patch |   12 +++++++++++
 desktop    |    9 ++++++++
 install    |   11 ++++++++++
 4 files changed, 96 insertions(+)

Copied: xpdf/repos/testing-i686/PKGBUILD (from rev 159319, xpdf/repos/staging-i686/PKGBUILD)
===================================================================
--- testing-i686/PKGBUILD	                        (rev 0)
+++ testing-i686/PKGBUILD	2012-05-21 16:28:05 UTC (rev 159334)
@@ -0,0 +1,64 @@
+# $Id$
+# Maintainer: Gaetan Bisson <bisson at archlinux.org>
+# Contributor: tobias <tobias at archlinux.org>
+# Contributor: Sarah Hay <sarahhay at mb.sympatico.ca>
+
+pkgname=xpdf
+#pkgver=3.03_pl1
+pkgver=3.03
+pkgrel=2
+pkgdesc='Viewer for Portable Document Format (PDF) files'
+url='http://www.foolabs.com/xpdf/'
+license=('GPL2')
+arch=('i686' 'x86_64')
+depends=('lesstif' 'gsfonts' 'libxt')
+optdepends=('poppler: tools that used to be included in xpdf'
+            'desktop-file-utils: for desktop environments')
+#       "ftp://ftp.foolabs.com/pub/${pkgname}/${pkgname}-${pkgver%_*}pl1.patch"
+source=("ftp://ftp.foolabs.com/pub/${pkgname}/${pkgname}-${pkgver%_*}.tar.gz"
+        'char.patch'
+        'desktop')
+sha1sums=('499423e8a795e0efd76ca798239eb4d0d52fe248'
+          '5c471944685a6b24a2b0c0e000562d1a3263aeeb'
+          '3b6fe01636253676ffa0efe1b237a75af4721f6d')
+
+install=install
+backup=('etc/xpdfrc')
+
+build() {
+	cd "${srcdir}/${pkgname}-${pkgver%_*}"
+
+#	patch -p1 -i "../${pkgname}-${_srcver}pl1.patch"
+	patch -p1 -i ../char.patch
+
+	sed -i 's:/usr/share/fonts/type1/gsfonts:/usr/share/fonts/Type1:' xpdf/GlobalParams.cc
+	sed -i 's:times-medium-r-normal--16:times-medium-r-normal--14:' xpdf/XPDFViewer.cc # FS#14217
+
+	./configure \
+		--prefix=/usr \
+		--sysconfdir=/etc \
+		--mandir=/usr/share/man \
+		--enable-multithreaded \
+		--enable-wordlist \
+		--with-freetype2-library=/usr/lib \
+		--with-freetype2-includes=/usr/include/freetype2 \
+		--x-includes=/usr/include \
+		--with-Xm-library=/usr/lib \
+		--with-Xm-includes=/usr/include \
+
+	make
+}
+
+package() {
+	cd "${srcdir}/${pkgname}-${pkgver%_*}"
+
+	make DESTDIR="${pkgdir}" install
+
+	install -Dm644 ../desktop "${pkgdir}/usr/share/applications/xpdf.desktop"
+	install -Dm644 xpdf/xpdfIcon.xpm "${pkgdir}/usr/share/pixmaps/xpdf.xpm"
+
+	# stuff provided by poppler
+	for tool in pdfdetach pdffonts pdfimages pdfinfo pdftoppm pdftops pdftotext; do
+		rm "${pkgdir}/usr/bin/${tool}" "${pkgdir}/usr/share/man/man1/${tool}.1"
+	done
+}

Copied: xpdf/repos/testing-i686/char.patch (from rev 159319, xpdf/repos/staging-i686/char.patch)
===================================================================
--- testing-i686/char.patch	                        (rev 0)
+++ testing-i686/char.patch	2012-05-21 16:28:05 UTC (rev 159334)
@@ -0,0 +1,12 @@
+diff -aur old/xpdf/XPDFViewer.cc new/xpdf/XPDFViewer.cc
+--- old/xpdf/XPDFViewer.cc	2011-08-15 14:08:53.000000000 -0700
++++ new/xpdf/XPDFViewer.cc	2011-08-17 11:05:55.739431215 -0700
+@@ -1803,7 +1803,7 @@
+   menuPane = XmCreatePulldownMenu(toolBar, "zoomMenuPane", args, n);
+   for (i = 0; i < nZoomMenuItems; ++i) {
+     n = 0;
+-    s = XmStringCreateLocalized(zoomMenuInfo[i].label);
++    s = XmStringCreateLocalized((char *)zoomMenuInfo[i].label);
+     XtSetArg(args[n], XmNlabelString, s); ++n;
+     XtSetArg(args[n], XmNuserData, (XtPointer)i); ++n;
+     sprintf(buf, "zoom%d", i);

Copied: xpdf/repos/testing-i686/desktop (from rev 159319, xpdf/repos/staging-i686/desktop)
===================================================================
--- testing-i686/desktop	                        (rev 0)
+++ testing-i686/desktop	2012-05-21 16:28:05 UTC (rev 159334)
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Name=Xpdf
+Comment=Views Adobe PDF (acrobat) files
+Exec=xpdf
+Terminal=false
+Type=Application
+Icon=xpdf
+Categories=Office;
+MimeType=application/pdf;

Copied: xpdf/repos/testing-i686/install (from rev 159319, xpdf/repos/staging-i686/install)
===================================================================
--- testing-i686/install	                        (rev 0)
+++ testing-i686/install	2012-05-21 16:28:05 UTC (rev 159334)
@@ -0,0 +1,11 @@
+post_install() {
+	[[ -x /usr/bin/update-desktop-database ]] && update-desktop-database -q || true
+}
+
+post_upgrade() {
+	post_install
+}
+
+post_remove() {
+	post_install
+}




More information about the arch-commits mailing list