Changeset 86162


Ignore:
Timestamp:
Oct 20, 2011, 1:04:56 PM (9 years ago)
Author:
nicos@…
Message:

kstars: replacing no_x11 variant with x11, as no_ variants are deprecated

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/kde/kstars/Portfile

    r86145 r86162  
    2929depends_lib-append  port:kdelibs4 \
    3030                    port:eigen \
    31                     port:xplanet \
    3231                    port:cfitsio
    3332
    3433patchfiles          patch-CMakeLists.txt.diff
    3534
    36 variant no_x11 description "Suppresses X11 dependencies" {
    37     depends_lib-delete  port:xplanet
     35variant x11 {
     36    depends_lib-append  port:xplanet
    3837}
    3938
     
    4443        reinplace "s|add_subdirectory( doc )|#add_subdirectory( doc )|g" ${worksrcpath}/CMakeLists.txt
    4544    }
     45
     46    if {![variant_isset x11]} {
     47        reinplace "s|macro_optional_find_package(Xplanet)|#macro_optional_find_package(Xplanet)|g" \
     48            ${worksrcpath}/CMakeLists.txt
     49        reinplace "s|macro_bool_to_01(XPLANET_FOUND HAVE_XPLANET)|#macro_bool_to_01(XPLANET_FOUND HAVE_XPLANET)|g" \
     50            ${worksrcpath}/CMakeLists.txt
     51    }
    4652}
    4753
Note: See TracChangeset for help on using the changeset viewer.