emacs.rb 718 Bytes
Newer Older
Jake Waksbaum's avatar
emacs  
Jake Waksbaum committed
1 2 3
require 'package'

class Emacs < Package
4 5
  description 'An extensible, customizable, free/libre text editor - and more.'
  homepage 'http://www.gnu.org/software/emacs/'
Casey Strouse's avatar
Casey Strouse committed
6 7
  version '25.1'
  source_url 'ftp://ftp.gnu.org/gnu/emacs/emacs-25.1.tar.xz'
8
  source_sha256 '19f2798ee3bc26c95dca3303e7ab141e7ad65d6ea2b6945eeba4dbea7df48f33'
Jake Waksbaum's avatar
emacs  
Jake Waksbaum committed
9

10 11 12 13 14
  depends_on "zlibpkg" => :build
  depends_on "diffutils" => :build
  depends_on "m4" => :build
  depends_on "autoconf" => :build
  depends_on "automake" => :build
Jake Waksbaum's avatar
emacs  
Jake Waksbaum committed
15 16

  def self.build
17
    system "./configure --prefix=/usr/local --without-x --without-makeinfo --without-selinux"
Jake Waksbaum's avatar
emacs  
Jake Waksbaum committed
18 19 20 21 22 23 24
    system "make"
  end

  def self.install
    system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
  end
end