2015-12-18 09:15:28 +08:00
|
|
|
cask 'dia' do
|
2013-08-10 15:23:41 +08:00
|
|
|
version '0.97.2-7'
|
2014-02-24 20:52:32 +08:00
|
|
|
sha256 '9d3038c01347716800688830eaf52204deb78affe74a5f0c6e0a48fd414d44be'
|
2014-06-27 08:01:07 +08:00
|
|
|
|
2016-02-12 08:22:43 +08:00
|
|
|
# sourceforge.net/dia-installer/dia was verified as official when first introduced to the cask
|
2016-01-04 03:18:08 +08:00
|
|
|
url "http://downloads.sourceforge.net/dia-installer/dia/#{version.sub(%r{-.*}, '')}/Dia-#{version}.dmg"
|
2015-01-12 03:38:50 +08:00
|
|
|
name 'Dia'
|
2014-06-27 08:01:07 +08:00
|
|
|
homepage 'http://dia-installer.de/'
|
2015-02-01 02:17:30 +08:00
|
|
|
license :gpl
|
2014-06-27 08:01:07 +08:00
|
|
|
|
2016-01-18 09:27:20 +08:00
|
|
|
depends_on x11: true
|
2015-07-17 00:19:02 +08:00
|
|
|
|
2016-01-04 03:18:08 +08:00
|
|
|
app 'Dia.app'
|
|
|
|
|
2015-07-17 00:19:02 +08:00
|
|
|
postflight do
|
|
|
|
system '/usr/bin/sed', '-i', '--', 's/exec/exec env DISPLAY=:0/g', "#{staged_path}/Dia.app/Contents/Resources/bin/dia"
|
|
|
|
end
|
2012-10-03 15:06:35 +08:00
|
|
|
end
|