# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
## keep version in sync w/ xpdf
categories graphics print
homepage http://www.foolabs.com/xpdf/
## conflicts with poppler until poppler renames its CLI tools
## (then conflicts w/ poppler-tools if it gets created)
description Wrapper port for xpdf CLI tools
long_description ${description}
## Note: the destroot section below currently uses lists of files
## to know what files to link. In the future we can use
## set contents_list [registry_port_registered $portname])
## to get the lists of binaries and man pages installed by
foreach binFile { pdffonts pdfimages pdfinfo pdftoppm pdftops pdftotext } {
ln -s xpdf-${binFile} ${destroot}${prefix}/bin/${binFile}
ln -s xpdf-${binFile}.1 ${destroot}${prefix}/share/man/man1/${binFile}.1