From 49f0f8a9305b79a05518b1233cf5a3d5c7c94728 Mon Sep 17 00:00:00 2001 From: Thierry N Date: Wed, 12 Aug 2009 21:01:52 +0200 Subject: Ajout de xpdf#3.02-1 --- extra/xpdf/.footprint | 27 +++++++++++++++++++++++++++ extra/xpdf/.md5sum | 5 +++++ extra/xpdf/Pkgfile | 37 +++++++++++++++++++++++++++++++++++++ extra/xpdf/patch.patch | 21 +++++++++++++++++++++ extra/xpdf/xpdf.desktop | 9 +++++++++ 5 files changed, 99 insertions(+) create mode 100644 extra/xpdf/.footprint create mode 100644 extra/xpdf/.md5sum create mode 100644 extra/xpdf/Pkgfile create mode 100644 extra/xpdf/patch.patch create mode 100644 extra/xpdf/xpdf.desktop (limited to 'extra/xpdf') diff --git a/extra/xpdf/.footprint b/extra/xpdf/.footprint new file mode 100644 index 000000000..cb7505fbf --- /dev/null +++ b/extra/xpdf/.footprint @@ -0,0 +1,27 @@ +drwxr-xr-x root/root etc/ +-rw-r--r-- root/root etc/xpdfrc +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/bin/ +-rwxr-xr-x root/root usr/bin/pdffonts +-rwxr-xr-x root/root usr/bin/pdfimages +-rwxr-xr-x root/root usr/bin/pdfinfo +-rwxr-xr-x root/root usr/bin/pdftoppm +-rwxr-xr-x root/root usr/bin/pdftops +-rwxr-xr-x root/root usr/bin/pdftotext +-rwxr-xr-x root/root usr/bin/xpdf +drwxr-xr-x root/root usr/share/ +drwxr-xr-x root/root usr/share/applications/ +-rw-r--r-- root/root usr/share/applications/xpdf.desktop +drwxr-xr-x root/root usr/share/man/ +drwxr-xr-x root/root usr/share/man/man1/ +-rw-r--r-- root/root usr/share/man/man1/pdffonts.1.gz +-rw-r--r-- root/root usr/share/man/man1/pdfimages.1.gz +-rw-r--r-- root/root usr/share/man/man1/pdfinfo.1.gz +-rw-r--r-- root/root usr/share/man/man1/pdftoppm.1.gz +-rw-r--r-- root/root usr/share/man/man1/pdftops.1.gz +-rw-r--r-- root/root usr/share/man/man1/pdftotext.1.gz +-rw-r--r-- root/root usr/share/man/man1/xpdf.1.gz +drwxr-xr-x root/root usr/share/man/man5/ +-rw-r--r-- root/root usr/share/man/man5/xpdfrc.5.gz +drwxr-xr-x root/root usr/share/pixmaps/ +-rw-r--r-- root/root usr/share/pixmaps/xpdf.xpm diff --git a/extra/xpdf/.md5sum b/extra/xpdf/.md5sum new file mode 100644 index 000000000..f8b778e68 --- /dev/null +++ b/extra/xpdf/.md5sum @@ -0,0 +1,5 @@ +d5ba78f6aae7a58def6c2b4a73d6c59e patch.patch +599dc4cc65a07ee868cf92a667a913d2 xpdf-3.02.tar.gz +877118786dfe27d1b7aa5a6759cc6e45 xpdf-3.02pl1.patch +3a5cb165ae66781e0b21e6219ae06795 xpdf-3.02pl2.patch +6c606eeca046cc9f32835f98f635c084 xpdf.desktop diff --git a/extra/xpdf/Pkgfile b/extra/xpdf/Pkgfile new file mode 100644 index 000000000..4533c692e --- /dev/null +++ b/extra/xpdf/Pkgfile @@ -0,0 +1,37 @@ +# Description: Permet de visionner des documents PDF +# URL: http://www.foolabs.com/xpdf/ +# Maintainer: NuTyX core team +# Packager: thierryn1 at hispeed dot ch +# Depends on: lesstif + +name=xpdf +version=3.02 +release=1 +source=(http://gd.tuwien.ac.at/publishing/$name/$name-$version.tar.gz\ + ftp://ftp.foolabs.com/pub/$name/$name-${version}pl1.patch \ + ftp://ftp.foolabs.com/pub/$name/$name-${version}pl2.patch \ + patch.patch xpdf.desktop ) + +build() { + cd $name-$version + patch -Np1 -i ../$name-${version}pl1.patch + patch -Np1 -i ../$name-${version}pl2.patch +# patch -Np1 -i ../patch.patch + sed -i 's:/usr/share/fonts/type1/gsfonts:/usr/share/fonts/Type1:' xpdf/GlobalParams.cc + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --enable-multithreaded --enable-wordlist \ + --with-freetype2-includes=/usr/include/freetype2 \ + --with-t1-library=/usr/lib \ + --with-t1-includes=/usr/include \ + --x-includes=/usr/include \ + --with-Xm-library=/usr/lib \ + --with-Xm-includes=/usr/include + make + make DESTDIR=$PKG install + install -Dm644 ../xpdf.desktop \ + $PKG/usr/share/applications/xpdf.desktop + install -Dm644 xpdf/xpdfIcon.xpm \ + $PKG/usr/share/pixmaps/xpdf.xpm +} diff --git a/extra/xpdf/patch.patch b/extra/xpdf/patch.patch new file mode 100644 index 000000000..19d5bc95c --- /dev/null +++ b/extra/xpdf/patch.patch @@ -0,0 +1,21 @@ +--- VendorP.h~ ++++ VendorP.h +@@ -76,6 +76,8 @@ +XtPointer extension; /* pointer to extension record +*/ +} VendorShellClassPart; + ++struct VendorShellClassRec; ++/* +typedef struct _VendorShellClassRec { +CoreClassPart core_class; +CompositeClassPart composite_class; +@@ -85,7 +87,7 @@ +} VendorShellClassRec; + +externalref VendorShellClassRec vendorShellClassRec; +- ++*/ +/* New fields for the vendor shell widget. */ + +typedef struct { diff --git a/extra/xpdf/xpdf.desktop b/extra/xpdf/xpdf.desktop new file mode 100644 index 000000000..92011c573 --- /dev/null +++ b/extra/xpdf/xpdf.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Name=xpdf +Comment=Views Adobe PDF (acrobat) files +Exec=xpdf +Terminal=0 +Type=Application +Icon=xpdf +Categories=Application;Office; +MimeType=application/pdf; -- cgit v1.2.3-70-g09d2