[73269] trunk/dports/devel

and.damore at macports.org and.damore at macports.org
Mon Nov 8 05:18:35 PST 2010


Revision: 73269
          http://trac.macports.org/changeset/73269
Author:   and.damore at macports.org
Date:     2010-11-08 05:18:30 -0800 (Mon, 08 Nov 2010)
Log Message:
-----------
new port luahpdf, hpdf library module for creating PDF files programmatically in Lua

Added Paths:
-----------
    trunk/dports/devel/lua-luahpdf/
    trunk/dports/devel/lua-luahpdf/Portfile
    trunk/dports/devel/lua-luahpdf/files/
    trunk/dports/devel/lua-luahpdf/files/patch-Makefile.diff

Added: trunk/dports/devel/lua-luahpdf/Portfile
===================================================================
--- trunk/dports/devel/lua-luahpdf/Portfile	                        (rev 0)
+++ trunk/dports/devel/lua-luahpdf/Portfile	2010-11-08 13:18:30 UTC (rev 73269)
@@ -0,0 +1,42 @@
+# $Id$
+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
\ No newline at end of file


Property changes on: trunk/dports/devel/lua-luahpdf/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/devel/lua-luahpdf/files/patch-Makefile.diff
===================================================================
--- trunk/dports/devel/lua-luahpdf/files/patch-Makefile.diff	                        (rev 0)
+++ trunk/dports/devel/lua-luahpdf/files/patch-Makefile.diff	2010-11-08 13:18:30 UTC (rev 73269)
@@ -0,0 +1,30 @@
+--- Makefile.orig	2010-11-08 14:02:26.000000000 +0100
++++ Makefile	2010-11-08 14:02:42.000000000 +0100
+@@ -4,6 +4,7 @@
+ LIB = hpdf.so
+ TAR = $(PACKAGE).tar.gz
+ ZIP = $(PACKAGE).zip
++PREFIX=/.
+ 
+ PDF = \
+ 	demo/arc_demo.pdf \
+@@ -29,6 +30,10 @@
+ 	doc/html/index.html \
+ 	doc/html/license.html
+ 
++install : main
++	mkdir -p "$(DESTDIR)$(PREFIX)/lib/lua/5.1"
++	cp hpdf.so $(DESTDIR)$(PREFIX)/lib/lua/5.1
++
+ main : lib
+ 
+ doc : $(HTML)
+@@ -38,7 +43,7 @@
+ lib : $(LIB)
+ 
+ $(LIB) : hpdf.c
+-	cc -DHPDF_SHARED -ansi -pedantic -Wall -O2 -o $@ -shared -l hpdf $<
++	cc -DHPDF_SHARED -ansi -pedantic -Wall -O2 -o $@ -shared -l hpdf -l lua $<
+ 
+ package : clean doc
+ 	rm -fr $(PACKAGE)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20101108/477ff269/attachment.html>


More information about the macports-changes mailing list