Changeset 115028


Ignore:
Timestamp:
Dec 22, 2013, 12:44:00 PM (6 years ago)
Author:
mojca@…
Message:

efte: add x11 variant (#39383), use cmake PortGroup and other minor fixes (#30782, maintainer timeout)

  • use bzip2 distfile because it is smaller
  • change no_x11 variant to x11 variant; retain compatibility code to ease upgrades
  • use the cmake portgroup and remove explicit cmake-specific calls
  • add ncurses dependency
  • change the X dependencies to library dependencies
  • add dependency on xorg-libice, xorg-libX11
  • use rmd160 and sha256 checksums for distfile
  • use system's -W argument
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/editors/efte/Portfile

    r115026 r115028  
    33
    44PortSystem          1.0
     5PortGroup           cmake 1.0
    56
    67name                efte
    78version             0.96
    8 revision            3
     9revision            4
    910categories          editors
    1011platforms           darwin
    1112maintainers         reiffert openmaintainer
    1213description         configurable programmers editor
    13 long_description \
    14     eFTE is a lightweight, extendable, folding text editor \
    15     geared toward the programmer. eFTE is a fork of FTE with goals of \
    16     taking FTE to the next step, hence, Enhanced FTE.
     14long_description    eFTE is a lightweight, extendable, folding text editor \
     15                    geared toward the programmer. eFTE is a fork of FTE with goals of \
     16                    taking FTE to the next step, hence, Enhanced FTE.
    1717
    1818homepage            http://efte.sourceforge.net
    1919master_sites        sourceforge:project/efte/efte/${version}
     20use_bzip2           yes
    2021
    21 checksums           efte-${version}.tar.gz md5 ae60a3056e73d4655569f455e4c6283e
    22 depends_build       bin:cmake:cmake \
    23                     port:xorg-libsm \
    24                     port:xorg-libXext \
    25                     port:xpm
     22checksums           rmd160  ad62ddd4e3dffab0bf9f44e9f5d365b54f5d34fe \
     23                    sha256  75241d23f7f6f34922153edef8e40470587653bd38bf161f34616e8717a1e4d2
    2624
    27 configure.args      -DCMAKE_BUIL_TYPE=Release \
    28                     -DCMAKE_INSTALL_PREFIX:PATH=${prefix} \
    29                     -DUSE_GPM=OFF -DBUILD_CONSOLE=ON -DBUILD_X=ON
     25depends_lib         port:ncurses
    3026
    31 configure {
    32     system "cd ${worksrcpath} && ${configure.env} cmake ${configure.args} ${worksrcpath}"
     27configure.args      -DUSE_GPM=OFF \
     28                    -DBUILD_CONSOLE=ON \
     29                    -DBUILD_X=OFF
     30
     31variant x11 conflicts no_x11 {
     32    depends_lib-append      port:xorg-libice\
     33                            port:xorg-libsm \
     34                            port:xorg-libXext \
     35                            port:xorg-libX11 \
     36                            port:xpm
     37
     38    configure.args-replace  -DBUILD_X=OFF -DBUILD_X=ON
    3339}
    3440
    35 variant no_x11 {
    36     depends_build-delete    port:xorg-libsm port:xorg-libXext port:xpm
    37     configure.args-append   "-DBUILD_X=OFF"
    38     configure.args-delete   "-DBUILD_X=ON"
     41# Legacy no_x11 variant to be removed after December 2014.
     42variant no_x11 conflicts x11 description {Legacy compatibility variant} {}
     43
     44if {[variant_isset no_x11]} {
     45    default_variants -x11
     46} else {
     47    default_variants +x11
    3948}
    4049
    4150post-destroot {
    42     system "cd ${destroot}${prefix}/share/efte && ../../bin/cefte config/mymain.fte system.fterc"
     51    system -W "${destroot}${prefix}/share/efte"  "../../bin/cefte config/mymain.fte system.fterc"
    4352}
Note: See TracChangeset for help on using the changeset viewer.