[92917] trunk/dports/lang/qore-devel/Portfile

ryandesign at macports.org ryandesign at macports.org
Thu May 10 11:47:50 PDT 2012


Revision: 92917
          https://trac.macports.org/changeset/92917
Author:   ryandesign at macports.org
Date:     2012-05-10 11:47:50 -0700 (Thu, 10 May 2012)
Log Message:
-----------
qore-devel: build a specific revision instead of trunk; add autoconf, automake, libtool dependencies; use "system -W"; improve comment; see http://lists.macosforge.org/pipermail/macports-dev/2012-February/017960.html

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

Modified: trunk/dports/lang/qore-devel/Portfile
===================================================================
--- trunk/dports/lang/qore-devel/Portfile	2012-05-10 17:51:14 UTC (rev 92916)
+++ trunk/dports/lang/qore-devel/Portfile	2012-05-10 18:47:50 UTC (rev 92917)
@@ -4,8 +4,8 @@
 PortSystem          1.0
 
 name                qore-devel
-version             0.8.3.99
-revision            1
+svn.revision        4615
+version             0.8.3.99-${svn.revision}
 categories          lang
 maintainers         davidnichols pvanek
 
@@ -24,7 +24,10 @@
 svn.url             https://qore.svn.sourceforge.net/svnroot/qore/qore/trunk/
 
 depends_build       port:flex \
-                    port:bison 
+                    port:bison \
+                    port:autoconf \
+                    port:automake \
+                    port:libtool
 
 depends_lib         port:openssl \
                     port:pcre \
@@ -32,8 +35,8 @@
                     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"
+    # reconf.sh is mandatory for svn builds. svn-revision.h is not created when in an exported directory, which is what MacPorts creates unless you request a working copy by setting "svn.method checkout".
+    system -W ${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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120510/63e2b82d/attachment.html>


More information about the macports-changes mailing list