New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Changeset 79682


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

eigen3: Whitespace and re-ordering of portfile contents. No changes in behavior.

File:
1 edited

Legend:

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

    r79681 r79682  
    3030 
    3131# Variants 
    32 variant gcc44 description { Use MacPorts' gcc44 compilers } conflicts gcc45 { 
     32variant gcc44 description {Use MacPorts' gcc44 compilers} conflicts gcc45 { 
    3333  configure.compiler  macports-gcc-4.4 
    3434} 
    3535 
    36 variant gcc45 description { Use MacPorts' gcc45 compilers } conflicts gcc44 { 
     36variant gcc45 description {Use MacPorts' gcc45 compilers} conflicts gcc44 { 
    3737  configure.compiler  macports-gcc-4.5 
    3838} 
    3939 
    40 variant doc description { Place local documentation into <prefix>/share/doc/eigen3/html } requires cmake { 
     40variant doc description {Place local documentation into <prefix>/share/doc/eigen3/html} requires cmake { 
    4141  depends_build-append port:doxygen port:texlive-latex 
    4242  build.target-append doc 
    4343} 
    4444 
    45 variant blas description { Build eigen-based blas (libeigen_blas*) } requires cmake { 
     45variant blas description {Build eigen-based blas (libeigen_blas*)} requires cmake { 
    4646  if {![variant_isset gcc44] && ![variant_isset gcc45]} { 
    4747    ui_error "eigen3: ##### +blas needs either +gcc44 or +gcc45 enabled #####" 
     
    4949  } else { 
    5050    build.target-append blas 
     51  } 
     52} 
     53 
     54variant cmake description {CMake-based install: Disabling removes CMake support} { 
     55  PortGroup           muniversal 1.0 
     56  # Not using cmake portgroup as it sets -DCMAKE_OSX_ARCHITECTURES 
     57  # in a way we don't seem to be able disable. 
     58  set cmake_share_module_dir ${prefix}/share/cmake/modules 
     59 
     60  depends_build-append port:cmake 
     61 
     62  configure.cmd       cmake 
     63 
     64  configure.pre_args  -DCMAKE_INSTALL_PREFIX=${prefix} 
     65 
     66  configure.args      -DCMAKE_VERBOSE_MAKEFILE=ON \ 
     67                      -DCMAKE_COLOR_MAKEFILE=ON \ 
     68                      -DCMAKE_BUILD_TYPE=Release \ 
     69                      -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON \ 
     70                      -DCMAKE_INSTALL_NAME_DIR=${prefix}/lib \ 
     71                      -DCMAKE_SYSTEM_PREFIX_PATH=\"${prefix}\;/usr\" \ 
     72                      -DCMAKE_MODULE_PATH=${cmake_share_module_dir} \ 
     73                      -Wno-dev 
     74  
     75  # Out of source build 
     76  configure.args-append ../eigen_src 
     77 
     78  # Enable test cases if we've actually configured 
     79  test.run            yes 
     80  test.target         check 
     81  test.env-append     EIGEN_MAKE_ARGS=-j{build.jobs} \ 
     82                      EIGEN_CTEST_ARGS=-j{build.jobs} 
     83 
     84  # Enable parallel builds 
     85  build.env-append    EIGEN_MAKE_ARGS=-j{build.jobs} 
     86} 
     87 
     88# Conditional phase modifications 
     89# Are we doing a header-only or cmake (for 'port test' or +doc/+blas) build? 
     90if {![variant_isset cmake]} { 
     91  # We can skip everything and just copy the headers -- fast! 
     92  use_configure       no 
     93  build {} 
     94  destroot { 
     95    set incldir ${destroot}${prefix}/include/${name} 
     96    xinstall -d ${incldir} 
     97    file copy ${workpath}/eigen_src/Eigen ${incldir} 
     98    file copy ${workpath}/eigen_src/unsupported ${incldir} 
     99  } 
     100 
     101  # Fail with message if user tries to test 
     102  test.run            yes 
     103  test { 
     104    ui_error "!!! TESTING IS UNSUPPORTED WITHOUT +cmake VARIANT !!!" 
    51105  } 
    52106} 
     
    89143} 
    90144 
    91 # Conditional phase modifications 
    92 # Are we doing a header-only or cmake (for 'port test' or +doc/+blas) build? 
    93 if {![variant_isset cmake]} { 
    94   # We can skip everything and just copy the headers -- fast! 
    95   use_configure       no 
    96   build {} 
    97   destroot { 
    98     set incldir ${destroot}${prefix}/include/${name} 
    99     xinstall -d ${incldir} 
    100     file copy ${workpath}/eigen_src/Eigen ${incldir} 
    101     file copy ${workpath}/eigen_src/unsupported ${incldir} 
    102   } 
    103  
    104   # Fail with message if user tries to test 
    105   test.run            yes 
    106   test { 
    107     ui_error "!!! TESTING IS UNSUPPORTED WITHOUT +cmake VARIANT !!!" 
    108   } 
    109 } 
    110  
    111 variant cmake description { CMake-based install: Disabling removes CMake support } { 
    112   PortGroup           muniversal 1.0 
    113   # Not using cmake portgroup as it sets -DCMAKE_OSX_ARCHITECTURES 
    114   # in a way we don't seem to be able disable. 
    115   set cmake_share_module_dir ${prefix}/share/cmake/modules 
    116  
    117   depends_build-append port:cmake 
    118  
    119   configure.cmd       cmake 
    120  
    121   configure.pre_args  -DCMAKE_INSTALL_PREFIX=${prefix} 
    122  
    123   configure.args      -DCMAKE_VERBOSE_MAKEFILE=ON \ 
    124                       -DCMAKE_COLOR_MAKEFILE=ON \ 
    125                       -DCMAKE_BUILD_TYPE=Release \ 
    126                       -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON \ 
    127                       -DCMAKE_INSTALL_NAME_DIR=${prefix}/lib \ 
    128                       -DCMAKE_SYSTEM_PREFIX_PATH=\"${prefix}\;/usr\" \ 
    129                       -DCMAKE_MODULE_PATH=${cmake_share_module_dir} \ 
    130                       -Wno-dev 
    131   
    132   # Out of source build 
    133   configure.args-append ../eigen_src 
    134  
    135   # Enable test cases if we've actually configured 
    136   test.run            yes 
    137   test.target         check 
    138   test.env-append     EIGEN_MAKE_ARGS=-j{build.jobs} \ 
    139                       EIGEN_CTEST_ARGS=-j{build.jobs} 
    140  
    141   # Enable parallel builds 
    142   build.env-append    EIGEN_MAKE_ARGS=-j{build.jobs} 
    143 } 
    144  
    145145livecheck.type        regex 
    146146livecheck.url         ${homepage}index.php?title=ChangeLog 
Note: See TracChangeset for help on using the changeset viewer.