# $Id: Portfile 21144 2007-01-07 02:50:57Z blair@macports.org $ PortSystem 1.0 name xemacs version 21.4.19 revision 1 categories editors maintainers nomaintainer@macports.org description A highly customizable open source text editor. long_description \ XEmacs is a highly customizable open source text editor and \ application development system. It is protected under the \ GNU Public License and related to other versions of Emacs, \ in particular GNU Emacs. platforms darwin 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 distfiles ${name}-${version}${extract.suffix}:stable checksums ${name}-${version}${extract.suffix} \ md5 3f753e2cc22a428c7d775339f29c7e46 \ sha1 638a58db6794d3424e13ad65932697ad1343ab69 \ rmd160 5e2fdd5073934efa6c42fd44cb6d9f6588754314 configure.args --without-postgresql --without-ldap --with-sound=none --pdump \ --site-prefixes=${prefix} --with-tty \ --with-dialogs=athena --with-widgets=athena --with-athena=3d depends_lib lib:libpng.3:libpng lib:libXaw3d.7:Xaw3d destroot.args prefix=${destroot}/${prefix} set xemacs_lib ${destroot}${prefix}/lib/xemacs-${version} set sumo_date 2006-12-21 set sumo_dist ${name}-sumo-${sumo_date}${extract.suffix} set mule_sumo_dist ${name}-mule-sumo-${sumo_date}${extract.suffix} post-destroot { if {![variant_isset carbon_beta]} { destroot.keepdirs ${destroot}${prefix}/lib/xemacs } } 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 5816c257bd282cf2f1c4fa1736ade665 \ sha1 5490d87bb3bf7a01f589ed8b2870ed5290dd00ba \ rmd160 30d6435525f9dc219f5a01102f31aabd9087135c post-destroot { ui_info "Installing mule-sumo distribution into destroot" xinstall -d -m 0755 ${xemacs_lib} system "cp -Rp ${worksrcpath}/../mule-packages ${xemacs_lib}" } } } variant sumo { distfiles-append ${sumo_dist}:sumo checksums-append ${sumo_dist} \ md5 f1c170f4ff8000ad2c5d3a5854b22c5c \ sha1 83fd2adf55a39306a64b6f380a5005fdc1450450 \ rmd160 eb4f4978ee6c01052cead68e18a49b5b4c44cc12 post-destroot { ui_info "Installing sumo distribution into destroot" system "cp -Rp ${worksrcpath}/../xemacs-packages ${xemacs_lib}" } } # 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/" } }