Ignore:
Timestamp:
Nov 9, 2010, 8:02:07 PM (9 years ago)
Author:
ricci@…
Message:

adjust xpdf to install its CLI tools with mangled names (xpdf-*), add variant no_mangle_names to not do so.
add new port xpdf-tools, makes links from xpdf CLI tools fromt heir xpdf-* names to "plain" names
adjust poppler port to conflict with xpdf-tools

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/graphics/xpdf/Portfile

    r72519 r73295  
    55name         xpdf
    66version      3.02
    7 revision     7
     7revision     8
    88description  Xpdf is a viewer for PDF files.
    99long_description \
     
    6161depends_lib \
    6262        port:xorg-libXp port:xpm port:xorg-libXt port:freetype \
    63         port:poppler port:libpaper lib:libXm:openmotif port:t1lib
     63        port:libpaper lib:libXm:openmotif port:t1lib
    6464
    6565depends_run  path:share/ghostscript/fonts:ghostscript
     
    122122}
    123123
     124variant no_mangle_names description {do not mangle the CLI tool names, conflicts with poppler} {
     125        conflicts-append port:poppler
     126}
     127
    124128post-destroot {
    125     foreach i { pdffonts pdfimages pdfinfo pdftoppm pdftops pdftotext } {
    126         delete ${destroot}${prefix}/bin/${i}
    127         delete ${destroot}${prefix}/share/man/man1/${i}.1
    128     }
     129        if {! [variant_isset no_mangle_names]} {
     130                ## rename the CLI tools to xpdf-${TOOL_NAME} to avoid conflicts with poppler
     131                foreach binFile { pdffonts pdfimages pdfinfo pdftoppm pdftops pdftotext } {
     132                        move ${destroot}${prefix}/bin/${binFile}  ${destroot}${prefix}/bin/${name}-${binFile}
     133                        move ${destroot}${prefix}/share/man/man1/${binFile}.1 ${destroot}${prefix}/share/man/man1/${name}-${binFile}.1
     134                }
     135        }
    129136}
    130137
Note: See TracChangeset for help on using the changeset viewer.