[111710] trunk/dports/devel

macsforever2000 at macports.org macsforever2000 at macports.org
Sun Sep 29 10:58:46 PDT 2013


Revision: 111710
          https://trac.macports.org/changeset/111710
Author:   macsforever2000 at macports.org
Date:     2013-09-29 10:58:46 -0700 (Sun, 29 Sep 2013)
Log Message:
-----------
lua-lgi: New port. (#39496)

Added Paths:
-----------
    trunk/dports/devel/lua-lgi/
    trunk/dports/devel/lua-lgi/Portfile
    trunk/dports/devel/lua-lgi/files/
    trunk/dports/devel/lua-lgi/files/patch-dylib-path.diff

Added: trunk/dports/devel/lua-lgi/Portfile
===================================================================
--- trunk/dports/devel/lua-lgi/Portfile	                        (rev 0)
+++ trunk/dports/devel/lua-lgi/Portfile	2013-09-29 17:58:46 UTC (rev 111710)
@@ -0,0 +1,35 @@
+# -*- 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        pavouk lgi 0.7.1
+name                lua-lgi
+
+maintainers         nomaintainer
+categories          devel
+platforms           darwin
+license             MIT
+
+description         Dynamic Lua binding to GObject libraries using \
+                    GObject-Introspection
+long_description    LGI is gobject-introspection based dynamic Lua binding to \
+                    GObject based libraries. It allows using GObject-based \
+                    libraries directly from Lua.
+
+checksums           rmd160 af49608d6af76c468fef0ab67f2a065ed8730152 \
+                    sha256 31f273e056959cea5a4e929b0e81b21e89c852d8a0e874bc6f78017c93d3a5a0
+
+depends_lib-append  port:gobject-introspection \
+                    port:lua
+
+patchfiles          patch-dylib-path.diff
+
+use_configure       no
+
+post-patch {
+    reinplace "s|%PREFIX%|${prefix}|g" ${worksrcpath}/lgi/core.c
+}
+
+destroot.post_args PREFIX=${destroot}${prefix} LUA_VERSION=5.2


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

Added: trunk/dports/devel/lua-lgi/files/patch-dylib-path.diff
===================================================================
--- trunk/dports/devel/lua-lgi/files/patch-dylib-path.diff	                        (rev 0)
+++ trunk/dports/devel/lua-lgi/files/patch-dylib-path.diff	2013-09-29 17:58:46 UTC (rev 111710)
@@ -0,0 +1,13 @@
+--- lgi/core.c.orig	2013-06-21 22:58:44.000000000 -0700
++++ lgi/core.c	2013-06-21 23:00:20.000000000 -0700
+@@ -476,8 +476,8 @@
+ #define MODULE_NAME_FORMAT_VERSION "lib%s-%d.dll"
+ #define MODULE_NAME_FORMAT_PLAIN "lib%s.dll"
+ #elif defined(__APPLE__)
+-#define MODULE_NAME_FORMAT_VERSION "lib%s.%d.dylib"
+-#define MODULE_NAME_FORMAT_PLAIN "lib%s.dylib"
++#define MODULE_NAME_FORMAT_VERSION "%PREFIX%/lib/lib%s.%d.dylib"
++#define MODULE_NAME_FORMAT_PLAIN "%PREFIX%/lib/lib%s.dylib"
+ #else
+ #define MODULE_NAME_FORMAT_VERSION "lib%s.so.%d"
+ #define MODULE_NAME_FORMAT_PLAIN "lib%s.so"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130929/0e44f6a3/attachment.html>


More information about the macports-changes mailing list