[31744] trunk/dports/editors/xemacs/Portfile

mww at macports.org mww at macports.org
Wed Dec 5 09:30:11 PST 2007


Revision: 31744
          http://trac.macosforge.org/projects/macports/changeset/31744
Author:   mww at macports.org
Date:     2007-12-05 09:30:00 -0800 (Wed, 05 Dec 2007)

Log Message:
-----------
* take maintainership
* remove version-changing (aah!) carbon variant
* make sumo/mule the default and provide a no_sumo for minimalists
* only copy sumo & mule if extracted (so we can select no_sumo just like that)
* use_bzip2 for all distfiles
* fix dependencies (lots were missing)
* use gdbm
* increment revision

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

Modified: trunk/dports/editors/xemacs/Portfile
===================================================================
--- trunk/dports/editors/xemacs/Portfile	2007-12-05 16:24:43 UTC (rev 31743)
+++ trunk/dports/editors/xemacs/Portfile	2007-12-05 17:30:00 UTC (rev 31744)
@@ -4,9 +4,11 @@
 
 name            xemacs
 version         21.4.21
-categories      editors
+revision	1
+set sumo_date   2007-04-27
+categories      editors x11
 platforms       darwin
-maintainers     nomaintainer
+maintainers     mww
 description     A highly customizable open source text editor.
 
 long_description \
@@ -15,23 +17,32 @@
     Emacs, in particular GNU Emacs.
 
 homepage        http://www.xemacs.org
-master_sites    ftp://ftp.xemacs.org/pub/xemacs/xemacs-21.4/:stable \
-                http://ftp.xemacs.org/pub/xemacs/xemacs-21.4/:stable \
-                ftp://ftp.xemacs.org/pub/xemacs/xemacs-21.5/:beta \
-                http://ftp.xemacs.org/pub/xemacs/xemacs-21.5/:beta \
-                http://mirrors.ibiblio.org/pub/mirrors/xemacs/xemacs-21.5/:beta \
-                http://members.shaw.ca/akochoi-xemacs/Old%20Website/diff/:carbonport \
-                ftp://ftp.xemacs.org/pub/xemacs/packages/:sumo \
-                http://ftp.xemacs.org/pub/xemacs/packages/:sumo \
-                http://mirrors.ibiblio.org/pub/mirrors/xemacs/packages/:sumo
+master_sites    http://ftp.xemacs.org/pub/xemacs/xemacs-21.4/:xemacs \
+                ftp://ftp.xemacs.org/pub/xemacs/xemacs-21.4/:xemacs \
+                http://ftp.xemacs.org/pub/xemacs/packages/:package \
+                ftp://ftp.xemacs.org/pub/xemacs/packages/:package \
+                http://mirrors.ibiblio.org/pub/mirrors/xemacs/packages/:package
 
-distfiles       ${name}-${version}${extract.suffix}:stable
+use_bzip2       yes
+set xemacs_dist ${name}-${version}${extract.suffix}
+set sumo_dist   ${name}-sumo-${sumo_date}${extract.suffix}
+set mule_dist   ${name}-mule-sumo-${sumo_date}${extract.suffix}
 
-checksums       ${name}-${version}${extract.suffix} \
-                    md5 87b051f12d1bb344ca4da1907100f1b5 \
-                    sha1 fe9216148ae90c9f4c8b904a987319026676c535 \
-                    rmd160 6dd212dd926cd7a8cb5ac905fb41ef787065bef5
+distfiles       ${xemacs_dist}:xemacs ${sumo_dist}:package ${mule_dist}:package
 
+checksums       ${xemacs_dist} \
+                    md5 1669330c839780791242fed788ef5482 \
+                    sha1 1c75232615b064c69b5d442052a97c0fa22a49b2 \
+                    rmd160 a22c27b68247ccbd6ab79c103ada7c3aecccc9d4 \
+                ${sumo_dist} \
+                    md5 735fd204c1939f76704b7ba770f59b8c \
+                    sha1 e094fcd1b0cc2b409bfdca828ac5603da3c4e0e4 \
+                    rmd160 b4480601a49fbd708691f3f95204e8f0443fc2aa \
+                ${mule_dist} \
+                    md5 47107fc32d61773568c623d22c29bd0b \
+                    sha1 f817078a1b1fc26bf38219ba167e22c2c00869fe \
+                    rmd160 cacc52b81e6482681297bf03379df75851b3ea80
+
 configure.args  --mandir=${prefix}/share/man \
                 --without-postgresql \
                 --without-ldap \
@@ -41,100 +52,33 @@
                 --with-tty \
                 --with-dialogs=athena \
                 --with-widgets=athena \
-                --with-athena=3d
+                --with-athena=3d \
+                --with-database=gdbm \
+                --with-mule
 
-depends_lib     port:libpng \
-                port:Xaw3d
+depends_lib     port:libpng port:Xaw3d port:ncurses port:gdbm port:jpeg \
+                port:tiff port:compface port:gettext port:zlib
 
 destroot.args   prefix=${destroot}${prefix} mandir=${destroot}${prefix}/share/man/man1
 
