From 2511f83dd1b8b04776fd74d2912342c28dadc1e9 Mon Sep 17 00:00:00 2001 From: Andrew Benton Date: Thu, 12 Apr 2012 13:29:17 +0000 Subject: [PATCH] Poppler tweaks commented out some references to xpdf as it is no longer in the book. added --enable-xpdf-headers to the default options as it is required by 3 packages in the book added an optional patch to use lcms2 git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@9905 af4574ff-66df-0310-9fd7-8a98e5e911e0 --- general/graphlib/poppler.xml | 301 +++++++++++++++++++++++------------ xsoft/office/libreoffice.xml | 18 ++- 2 files changed, 211 insertions(+), 108 deletions(-) diff --git a/general/graphlib/poppler.xml b/general/graphlib/poppler.xml index 633feac4e4..527120295f 100644 --- a/general/graphlib/poppler.xml +++ b/general/graphlib/poppler.xml @@ -4,15 +4,19 @@ %general-entities; - + - - + + - + ]> @@ -34,32 +38,45 @@ Introduction to Poppler - The Poppler package contains a PDF - rendering library and command line tools used to manipulate PDF files. - This is useful for providing PDF rendering functionality as a shared - library. + + The Poppler package contains a PDF rendering + library and command line tools used to manipulate PDF files. This is + useful for providing PDF rendering functionality as a shared library. + &lfs71_checked; Package Information - Download (HTTP): + + Download (HTTP): + - Download (FTP): + + Download (FTP): + - Download MD5 sum: &poppler-md5sum; + + Download MD5 sum: &poppler-md5sum; + - Download size: &poppler-size; + + Download size: &poppler-size; + - Estimated disk space required: &poppler-buildsize; + + Estimated disk space required: &poppler-buildsize; + - Estimated build time: &poppler-time; + + Estimated build time: &poppler-time; + @@ -68,111 +85,150 @@ Poppler Encoding Data - Download (HTTP): + + Download (HTTP): + - Download MD5 sum: &poppler-data-md5sum; + + Download MD5 sum: &poppler-data-md5sum; + - Download size: &poppler-data-size; + + Download size: &poppler-data-size; + - The additional package consists of encoding files for use with - Poppler. The encoding files are optional and - Poppler will automatically read them if they are - present. When installed, they enable Poppler to - render CJK and Cyrillic properly. + + The additional package consists of encoding files for use with + Poppler. The encoding files are optional and + Poppler will automatically read them if they + are present. When installed, they enable + Poppler to render CJK and Cyrillic properly. + + + Additional Downloads + + + + Optional patch (if you want to use Lcms 2): + + + + Poppler Dependencies Required - and - + + and + + Recommended - , - and + + , + and + . Optional - , - (the libpoppler-qt4.so library is needed - for PDF support in Okular), - , - , - and - - - User Notes: - + + , + , + or , + , + and + (the libpoppler-qt4.so library + is needed for PDF support in Okular). + + + User Notes: + Installation of Poppler - - Poppler will overwrite command-line - utilities and man pages previously installed by the - Xpdf package. If you prefer to keep the - Xpdf versions of these files, pass the - parameter to the - configure command below. - + + If you have installed and would like + Poppler to use it, apply the + Lcms 2 patch: + -./configure --prefix=/usr \ - --sysconfdir=/etc \ - --disable-static && +patch -p1 < ../poppler-&poppler-version;-lcms2-1.patch + + + Install Poppler by running the following + commands: + + + + +./configure --prefix=/usr --sysconfdir=/etc \ + --disable-static --enable-xpdf-headers && make - This package does not come with a test suite. + + This package does not come with a test suite. + - Now, as the root user: + + Now, as the root user: + make install && install -v -m755 -d /usr/share/doc/poppler-&poppler-version; && install -v -m644 README* /usr/share/doc/poppler-&poppler-version; - If you downloaded the additional encoding data package, install - it by issuing the following commands: + + If you downloaded the additional encoding data package, install it by + issuing the following commands: + tar -xf ../poppler-data-&poppler-data-version;.tar.gz && cd poppler-data-&poppler-data-version; - Now, as the root user: + + Now, as the root user: + make prefix=/usr install - Command Explanations - + - : Prevent static libraries - being built and installed. - - : This parameter - disables building the cairo graphics backend. - - , - and - : These parameters disable - building the GLib and Qt4 - wrappers and the GTK+ test program. - - : Install old - Xpdf headers required by certain programs (e.g. by - Okular for PDF support). These are unsupported by - Poppler. + + : Install some old + Xpdf headers required by certain programs (e.g. + Okular, Libre Office + and Inkscape). + + + -enable-zlib: This parameter makes + Poppler link with the system-installed + libz library to enable compressed + PDF functionality. + @@ -184,12 +240,18 @@ cd poppler-data-&poppler-data-version; Installed Directories - pdffonts, pdfimages, pdfinfo, pdfseparate, pdftocairo, pdftohtml, - pdftoppm, pdftops, pdftotext, pdfunite and poppler-glib-demo - libpoppler.so, libpoppler-cpp.so, libpoppler-glib.so, - and libpoppler-qt4.so - /usr/include/poppler, /usr/share/doc/poppler-&poppler-version;, - /usr/share/gtk-doc/html/poppler and /usr/share/poppler + + pdffonts, pdfimages, pdfinfo, pdfseparate, pdftocairo, pdftohtml, + pdftoppm, pdftops, pdftotext, pdfunite and poppler-glib-demo + + + libpoppler.so, libpoppler-cpp.so, libpoppler-glib.so and + libpoppler-qt4.so + + + /usr/include/poppler, /usr/share/doc/poppler-&poppler-version;, + /usr/share/gtk-doc/html/poppler and /usr/share/poppler + @@ -201,8 +263,10 @@ cd poppler-data-&poppler-data-version; pdffonts - lists the fonts used in a PDF file along - with various information for each font. + + lists the fonts used in a PDF file along with various information + for each font. + pdffonts @@ -212,7 +276,9 @@ cd poppler-data-&poppler-data-version; pdfimages - saves images from a PDF file as PPM, PBM, or JPEG files. + + saves images from a PDF file as PPM, PBM, or JPEG files. + pdfimages @@ -222,8 +288,10 @@ cd poppler-data-&poppler-data-version; pdfinfo - prints the contents of the 'Info' dictionary (plus some - other useful information) from a PDF file. + + prints the contents of the 'Info' dictionary (plus some other useful + information) from a PDF file. + pdfinfo @@ -233,7 +301,9 @@ cd poppler-data-&poppler-data-version; pdfseparate - extracts single pages from a PDF file. + + extracts single pages from a PDF file. + pdfseparate @@ -243,8 +313,10 @@ cd poppler-data-&poppler-data-version; pdftocairo - converts a PDF file to one of several formats (PNG, JPEG, PDF, PS, - EPS, SVG) using the cairo output device of the poppler library. + + converts a PDF file to one of several formats (PNG, JPEG, PDF, PS, + EPS, SVG) using the cairo output device of the poppler library. + pdftocairo @@ -254,7 +326,9 @@ cd poppler-data-&poppler-data-version; pdftohtml - converts a PDF file to HTML. + + converts a PDF file to HTML. + pdftohtml @@ -264,7 +338,9 @@ cd poppler-data-&poppler-data-version; pdftoppm - converts PDF files to PBM, PGM and PPM formats. + + converts PDF files to PBM, PGM and PPM formats. + pdftoppm @@ -274,7 +350,9 @@ cd poppler-data-&poppler-data-version; pdftops - converts PDF files to Postscript format. + + converts PDF files to Postscript format. + pdftops @@ -284,7 +362,9 @@ cd poppler-data-&poppler-data-version; pdftotext - converts PDF files to plain text. + + converts PDF files to plain text. + pdftotext @@ -294,8 +374,10 @@ cd poppler-data-&poppler-data-version; pdfunite - merges several PDF files, in the order of their occurrence on the - command line, to one PDF output file. + + merges several PDF files, in the order of their occurrence on the + command line, to one PDF output file. + pdfunite @@ -305,8 +387,10 @@ cd poppler-data-&poppler-data-version; poppler-glib-demo - is a tool to demonstrate the API, and for use when debugging and - testing poppler. + + is a tool to demonstrate the API, and for use when debugging and + testing poppler. + poppler-glib-demo @@ -316,7 +400,9 @@ cd poppler-data-&poppler-data-version; libpoppler.so - contains the API functions to render PDF files. + + contains the API functions to render PDF files. + libpoppler.so @@ -326,7 +412,9 @@ cd poppler-data-&poppler-data-version; libpoppler-cpp.so - is a C++ backend for rendering PDF files. + + is a C++ backend for rendering PDF files. + libpoppler-cpp.so @@ -336,8 +424,10 @@ cd poppler-data-&poppler-data-version; libpoppler-glib.so - is a wrapper library used to interface the PDF rendering - functions with GTK+. + + is a wrapper library used to interface the PDF rendering functions + with GTK+. + libpoppler-glib.so @@ -347,16 +437,15 @@ cd poppler-data-&poppler-data-version; libpoppler-qt4.so - is a wrapper library used to interface the PDF rendering - functions with Qt-4. + + is a wrapper library used to interface the PDF rendering functions + with Qt-4. + libpoppler-qt4.so - - - diff --git a/xsoft/office/libreoffice.xml b/xsoft/office/libreoffice.xml index 6fc84caf01..a2c237adbe 100644 --- a/xsoft/office/libreoffice.xml +++ b/xsoft/office/libreoffice.xml @@ -472,7 +472,7 @@ Name=Printer Administration Comment=Libre Office Printer Administration Icon=printeradmin Exec=printeradmin -Categories=System;Printing;Application; +Categories=Office;Printing;Application; StartupNotify=true Terminal=false" > /usr/share/applications/printeradmin.desktop @@ -486,7 +486,7 @@ Terminal=false" > /usr/share/applications/printeradmin.desktopInstalled Directory - base, calc, draw, impress, math and writer. + base, calc, draw, impress, math, printeradmin and writer. Hundreds of shared libraries in /usr/lib/libreoffice. @@ -560,6 +560,20 @@ Terminal=false" > /usr/share/applications/printeradmin.desktop + + printeradmin + + + is a graphical interface to enable you to change your personal + printing preferences, which are saved in + ~/.cups/lpoptions. + + + printeradmin + + + + writer