[90148] trunk/dports/lang

pvanek at macports.org pvanek at macports.org
Fri Feb 24 00:41:24 PST 2012


Revision: 90148
          http://trac.macports.org/changeset/90148
Author:   pvanek at macports.org
Date:     2012-02-24 00:41:23 -0800 (Fri, 24 Feb 2012)
Log Message:
-----------
new port qore-devel

Modified Paths:
--------------
    trunk/dports/lang/qore/Portfile

Added Paths:
-----------
    trunk/dports/lang/qore-devel/
    trunk/dports/lang/qore-devel/Portfile
    trunk/dports/lang/qore-devel/files/
    trunk/dports/lang/qore-devel/files/patch-next_build.sh.diff

Modified: trunk/dports/lang/qore/Portfile
===================================================================
--- trunk/dports/lang/qore/Portfile	2012-02-24 08:41:20 UTC (rev 90147)
+++ trunk/dports/lang/qore/Portfile	2012-02-24 08:41:23 UTC (rev 90148)
@@ -13,6 +13,7 @@
 homepage            http://qore.org
 platforms           darwin
 master_sites        sourceforge
+conflicts           qore-devel
 
 checksums           md5 972ee75296cc4794cb3a538cdb4a3c1d \
                     sha1 f664ecdaca848c6d4cb930847cf5c6c6125003e8 \

Added: trunk/dports/lang/qore-devel/Portfile
===================================================================
--- trunk/dports/lang/qore-devel/Portfile	                        (rev 0)
+++ trunk/dports/lang/qore-devel/Portfile	2012-02-24 08:41:23 UTC (rev 90148)
@@ -0,0 +1,46 @@
+# -*- 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: Portfile 90140 2012-02-23 20:17:37Z pvanek at macports.org $
+
+PortSystem          1.0
+
+name                qore-devel
+version             0.8.3.99
+categories          lang
+maintainers         davidnichols pvanek
+
+description         dynamically-typed programming language - a SVN trunk version
+long_description    Qore is a dynamically-typed, embeddabble programming language designed for SMP scalability. \
+                    This package uses SVN trunk. Use pacakge qore for stable releases.
+homepage            http://qore.org
+platforms           darwin
+master_sites        sourceforge
+
+conflicts           qore
+livecheck.type      none
+worksrcdir          trunk
+
+fetch.type          svn
+svn.url             https://qore.svn.sourceforge.net/svnroot/qore/qore/trunk/
+
+depends_build       port:flex \
+                    port:bison 
+
+depends_lib         port:openssl \
+                    port:pcre \
+                    port:zlib \
+                    port:bzip2
+
+pre-configure {
+    # small set of hacks here. reconf.sh is mandatory for svn builds. The svn-revision.h is real hack as I don't know why it is not crated automatically. (pvanek)
+    system "cd ${worksrcpath}; ./reconf.sh; echo \"#define BUILD 0\" > ${worksrcpath}/include/qore/intern/svn-revision.h"
+}
+
+# --disable-dependency-tracking is safe here. The build is always done in one run.
+#                               It's required to prevent autotools from using -M* options for multiple -arch options
+configure.args      --disable-debug --disable-static --disable-dependency-tracking
+
+# the autoconf check for iconv() in libiconv fails with GNU iconv, but we need it, so we turn it on anyway
+configure.ldflags   -liconv
+
+# to fix: https://trac.macports.org/ticket/31830
+#patchfiles          patch-next_build.sh.diff

Added: trunk/dports/lang/qore-devel/files/patch-next_build.sh.diff
===================================================================
--- trunk/dports/lang/qore-devel/files/patch-next_build.sh.diff	                        (rev 0)
+++ trunk/dports/lang/qore-devel/files/patch-next_build.sh.diff	2012-02-24 08:41:23 UTC (rev 90148)
@@ -0,0 +1,13 @@
+--- next_build.sh.orig	2012-02-23 08:03:52.000000000 +0100
++++ next_build.sh	2012-02-23 08:05:36.000000000 +0100
+@@ -56,8 +56,8 @@
+ # see if svnversion is available
+ which svnversion >/dev/null 2>/dev/null
+ if [ $? -eq 0 ]; then
+-    build=`svnversion|sed s/M//|sed s/:.*$//`
+-    if [ "$build" != "exported" ]; then
++    build=`svnversion|sed -e s/M// -e s/:.*$// -e 's/ .*$//'`
++    if [ "$build" != "exported" -a "$build" != "Unversioned" ]; then
+ 	make_file $file
+ 	ok=1
+     fi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120224/6a46672a/attachment.html>


More information about the macports-changes mailing list