New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Changeset 79681


Ignore:
Timestamp:
06/23/11 07:48:00 (4 years ago)
Author:
eborisch@…
Message:

eigen3: Re-name variants as requested in http://lists.macosforge.org/pipermail/macports-dev/2011-June/015029.html

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/math/eigen3/Portfile

    r79657 r79681  
    22 
    33PortSystem          1.0 
    4 #PortGroup           cmake 1.0 
    54 
    65name                eigen3 
     
    2726configure.universal_args  "" 
    2827 
     28# Install via CMake by default. Slower than a header-only install, but makes other CMake-based builds happy 
     29default_variants     +cmake 
     30 
    2931# Variants 
    3032variant gcc44 description { Use MacPorts' gcc44 compilers } conflicts gcc45 { 
     
    3638} 
    3739 
    38 variant doc description { Place local documentation into <prefix>/share/doc/eigen3/html } conflicts no_cmake { 
     40variant doc description { Place local documentation into <prefix>/share/doc/eigen3/html } requires cmake { 
    3941  depends_build-append port:doxygen port:texlive-latex 
    4042  build.target-append doc 
    4143} 
    4244 
    43 variant blas description { Build eigen-based blas (libeigen_blas*) } conflicts no_cmake { 
     45variant blas description { Build eigen-based blas (libeigen_blas*) } requires cmake { 
    4446  if {![variant_isset gcc44] && ![variant_isset gcc45]} { 
    45     ui_error "eigen3 +blas needs either +gcc44 or +gcc45 enabled!" 
     47    ui_error "eigen3: ##### +blas needs either +gcc44 or +gcc45 enabled #####" 
    4648    return -code error 
    4749  } else { 
    4850    build.target-append blas 
    4951  } 
    50 } 
    51  
    52 variant no_cmake description { Header-only install: Removes CMake dependency, breaks FindEigen3.cmake } { 
    5352} 
    5453 
     
    9089} 
    9190 
    92  
     91# Conditional phase modifications 
    9392# Are we doing a header-only or cmake (for 'port test' or +doc/+blas) build? 
    94 if {[variant_isset no_cmake]} { 
     93if {![variant_isset cmake]} { 
    9594  # We can skip everything and just copy the headers -- fast! 
    9695  use_configure       no 
     
    106105  test.run            yes 
    107106  test { 
    108     ui_error "!!! TESTING IS UNSUPPORTED WITH +no_cmake VARIANT !!!" 
     107    ui_error "!!! TESTING IS UNSUPPORTED WITHOUT +cmake VARIANT !!!" 
    109108  } 
    110 } else { 
     109} 
     110 
     111variant cmake description { CMake-based install: Disabling removes CMake support } { 
    111112  PortGroup           muniversal 1.0 
    112113  # Not using cmake portgroup as it sets -DCMAKE_OSX_ARCHITECTURES 
Note: See TracChangeset for help on using the changeset viewer.