Use conflicts_with in gettext_tiny, gvim, and vim (#13410)

This commit is contained in:
Max Downey Twiss
2025-11-11 10:26:25 +10:00
committed by GitHub
parent 207b9dc3a1
commit fa1e0c8879
3 changed files with 3 additions and 11 deletions

View File

@@ -17,9 +17,7 @@ class Gettext_tiny < Package
x86_64: '9435867e7adfa4f9906a89de80288cc59d014ee7dab19ef764ce18c2a7ad7fcd'
})
def self.preinstall
abort 'gettext already installed. gettext_tiny conflicts with gettext.'.lightred if File.exist? "#{CREW_PREFIX}/bin/msgcomm"
end
conflicts_with 'gettext'
def self.build
system 'make', 'LIBINTL=NONE'

View File

@@ -38,10 +38,7 @@ class Gvim < Autotools
ignore_updater
def self.preflight
vim = `which #{CREW_PREFIX}/bin/vim 2> /dev/null`.chomp
abort "vim version #{version} already installed.".lightgreen unless vim.to_s == ''
end
conflicts_with 'vim'
def self.patch
# set the system-wide vimrc path

View File

@@ -27,10 +27,7 @@ class Vim < Autotools
ignore_updater
def self.preflight
gvim = `which #{CREW_PREFIX}/bin/gvim 2> /dev/null`.chomp
abort "gvim version #{version} already installed.".lightgreen unless gvim.to_s == ''
end
conflicts_with 'gvim'
def self.patch
# set the system-wide vimrc path