git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #22508 from matthewbauer/remove-emacs24macport

emacs24macport: remove

commita48df6fba6f04dda95e3274f0207dadfb533a951 authorDaiderd Jordan <daiderd@gmail.com> dateSat 18 Mar 2017, 22:19 (10 years ago) parent776614a3a9a707
4 files changed+8−102
nixos/modules/services/editors/emacs.xml+3−2 pkgs/applications/editors/emacs/macport-24.5.nix−91 pkgs/applications/editors/emacs/macport-25.1.nix → pkgs/applications/editors/emacs/macport.nix pkgs/top-level/all-packages.nix+5−9
nixos/modules/services/editors/emacs.xml+3−2
@@ -79,10 +79,11 @@
7979 </listitem>
8080 </varlistentry>
8181 <varlistentry>
82− <term><varname>emacs24Macport</varname></term>
82+ <term><varname>emacsMacport</varname></term>
83+ <term><varname>emacs25Macport</varname></term>
8384 <listitem>
8485 <para>
85− Emacs 24 with the "Mac port" patches, providing a more
86+ Emacs 25 with the "Mac port" patches, providing a more
8687 native look and feel under OS X.
8788 </para>
8889 </listitem>
pkgs/applications/editors/emacs/macport-24.5.nixdeleted−91
@@ -1,91 +0,0 @@
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.nixrenamed

The content is the same.

pkgs/top-level/all-packages.nix+5−9
@@ -13242,19 +13242,15 @@ with pkgs;
1324213242 withGTK3 = false;
1324313243 }));
1324413244
13245− emacs24Macport_24_5 = lowPrio (callPackage ../applications/editors/emacs/macport-24.5.nix {
13245+ emacsMacport = emacs25Macport;
13246+ emacs25Macport = callPackage ../applications/editors/emacs/macport.nix {
1324613247 inherit (darwin.apple_sdk.frameworks)
1324713248 AppKit Carbon Cocoa IOKit OSAKit Quartz QuartzCore WebKit
1324813249 ImageCaptureCore GSS ImageIO;
13249− });
13250− emacs24Macport = self.emacs24Macport_24_5;
13250+ };
1325113251
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;
13252+ # for backwards compatibility
13253+ emacs25Macport_25_1 = emacs25Macport;
1325813254
1325913255 emacsPackagesGen = emacs: self: let callPackage = newScope self; in rec {
1326013256 inherit emacs;