[96275] trunk/dports/math/bc/Portfile

ryandesign at macports.org ryandesign at macports.org
Mon Aug 6 14:21:02 PDT 2012


Revision: 96275
          https://trac.macports.org/changeset/96275
Author:   ryandesign at macports.org
Date:     2012-08-06 14:21:00 -0700 (Mon, 06 Aug 2012)
Log Message:
-----------
bc: add missing libedit dependency, in a new libedit variant, which is the default (#31192)

Modified Paths:
--------------
    trunk/dports/math/bc/Portfile

Modified: trunk/dports/math/bc/Portfile
===================================================================
--- trunk/dports/math/bc/Portfile	2012-08-06 21:12:07 UTC (rev 96274)
+++ trunk/dports/math/bc/Portfile	2012-08-06 21:21:00 UTC (rev 96275)
@@ -4,6 +4,7 @@
 
 name                bc
 version             1.06.95
+revision            1
 categories          math
 maintainers         mww openmaintainer
 license             GPL-2
@@ -22,19 +23,26 @@
                     sha256  7ee4abbcfac03d8a6e1a8a3440558a3d239d6b858585063e745c760957725ecc
 
 configure.args      --infodir=${prefix}/share/info \
-                    --mandir=${prefix}/share/man \
-                    --with-libedit
+                    --mandir=${prefix}/share/man
 
 post-destroot {
     file delete -force ${destroot}${prefix}/share/info/dir
 }
 
-variant readline description {use GNU readline instead of libedit} {
-    depends_lib port:readline
-    configure.args-delete --with-libedit
+variant libedit conflicts readline description {use libedit for command input editing} {
+    depends_lib-append port:libedit
+    configure.args-append --with-libedit
+}
+
+variant readline conflicts libedit description {use GNU readline for command input editing} {
+    depends_lib-append port:readline
     configure.args-append --with-readline
 }
 
+if {![variant_isset libedit] && ![variant_isset readline]} {
+    default_variants +libedit
+}
+
 livecheck.type      regex
 livecheck.url       http://alpha.gnu.org/gnu/bc/
 livecheck.regex     bc-(\[0-9\.\]+\[0-9\])\\.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120806/e83eb0c8/attachment.html>


More information about the macports-changes mailing list