[148428] trunk/dports/erlang/erlsom

ryandesign at macports.org ryandesign at macports.org
Sat May 7 19:18:26 PDT 2016


Revision: 148428
          https://trac.macports.org/changeset/148428
Author:   ryandesign at macports.org
Date:     2016-05-07 19:18:26 -0700 (Sat, 07 May 2016)
Log Message:
-----------
erlsom: fix configure script to be able to read a quoted ROOTDIR in erl script (#51317); supported_archs noarch

Modified Paths:
--------------
    trunk/dports/erlang/erlsom/Portfile

Added Paths:
-----------
    trunk/dports/erlang/erlsom/files/patch-configure.in.diff

Modified: trunk/dports/erlang/erlsom/Portfile
===================================================================
--- trunk/dports/erlang/erlsom/Portfile	2016-05-08 00:44:11 UTC (rev 148427)
+++ trunk/dports/erlang/erlsom/Portfile	2016-05-08 02:18:26 UTC (rev 148428)
@@ -9,6 +9,8 @@
 license             LGPL-3+
 maintainers         nomaintainer
 platforms           darwin
+supported_archs     noarch
+
 description         An Erlang libary for XML parsing.
 long_description    An Erlang libary for XML parsing. It supports various modes of operation: as an efficient SAX parser, as a simple DOM-like parser, or as a 'data mapper'. The data mapper transforms the XML document to Erlang records, based on an XML Schema.
 homepage            http://erlsom.sourceforge.net/
@@ -24,7 +26,8 @@
 use_autoconf        yes
 extract.mkdir       yes
 
-patchfiles          patch-Makefile.diff \
+patchfiles          patch-configure.in.diff \
+                    patch-Makefile.diff \
                     patch-src-Makefile.diff
 
 build.target        debuginfo

Added: trunk/dports/erlang/erlsom/files/patch-configure.in.diff
===================================================================
--- trunk/dports/erlang/erlsom/files/patch-configure.in.diff	                        (rev 0)
+++ trunk/dports/erlang/erlsom/files/patch-configure.in.diff	2016-05-08 02:18:26 UTC (rev 148428)
@@ -0,0 +1,11 @@
+--- configure.in.orig	2006-11-26 16:17:41.000000000 -0600
++++ configure.in	2016-05-07 21:11:02.000000000 -0500
+@@ -54,7 +54,7 @@
+            ERLDIR=`echo "${ERL}" | sed 's/\/bin\/*erl.*//'`
+ 	;;
+ 	*)	
+-    	  ERLDIR=`awk -F= '/ROOTDIR=/ { print [$]2; exit; }' $ERL`;;
++    	  ERLDIR=$(sh -c "$(sed -n '/^ *ROOTDIR=/p' $ERL) && echo \$ROOTDIR");;
+     esac
+ 
+ if test ! -d "$ERLDIR" ; then
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160507/a543caf9/attachment.html>


More information about the macports-changes mailing list