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

Last change on this file was 140267, checked in by devans@…, 2 years ago

lua-luahpdf: switch to github repository and upgrade to git master for lua 5.3 compatibility, dependencies, configuration, increment revision.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.2 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 140267 2015-09-15 17:24:57Z ryandesign@macports.org $
3PortSystem          1.0
4PortGroup           github 1.0
5
6github.setup        jung-kurt luahpdf c8b2677cba
7name                lua-luahpdf
8version             1.5
9revision            1
10license             MIT
11categories          devel
12platforms           darwin
13maintainers         nomaintainer
14description         Lua module that lets you programmatically create PDF files
15long_description    LuaHPDF is a Lua module that lets you programmatically create PDF files using \
16                    Lua. It does this by binding to the Haru Free PDF Library, an open-source \
17                    library that manages the details of PDF generation. \
18                    With this module, you can write Lua programs that will produce PDF files that \
19                    include lines, text and graphics, PNG and JPEG images, compression, \
20                    encryption, Type1 and TrueType fonts, various character sets, outlines, \
21                    links.
22
23checksums           rmd160  ee7d234de41de41b3c8de2e10a5cff3de920a817 \
24                    sha256  2b01967287b83f9efd35d5a317b0838a609f55e07419f58aad74be7399bcc2ea
25
26depends_lib         port:lua \
27                    port:libharu \
28                    port:libpng \
29                    port:zlib
30
31patchfiles          patch-Makefile.diff
32
33use_configure       no
34
35set lua_version     5.3
36
37build.args-append   CC=${configure.cc} \
38                    LUAINC="${configure.cppflags}" \
39                    CFLAGS="${configure.cflags} [get_canonical_archflags cc]" \
40                    LDFLAGS="${configure.ldflags} [get_canonical_archflags ld]" \
41                    PLATFORM=macosx \
42                    PREFIX=${prefix}
43
44destroot.args-append \
45                    MODDIR=${prefix}/lib/lua/${lua_version} \
46                    PREFIX=${prefix}
47
48post-destroot {
49    xinstall -d -m 755                                 ${destroot}${prefix}/share/examples
50    file copy   ${worksrcpath}/demo                    ${destroot}${prefix}/share/examples/${name}
51    file rename ${destroot}${prefix}/share/doc/luahpdf ${destroot}${prefix}/share/doc/${name}
52}
Note: See TracBrowser for help on using the repository browser.