[20151] trunk/dports/editors/xemacs/Portfile
source_changes at macosforge.org
source_changes at macosforge.org
Wed Oct 25 15:39:58 PDT 2006
Revision: 20151
http://trac.macosforge.org/projects/macports/changeset/20151
Author: blair at macports.org
Date: 2006-10-25 15:39:57 -0700 (Wed, 25 Oct 2006)
Log Message:
-----------
On the XEmacs port:
- Update stable port from 21.4.17 to 21.4.19.
- Update the Carbon beta port from 21.5.21 to 21.5.26 and get a newer
Carbon patch for it.
- Add a mule variant for the stable port. Download the mule-sumo
package for it. Depend upon gettext for this variant.
- The carbon_beta variant already uses Mule in its custom build
script, so require the mule variant to be used with it. This gets
the sumo part working when mule is enabled.
- With the sumo variant with the carbon_beta variant, install the mule-sumo
packages.
- Install the Carbon variant into /Applications/MacPorts instead of
/Applications/DarwinPorts.
- Remove code that tried to install the etc, info, lisp, man and
pkginfo directories into xemacs-packages. This code was already
broken since it tried to copy the files from the wrong directory and
the 'make install' installs these already.
- Be a little smarter about using -append and -delete instead of
resetting values to make it clearer on what's being added and
deleted.
Modified Paths:
--------------
trunk/dports/editors/xemacs/Portfile
Modified: trunk/dports/editors/xemacs/Portfile
===================================================================
--- trunk/dports/editors/xemacs/Portfile 2006-10-25 19:37:51 UTC (rev 20150)
+++ trunk/dports/editors/xemacs/Portfile 2006-10-25 22:39:57 UTC (rev 20151)
@@ -2,8 +2,7 @@
PortSystem 1.0
name xemacs
-version 21.4.17
-revision 3
+version 21.4.19
categories editors
maintainers darwinports at opendarwin.org
description A highly customizable open source text editor.
@@ -19,68 +18,101 @@
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/diff/:carbonport \
- http://members.shaw.ca/akochoi-xemacs/diff/:toolbarpatch \
+ 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}-src${extract.suffix}:stable
+distfiles ${name}-${version}${extract.suffix}:stable
-checksums ${name}-${version}-src${extract.suffix} \
- md5 3a05a0fab0dd9bed9df4a3dceb4da97f
+checksums ${name}-${version}${extract.suffix} \
+ md5 3f753e2cc22a428c7d775339f29c7e46 \
+ sha1 638a58db6794d3424e13ad65932697ad1343ab69 \
+ rmd160 5e2fdd5073934efa6c42fd44cb6d9f6588754314
-configure.args --with-dialogs=athena --with-widgets=athena --with-athena=3d \
- --without-postgresql --without-ldap --with-sound=none --pdump \
- --site-prefixes=${prefix} --with-tty
+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 pkg_contents "etc info lisp man pkginfo"
+set xemacs_lib ${destroot}${prefix}/lib/xemacs-${version}
+set sumo_date 2006-05-10
+set sumo_dist ${name}-sumo-${sumo_date}${extract.suffix}
+set mule_sumo_dist ${name}-mule-sumo-${sumo_date}${extract.suffix}
post-destroot {
- ui_info "Installing packages into destroot"
+ if {![variant_isset carbon_beta]} {
+ destroot.keepdirs ${destroot}${prefix}/lib/xemacs
+ }
+}
- destroot.keepdirs ${destroot}${prefix}/lib/xemacs
- xinstall -d ${xemacs_lib}/xemacs-packages
+variant mule {
+ depends_lib-append port:gettext
- system "tar -cpf - -C ${worksrcpath}/.. ${pkg_contents} | \
- tar -xpf - -C ${xemacs_lib}/xemacs-packages"
+ configure.args-append --with-mule
+
+ if {[variant_isset sumo]} {
+ distfiles-append ${mule_sumo_dist}:sumo
+ checksums-append ${mule_sumo_dist} \
+ md5 2b53293efea9d29d7f7af7942cb17939 \
+ sha1 bd0a94580c986703324a0a79614536d77722ef6a \
+ rmd160 a2998681eaba7702f00085a034412f22133ddfe7
+
+ 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 51f9ca6843dae22aec78e6f1033e16b5 \
+ sha1 7816110ec71dedb56caca8eb0a11ed8b6cf6fb91 \
+ rmd160 4f9b3f9160071e7497026a9b6a42c9a17ddbd14b
+
+ 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 {
- version 21.5.21
+ if {![variant_isset mule]} {
+ ui_msg "\nThe carbon_beta variant requires that you use the mule variant.\n"
+ exit 1
+ }
- set carbonport_name ${name}-${version}-carbon-b3.diff
- configure.args --without-postgresql --without-ldap \
- --without-x11 --with-sound=none --pdump \
- --site-prefixes=${prefix} --with-tty
+ 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
- distfiles ${name}-${version}${extract.suffix}:beta \
- ${carbonport_name}.bz2:carbonport
-
- checksums-append ${name}-${version}${extract.suffix} \
- md5 5941238fe8eda3a120bc5735cc50a94d \
- ${carbonport_name}.bz2 md5 6ad58b2b3c77a8030e26b83b6361e39f
+ checksums-append \
+ ${name}-${version}${extract.suffix} \
+ md5 e0cd4521e8857a16f6cd675bb4c1039b \
+ sha1 f2bdb0ba704f730d8151bfa83da5157b6b96f0a0 \
+ ${carbonport_name}.bz2 \
+ md5 f77988f09d4a2c95d54c1eb113805b50 \
+ sha1 881871b9c8dc3cb1c35df4263cbe944a37fbf928
- extract.only ${name}-${version}.tar.gz
+ extract.only-delete ${carbonport_name}.bz2
- if { [variant_isset sumo] } {
- extract.only ${name}-${version}.tar.gz ${name}-sumo-2006-05-10${extract.suffix}
- }
-
post-extract {
- system "cp ${distpath}/${name}-${version}-carbon-b3.diff.bz2 ${workpath}"
- system "cd ${workpath} && bzip2 -d ${name}-${version}-carbon-b3.diff.bz2"
- system "cd ${workpath} && patch -p1 -d ${distname} <${name}-${version}-carbon-b3.diff"
+ 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"
}
- set worksrcpath ${workpath}/${name}-${version}
-
- depends_lib
+ depends_lib
configure {}
build.cmd cd ${worksrcpath}/carbon/ && sh ./build-app.sh
@@ -88,22 +120,10 @@
destroot.args {}
- set xemacs_lib ${destroot}/Applications/DarwinPorts/XEmacs.app/Contents/Resources/lib/xemacs/
+ set xemacs_lib ${destroot}/Applications/MacPorts/XEmacs.app/Contents/Resources/lib/xemacs/
post-destroot {
- system "cp -Rp ${worksrcpath}/carbon/XEmacs.app ${destroot}/Applications/DarwinPorts/"
+ xinstall -d -m 0755 ${destroot}/Applications/MacPorts
+ system "cp -Rp ${worksrcpath}/carbon/XEmacs.app ${destroot}/Applications/MacPorts/"
}
}
-
-variant sumo {
- set sumo_dist ${name}-sumo-2006-05-10${extract.suffix}
-
- distfiles-append ${sumo_dist}:sumo
- checksums-append ${sumo_dist} \
- md5 51f9ca6843dae22aec78e6f1033e16b5
-
- post-destroot {
- ui_info "Installing sumo distribution into destroot"
- system "cp -Rp ${worksrcpath}/../xemacs-packages ${xemacs_lib}"
- }
-}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20061025/9d972969/attachment.html
More information about the macports-changes
mailing list