| 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$ |
|---|
| 3 | |
|---|
| 4 | PortSystem 1.0 |
|---|
| 5 | |
|---|
| 6 | name emacs-app |
|---|
| 7 | version 24.4 |
|---|
| 8 | categories aqua editors |
|---|
| 9 | maintainers hum css openmaintainer |
|---|
| 10 | |
|---|
| 11 | description The GNU Emacs text editor (Cocoa version) |
|---|
| 12 | |
|---|
| 13 | long_description GNU Emacs is a self-documenting, customizable, extensible \ |
|---|
| 14 | real-time display editor. This is a port of the latest GNU \ |
|---|
| 15 | Emacs source to the OpenStep (or NeXTstep) APIs, as \ |
|---|
| 16 | implemented by Cocoa on OS X. It differs from Carbon ports \ |
|---|
| 17 | of GNU Emacs in that it makes a more concerted attempt \ |
|---|
| 18 | from the ground up to follow OS X desktop and UI conventions. |
|---|
| 19 | |
|---|
| 20 | homepage http://www.gnu.org/software/emacs/ |
|---|
| 21 | platforms darwin |
|---|
| 22 | license GPL-3+ |
|---|
| 23 | |
|---|
| 24 | master_sites gnu:emacs |
|---|
| 25 | distname emacs-${version} |
|---|
| 26 | dist_subdir emacs |
|---|
| 27 | checksums rmd160 52bec18c5f8e4ee7ea3b765620c0f19d2ee524c9 \ |
|---|
| 28 | sha256 a93c4f1afa5ade65a0c9723975f0a5fdf6641cc4638fdafb3ed9942c23c32cc6 |
|---|
| 29 | |
|---|
| 30 | conflicts emacs-app-devel |
|---|
| 31 | |
|---|
| 32 | depends_build port:pkgconfig |
|---|
| 33 | |
|---|
| 34 | depends_lib port:ncurses \ |
|---|
| 35 | port:libxml2 \ |
|---|
| 36 | port:gnutls |
|---|
| 37 | |
|---|
| 38 | patchfiles patch-src_emacs.c.diff |
|---|
| 39 | |
|---|
| 40 | post-patch { |
|---|
| 41 | reinplace "s|__PREFIX__|${prefix}|" ${worksrcpath}/src/emacs.c |
|---|
| 42 | } |
|---|
| 43 | |
|---|
| 44 | configure.args --with-ns --without-x --without-dbus |
|---|
| 45 | |
|---|
| 46 | universal_variant no |
|---|
| 47 | |
|---|
| 48 | destroot { |
|---|
| 49 | system -W ${worksrcpath} "make install" |
|---|
| 50 | xinstall -m 755 -d ${destroot}${applications_dir} |
|---|
| 51 | file copy ${worksrcpath}/nextstep/Emacs.app \ |
|---|
| 52 | ${destroot}${applications_dir} |
|---|
| 53 | file copy ${filespath}/site-start.el \ |
|---|
| 54 | ${destroot}${applications_dir}/Emacs.app/Contents/Resources/site-lisp |
|---|
| 55 | reinplace "s|__PREFIX__|${prefix}|g" \ |
|---|
| 56 | ${destroot}${applications_dir}/Emacs.app/Contents/Resources/site-lisp/site-start.el |
|---|
| 57 | } |
|---|
| 58 | |
|---|
| 59 | variant inline description {Apply inline patch} { |
|---|
| 60 | # inline patch for 24.4 |
|---|
| 61 | # http://plamo.linet.gr.jp/~matsuki/mac/emacs-24.4-20140820-inline.patch.bz2 |
|---|
| 62 | patchfiles-append patch-inline-24.4-20140820.diff |
|---|
| 63 | # http://sakito.jp/emacs/emacs24.html |
|---|
| 64 | depends_build-append port:autoconf port:automake port:libtool |
|---|
| 65 | build.target bootstrap |
|---|
| 66 | } |
|---|
| 67 | |
|---|
| 68 | default_variants +inline |
|---|
| 69 | |
|---|
| 70 | livecheck.type regex |
|---|
| 71 | livecheck.url http://ftp.gnu.org/gnu/emacs/?C=M&O=D |
|---|
| 72 | livecheck.regex emacs-(\\d+\\.\\d+\\w*)\\.tar |
|---|