-set xemacs_lib      ${destroot}${prefix}/lib/xemacs-${version}
-set sumo_date       2007-04-27
-set sumo_dist       ${name}-sumo-${sumo_date}${extract.suffix}
-set mule_sumo_dist  ${name}-mule-sumo-${sumo_date}${extract.suffix}
-
+destroot.keepdirs ${destroot}${prefix}/lib/xemacs
 post-destroot {
-    if {![variant_isset carbon_beta]} {
-        destroot.keepdirs ${destroot}${prefix}/lib/xemacs
+    set xemacs_lib ${destroot}${prefix}/lib/xemacs-${version}
+    xinstall -d -m 0555 ${xemacs_lib}
+    if {[file exists ${workpath}/mule-packages]} {
+        ui_debug "Installing mule-sumo distribution into destroot"
+        file copy ${workpath}/mule-packages ${xemacs_lib}/
     }
-}
-
-variant mule {
-    depends_lib-append      port:gettext
-
-    configure.args-append   --with-mule
-
-    if {[variant_isset sumo]} {
-        distfiles-append    ${mule_sumo_dist}:sumo
-        checksums-append    ${mule_sumo_dist} \
-                                md5 6fc22d133a44b15108f3533b4ec3198d \
-                                sha1 76b5fae416a02a556cc3c5d167abe9b8a6513d20 \
-                                rmd160 05efb557b8742dd33d6472d2e149e787fe12b837
-
-        post-destroot {
-            ui_info "Installing mule-sumo distribution into destroot"
-            xinstall -d -m 0755 ${xemacs_lib}
-            system "cp -Rp ${worksrcpath}/../mule-packages ${xemacs_lib}"
-        }
+    if {[file exists ${workpath}/xemacs-packages]} {
+        ui_debug "Installing sumo distribution into destroot"
+        file copy ${workpath}/xemacs-packages ${xemacs_lib}
     }
 }
 
-variant sumo {
-    distfiles-append    ${sumo_dist}:sumo
-    checksums-append    ${sumo_dist} \
-                            md5 d285432a14905ec5662cbf3789d98a9a \
-                            sha1 2e3d6d68b769441b0d3f4ed0221b4c994159ded2 \
-                            rmd160 8b162d041a1b06d5c45a77ec1750a00bdf9f5872
-
-    post-destroot {
-        ui_info "Installing sumo distribution into destroot"
-        system "cp -Rp ${worksrcpath}/../xemacs-packages ${xemacs_lib}"
-    }
+variant no_sumo \
+    description "do not install sumo and mule" {
+    configure.args-delete --with-mule
+    depends_lib-delete    port:gettext
+    distfiles-deletei     ${sumo_dist}:package ${mule_dist}:package
 }
 
-# This variant must appear last in this file, since it overrides and
-# modifies some of the values set in the above variants.
-variant carbon_beta {
-    if {![variant_isset mule]} {
-        ui_msg "\nThe carbon_beta variant requires that you use the mule variant.\n"
-        exit 1
-    }
-
-    distfiles-delete    ${name}-${version}${extract.suffix}
-    version             21.5.26
-    set carbonport_name ${name}-${version}-carbon-b5.diff
-    distfiles-append    ${name}-${version}${extract.suffix}:beta \
-                        ${carbonport_name}.bz2:carbonport
-
-    checksums-append \
-        ${name}-${version}${extract.suffix} \
-            md5 e0cd4521e8857a16f6cd675bb4c1039b \
-            sha1 f2bdb0ba704f730d8151bfa83da5157b6b96f0a0 \
-        ${carbonport_name}.bz2 \
-            md5 f77988f09d4a2c95d54c1eb113805b50 \
-            sha1 881871b9c8dc3cb1c35df4263cbe944a37fbf928
-
-    extract.only-delete ${carbonport_name}.bz2
-
-    post-extract {
-         system "cp ${distpath}/${name}-${version}-carbon-b5.diff.bz2 ${workpath}"
-         system "cd ${workpath} && bzip2 -d ${name}-${version}-carbon-b5.diff.bz2"
-         system "cd ${workpath} && patch -p1 -d ${distname} <${name}-${version}-carbon-b5.diff"
-    }
-
-    depends_lib
-    configure   {}
-
-    build.cmd   cd ${worksrcpath}/carbon/ && sh ./build-app.sh
-    build.args  {}
-
-    destroot.args   {}
-
-    set xemacs_lib  ${destroot}/Applications/MacPorts/XEmacs.app/Contents/Resources/lib/xemacs/
-
-    post-destroot   {
-        xinstall -d -m 0755 ${destroot}/Applications/MacPorts
-        system "cp -Rp ${worksrcpath}/carbon/XEmacs.app ${destroot}/Applications/MacPorts/"
-    }
-}
-

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20071205/613ff333/attachment.html


More information about the macports-changes mailing list