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

Last change on this file since 31744 was 31744, checked in by mww@…, 11 years ago
  • 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
  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.2 KB
Line 
1# $Id: Portfile 31744 2007-12-05 17:30:00Z mww@macports.org $
2
3PortSystem      1.0
4
5name            xemacs
6version         21.4.21
7revision        1
8set sumo_date   2007-04-27
9categories      editors x11
10platforms       darwin
11maintainers     mww
12description     A highly customizable open source text editor.
13
14long_description \
15    XEmacs is a highly customizable open source text editor and application development \
16    system. It is protected under the GNU Public License and related to other versions of \
17    Emacs, in particular GNU Emacs.
18
19homepage        http://www.xemacs.org
20master_sites    http://ftp.xemacs.org/pub/xemacs/xemacs-21.4/:xemacs \
21                ftp://ftp.xemacs.org/pub/xemacs/xemacs-21.4/:xemacs \
22                http://ftp.xemacs.org/pub/xemacs/packages/:package \
23                ftp://ftp.xemacs.org/pub/xemacs/packages/:package \
24                http://mirrors.ibiblio.org/pub/mirrors/xemacs/packages/:package
25
26use_bzip2       yes
27set xemacs_dist ${name}-${version}${extract.suffix}
28set sumo_dist   ${name}-sumo-${sumo_date}${extract.suffix}
29set mule_dist   ${name}-mule-sumo-${sumo_date}${extract.suffix}
30
31distfiles       ${xemacs_dist}:xemacs ${sumo_dist}:package ${mule_dist}:package
32
33checksums       ${xemacs_dist} \
34                    md5 1669330c839780791242fed788ef5482 \
35                    sha1 1c75232615b064c69b5d442052a97c0fa22a49b2 \
36                    rmd160 a22c27b68247ccbd6ab79c103ada7c3aecccc9d4 \
37                ${sumo_dist} \
38                    md5 735fd204c1939f76704b7ba770f59b8c \
39                    sha1 e094fcd1b0cc2b409bfdca828ac5603da3c4e0e4 \
40                    rmd160 b4480601a49fbd708691f3f95204e8f0443fc2aa \
41                ${mule_dist} \
42                    md5 47107fc32d61773568c623d22c29bd0b \
43                    sha1 f817078a1b1fc26bf38219ba167e22c2c00869fe \
44                    rmd160 cacc52b81e6482681297bf03379df75851b3ea80
45
46configure.args  --mandir=${prefix}/share/man \
47                --without-postgresql \
48                --without-ldap \
49                --with-sound=none \
50                --pdump \
51                --site-prefixes=${prefix} \
52                --with-tty \
53                --with-dialogs=athena \
54                --with-widgets=athena \
55                --with-athena=3d \
56                --with-database=gdbm \
57                --with-mule
58
59depends_lib     port:libpng port:Xaw3d port:ncurses port:gdbm port:jpeg \
60                port:tiff port:compface port:gettext port:zlib
61
62destroot.args   prefix=${destroot}${prefix} mandir=${destroot}${prefix}/share/man/man1
63
64destroot.keepdirs ${destroot}${prefix}/lib/xemacs
65post-destroot {
66    set xemacs_lib ${destroot}${prefix}/lib/xemacs-${version}
67    xinstall -d -m 0555 ${xemacs_lib}
68    if {[file exists ${workpath}/mule-packages]} {
69        ui_debug "Installing mule-sumo distribution into destroot"
70        file copy ${workpath}/mule-packages ${xemacs_lib}/
71    }
72    if {[file exists ${workpath}/xemacs-packages]} {
73        ui_debug "Installing sumo distribution into destroot"
74        file copy ${workpath}/xemacs-packages ${xemacs_lib}
75    }
76}
77
78variant no_sumo \
79    description "do not install sumo and mule" {
80    configure.args-delete --with-mule
81    depends_lib-delete    port:gettext
82    distfiles-deletei     ${sumo_dist}:package ${mule_dist}:package
83}
84
Note: See TracBrowser for help on using the repository browser.