source: trunk/dports/editors/xemacs/Portfile @ 20293

Last change on this file since 20293 was 20293, checked in by blair@…, 14 years ago

Set the svn:keywords property to 'Id' for all Portfile's. This
re-enables the Id keyword substitution that was present in the CVS
repository.

See this thread for more information:
http://lists.macosforge.org/pipermail/macports-dev/2006-October/000180.html

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.1 KB
Line 
1# $Id: Portfile 20293 2006-11-01 17:47:33Z blair@macports.org $
2
3PortSystem 1.0
4name            xemacs
5version         21.4.19
6categories      editors
7maintainers     darwinports@opendarwin.org
8description     A highly customizable open source text editor.
9long_description \
10                 XEmacs is a highly customizable open source text editor and \
11                 application development system. It is protected under the \
12                 GNU Public License and related to other versions of Emacs, \
13                 in particular GNU Emacs.
14platforms       darwin
15homepage        http://www.xemacs.org
16master_sites    ftp://ftp.xemacs.org/pub/xemacs/xemacs-21.4/:stable \
17                http://ftp.xemacs.org/pub/xemacs/xemacs-21.4/:stable \
18                ftp://ftp.xemacs.org/pub/xemacs/xemacs-21.5/:beta \
19                http://ftp.xemacs.org/pub/xemacs/xemacs-21.5/:beta \
20                http://mirrors.ibiblio.org/pub/mirrors/xemacs/xemacs-21.5/:beta \
21                http://members.shaw.ca/akochoi-xemacs/Old%20Website/diff/:carbonport \
22                ftp://ftp.xemacs.org/pub/xemacs/packages/:sumo \
23                http://ftp.xemacs.org/pub/xemacs/packages/:sumo \
24                http://mirrors.ibiblio.org/pub/mirrors/xemacs/packages/:sumo
25
26distfiles       ${name}-${version}${extract.suffix}:stable
27
28checksums       ${name}-${version}${extract.suffix} \
29                md5 3f753e2cc22a428c7d775339f29c7e46 \
30                sha1 638a58db6794d3424e13ad65932697ad1343ab69 \
31                rmd160 5e2fdd5073934efa6c42fd44cb6d9f6588754314
32
33configure.args  --without-postgresql --without-ldap --with-sound=none --pdump \
34                --site-prefixes=${prefix} --with-tty \
35                --with-dialogs=athena --with-widgets=athena --with-athena=3d
36
37depends_lib     lib:libpng.3:libpng lib:libXaw3d.7:Xaw3d
38
39destroot.args   prefix=${destroot}/${prefix}
40
41set xemacs_lib          ${destroot}${prefix}/lib/xemacs-${version}
42set sumo_date           2006-05-10
43set sumo_dist           ${name}-sumo-${sumo_date}${extract.suffix}
44set mule_sumo_dist      ${name}-mule-sumo-${sumo_date}${extract.suffix}
45
46post-destroot {
47        if {![variant_isset carbon_beta]} {
48                destroot.keepdirs ${destroot}${prefix}/lib/xemacs
49        }
50}
51
52variant mule {
53        depends_lib-append      port:gettext
54
55        configure.args-append   --with-mule
56
57        if {[variant_isset sumo]} {
58                distfiles-append        ${mule_sumo_dist}:sumo
59                checksums-append        ${mule_sumo_dist} \
60                                        md5 2b53293efea9d29d7f7af7942cb17939 \
61                                        sha1 bd0a94580c986703324a0a79614536d77722ef6a \
62                                        rmd160 a2998681eaba7702f00085a034412f22133ddfe7
63
64                post-destroot {
65                        ui_info "Installing mule-sumo distribution into destroot"
66                        xinstall -d -m 0755 ${xemacs_lib}
67                        system "cp -Rp ${worksrcpath}/../mule-packages ${xemacs_lib}"
68                }
69        }
70}
71
72variant sumo {
73        distfiles-append        ${sumo_dist}:sumo
74        checksums-append        ${sumo_dist} \
75                                md5 51f9ca6843dae22aec78e6f1033e16b5 \
76                                sha1 7816110ec71dedb56caca8eb0a11ed8b6cf6fb91 \
77                                rmd160 4f9b3f9160071e7497026a9b6a42c9a17ddbd14b
78
79        post-destroot {
80                ui_info "Installing sumo distribution into destroot"
81                system "cp -Rp ${worksrcpath}/../xemacs-packages ${xemacs_lib}"
82        }
83}
84
85# This variant must appear last in this file, since it overrides and
86# modifies some of the values set in the above variants.
87variant carbon_beta {
88        if {![variant_isset mule]} {
89                ui_msg "\nThe carbon_beta variant requires that you use the mule variant.\n"
90                exit 1
91        }
92
93        distfiles-delete        ${name}-${version}${extract.suffix}
94        version                 21.5.26
95        set carbonport_name     ${name}-${version}-carbon-b5.diff
96        distfiles-append        ${name}-${version}${extract.suffix}:beta \
97                                ${carbonport_name}.bz2:carbonport
98
99        checksums-append \
100                ${name}-${version}${extract.suffix} \
101                        md5 e0cd4521e8857a16f6cd675bb4c1039b \
102                        sha1 f2bdb0ba704f730d8151bfa83da5157b6b96f0a0 \
103                ${carbonport_name}.bz2 \
104                        md5 f77988f09d4a2c95d54c1eb113805b50 \
105                        sha1 881871b9c8dc3cb1c35df4263cbe944a37fbf928
106
107        extract.only-delete     ${carbonport_name}.bz2
108
109        post-extract    {
110                 system "cp ${distpath}/${name}-${version}-carbon-b5.diff.bz2 ${workpath}"
111                 system "cd ${workpath} && bzip2 -d ${name}-${version}-carbon-b5.diff.bz2"
112                 system "cd ${workpath} && patch -p1 -d ${distname} <${name}-${version}-carbon-b5.diff"
113        }
114
115        depends_lib
116        configure       {}
117
118        build.cmd       cd ${worksrcpath}/carbon/ && sh ./build-app.sh
119        build.args      {}
120
121        destroot.args   {}
122
123        set xemacs_lib  ${destroot}/Applications/MacPorts/XEmacs.app/Contents/Resources/lib/xemacs/
124
125        post-destroot   {
126                xinstall -d -m 0755 ${destroot}/Applications/MacPorts
127                system "cp -Rp ${worksrcpath}/carbon/XEmacs.app ${destroot}/Applications/MacPorts/"
128        }
129}
Note: See TracBrowser for help on using the repository browser.