Commit 2e0e7ab6 authored by satmandu's avatar satmandu Committed by GitHub

nmano -> 5.6 (#5300)

parent 698040ea
...@@ -3,10 +3,24 @@ require 'package' ...@@ -3,10 +3,24 @@ require 'package'
class Nano < Package class Nano < Package
description 'Nano\'s ANOther editor, an enhanced free Pico clone.' description 'Nano\'s ANOther editor, an enhanced free Pico clone.'
homepage 'https://www.nano-editor.org/' homepage 'https://www.nano-editor.org/'
version '5.5' @_ver = '5.6'
version @_ver
compatibility 'all' compatibility 'all'
source_url 'https://www.nano-editor.org/dist/v5/nano-5.5.tar.xz' source_url "https://nano-editor.org/dist/v5/nano-#{@_ver}.tar.xz"
source_sha256 '390b81bf9b41ff736db997aede4d1f60b4453fbd75a519a4ddb645f6fd687e4a' source_sha256 'fce183e4a7034d07d219c79aa2f579005d1fd49f156db6e50f53543a87637a32'
binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/nano-5.6-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/nano-5.6-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/nano-5.6-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/nano-5.6-chromeos-x86_64.tar.xz'
})
binary_sha256({
aarch64: '591c7d34de17429fe24e2c72b298c23791e6e87da58f914359d8152ec70b00ab',
armv7l: '591c7d34de17429fe24e2c72b298c23791e6e87da58f914359d8152ec70b00ab',
i686: '42c85d4a27d9c99a85661385dbbaacc95e09e7ab7878ca7665e17c7527582695',
x86_64: 'cb60149f951bd3cbff70a5d097c6d422591cc48dabe40552e59404f48b4cc866'
})
depends_on 'xdg_base' depends_on 'xdg_base'
...@@ -15,30 +29,33 @@ class Nano < Package ...@@ -15,30 +29,33 @@ class Nano < Package
end end
def self.build def self.build
system "./configure #{CREW_OPTIONS} \ system "env CFLAGS='-pipe -flto=auto' \
--enable-threads=posix \ CXXFLAGS='-pipe -flto=auto' \
--enable-nls \ LDFLAGS='-flto=auto' \
--enable-rpath \ ./configure #{CREW_OPTIONS} \
--enable-browser \ --enable-threads=posix \
--enable-color \ --enable-nls \
--enable-comment \ --enable-rpath \
--enable-extra \ --enable-browser \
--enable-help \ --enable-color \
--enable-histories \ --enable-comment \
--enable-justify \ --enable-extra \
--enable-libmagic \ --enable-help \
--enable-linenumbers \ --enable-histories \
--enable-mouse \ --enable-justify \
--enable-multibuffer \ --enable-libmagic \
--enable-nanorc \ --enable-linenumbers \
--enable-operatingdir \ --enable-mouse \
--enable-speller \ --enable-multibuffer \
--enable-tabcomp \ --enable-nanorc \
--enable-wordcomp \ --enable-operatingdir \
--enable-wrapping \ --enable-speller \
--enable-utf8" --enable-tabcomp \
--enable-wordcomp \
--enable-wrapping \
--enable-utf8"
system 'make' system 'make'
open('nanorc', 'w') { |f| open('nanorc', 'w') do |f|
f << "set constantshow\n" f << "set constantshow\n"
f << "set fill 72\n" f << "set fill 72\n"
f << "set historylog\n" f << "set historylog\n"
...@@ -50,7 +67,7 @@ class Nano < Package ...@@ -50,7 +67,7 @@ class Nano < Package
f << "set regexp\n" f << "set regexp\n"
f << "set smooth\n" f << "set smooth\n"
f << "set suspend\n" f << "set suspend\n"
} end
end end
def self.install def self.install
...@@ -62,9 +79,9 @@ class Nano < Package ...@@ -62,9 +79,9 @@ class Nano < Package
def self.postinstall def self.postinstall
puts puts
puts "Personal configuration file is located in $HOME/.nanorc".lightblue puts 'Personal configuration file is located in $HOME/.nanorc'.lightblue
puts puts
puts "To make nano your default editor, execute the following:".lightblue puts 'To make nano your default editor, execute the following:'.lightblue
puts puts
puts "echo 'EDITOR=#{CREW_PREFIX}/bin/nano' >> ~/.bashrc && source ~/.bashrc".lightblue puts "echo 'EDITOR=#{CREW_PREFIX}/bin/nano' >> ~/.bashrc && source ~/.bashrc".lightblue
puts puts
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment