source: trunk/dports/editors/xemacs/Portfile

Last change on this file was 143804, checked in by ryandesign@…, 21 months ago

xemacs: use ln Tcl command rather than ln executable

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.4 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 143804 2015-12-22 03:31:33Z ryandesign@macports.org $
3
4PortSystem      1.0
5
6name            xemacs
7conflicts       emacs
8# note: the newer 21.5 series is beta and is not stable.
9version         21.4.22
10set sumo_date   2010-07-27
11epoch           1
12categories      editors x11
13platforms       darwin
14maintainers     dstrubbe openmaintainer
15license         GPL-2+
16revision        11
17
18description     A highly customizable open-source text editor.
19
20long_description \
21    XEmacs is a highly customizable open-source text editor and application development \
22    system. It is protected under the GNU Public License and related to other versions of \
23    Emacs, in particular GNU Emacs.
24
25homepage        http://www.xemacs.org
26master_sites    http://ftp.xemacs.org/pub/xemacs/xemacs-21.4/:xemacs \
27                ftp://ftp.xemacs.org/pub/xemacs/xemacs-21.4/:xemacs \
28                http://ftp.xemacs.org/pub/xemacs/packages/:package \
29                ftp://ftp.xemacs.org/pub/xemacs/packages/:package \
30                http://mirrors.ibiblio.org/pub/mirrors/xemacs/packages/:package
31
32set xemacs_dist ${name}-${version}${extract.suffix}
33set sumo_dist   ${name}-sumo-${sumo_date}${extract.suffix}
34set mule_dist   ${name}-mule-sumo-${sumo_date}${extract.suffix}
35
36distfiles       ${xemacs_dist}:xemacs ${sumo_dist}:package ${mule_dist}:package
37
38checksums       xemacs-${version}.tar.gz \
39                md5     b0b762407316d6de170db69aba7a37cf \
40                sha1    24ed9b13d80c53c06bba60c7bb68387f692b7373 \
41                rmd160  f7d71d3607c3301760df8f7ae5a93d1d37df56ba \
42                xemacs-sumo-${sumo_date}.tar.gz \
43                md5     12ee5fca32ff7e3bfd6ecfd4bb157688 \
44                sha1    60b9601b9d865bdb031c8babc4020ab2a8a3258f \
45                rmd160  15bdf45aaa8dc7fe0a4d378f5993b34054563d81 \
46                xemacs-mule-sumo-${sumo_date}.tar.gz \
47                md5     2f5cd280cbc2db71d1211a87bcc37344 \
48                sha1    852a5ac51bb713a16f62676bb5db3f2ab06379cd \
49                rmd160  601a735ff800ceb2443ec9b26bc0f7c5b2215854
50
51patchfiles      51ced9b8fb63e4be59ea611b58128c400e3df987.diff \
52                bcefd94fa6513d48f4dc8519f633b2df66b553bc.diff \
53                texinfo5.patch
54patch.pre_args  -p1
55
56configure.args  --mandir=${prefix}/share/man \
57                --without-postgresql \
58                --without-ldap \
59                --with-sound=none \
60                --pdump \
61                --site-prefixes=${prefix} \
62                --with-tty \
63                --with-dialogs=athena \
64                --with-widgets=athena \
65                --with-athena=3d \
66                --with-database=gdbm \
67                --with-mule
68
69depends_build   bin:makeinfo:texinfo port:xbitmaps
70depends_skip_archcheck-append texinfo
71
72depends_lib     port:libpng port:Xaw3d port:ncurses port:gdbm port:jpeg \
73                port:tiff port:compface port:gettext port:zlib port:xorg-libXaw
74depends_run     port:ctags
75
76destroot.args   prefix=${destroot}${prefix} mandir=${destroot}${prefix}/share/man/man1
77
78destroot.keepdirs ${destroot}${prefix}/lib/xemacs
79post-destroot {
80    set xemacs_lib ${destroot}${prefix}/lib/xemacs-${version}
81    xinstall -d -m 0755 ${xemacs_lib}
82
83    # this directory is empty
84    delete ${destroot}${prefix}/lib/xemacs
85    ln -s xemacs-${version} ${destroot}${prefix}/lib/xemacs
86
87    if {[file exists ${workpath}/mule-packages]} {
88        ui_debug "Installing mule-sumo distribution into destroot"
89        file copy ${workpath}/mule-packages ${xemacs_lib}/
90    }
91    if {[file exists ${workpath}/xemacs-packages]} {
92        ui_debug "Installing sumo distribution into destroot"
93        file copy ${workpath}/xemacs-packages ${xemacs_lib}
94    }
95
96    # avoid conflicts with ctags port
97    delete ${destroot}${prefix}/bin/ctags
98    delete ${destroot}${prefix}/share/man/man1/ctags.1
99}
100
101variant no_sumo \
102    description "do not install sumo and mule" {
103    configure.args-delete --with-mule
104    depends_lib-delete    port:gettext
105    distfiles-delete      ${sumo_dist}:package ${mule_dist}:package
106}
107
108# https://trac.macports.org/ticket/31679
109configure.cflags-append -std=gnu89
110
111if {${os.major} >= 11 && ${os.platform} eq "darwin"} {
112    configure.ldflags-append -Wl,-no_pie
113}
114
115livecheck.type          regex
116livecheck.url           http://ftp.xemacs.org/pub/xemacs/xemacs-21.4
117livecheck.regex         ${name}-(\[0-9.\]+)${extract.suffix}
Note: See TracBrowser for help on using the repository browser.