[109966] users/mojca/wxports/graphics

mojca at macports.org mojca at macports.org
Thu Aug 22 17:45:30 PDT 2013


Revision: 109966
          https://trac.macports.org/changeset/109966
Author:   mojca at macports.org
Date:     2013-08-22 17:45:30 -0700 (Thu, 22 Aug 2013)
Log Message:
-----------
mojca/wxlua: fetch version 2.8.12.3 from SVN and compile against wxWidgets 2.9 using CMake

Added Paths:
-----------
    users/mojca/wxports/graphics/wxLua/
    users/mojca/wxports/graphics/wxLua/Portfile

Removed Paths:
-------------
    users/mojca/wxports/graphics/wxLua/Portfile

Deleted: users/mojca/wxports/graphics/wxLua/Portfile
===================================================================
--- trunk/dports/graphics/wxLua/Portfile	2013-08-22 23:03:02 UTC (rev 109959)
+++ users/mojca/wxports/graphics/wxLua/Portfile	2013-08-23 00:45:30 UTC (rev 109966)
@@ -1,102 +0,0 @@
-# $Id$
-
-PortSystem 1.0
-
-name			wxLua
-version			2.8.7.0
-revision			1
-categories		graphics devel
-platforms		darwin freebsd
-maintainers		afb
-description		Lua bindings for wxWidgets
-long_description	wxLua is a lua scripting language wrapper around the \
-			wxWidgets cross-platform GUI library. It consists of an \
-			executable for running standalone wxLua scripts and a \
-			library for extending C++ programs with a fast, small, \
-			fully embeddable scripting language.
-
-homepage		http://wxlua.sourceforge.net/
-master_sites		sourceforge:wxlua
-distname		${name}-${version}-src
-
-checksums		md5 d342db617eb63e69232ef13ba96c678a \
-			sha1 94b9b80d6a08cd358093d7ae117a151e7167dc6b \
-			rmd160 0f699cf4e462d8ed934b29795a684dc593a57691
-
-depends_lib		port:wxstedit port:lua
-
-worksrcdir		wxLua
-
-configure.args		--mandir=${prefix}/share/man \
-			--with-wx-prefix=${prefix} \
-			--enable-wxbindstc --enable-luamodule \
-			--with-lua-prefix=${prefix} \
-			--enable-wxluafreeze-app
-
-configure.ccache	no
-
-post-destroot {
-	# these includes conflict with the "lua" port:
-	delete "${destroot}${prefix}/include/lauxlib.h"
-	delete "${destroot}${prefix}/include/lua.h"
-	delete "${destroot}${prefix}/include/luaconf.h"
-	delete "${destroot}${prefix}/include/lualib.h"
-}
-
-platform macosx {}
-if { ([variant_isset macosx] || ([info exists os.subplatform] && ${os.subplatform} == "macosx"))
-     && ![variant_isset x11] } {
-    default_variants +aqua
-} else {
-    default_variants +x11
-}
-
-if { ([variant_isset macosx] || ([info exists os.subplatform] && ${os.subplatform} == "macosx")) } {
-variant aqua conflicts x11 description "Use the wxMac port of wxWidgets" {
-
-depends_lib-append	port:wxWidgets
-# wxWidgets does not build 64-bit
-supported_archs	i386 ppc
-
-post-destroot {
-	set appPath ${applications_dir}/wxLua
-	xinstall -d -m 0755 ${destroot}${appPath}
-
-	# for wxMac, we delete the programs and use bundles
-	delete "${destroot}${prefix}/bin/wxlua"
-	delete "${destroot}${prefix}/bin/wxluacan"
-	delete "${destroot}${prefix}/bin/wxluaedit"
-	delete "${destroot}${prefix}/bin/wxluafreeze"
-	copy "${worksrcpath}/apps/wxLua.app" "${destroot}${appPath}"
-	copy "${worksrcpath}/apps/wxLuaCan.app" "${destroot}${appPath}"
-	copy "${worksrcpath}/apps/wxLuaEdit.app" "${destroot}${appPath}"
-	copy "${worksrcpath}/apps/wxLuaFreeze.app" "${destroot}${appPath}"
-
-	# provide a symbolic link to the wxLua sample programs
-	ln -sf "${prefix}/share/wxlua/samples" "${destroot}${appPath}/Samples"
-
-	# set up a wrapper so that you can call "wxlua *.wx.lua"
-	xinstall -m 0755 "${filespath}/wxlua.sh" "${destroot}${prefix}/bin/wxlua"
-	# set up a wrapper so that you can call "wxluaedit" too
-	xinstall -m 0755 "${filespath}/wxluaedit.sh" "${destroot}${prefix}/bin/wxluaedit"
-
-	# remove some stuff that is unused with wxMac port
-	delete "${destroot}${prefix}/share/applications/wxlua.desktop"
-	delete "${destroot}${prefix}/share/mime/packages/wxlua.xml"
-	delete "${destroot}${prefix}/share/pixmaps/wxlualogo.xpm"
-}
-
-}
-}
-
-variant x11 description "Use the wxGTK port of wxWidgets" {
-
-# wxgtk is not universal
-universal_variant	no
-
-depends_lib-append	port:wxgtk
-
-}
-
-#livecheck.url	http://wxlua.sourceforge.net/download.php
-#livecheck.regex	\&raquo\;\&nbsp\;(\[0-9\.\]+)\&nbsp\;\&laquo\;

