mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-05-01 03:00:26 -04:00
* nano -> 8.7.1 in updater-nano-8.7.1 * Adjust nano source and build options. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Compensate for automake versioning. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * updater-nano-8.7.1: Package File Update Run on linux/386 container. * updater-nano-8.7.1: Package File Update Run on linux/amd64 container. * updater-nano-8.7.1: Package File Update Run on linux/arm/v7 container. --------- Signed-off-by: Satadru Pramanik <satadru@gmail.com> Co-authored-by: github-merge-queue <github-merge-queue@users.noreply.github.com> Co-authored-by: Satadru Pramanik <satadru@gmail.com> Co-authored-by: chromebrew-actions[bot] <chromebrew-actions[bot]@users.noreply.github.com>
74 lines
2.2 KiB
Ruby
74 lines
2.2 KiB
Ruby
require 'buildsystems/autotools'
|
|
|
|
class Nano < Autotools
|
|
description 'Nano\'s ANOther editor, an enhanced free Pico clone.'
|
|
homepage 'https://www.nano-editor.org/'
|
|
version '8.7.1'
|
|
license 'GPL-3'
|
|
compatibility 'all'
|
|
source_url "https://www.nano-editor.org/dist/v8/nano-#{version}.tar.xz"
|
|
source_sha256 '76f0dcb248f2e2f1251d4ecd20fd30fb400a360a3a37c6c340e0a52c2d1cdedf'
|
|
binary_compression 'tar.zst'
|
|
|
|
binary_sha256({
|
|
aarch64: 'b77bd21b3d13314b479c5c3dde79e80adf0f150f829f2a9441cc77a8ad71f7f3',
|
|
armv7l: 'b77bd21b3d13314b479c5c3dde79e80adf0f150f829f2a9441cc77a8ad71f7f3',
|
|
i686: '6fe3e4b93f80ea64babde96c4ba7a3485bd29ceb6e8468e03ec6d005195d6614',
|
|
x86_64: '146bab1540de95d986b4f993d793eb61e7e0b4fc50cac40cc8d13dc2ad4853b6'
|
|
})
|
|
|
|
depends_on 'filecmd' # R
|
|
depends_on 'glibc' # R
|
|
depends_on 'ncurses' # R
|
|
depends_on 'zlib' # R
|
|
|
|
autotools_configure_options '--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-threads=posix \
|
|
--enable-utf8 \
|
|
--enable-wordcomp \
|
|
--enable-wrapping \
|
|
--enable-year2038'
|
|
|
|
autotools_build_extras do
|
|
open('nanorc', 'w') do |f|
|
|
f << "set constantshow\n"
|
|
f << "set fill 72\n"
|
|
f << "set historylog\n"
|
|
f << "set multibuffer\n"
|
|
f << "set nowrap\n"
|
|
f << "set positionlog\n"
|
|
f << "set historylog\n"
|
|
f << "set quickblank\n"
|
|
f << "set regexp\n"
|
|
f << "set suspend\n"
|
|
end
|
|
end
|
|
|
|
def self.prebuild
|
|
am = `grep "\\[am__api_version=" aclocal.m4`.chomp.split('=')[1].gsub("'", '')
|
|
%w[aclocal automake].each { |f| FileUtils.ln_sf "#{CREW_PREFIX}/bin/#{f}", "#{CREW_PREFIX}/bin/#{f}-#{am}" } unless am.nil?
|
|
end
|
|
|
|
autotools_install_extras do
|
|
FileUtils.install 'nanorc', "#{CREW_DEST_HOME}/.nanorc", mode: 0o644
|
|
end
|
|
|
|
def self.postinstall
|
|
ExitMessage.add "\nPersonal configuration file is located in #{HOME}/.nanorc.\n".lightblue
|
|
end
|
|
end
|