[87246] trunk/dports/databases/couchdb/Portfile
ryandesign at macports.org
ryandesign at macports.org
Mon Nov 14 15:43:56 PST 2011
Revision: 87246
http://trac.macports.org/changeset/87246
Author: ryandesign at macports.org
Date: 2011-11-14 15:43:54 -0800 (Mon, 14 Nov 2011)
Log Message:
-----------
couchdb: actually check if erlang has been compiled with ssl support, rather than using notes and making the user remember to do so
Modified Paths:
--------------
trunk/dports/databases/couchdb/Portfile
Modified: trunk/dports/databases/couchdb/Portfile
===================================================================
--- trunk/dports/databases/couchdb/Portfile 2011-11-14 23:08:31 UTC (rev 87245)
+++ trunk/dports/databases/couchdb/Portfile 2011-11-14 23:43:54 UTC (rev 87246)
@@ -34,6 +34,14 @@
port:curl \
port:erlang
+pre-configure {
+ # this check was copied from configure.ac
+ if {[catch {system -W ${worksrcpath} "${prefix}/bin/erl -eval 'case application:load(crypto) of ok -> ok; _ -> exit(no_crypto) end.' -noshell -s init stop"}]} {
+ ui_error "${name} requires erlang to be installed with the +ssl variant"
+ return -code error "incompatible erlang installation"
+ }
+}
+
configure.args --with-js-include=${prefix}/include/js \
--with-erlang=${prefix}/lib/erlang/usr/include \
--enable-js-trunk
@@ -74,8 +82,6 @@
ui_msg "########################################################################"
}
-notes "couchdb requires erlang to be installed with ssl support (+ssl)"
-
livecheck.type regex
livecheck.url http://couchdb.apache.org/downloads.html
livecheck.regex apache-${name}-(\[0-9.\]+\[0-9\]+)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20111114/9b58c308/attachment.html>
More information about the macports-changes
mailing list