Copied: users/mojca/wxports/graphics/wxLua/Portfile (from rev 109963, trunk/dports/graphics/wxLua/Portfile)
===================================================================
--- users/mojca/wxports/graphics/wxLua/Portfile	                        (rev 0)
+++ users/mojca/wxports/graphics/wxLua/Portfile	2013-08-23 00:45:30 UTC (rev 109966)
@@ -0,0 +1,112 @@
+# -*- 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           cmake 1.0
+PortGroup           wxWidgets 1.0
+
+name                wxLua
+set svnrev          190
+# TODO: maybe the version string should also include the SVN revision
+version             2.8.12.3
+categories          graphics devel
+platforms           darwin freebsd
+maintainers         afb
+description         Lua bindings for wxWidgets
+long_description    wxLua is a lua scripting language wrapper around the \
+                    wxWidgets cross-platform GUI library. It consists of an \
+                    executable for running standalone wxLua scripts and a \
+                    library for extending C++ programs with a fast, small, \
+                    fully embeddable scripting language.
+
+# fetching sources from SVN because no sources seem to have been released recently,
+# but they are needed in order to work with wxWidgets 2.9.
+# There were only windows binaries. As soon as some recent version gets released,
+# fetching from SVN should stop.
+homepage            http://wxlua.sourceforge.net/
+#master_sites       sourceforge:wxlua
+# TODO: not sure if this will always work
+master_sites        http://sourceforge.net/code-snapshots/svn/w/wx/wxlua/svn/
+
+#distname           ${name}-${version}-src
+distname            wxlua-svn-${svnrev}-trunk
+
+use_zip             yes
+
+checksums           rmd160  e80e124424a4d610a256e619ca4b5435f66f823a \
+                    sha256  9fcf55b5caee3d157669c101d8112a0c3cd7ac5ed7c9de1be9dff0f0380a919e
+
+wxWidgets.use       wxWidgets-3.0
+
+depends_lib         port:lua \
+                    port:readline \
+                    port:${wxWidgets.port}
+
+# port:wxstedit seems to be built in now; check what is still needed, if anything
+
+worksrcdir          ${distname}/wxLua
+
+# TODO: not sure how to translate these options
+#
+# configure.args      --mandir=${prefix}/share/man \
+#                     --with-wx-prefix=${prefix} \
+#                     --enable-wxbindstc --enable-luamodule \
+#                     --with-lua-prefix=${prefix} \
+#                     --enable-wxluafreeze-app
+
+configure.args-append \
+                    -DwxWidgets_CONFIG_EXECUTABLE=${wxWidgets.wxconfig} \
+                    -DBUILD_INSTALL_PREFIX=${prefix} \
+                    -DwxLua_LUA_LIBRARY_BUILD_SHARED=OFF \
+                    -DwxLua_LUA_LIBRARY_USE_BUILTIN=ON \
+                    -DwxLua_LUA_LIBRARY_VERSION=5.2
+
+# TODO: there is no FindLua52.cmake, but FindLua51 finds the right includes & libraries,
+#       except that it then fails to compile; when using the builtin lua,
+#       we need to delete lua afterwards
+
+#                   -DwxLua_LUA_INCLUDE_DIR=${prefix}/include \
+#                   -DwxLua_LUA_LIBRARY=${prefix}/lib/liblua.dylib \
+#                   -DLUA_INCLUDE_DIR=${prefix}/include \
+#                   -DLUA_LIBRARIES=${prefix}/lib/liblua.dylib \
+#                   -DLUA_LIBRARY=${prefix}/lib/liblua.dylib
+
+# TODO:
+# - report upstream that they need to replace DBUILD_INSTALL_PREFIX with CMAKE_INSTALL_PREFIX
+
+post-destroot {
+    xinstall -d -m 0755 ${destroot}${applications_dir}
+    # TODO: wxLuaFreeze isn't really working as an app
+    foreach {app} {wxLua wxLuaCan wxLuaEdit wxLuaFreeze} {
+        move "${destroot}${prefix}/bin/${app}.app" ${destroot}${applications_dir}
+    }
+    delete ${destroot}${prefix}/share/wxstedit
+    delete ${destroot}${prefix}/doc/wxStEdit
+    # TODO: probably also needed
+    # delete ${destroot}${prefix}/include/wx/stedit
+    # delete ${destroot}${prefix}/lib/libwxstedit-wx29osx_cocoau-1.6.0.dylib
+    # TODO: check that there is no bin/lua & bin/luac
+    delete ${destroot}${prefix}/bin/lua
+    delete ${destroot}${prefix}/bin/luac
+}
+
+# TODO: check which of these are still needed
+#
+# post-destroot {
+#     # these includes conflict with the "lua" port:
+#     delete "${destroot}${prefix}/include/lauxlib.h"
+#     delete "${destroot}${prefix}/include/lua.h"
+#     delete "${destroot}${prefix}/include/luaconf.h"
+#     delete "${destroot}${prefix}/include/lualib.h"
+#
+#     # provide a symbolic link to the wxLua sample programs
+#     ln -sf "${prefix}/share/wxlua/samples" "${destroot}${appPath}/Samples"
+# 
+#     # set up a wrapper so that you can call "wxlua *.wx.lua"
+#     xinstall -m 0755 "${filespath}/wxlua.sh" "${destroot}${prefix}/bin/wxlua"
+#     # set up a wrapper so that you can call "wxluaedit" too
+#     xinstall -m 0755 "${filespath}/wxluaedit.sh" "${destroot}${prefix}/bin/wxluaedit"
+# }
+
+livecheck.type      sourceforge
+livecheck.name      wxlua
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130822/790207c3/attachment-0001.html>


More information about the macports-changes mailing list