2011-03-10 05:11:03 +00:00
|
|
|
class Aqbanking < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Generic online banking interface"
|
2015-01-02 18:21:51 +00:00
|
|
|
homepage "http://www.aqbanking.de/"
|
|
|
|
url "http://www2.aquamaniac.de/sites/download/download.php?package=03&release=118&file=01&dummy=aqbanking-5.5.1.tar.gz"
|
2015-08-03 12:55:31 +00:00
|
|
|
sha256 "238f17d27d86e0cef239479c4be152cb98f5be9d6b87fca38741d32e762faddf"
|
2015-10-05 04:38:54 +00:00
|
|
|
head "http://devel.aqbanking.de/svn/aqbanking/trunk"
|
2015-01-02 18:21:51 +00:00
|
|
|
|
2015-01-06 10:31:25 +00:00
|
|
|
bottle do
|
2015-10-05 17:35:09 +00:00
|
|
|
revision 1
|
|
|
|
sha256 "3413c3854115dd4df8f37c62a1d93f1818a76b7c67e806c1c36d840026941561" => :el_capitan
|
|
|
|
sha256 "b3937077d7f8f7a5e451c2951119f1cd53cca98495f42b9a3af86f5a30ee960d" => :yosemite
|
|
|
|
sha256 "1e6acd66f0d6de60a379ed0a640a740db9fca41a3a114f346efc558f092a8a55" => :mavericks
|
2015-01-06 10:31:25 +00:00
|
|
|
end
|
|
|
|
|
2015-01-02 18:21:51 +00:00
|
|
|
depends_on "gwenhywfar"
|
|
|
|
depends_on "libxmlsec1"
|
|
|
|
depends_on "libxslt"
|
|
|
|
depends_on "libxml2"
|
|
|
|
depends_on "gettext"
|
|
|
|
depends_on "gmp"
|
|
|
|
depends_on "pkg-config" => :build
|
|
|
|
depends_on "ktoblzcheck" => :recommended
|
Aqbanking 4.2.1
A free library for online banking.
Aqbanking currently supports the HBCI, OFX Direct Connect, and
EBICS (only in commercial aqbanking-cli) protocol.
It provides an interface for:
- general online banking tasks
such as balance, transaction, transfers and debits
- retrieving bank information
for Germany, USA, Austria, and Switzerland
- country and currency information (e.g. ISO-Codex)
Applications using Aqbanking include AqBanking-CLI, QBankManager,
GnuCash, and KMyMoney.
Aqbanking is the successor of OpenHBCI2.
2009-12-28 12:56:46 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
ENV.j1
|
2010-04-07 05:58:35 +00:00
|
|
|
system "./configure", "--disable-debug",
|
|
|
|
"--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
2011-02-16 10:02:12 +00:00
|
|
|
"--enable-cli",
|
2010-04-07 05:58:35 +00:00
|
|
|
"--with-gwen-dir=#{HOMEBREW_PREFIX}"
|
2015-01-02 18:21:51 +00:00
|
|
|
system "make", "check"
|
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
ENV["TZ"] = "UTC"
|
|
|
|
context = "balance.ctx"
|
|
|
|
(testpath/context).write <<-EOS.undent
|
|
|
|
accountInfoList {
|
|
|
|
accountInfo {
|
|
|
|
char bankCode="110000000"
|
|
|
|
char bankName="STRIPE TEST BANK"
|
|
|
|
char accountNumber="000123456789"
|
|
|
|
char accountName="demand deposit"
|
|
|
|
char iban="US44110000000000123456789"
|
|
|
|
char bic="BYLADEM1001"
|
|
|
|
char owner="JOHN DOE"
|
|
|
|
char currency="USD"
|
|
|
|
int accountType="0"
|
|
|
|
int accountId="2"
|
|
|
|
|
|
|
|
statusList {
|
|
|
|
status {
|
|
|
|
int time="1388664000"
|
|
|
|
|
|
|
|
notedBalance {
|
|
|
|
value {
|
|
|
|
char value="123456%2F100"
|
|
|
|
char currency="USD"
|
|
|
|
} #value
|
|
|
|
|
|
|
|
int time="1388664000"
|
|
|
|
} #notedBalance
|
|
|
|
} #status
|
|
|
|
|
|
|
|
status {
|
|
|
|
int time="1388750400"
|
|
|
|
|
|
|
|
notedBalance {
|
|
|
|
value {
|
|
|
|
char value="132436%2F100"
|
|
|
|
char currency="USD"
|
|
|
|
} #value
|
|
|
|
|
|
|
|
int time="1388750400"
|
|
|
|
} #notedBalance
|
|
|
|
} #status
|
|
|
|
} #statusList
|
|
|
|
|
|
|
|
} # accountInfo
|
|
|
|
} # accountInfoList
|
|
|
|
EOS
|
|
|
|
assert_match /^Account\s+110000000\s+000123456789\s+STRIPE TEST BANK\s+03.01.2014\s+12:00\s+1324.36\s+USD\s+$/, shell_output("#{bin}/aqbanking-cli listbal -c #{context}")
|
Aqbanking 4.2.1
A free library for online banking.
Aqbanking currently supports the HBCI, OFX Direct Connect, and
EBICS (only in commercial aqbanking-cli) protocol.
It provides an interface for:
- general online banking tasks
such as balance, transaction, transfers and debits
- retrieving bank information
for Germany, USA, Austria, and Switzerland
- country and currency information (e.g. ISO-Codex)
Applications using Aqbanking include AqBanking-CLI, QBankManager,
GnuCash, and KMyMoney.
Aqbanking is the successor of OpenHBCI2.
2009-12-28 12:56:46 +00:00
|
|
|
end
|
|
|
|
end
|