@@ -2,11 +2,11 @@ class LxterminalMltermAT9999Dev < Formula
22 desc "Desktop-independent VTE-based terminal emulator"
33 homepage "https://wiki.lxde.org/en/LXTerminal"
44
5- @@current_commit = "ac5e36f496b2bf95eae790181e65c9eb54bb9c13"
5+ CURRENT_COMMIT = "ac5e36f496b2bf95eae790181e65c9eb54bb9c13" . freeze
66 url "https://github.com/lxde/lxterminal.git" ,
77 branch : "master" ,
8- revision : @@current_commit
9- version "git-#{ @@current_commit [ 0 ..7 ] } "
8+ revision : CURRENT_COMMIT
9+ version "git-#{ CURRENT_COMMIT [ 0 ..7 ] } "
1010 revision 1
1111
1212 keg_only :versioned_formula
@@ -17,6 +17,7 @@ class LxterminalMltermAT9999Dev < Formula
1717 depends_on "intltool" => :build
1818 depends_on "libxml2" => :build
1919 depends_on "libxslt" => :build
20+ depends_on "perl" => :build
2021 depends_on "perl-xml-parser" => :build
2122 depends_on "pkgconf" => :build
2223 depends_on "glib"
@@ -47,11 +48,13 @@ def install
4748 def caveats
4849 <<~EOS
4950 #{ full_name } is a Formula for installing the development version of
50- `lxterminal` based on the HEAD version (commit #{ @@current_commit [ 0 ..7 ] } ) from its git repository.
51+ `lxterminal` based on the HEAD version (commit #{ CURRENT_COMMIT [ 0 ..7 ] } ) from its git repository.
5152 EOS
5253 end
5354
5455 test do
55- system bin /"lxterminal" , "--version"
56+ ENV [ "LC_ALL" ] = "ja_JP.UTF-8"
57+ output = shell_output ( "#{ bin } /lxterminal --version" ) . strip
58+ assert_equal "lxterminal 0.4.1" , output
5659 end
5760end
0 commit comments