Commit 10537cf6 authored by satmandu's avatar satmandu Committed by GitHub

Geany rebuild (#5871)

* Geany rebuild

* Fix typo

* Add self.remove section for config files.
parent fb8e4ff9
......@@ -3,32 +3,40 @@ require 'package'
class Geany < Package
description 'Geany is a small and lightweight Integrated Development Environment.'
homepage 'https://www.geany.org/'
version '1.37.1'
version '1.37.1-b524'
license 'GPL-2+ HPND'
compatibility 'all'
source_url 'https://download.geany.org/geany-1.37.1.tar.bz2'
source_sha256 '18c5756444c1d8bcd737c8ecfd4ef0b3607c924fc02560d4e8b78f6121531a18'
binary_url ({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/geany/1.37.1_armv7l/geany-1.37.1-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/geany/1.37.1_armv7l/geany-1.37.1-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/geany/1.37.1_i686/geany-1.37.1-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/geany/1.37.1_x86_64/geany-1.37.1-chromeos-x86_64.tar.xz',
source_url 'https://github.com/geany/geany.git'
git_hashtag 'b524a58e12e85c94a32f64fb72615978b2628af1'
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/geany/1.37.1-b524_armv7l/geany-1.37.1-b524-chromeos-armv7l.tpxz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/geany/1.37.1-b524_armv7l/geany-1.37.1-b524-chromeos-armv7l.tpxz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/geany/1.37.1-b524_i686/geany-1.37.1-b524-chromeos-i686.tpxz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/geany/1.37.1-b524_x86_64/geany-1.37.1-b524-chromeos-x86_64.tpxz'
})
binary_sha256 ({
aarch64: '23569bccfea77b83925f8d8b69b0726956fab967588f8b87433a9aec9e846f9c',
armv7l: '23569bccfea77b83925f8d8b69b0726956fab967588f8b87433a9aec9e846f9c',
i686: '7a8600c481502fabad7079513381b21b9d3d628bcbc9c24d59ef3825e3b49459',
x86_64: '02fb7bbd757af647903507b68d880a5207c3666725f49748edb1e71c0c629a51',
binary_sha256({
aarch64: '4533890949b4dd456331fa10e2482ad59a93a28a43b9e413bacf22abab0f4fcc',
armv7l: '4533890949b4dd456331fa10e2482ad59a93a28a43b9e413bacf22abab0f4fcc',
i686: '8f49d7208ed72ca166b899b75031947b4e40fd8c9efcfb6cb91eb9b4df512de3',
x86_64: '0b1870b7fc669a731d88ea4be18b5fba2ef7e233a5ffb1483aaa3cb3d710e78b'
})
depends_on 'gtk3'
depends_on 'xdg_base'
depends_on 'sommelier'
depends_on 'gtk3'
depends_on 'xdg_base'
depends_on 'sommelier'
@xdg_config_home = ENV['XDG_CONFIG_HOME']
@xdg_config_home = "#{CREW_PREFIX}/.config" if @xdg_config_home.to_s.empty?
def self.build
system "./configure #{CREW_OPTIONS} --enable-api-docs=no --enable-html-docs=no --enable-pdf-docs=no"
system '[ -x configure ] || NOCONFIGURE=1 ./autogen.sh'
system "#{CREW_ENV_OPTIONS} \
./configure \
#{CREW_OPTIONS} \
--enable-api-docs=no \
--enable-html-docs=no \
--enable-pdf-docs=no"
system 'make'
end
......@@ -41,12 +49,23 @@ class Geany < Package
end
def self.postinstall
puts
puts "To get started, type 'geany'.".lightblue
puts
puts "To completely uninstall, execute the following:".lightblue
puts "crew remove geany".lightblue
puts "rm -rf ~/.config/geany".lightblue
puts
# This is needed to avoid "Error loading theme icon 'geany-build' for stock" messages.
system "gtk-update-icon-cache #{CREW_PREFIX}/share/icons/hicolor -f"
end
def self.remove
config_dirs = ["#{HOME}/.config/geany", "#{@xdg_config_home}/geany"]
config_dirs.each do |config_dir|
next unless Dir.exist? config_dir
print "\nWould you like to remove #{config_dir}? [y/N] "
case $stdin.getc
when 'y', 'Y'
FileUtils.rm_rf config_dir
puts "#{config_dir} removed.".lightred
else
puts "#{config_dir} saved.".lightgreen
end
end
end
end
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