source: trunk/dports/devel/lua-luahpdf/Portfile @ 91223

Last change on this file since 91223 was 91223, checked in by and.damore@…, 5 years ago

port lua-luahpdf: revision bump missing in r90234

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 KB
Line 
1# -*- 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
2# $Id: Portfile 91223 2012-03-26 08:46:40Z and.damore@macports.org $
3PortSystem 1.0
4
5name                lua-luahpdf
6version             1.1
7revision            1
8license             MIT
9categories          devel
10platforms           darwin
11maintainers         and.damore openmaintainer
12description         Lua module that lets you programmatically create PDF files
13long_description    \
14        LuaHPDF is a Lua module that lets you programmatically create PDF files using \
15        Lua. It does this by binding to the Haru Free PDF Library, an open-source \
16        library that manages the details of PDF generation. \
17        With this module, you can write Lua programs that will produce PDF files that \
18        include lines, text and graphics, PNG and JPEG images, compression, \
19        encryption, Type1 and TrueType fonts, various character sets, outlines, \
20        links.
21
22homepage            http://code.google.com/p/luahpdf/
23master_sites        http://luahpdf.googlecode.com/files/
24checksums           md5     960a8b3a7f05fc225ae1b5f0feb2efd7 \
25                    sha1    504c170769f1d13882ee9ccb15f55ad8b8e36799 \
26                    rmd160  3c282cc152627fd40963d3a75667b9a1667c3f41
27
28distname            luahpdf-${version}
29depends_lib         port:lua \
30                    port:libharu
31
32patchfiles          patch-Makefile.diff
33post-patch {
34    reinplace   "s|%PREFIX%|${prefix}|"       ${worksrcpath}/Makefile
35    reinplace "s|%COMPILER%|${configure.cc}|" ${worksrcpath}/Makefile
36}
37
38use_configure       no
39
40build.env-append    CFLAGS="-I${prefix}/include ${configure.cflags} [get_canonical_archflags cc]" \
41                    LDFLAGS="${configure.ldflags} [get_canonical_archflags ld]"
42
43post-destroot {
44    xinstall -d -m 755                                 ${destroot}${prefix}/share/examples
45    file copy   ${worksrcpath}/demo                    ${destroot}${prefix}/share/examples/${name}
46    file rename ${destroot}${prefix}/share/doc/luahpdf ${destroot}${prefix}/share/doc/${name}
47}
48
Note: See TracBrowser for help on using the repository browser.