# $Id: Portfile 77705 2011-04-09 21:12:59Z and.damore@macports.org $
PortSystem 1.0

name                lua-luahpdf
version             0.1
categories          devel
platforms           darwin
maintainers         and.damore openmaintainer
description         Lua module that lets you programmatically create PDF files
long_description    \
LuaHPDF is a Lua module that lets you programmatically create PDF files using \
Lua. It does this by binding to the Haru Free PDF Library, an open-source \
library that manages the details of PDF generation. \
 \
With this module, you can write Lua programs that will produce PDF files that \
include \
 \
lines, text and graphics \
PNG and JPEG images \
compression \
encryption \
Type1 and TrueType fonts \
various character sets \
outlines \
links

homepage            http://www.keplerproject.org/copas/
master_sites        http://luaforge.net/frs/download.php/2145/
checksums           md5     5f6aba6532837f5255176cc41c89358a \
                    sha1    184549f019254980f473d8da2b337069a6f197bf \
                    rmd160  0feeb173ff7cce4d32112dedd3eb049fb98cd4de

distname            luahpdf-${version}
depends_lib         port:lua \
					port:libharu

patchfiles          patch-Makefile.diff
post-patch {
   reinplace "s|^PREFIX.*\$|PREFIX=${prefix}|" ${worksrcpath}/Makefile
}
use_configure       no
build.target        main