[MacPorts] #16056: poppler -- new version -- more variants
MacPorts
noreply at macports.org
Wed Jul 23 05:17:01 PDT 2008
#16056: poppler -- new version -- more variants
--------------------------------------+-------------------------------------
Reporter: jens.traube at t-online.de | Owner: macports-tickets at lists.macosforge.org
Type: enhancement | Status: new
Priority: Normal | Milestone: Port Enhancements
Component: ports | Version: 1.6.0
Resolution: | Keywords: pdf, qt4
--------------------------------------+-------------------------------------
Comment (by jens.traube at t-online.de):
Replying to [comment:3 rhwood at macports.org]:
> This seems like an excessively complex solution to a simple issue that
may not be an issue...
>
> Some notes:
>
> Abiword going forward is going to be requiring gtk and all that entails.
I would simply remove the abiword variant and make libxml2 a dependency
in all cases (libxml2 is small with only a couple of dependencies).
>
> Since poppler is not (as far as I can tell) dependent on X11 unless gtk
or qt are, I would simply remove the dependencies on XFree86 and xrender
from the port.
>
> I would make the variants all separate, so that instead of installing
'''poppler +qt4Splash''', I would install '''poppler +qt4 +Splash''' this
will make the portfile maintainer's life much simpler.
You are right about variant "abiword". Anybody, who have port "abiword"
installed (from source), must have installed port "ImageMagick" and its
dependencies (XFree86, freetype, fontconfig, libiconv, expat, zlib,
libpng, jpeg, tiff, and libxml2).
But about the dependencies on XFree86 you are wrong. I installed all
variants (except qt3Splash) to test them and to check the dynamic
libraries. I used the command line tool "otool" with option "-L" to get a
list of the needed libraries. The variants "glibSplash" and "glibCairo"
depend on ports "XFree86" and "xrender". The ports "gtk2", "pango", and
"cairo" are all dependent on XFree86, but these three ports can be build
without x11, there is a variant "no_x11". I checked this and compiled
these ports without x11 bindings, and then compiled poppler again with
variant "quartz". Then library "libpoppler-glib.3.0.0.dylib" is not
dependend on XFree86 and xrender.
These dependencies are indirect. For instance, in the source files of
poppler you can not find any inclusion of a header file <expat.h> or
<iconv.h>. I checked this: grep -lrE ".*<expat[.]h>.*" ./
Nevertheless, poppler depends on port "expat" and "libiconv" (any
variant).
To your last argument: This was my first attempt to enhance the portfile.
I had at first these "atomic" variants "qt3", "qt4", "glib", "splash",
"cairo". But these variants cannot combined freely, there is no
installation "poppler+splash+cairo". If you choose a frontend qt4 or glib,
you must also choose a backend "splash" or "cairo", they are logically
dependend. Therefore I revised the portfile and invented these "molecule"
variants.
--
Ticket URL: <http://trac.macports.org/ticket/16056#comment:4>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list