aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexis Hildebrandt2015-01-21 23:01:09 +0100
committerMike McQuaid2015-01-22 17:10:59 +0100
commit2a7b90179a234e2b4a463a3fc2f66603acb0267e (patch)
tree77b2ab0a4b6ccd880eeb28eed4d8ac331355645c
parent06be1a147d390f752657abe1dc7f9ba71cf5d066 (diff)
downloadhomebrew-2a7b90179a234e2b4a463a3fc2f66603acb0267e.tar.bz2
ledger: install headers from utfcpp resource
needed for developing with ledger Closes #36116. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
-rw-r--r--Library/Formula/ledger.rb14
1 files changed, 6 insertions, 8 deletions
diff --git a/Library/Formula/ledger.rb b/Library/Formula/ledger.rb
index 2631972e4..ed0fbcc21 100644
--- a/Library/Formula/ledger.rb
+++ b/Library/Formula/ledger.rb
@@ -1,14 +1,11 @@
class Ledger < Formula
homepage "http://ledger-cli.org"
+ url "https://github.com/ledger/ledger/archive/v3.1.tar.gz"
+ sha1 "549aa375d4802e9dd4fd153c45ab64d8ede94afc"
- stable do
- url "https://github.com/ledger/ledger/archive/v3.1.tar.gz"
- sha1 "549aa375d4802e9dd4fd153c45ab64d8ede94afc"
-
- resource "utfcpp" do
- url "http://downloads.sourceforge.net/project/utfcpp/utf8cpp_2x/Release%202.3.4/utf8_v2_3_4.zip"
- sha1 "638910adb69e4336f5a69c338abeeea88e9211ca"
- end
+ resource "utfcpp" do
+ url "http://downloads.sourceforge.net/project/utfcpp/utf8cpp_2x/Release%202.3.4/utf8_v2_3_4.zip"
+ sha1 "638910adb69e4336f5a69c338abeeea88e9211ca"
end
bottle do
@@ -41,6 +38,7 @@ class Ledger < Formula
ENV.cxx11
(buildpath/"lib/utfcpp").install resource("utfcpp") unless build.head?
+ resource("utfcpp").stage { include.install Dir["source/*"] }
flavor = (build.with? "debug") ? "debug" : "opt"