Changeset 89440 for trunk/dports
- Timestamp:
- Jan 29, 2012, 10:29:46 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dports/aqua/emacs-app/Portfile
r89435 r89440 2 2 # $Id$ 3 3 4 PortSystem 1.04 PortSystem 1.0 5 5 6 name emacs-app 7 version 23.4 8 categories aqua editors 9 license GPL-3+ 10 maintainers css hum openmaintainer 11 description The GNU Emacs text editor (Cocoa version) 6 name emacs-app 7 version 23.4 8 categories aqua editors 9 maintainers css hum openmaintainer 12 10 13 long_description GNU Emacs is a self-documenting, customizable, \ 14 extensible real-time display editor. This is a port of the latest \ 15 GNU Emacs source to the OpenStep (or NeXTstep) APIs, as implemented \ 16 by Cocoa on OS X. It differs from Carbon ports of GNU Emacs in that \ 17 it makes a more concerted attempt from the ground up to follow OS X \ 18 desktop and UI conventions. 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 19 20 20 # Note that this distribution can support GNUstep as well, but that 21 21 # configuration is untested at this time. 22 22 23 platforms darwin 24 homepage http://www.gnu.org/software/emacs/ 25 master_sites gnu:emacs 26 dist_subdir emacs 27 distname emacs-${version} 23 homepage http://www.gnu.org/software/emacs/ 24 platforms darwin 25 license GPL-3+ 26 27 master_sites gnu:emacs 28 distname emacs-${version} 29 dist_subdir emacs 28 30 checksums rmd160 5fb7e4cd4270a524b8723ad86a145a0e47336bf7 \ 29 31 sha256 b9a2b8434052771f797d2032772eba862ff9aa143029efc72295170607289c18 30 32 31 depends_lib port:ncurses 32 use_parallel_build yes 33 depends_lib port:ncurses 33 34 34 configure.args --with-ns --without-x --without-dbus 35 36 patchfiles patch-src_emacs.c.diff 35 patchfiles patch-src_emacs.c.diff 37 36 38 37 if {${configure.compiler} == "clang"} { 39 38 patchfiles-append patch-clang.diff 39 } 40 41 post-patch { 42 reinplace "s|__PREFIX__|${prefix}|" ${worksrcpath}/src/emacs.c 43 } 44 45 configure.args --with-ns --without-x --without-dbus 46 47 use_parallel_build yes 48 49 destroot { 50 system "cd ${worksrcpath} && make install" 51 xinstall -m 755 -d ${destroot}${applications_dir} 52 file copy ${worksrcpath}/nextstep/Emacs.app \ 53 ${destroot}${applications_dir} 54 file copy ${filespath}/site-start.el \ 55 ${destroot}${applications_dir}/Emacs.app/Contents/Resources/site-lisp 56 } 57 58 post-destroot { 59 reinplace "s|__PREFIX__|${prefix}|g" \ 60 ${destroot}${applications_dir}/Emacs.app/Contents/Resources/site-lisp/site-start.el 40 61 } 41 62 … … 44 65 # http://www.sanityinc.com/full-screen-support-for-cocoa-emacs-on-osx 45 66 variant fullscreen description {Add fullscreen patch} { 46 patchfiles-append patch-fullscreen.diff67 patchfiles-append patch-fullscreen.diff 47 68 } 48 69 … … 52 73 # patch-macemacsjp-inline.diff <= emacs-inline.patch 53 74 # patch-macemacsjp-jpfont.diff <= font.patch 54 55 75 variant inline description {Add inline patch from MacEmacsJP} { 56 patchfiles-append patch-macemacsjp-inline.diff76 patchfiles-append patch-macemacsjp-inline.diff 57 77 } 58 78 59 79 variant jpfont description {Add Japanese font patch from MacEmacsJP} { 60 patchfiles-append patch-macemacsjp-jpfont.diff80 patchfiles-append patch-macemacsjp-jpfont.diff 61 81 } 62 82 … … 64 84 65 85 platform darwin 11 { 66 patchfiles-append 86 patchfiles-append patch-fix-title-bar.diff 67 87 # patch-lion-fullscreen.diff 68 88 # https://github.com/downloads/typester/emacs/emacs-23-lion-fullscreen-test.patch 69 89 if {[variant_isset fullscreen]} { 70 patchfiles-append 90 patchfiles-append patch-lion-fullscreen.diff 71 91 } 72 configure.cflags-append -fno-pie -O2 73 configure.ldflags-append -fno-pie 74 } 75 76 post-patch { 77 reinplace "s|__PREFIX__|${prefix}|" ${worksrcpath}/src/emacs.c 78 } 79 80 destroot { 81 system "cd ${worksrcpath} && make install" 82 xinstall -m 755 -d ${destroot}${applications_dir} 83 file copy ${worksrcpath}/nextstep/Emacs.app \ 84 ${destroot}${applications_dir} 85 file copy ${filespath}/site-start.el \ 86 ${destroot}${applications_dir}/Emacs.app/Contents/Resources/site-lisp 87 } 88 89 post-destroot { 90 reinplace "s|__PREFIX__|${prefix}|g" \ 91 ${destroot}${applications_dir}/Emacs.app/Contents/Resources/site-lisp/site-start.el 92 configure.cflags-append -fno-pie -O2 93 configure.ldflags-append -fno-pie 92 94 } 93 95
Note: See TracChangeset
for help on using the changeset viewer.