Files
chromebrew/packages/bluefish.rb
Maximilian Downey Twiss ce72f28f24 Update homepages of packages from a-c (#9915)
* Update acpica homepage

* Update aide homepage

* Update aliyun_cli homepage

* Update alpine homepage

* Update anagram source_url

* Update ant homepage

* Update apktool homepage

* Update appres homepage

* Update appstream homepage

* Update apr_iconv homepage

* Update apr_util homepage

* Update armadillo homepage

* Update asciidoc homepage

* Update at_spi2_core homepage

* Update avahi homepage

* Update aview homepage

* Update babl homepage

* Update balena_etcher homepage

* Update banner homepage

* Update bashdb homepage

* Update bdftopcf homepage

* Update bind homepage

* Update bitmap homepage

* Update bitpocket homepage

* Update bluefish homepage

* Update bmon homepage

* Update brackets homepage

* Update broadway homepage

* Update broot homepage

* Update byobu homepage

* Update c_ares homepage

* Update calcurse homepage

* Update ccache homepage

* Update cf homepage

* Update chrome homepage

* Update chrpath homepage

* Update ck4up homepage

* Update ckermit homepage
2024-06-06 20:31:42 -05:00

70 lines
2.1 KiB
Ruby

require 'package'
class Bluefish < Package
description 'Bluefish is a powerful editor targeted towards programmers and webdevelopers'
homepage 'https://bluefish.openoffice.nl/index.html'
version '2.2.13'
license 'GPL-2'
compatibility 'x86_64 aarch64 armv7l'
source_url 'https://www.bennewitz.com/bluefish/stable/source/bluefish-2.2.13.tar.bz2'
source_sha256 '9b56966209d50951326a2ae21c7fd692bd91661d047ad3a01c97ba731aa477fb'
binary_compression 'tar.zst'
binary_sha256({
aarch64: '1994ac56d3a6ef304cf7078cadb49b56ff10205bcf927dc300d2256ad9a4e34a',
armv7l: '1994ac56d3a6ef304cf7078cadb49b56ff10205bcf927dc300d2256ad9a4e34a',
x86_64: 'fb4d57255f3146e67c50f6f60e305d9781a804372b80c90c53539f2e12177b22'
})
depends_on 'enchant'
depends_on 'gtk3'
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'
depends_on 'wayland_protocols'
depends_on 'mesa'
depends_on 'xcb_util'
print_source_bashrc
def self.build
system 'filefix'
system "./configure #{CREW_OPTIONS}"
system 'make'
@bluefish = <<~EOF
alias bluefish="WAYLAND_DISPLAY=wayland-0 DISPLAY='' GDK_BACKEND=wayland #{CREW_PREFIX}/bin/bluefish"
EOF
end
def self.install
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
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
system "update-mime-database #{CREW_PREFIX}/share/mime"
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.gets.chomp.downcase
when 'y', 'yes'
FileUtils.rm_rf config_dir
puts "#{config_dir} removed.".lightgreen
else
puts "#{config_dir} saved.".lightgreen
end
end
end
end