Commit 59367e39 authored by saltedcoffii's avatar saltedcoffii Committed by GitHub

[Update Package] nano (#5251)

parent 0b1768c7
......@@ -3,23 +3,10 @@ require 'package'
class Nano < Package
description 'Nano\'s ANOther editor, an enhanced free Pico clone.'
homepage 'https://www.nano-editor.org/'
version '5.3'
version '5.5'
compatibility 'all'
source_url 'https://www.nano-editor.org/dist/v5/nano-5.3.tar.xz'
source_sha256 'c5c1cbcf622d9a96b6030d66409ed12b204e8bc01ef5e6554ebbe6fb1d734352'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/nano-5.3-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/nano-5.3-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/nano-5.3-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/nano-5.3-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: 'c088b2e58da273d13b81f811e29ea8947f53b1b35fc35247c65d238599e70e2f',
armv7l: 'c088b2e58da273d13b81f811e29ea8947f53b1b35fc35247c65d238599e70e2f',
i686: '6fcb71493680e38de8dfc0339203ef432599253a2a1f0f6d34cfbd6839c01eec',
x86_64: 'd9a04eeb1624ccbcf1823a95b00ff6487a04cb49a749abf19a2014a00871e876',
})
source_url 'https://www.nano-editor.org/dist/v5/nano-5.5.tar.xz'
source_sha256 '390b81bf9b41ff736db997aede4d1f60b4453fbd75a519a4ddb645f6fd687e4a'
depends_on 'xdg_base'
......@@ -28,9 +15,28 @@ class Nano < Package
end
def self.build
system './configure',
'--enable-utf8',
"--prefix=#{CREW_PREFIX}"
system "./configure #{CREW_OPTIONS} \
--enable-threads=posix \
--enable-nls \
--enable-rpath \
--enable-browser \
--enable-color \
--enable-comment \
--enable-extra \
--enable-help \
--enable-histories \
--enable-justify \
--enable-libmagic \
--enable-linenumbers \
--enable-mouse \
--enable-multibuffer \
--enable-nanorc \
--enable-operatingdir \
--enable-speller \
--enable-tabcomp \
--enable-wordcomp \
--enable-wrapping \
--enable-utf8"
system 'make'
open('nanorc', 'w') { |f|
f << "set constantshow\n"
......
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