Ignore:
Timestamp:
Feb 6, 2013, 2:04:16 AM (7 years ago)
Author:
sean@…
Message:

emacs-mac-app: update to 3.92 and use github instead of patching manually

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/aqua/emacs-mac-app/Portfile

    r99407 r102652  
    33
    44PortSystem          1.0
     5PortGroup           github 1.0
    56
     7github.setup        railwaycat emacs-mac-port 395f34c61ef5
    68name                emacs-mac-app
    7 version             3.3
     9version             3.92
    810categories          aqua editors
    911maintainers         hum openmaintainer
     
    1820license             GPL-3+
    1921
    20 set emacs_version   24.2
    21 distname            emacs-${emacs_version}
    22 dist_subdir         emacs
     22set emacs_version   24.2.92
    2323
    24 set mac_distname    emacs-${emacs_version}-mac-${version}
    25 set mac_distfile    ${mac_distname}${extract.suffix}
    26 distfiles-append    ${mac_distfile}:mac
    27 
    28 master_sites        gnu:emacs \
    29                     ftp://ftp.math.s.chiba-u.ac.jp/emacs/:mac \
    30                     https://github.com/downloads/hiroshi-umemoto/distfiles/:mac
    31 
    32 checksums           ${distname}${extract.suffix} \
    33                     rmd160  26f6c2b671ed7f160875d62e47c89afec085110f \
    34                     sha256  6d9892dff6e1761d4a5eba20712beba4f37d77a196f8021081a2e69fcb5bd357 \
    35                     ${mac_distfile} \
    36                     rmd160  27870cdd3e4aa88ced489254153b0d398b377142 \
    37                     sha256  d217febe5f392ed8270debf617528318a877e4749261d70e4427fa970ce9b871
     24checksums           rmd160  403c4544b28f363f38c2efb9fcaef6a1124d801f \
     25                    sha256  65870cfed099fe5c5a479807eff0622903844f0730c7ca2b04175dbd5ccef851
    3826
    3927depends_lib         port:ncurses
    4028
    4129patchfiles          patch-src_emacs.c.diff
    42 
    43 set mac_path        ${workpath}/${mac_distname}
    44 
    45 post-extract {
    46     # merge mac port files into emacs distribution.
    47     copy ${mac_path}/mac ${worksrcpath}
    48     copy -force \
    49          ${worksrcpath}/nextstep/Cocoa/Emacs.base/Contents/Resources/Emacs.icns \
    50          ${worksrcpath}/mac/Emacs.app/Contents/Resources/Emacs.icns
    51     foreach f [glob ${mac_path}/etc/images/*] {
    52         copy ${f} ${worksrcpath}/etc/images
    53     }
    54     foreach f [glob ${mac_path}/src/*] {
    55         copy ${f} ${worksrcpath}/src
    56     }
    57     copy ${mac_path}/lisp/term/mac-win.el ${worksrcpath}/lisp/term
    58 }
    59 
    60 post-patch {
    61     # postprocess for patch-src_emacs.c.diff.
    62     reinplace "s|__PREFIX__|${prefix}|" ${worksrcpath}/src/emacs.c
    63     # apply mac port patch.
    64     system -W ${worksrcpath} "patch -p 0 < ${mac_path}/patch-mac"
    65 }
    6630
    6731universal_variant   no
     
    9054    }
    9155    delete ${destroot}${prefix}
     56
    9257    # make the application binary a hard link.
    9358    delete ${app_dir}/../MacOS/Emacs
    9459    file link -hard ${app_dir}/../MacOS/Emacs ${app_dir}/../MacOS/bin/emacs
    9560
    96     # install additional documents.
    97     set doc_dir ${destroot}${prefix}/share/doc/emacs-mac
    98     xinstall -d ${doc_dir}
    99     xinstall -m 644 -W ${mac_path} \
    100         COPYING NEWS-mac README-mac \
    101         ${doc_dir}
    10261    # install site-start.el.
    10362    set site_lisp ${destroot}${applications_dir}/Emacs.app/Contents/Resources/site-lisp
     
    10564    file copy ${filespath}/site-start.el ${site_lisp}
    10665    reinplace "s|__PREFIX__|${prefix}|g" ${site_lisp}/site-start.el
     66
    10767    # rename the app bundle to avoid a conflict with emacs-app.
    10868    move ${destroot}${applications_dir}/Emacs.app \
    10969         ${destroot}${applications_dir}/EmacsMac.app
    11070}
    111 
    112 livecheck.type      regex
    113 livecheck.url       ftp://ftp.math.s.chiba-u.ac.jp/emacs/
    114 livecheck.regex     emacs-\\d+\\.\\d+\\w*-mac-(\\d+\\.\\d+\\w*)\\.tar
Note: See TracChangeset for help on using the changeset viewer.