# -*- 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
categories graphics fonts print
maintainers {mojca @mojca} openmaintainer
description Font samples generator
long_description FntSample is a tool that can be used to make font samples \
that show coverage of the font and are similar in appearance \
homepage http://fntsample.sourceforge.net/
master_sites sourceforge:project/fntsample/fntsample/${version}/
checksums rmd160 1ad126aab52ff3e553a0a4071280bdeba59b540d \
sha256 1824f7e452b56671cf451819a46af70db549213e5c189e6b3cda273cd05e2411
depends_build port:pkgconfig \
depends_lib path:lib/pkgconfig/cairo.pc:cairo \
path:lib/pkgconfig/glib-2.0.pc:glib2 \
path:lib/pkgconfig/pango.pc:pango
depends_run port:perl${perl5.major} \
port:p${perl5.major}-libintl-perl \
port:p${perl5.major}-pdf-api2
configure.args --with-unicode-blocks=${prefix}/lib/perl5/${perl5.major}/unicore/Blocks.txt
reinplace -W ${worksrcpath} "s|^#! /usr/bin/perl|#! ${prefix}/bin/perl${perl5.major}|g" pdfoutline.pl
# this patch is only available in MacPorts; not sure what exactly to ask upstream
# the original colors are "useless" for print
variant brightcolors description {Use brighter colors in tables (consume less ink)} {
patchfiles patch-color.diff