mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-10 07:57:59 -05:00
@@ -3,23 +3,23 @@ require 'package'
|
||||
class Bluefish < Package
|
||||
description 'Bluefish is a powerful editor targeted towards programmers and webdevelopers'
|
||||
homepage 'http://bluefish.openoffice.nl/index.html'
|
||||
version '2.2.12'
|
||||
version '2.2.12-1'
|
||||
license 'GPL-2'
|
||||
compatibility 'all'
|
||||
source_url 'https://www.bennewitz.com/bluefish/stable/source/bluefish-2.2.12.tar.gz'
|
||||
source_sha256 '948fc2921f0a67a7ce811220093a3b3dfc8021a6e3005f549373cd3402ee0f26'
|
||||
|
||||
binary_url({
|
||||
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/bluefish/2.2.12_armv7l/bluefish-2.2.12-chromeos-armv7l.tar.xz',
|
||||
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/bluefish/2.2.12_armv7l/bluefish-2.2.12-chromeos-armv7l.tar.xz',
|
||||
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/bluefish/2.2.12_i686/bluefish-2.2.12-chromeos-i686.tar.xz',
|
||||
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/bluefish/2.2.12_x86_64/bluefish-2.2.12-chromeos-x86_64.tar.xz'
|
||||
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/bluefish/2.2.12-1_armv7l/bluefish-2.2.12-1-chromeos-armv7l.tar.zst',
|
||||
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/bluefish/2.2.12-1_armv7l/bluefish-2.2.12-1-chromeos-armv7l.tar.zst',
|
||||
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/bluefish/2.2.12-1_i686/bluefish-2.2.12-1-chromeos-i686.tar.zst',
|
||||
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/bluefish/2.2.12-1_x86_64/bluefish-2.2.12-1-chromeos-x86_64.tar.zst'
|
||||
})
|
||||
binary_sha256({
|
||||
aarch64: '6e769339832399c45018d072a2c906c00025b16c1b4a3acd8c5ea58dafa86b3c',
|
||||
armv7l: '6e769339832399c45018d072a2c906c00025b16c1b4a3acd8c5ea58dafa86b3c',
|
||||
i686: '7f706a40177c68674b55fe19f25dbe91100fb08525b0fbe69767137e7db247ff',
|
||||
x86_64: '5ecc4aae82c14977ac46419fedbe4f298ca9e4e979d9ccca3c641dd6b298721c'
|
||||
aarch64: '2fe751616748e0b95f5a6aca86c89f5c09a4da0464ba303e1aa3bc6f8f0b52d7',
|
||||
armv7l: '2fe751616748e0b95f5a6aca86c89f5c09a4da0464ba303e1aa3bc6f8f0b52d7',
|
||||
i686: 'e872f959d21359dfb4144a2845cf99aa980888b8b9791a69e9b302c43209ebf4',
|
||||
x86_64: '3a2e64b50d1030cabef7091356ec1a8d7c0b8e1655666ca1d36d59a493c9ae7b'
|
||||
})
|
||||
|
||||
depends_on 'enchant'
|
||||
@@ -27,6 +27,7 @@ class Bluefish < Package
|
||||
depends_on 'gnome_icon_theme'
|
||||
depends_on 'gucharmap'
|
||||
depends_on 'hicolor_icon_theme'
|
||||
depends_on 'hunspell'
|
||||
depends_on 'python3'
|
||||
depends_on 'shared_mime_info'
|
||||
depends_on 'xdg_base'
|
||||
@@ -35,19 +36,40 @@ class Bluefish < Package
|
||||
depends_on 'xcb_util'
|
||||
|
||||
def self.build
|
||||
system 'filefix'
|
||||
system "./configure #{CREW_OPTIONS}"
|
||||
system 'make'
|
||||
end
|
||||
|
||||
def self.install
|
||||
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
|
||||
bluefish = <<~EOF
|
||||
alias bluefish="WAYLAND_DISPLAY=wayland-0 DISPLAY='' GDK_BACKEND=wayland #{CREW_PREFIX}/bin/bluefish"
|
||||
EOF
|
||||
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/etc/env.d"
|
||||
File.write("#{CREW_DEST_PREFIX}/etc/env.d/10-bluefish", bluefish)
|
||||
# Remove conflicts with shared_mime_info files.
|
||||
FileUtils.rm_rf "#{CREW_DEST_PREFIX}/share/mime"
|
||||
end
|
||||
|
||||
def self.postinstall
|
||||
puts
|
||||
puts 'To complete the installation, execute the following:'.lightblue
|
||||
puts "update-mime-database #{CREW_PREFIX}/share/mime".lightblue
|
||||
puts "echo 'alias bluefish=\"WAYLAND_DISPLAY=wayland-0 DISPLAY=\'\' GDK_BACKEND=wayland bluefish\"' >> ~/.bashrc".lightblue
|
||||
puts
|
||||
system "update-mime-database #{CREW_PREFIX}/share/mime"
|
||||
puts "\nTo complete the installation, execute the following:".lightblue
|
||||
puts "source ~/.bashrc\n".lightblue
|
||||
end
|
||||
|
||||
def self.remove
|
||||
config_dir = "#{HOME}/.bluefish"
|
||||
if Dir.exist? config_dir
|
||||
puts 'WARNING: This will remove all bluefish config!'.orange
|
||||
print "Would you like to remove the #{config_dir} directory? [y/N] "
|
||||
case $stdin.getc
|
||||
when 'y', 'Y'
|
||||
FileUtils.rm_rf config_dir
|
||||
puts "#{config_dir} removed.".lightgreen
|
||||
else
|
||||
puts "#{config_dir} saved.".lightgreen
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user