[115028] trunk/dports/editors/efte/Portfile

mojca at macports.org mojca at macports.org
Sun Dec 22 04:44:00 PST 2013


Revision: 115028
          https://trac.macports.org/changeset/115028
Author:   mojca at macports.org
Date:     2013-12-22 04:44:00 -0800 (Sun, 22 Dec 2013)
Log 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

Modified Paths:
--------------
    trunk/dports/editors/efte/Portfile

Modified: trunk/dports/editors/efte/Portfile
===================================================================
--- trunk/dports/editors/efte/Portfile	2013-12-22 12:17:20 UTC (rev 115027)
+++ trunk/dports/editors/efte/Portfile	2013-12-22 12:44:00 UTC (rev 115028)
@@ -2,42 +2,51 @@
 # $Id$
 
 PortSystem          1.0
+PortGroup           cmake 1.0
 
 name                efte
 version             0.96
-revision            3
+revision            4
 categories          editors
 platforms           darwin
 maintainers         reiffert openmaintainer
 description         configurable programmers editor
-long_description \
-    eFTE is a lightweight, extendable, folding text editor \
-    geared toward the programmer. eFTE is a fork of FTE with goals of \
-    taking FTE to the next step, hence, Enhanced FTE.
+long_description    eFTE is a lightweight, extendable, folding text editor \
+                    geared toward the programmer. eFTE is a fork of FTE with goals of \
+                    taking FTE to the next step, hence, Enhanced FTE.
 
 homepage            http://efte.sourceforge.net
 master_sites        sourceforge:project/efte/efte/${version}
+use_bzip2           yes
 
-checksums           efte-${version}.tar.gz md5 ae60a3056e73d4655569f455e4c6283e
-depends_build       bin:cmake:cmake \
-                    port:xorg-libsm \
-                    port:xorg-libXext \
-                    port:xpm
+checksums           rmd160  ad62ddd4e3dffab0bf9f44e9f5d365b54f5d34fe \
+                    sha256  75241d23f7f6f34922153edef8e40470587653bd38bf161f34616e8717a1e4d2
 
-configure.args      -DCMAKE_BUIL_TYPE=Release \
-                    -DCMAKE_INSTALL_PREFIX:PATH=${prefix} \
-                    -DUSE_GPM=OFF -DBUILD_CONSOLE=ON -DBUILD_X=ON
+depends_lib         port:ncurses
 
-configure {
-    system "cd ${worksrcpath} && ${configure.env} cmake ${configure.args} ${worksrcpath}"
+configure.args      -DUSE_GPM=OFF \
+                    -DBUILD_CONSOLE=ON \
+                    -DBUILD_X=OFF
+
+variant x11 conflicts no_x11 {
+    depends_lib-append      port:xorg-libice\
+                            port:xorg-libsm \
+                            port:xorg-libXext \
+                            port:xorg-libX11 \
+                            port:xpm
+
+    configure.args-replace  -DBUILD_X=OFF -DBUILD_X=ON
 }
 
-variant no_x11 {
-    depends_build-delete    port:xorg-libsm port:xorg-libXext port:xpm
-    configure.args-append   "-DBUILD_X=OFF"
-    configure.args-delete   "-DBUILD_X=ON"
+# Legacy no_x11 variant to be removed after December 2014.
+variant no_x11 conflicts x11 description {Legacy compatibility variant} {}
+
+if {[variant_isset no_x11]} {
+    default_variants -x11
+} else {
+    default_variants +x11
 }
 
 post-destroot {
-    system "cd ${destroot}${prefix}/share/efte && ../../bin/cefte config/mymain.fte system.fterc"
+    system -W "${destroot}${prefix}/share/efte"  "../../bin/cefte config/mymain.fte system.fterc"
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20131222/194e9089/attachment.html>


More information about the macports-changes mailing list