Changeset 94278 for trunk/dports/editors


Ignore:
Timestamp:
Jun 13, 2012, 9:00:54 PM (8 years ago)
Author:
dports@…
Message:

emacs23: new port for the latest release of the previous emacs major
version (v23.4)

Location:
trunk/dports/editors/emacs23
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/dports/editors/emacs23/Portfile

    r92061 r94278  
    55PortGroup  muniversal 1.0
    66
    7 name            emacs
    8 conflicts       xemacs
     7name            emacs23
    98version         23.4
    10 revision        1
    119
    1210categories      editors
     
    2422platforms       darwin freebsd
    2523homepage        http://www.gnu.org/software/emacs/emacs.html
    26 master_sites    gnu
     24master_sites    gnu:emacs
     25distname        emacs-${version}
    2726
    28 checksums      rmd160  5fb7e4cd4270a524b8723ad86a145a0e47336bf7 \
    29                sha256  b9a2b8434052771f797d2032772eba862ff9aa143029efc72295170607289c18
     27checksums       rmd160  5fb7e4cd4270a524b8723ad86a145a0e47336bf7 \
     28                sha256  b9a2b8434052771f797d2032772eba862ff9aa143029efc72295170607289c18
    3029
    3130patchfiles      patch-configure.diff \
    3231                patch-src_xgselect.c.diff
     32
     33set major       [lindex [split ${version} .] 0]
     34set suffix      ".${name}"
    3335
    3436configure.args  --without-x \
     
    3840                --without-m17n-flt \
    3941                --without-gpm \
     42                --program-suffix=${suffix} \
    4043                --infodir ${prefix}/share/info/${name}
    4144
     
    4649post-destroot {
    4750    xinstall -d ${destroot}${prefix}/share/emacs/${version}/leim
    48     delete ${destroot}${prefix}/bin/ctags
     51    delete ${destroot}${prefix}/bin/ctags${suffix}
    4952    delete ${destroot}${prefix}/share/man/man1/ctags.1
     53    # remove non-version-specific site-lisp dir
     54    delete ${destroot}${prefix}/share/emacs/site-lisp
     55    delete ${destroot}${prefix}/var/games/emacs/snake-scores
     56    delete ${destroot}${prefix}/var/games/emacs/tetris-scores
     57   
     58    # would be better to rename this and rewrite with appropriate paths
     59    delete ${destroot}${prefix}/share/applications/emacs.desktop
     60    delete ${destroot}${prefix}/share/icons
     61   
     62    # add suffixes to man pages to match binary names
     63    foreach f [glob -dir ${destroot}${prefix}/share/man/man1 *.1] {
     64        move $f "[file rootname $f]${suffix}.1"
     65    }
     66
     67    # give the emacs binary (and its manpage) a more sane name
     68    move ${destroot}${prefix}/bin/emacs${suffix} \
     69         ${destroot}${prefix}/bin/${name}
     70    move ${destroot}${prefix}/bin/emacs-${version}${suffix} \
     71         ${destroot}${prefix}/bin/emacs-${version}
     72    move ${destroot}${prefix}/share/man/man1/emacs${suffix}.1 \
     73         ${destroot}${prefix}/share/man/man1/${name}.1
     74
    5075}
    5176
    5277livecheck.type  regex
    5378livecheck.url   http://ftp.gnu.org/gnu/emacs/?C=M&O=D
    54 livecheck.regex ${name}-(\\d+\\.\\d+\\w*)\\.tar
     79livecheck.regex emacs-(${major}\\.\\d+\\w*)\\.tar
    5580
    5681variant x11 description {Builds emacs as a X11 program with Lucid widgets} {
     
    6489                            --with-png \
    6590                            --without-rsvg \
    66                             --with-xft 
     91                            --with-xft
    6792    depends_lib-append      port:xorg-libXmu \
    6893                            port:xorg-libXaw \
Note: See TracChangeset for help on using the changeset viewer.