Merge pull request #22508 from matthewbauer/remove-emacs24macport

emacs24macport: remove

authored by Daiderd Jordan and committed by GitHub a48df6fb 776614ab

+8 -102
+3 -2
nixos/modules/services/editors/emacs.xml
··· 79 </listitem> 80 </varlistentry> 81 <varlistentry> 82 - <term><varname>emacs24Macport</varname></term> 83 <listitem> 84 <para> 85 - Emacs 24 with the "Mac port" patches, providing a more 86 native look and feel under OS X. 87 </para> 88 </listitem>
··· 79 </listitem> 80 </varlistentry> 81 <varlistentry> 82 + <term><varname>emacsMacport</varname></term> 83 + <term><varname>emacs25Macport</varname></term> 84 <listitem> 85 <para> 86 + Emacs 25 with the "Mac port" patches, providing a more 87 native look and feel under OS X. 88 </para> 89 </listitem>
-91
pkgs/applications/editors/emacs/macport-24.5.nix
··· 1 - { stdenv, fetchurl, ncurses, pkgconfig, texinfo, libxml2, gnutls, gettext 2 - , AppKit, Carbon, Cocoa, IOKit, OSAKit, Quartz, QuartzCore, WebKit 3 - , autoconf, automake 4 - , ImageCaptureCore, GSS, ImageIO # These may be optional 5 - }: 6 - 7 - stdenv.mkDerivation rec { 8 - emacsName = "emacs-24.5"; 9 - name = "${emacsName}-mac-5.15"; 10 - 11 - builder = ./builder.sh; 12 - 13 - src = fetchurl { 14 - url = "mirror://gnu/emacs/${emacsName}.tar.xz"; 15 - sha256 = "0kn3rzm91qiswi0cql89kbv6mqn27rwsyjfb8xmwy9m5s8fxfiyx"; 16 - }; 17 - 18 - macportSrc = fetchurl { 19 - url = "ftp://ftp.math.s.chiba-u.ac.jp/emacs/${name}.tar.gz"; 20 - sha256 = "1r47bm1pf5av2yr37byz91y7bp6vdw9smahiy18g5qp4jp6mz193"; 21 - }; 22 - 23 - enableParallelBuilding = true; 24 - 25 - buildInputs = [ ncurses libxml2 gnutls pkgconfig texinfo gettext autoconf automake ]; 26 - 27 - propagatedBuildInputs = [ 28 - AppKit Carbon Cocoa IOKit OSAKit Quartz QuartzCore WebKit 29 - ImageCaptureCore GSS ImageIO # may be optional 30 - ]; 31 - 32 - postUnpack = '' 33 - mv $emacsName $name 34 - tar xzf $macportSrc 35 - mv $name $emacsName 36 - ''; 37 - 38 - postPatch = '' 39 - patch -p1 < patch-mac 40 - sed -i 's|/usr/share/locale|${gettext}/share/locale|g' lisp/international/mule-cmds.el 41 - ''; 42 - 43 - configureFlags = [ 44 - "LDFLAGS=-L${ncurses.out}/lib" 45 - "--with-xml2=yes" 46 - "--with-gnutls=yes" 47 - "--with-mac" 48 - "--enable-mac-app=$$out/Applications" 49 - ]; 50 - 51 - CFLAGS = "-O3 -DMAC_OS_X_VERSION_MAX_ALLOWED=1090 -DMAC_OS_X_VERSION_MIN_REQUIRED=1090"; 52 - LDFLAGS = "-O3 -L${ncurses.out}/lib"; 53 - 54 - postInstall = '' 55 - mkdir -p $out/share/emacs/site-lisp/ 56 - cp ${./site-start.el} $out/share/emacs/site-lisp/site-start.el 57 - ''; 58 - 59 - doCheck = true; 60 - 61 - meta = with stdenv.lib; { 62 - description = "GNU Emacs 24, the extensible, customizable text editor"; 63 - homepage = http://www.gnu.org/software/emacs/; 64 - license = licenses.gpl3Plus; 65 - maintainers = with maintainers; [ jwiegley ]; 66 - platforms = platforms.darwin; 67 - 68 - longDescription = '' 69 - GNU Emacs is an extensible, customizable text editor—and more. At its 70 - core is an interpreter for Emacs Lisp, a dialect of the Lisp 71 - programming language with extensions to support text editing. 72 - 73 - The features of GNU Emacs include: content-sensitive editing modes, 74 - including syntax coloring, for a wide variety of file types including 75 - plain text, source code, and HTML; complete built-in documentation, 76 - including a tutorial for new users; full Unicode support for nearly all 77 - human languages and their scripts; highly customizable, using Emacs 78 - Lisp code or a graphical interface; a large number of extensions that 79 - add other functionality, including a project planner, mail and news 80 - reader, debugger interface, calendar, and more. Many of these 81 - extensions are distributed with GNU Emacs; others are available 82 - separately. 83 - 84 - This is "Mac port" addition to GNU Emacs 24. This provides a native 85 - GUI support for Mac OS X 10.4 - 10.11. Note that Emacs 23 and later 86 - already contain the official GUI support via the NS (Cocoa) port for 87 - Mac OS X 10.4 and later. So if it is good enough for you, then you 88 - don't need to try this. 89 - ''; 90 - }; 91 - }
···
pkgs/applications/editors/emacs/macport-25.1.nix pkgs/applications/editors/emacs/macport.nix
+5 -9
pkgs/top-level/all-packages.nix
··· 13242 withGTK3 = false; 13243 })); 13244 13245 - emacs24Macport_24_5 = lowPrio (callPackage ../applications/editors/emacs/macport-24.5.nix { 13246 inherit (darwin.apple_sdk.frameworks) 13247 AppKit Carbon Cocoa IOKit OSAKit Quartz QuartzCore WebKit 13248 ImageCaptureCore GSS ImageIO; 13249 - }); 13250 - emacs24Macport = self.emacs24Macport_24_5; 13251 13252 - emacs25Macport_25_1 = lowPrio (callPackage ../applications/editors/emacs/macport-25.1.nix { 13253 - inherit (darwin.apple_sdk.frameworks) 13254 - AppKit Carbon Cocoa IOKit OSAKit Quartz QuartzCore WebKit 13255 - ImageCaptureCore GSS ImageIO; 13256 - }); 13257 - emacs25Macport = self.emacs25Macport_25_1; 13258 13259 emacsPackagesGen = emacs: self: let callPackage = newScope self; in rec { 13260 inherit emacs;
··· 13242 withGTK3 = false; 13243 })); 13244 13245 + emacsMacport = emacs25Macport; 13246 + emacs25Macport = callPackage ../applications/editors/emacs/macport.nix { 13247 inherit (darwin.apple_sdk.frameworks) 13248 AppKit Carbon Cocoa IOKit OSAKit Quartz QuartzCore WebKit 13249 ImageCaptureCore GSS ImageIO; 13250 + }; 13251 13252 + # for backwards compatibility 13253 + emacs25Macport_25_1 = emacs25Macport; 13254 13255 emacsPackagesGen = emacs: self: let callPackage = newScope self; in rec { 13256 inherit emacs;