[140267] trunk/dports/devel/lua-luahpdf

devans at macports.org devans at macports.org
Tue Sep 15 10:24:57 PDT 2015


Revision: 140267
          https://trac.macports.org/changeset/140267
Author:   devans at macports.org
Date:     2015-09-15 10:24:57 -0700 (Tue, 15 Sep 2015)
Log Message:
-----------
lua-luahpdf: switch to github repository and upgrade to git master for lua 5.3 compatibility, dependencies, configuration, increment revision.

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

Modified: trunk/dports/devel/lua-luahpdf/Portfile
===================================================================
--- trunk/dports/devel/lua-luahpdf/Portfile	2015-09-15 17:11:38 UTC (rev 140266)
+++ trunk/dports/devel/lua-luahpdf/Portfile	2015-09-15 17:24:57 UTC (rev 140267)
@@ -1,9 +1,12 @@
 # -*- 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
 # $Id$
 PortSystem          1.0
+PortGroup           github 1.0
 
+github.setup        jung-kurt luahpdf c8b2677cba
 name                lua-luahpdf
 version             1.5
+revision            1
 license             MIT
 categories          devel
 platforms           darwin
@@ -17,20 +20,20 @@
                     encryption, Type1 and TrueType fonts, various character sets, outlines, \
                     links.
 
-homepage            http://code.google.com/p/luahpdf/
-master_sites        http://luahpdf.googlecode.com/files/
-checksums           md5     7e16e4d6d962318aa39844de070dbead \
-                    sha1    cf148468c54c32fae69e5038581a09d6f7403d48 \
-                    rmd160  4754375932bf6da7772f3b3953066a6a5357de9a
+checksums           rmd160  ee7d234de41de41b3c8de2e10a5cff3de920a817 \
+                    sha256  2b01967287b83f9efd35d5a317b0838a609f55e07419f58aad74be7399bcc2ea
 
-distname            luahpdf-${version}
 depends_lib         port:lua \
-                    port:libharu
+                    port:libharu \
+                    port:libpng \
+                    port:zlib
 
 patchfiles          patch-Makefile.diff
 
 use_configure       no
 
+set lua_version     5.3
+
 build.args-append   CC=${configure.cc} \
                     LUAINC="${configure.cppflags}" \
                     CFLAGS="${configure.cflags} [get_canonical_archflags cc]" \
@@ -39,6 +42,7 @@
                     PREFIX=${prefix}
 
 destroot.args-append \
+                    MODDIR=${prefix}/lib/lua/${lua_version} \
                     PREFIX=${prefix}
 
 post-destroot {

Modified: trunk/dports/devel/lua-luahpdf/files/patch-Makefile.diff
===================================================================
--- trunk/dports/devel/lua-luahpdf/files/patch-Makefile.diff	2015-09-15 17:11:38 UTC (rev 140266)
+++ trunk/dports/devel/lua-luahpdf/files/patch-Makefile.diff	2015-09-15 17:24:57 UTC (rev 140267)
@@ -1,5 +1,29 @@
---- Makefile.orig	2014-03-25 17:03:29.000000000 +0100
-+++ Makefile	2014-03-25 17:04:02.000000000 +0100
+--- Makefile.orig	2015-03-12 16:23:05.000000000 -0700
++++ Makefile	2015-09-15 09:39:41.000000000 -0700
+@@ -2,17 +2,17 @@
+ # --- Change the settings below to suit your environment. See explanations in
+ # --- the build documentation for more details. ---
+ 
+-PREFIX=/usr/local
+-MODDIR=$(PREFIX)/lib/lua/5.2
++#PREFIX=/usr/local
++#MODDIR=$(PREFIX)/lib/lua/5.2
+ DOCDIR=$(PREFIX)/share/doc/luahpdf
+-LUALIB=-llua5.2
+-LUAINC=-I/usr/include/lua5.2
++LUALIB=-llua
++LUAINC=
+ HPDFLIB=-lhpdf
+ HPDFINC=
+ LUA=lua
+ LUAC=luac
+-PLATFORM=linux
+-# PLATFORM=macosx
++# PLATFORM=linux
++PLATFORM=macosx
+ 
+ # --- End of user settings, no need to change anything below this line. ---
+ 
 @@ -22,8 +22,8 @@
  linux_COMPILE=cc -DHPDF_SHARED $(LUAINC) $(HPDFINC) -Wall -O2 -fomit-frame-pointer -shared -fPIC -c -o $@ $<
  linux_LINK=cc -shared -fPIC -o $@ $^ $(HPDFLIB) -lz -lpng -lm
@@ -20,3 +44,12 @@
  
  test : $(TARGET)
  	$(LUA) -e "package.path=[[]] package.cpath=[[./?.so;./?.dll]] local hpdf = require [[hpdf]] print(hpdf.VERSION_TEXT)"
+@@ -71,7 +71,7 @@
+ 	install -m 0755 -d "$(DESTDIR)$(DOCDIR)"
+ 	install -m 0755 -d "$(DESTDIR)$(DOCDIR)/text"
+ 	install -m 0755 -d "$(DESTDIR)$(DOCDIR)/html"
+-	install -m 0644 README doc/*.lua "$(DESTDIR)$(DOCDIR)"
++	install -m 0644 README.md doc/*.lua "$(DESTDIR)$(DOCDIR)"
+ 	install -m 0644 doc/text/*.txt "$(DESTDIR)$(DOCDIR)/text"
+ 	install -m 0644 doc/html/*.html doc/html/*.css doc/html/*.png "$(DESTDIR)$(DOCDIR)/html"
+ 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150915/7f52fdd0/attachment.html>


More information about the macports-changes mailing list