···7979 </listitem>
8080 </varlistentry>
8181 <varlistentry>
8282- <term><varname>emacs24Macport</varname></term>
8282+ <term><varname>emacsMacport</varname></term>
8383+ <term><varname>emacs25Macport</varname></term>
8384 <listitem>
8485 <para>
8585- Emacs 24 with the "Mac port" patches, providing a more
8686+ Emacs 25 with the "Mac port" patches, providing a more
8687 native look and feel under OS X.
8788 </para>
8889 </listitem>
-91
pkgs/applications/editors/emacs/macport-24.5.nix
···11-{ stdenv, fetchurl, ncurses, pkgconfig, texinfo, libxml2, gnutls, gettext
22-, AppKit, Carbon, Cocoa, IOKit, OSAKit, Quartz, QuartzCore, WebKit
33-, autoconf, automake
44-, ImageCaptureCore, GSS, ImageIO # These may be optional
55-}:
66-77-stdenv.mkDerivation rec {
88- emacsName = "emacs-24.5";
99- name = "${emacsName}-mac-5.15";
1010-1111- builder = ./builder.sh;
1212-1313- src = fetchurl {
1414- url = "mirror://gnu/emacs/${emacsName}.tar.xz";
1515- sha256 = "0kn3rzm91qiswi0cql89kbv6mqn27rwsyjfb8xmwy9m5s8fxfiyx";
1616- };
1717-1818- macportSrc = fetchurl {
1919- url = "ftp://ftp.math.s.chiba-u.ac.jp/emacs/${name}.tar.gz";
2020- sha256 = "1r47bm1pf5av2yr37byz91y7bp6vdw9smahiy18g5qp4jp6mz193";
2121- };
2222-2323- enableParallelBuilding = true;
2424-2525- buildInputs = [ ncurses libxml2 gnutls pkgconfig texinfo gettext autoconf automake ];
2626-2727- propagatedBuildInputs = [
2828- AppKit Carbon Cocoa IOKit OSAKit Quartz QuartzCore WebKit
2929- ImageCaptureCore GSS ImageIO # may be optional
3030- ];
3131-3232- postUnpack = ''
3333- mv $emacsName $name
3434- tar xzf $macportSrc
3535- mv $name $emacsName
3636- '';
3737-3838- postPatch = ''
3939- patch -p1 < patch-mac
4040- sed -i 's|/usr/share/locale|${gettext}/share/locale|g' lisp/international/mule-cmds.el
4141- '';
4242-4343- configureFlags = [
4444- "LDFLAGS=-L${ncurses.out}/lib"
4545- "--with-xml2=yes"
4646- "--with-gnutls=yes"
4747- "--with-mac"
4848- "--enable-mac-app=$$out/Applications"
4949- ];
5050-5151- CFLAGS = "-O3 -DMAC_OS_X_VERSION_MAX_ALLOWED=1090 -DMAC_OS_X_VERSION_MIN_REQUIRED=1090";
5252- LDFLAGS = "-O3 -L${ncurses.out}/lib";
5353-5454- postInstall = ''
5555- mkdir -p $out/share/emacs/site-lisp/
5656- cp ${./site-start.el} $out/share/emacs/site-lisp/site-start.el
5757- '';
5858-5959- doCheck = true;
6060-6161- meta = with stdenv.lib; {
6262- description = "GNU Emacs 24, the extensible, customizable text editor";
6363- homepage = http://www.gnu.org/software/emacs/;
6464- license = licenses.gpl3Plus;
6565- maintainers = with maintainers; [ jwiegley ];
6666- platforms = platforms.darwin;
6767-6868- longDescription = ''
6969- GNU Emacs is an extensible, customizable text editor—and more. At its
7070- core is an interpreter for Emacs Lisp, a dialect of the Lisp
7171- programming language with extensions to support text editing.
7272-7373- The features of GNU Emacs include: content-sensitive editing modes,
7474- including syntax coloring, for a wide variety of file types including
7575- plain text, source code, and HTML; complete built-in documentation,
7676- including a tutorial for new users; full Unicode support for nearly all
7777- human languages and their scripts; highly customizable, using Emacs
7878- Lisp code or a graphical interface; a large number of extensions that
7979- add other functionality, including a project planner, mail and news
8080- reader, debugger interface, calendar, and more. Many of these
8181- extensions are distributed with GNU Emacs; others are available
8282- separately.
8383-8484- This is "Mac port" addition to GNU Emacs 24. This provides a native
8585- GUI support for Mac OS X 10.4 - 10.11. Note that Emacs 23 and later
8686- already contain the official GUI support via the NS (Cocoa) port for
8787- Mac OS X 10.4 and later. So if it is good enough for you, then you
8888- don't need to try this.
8989- '';
9090- };
9191-}