ledger and its dependancy utf8cpp (#976)
authorits-pointless <its-pointless@users.noreply.github.com>
Sat, 6 May 2017 21:48:01 +0000 (07:48 +1000)
committerFredrik Fornwall <fredrik@fornwall.net>
Sat, 6 May 2017 21:48:01 +0000 (23:48 +0200)
* ledger and its dependancy utf8cpp

fix typo

compiles python lib

enable icu in ledger

* simplify everything for now

ledger/build.sh [new file with mode: 0644]
packages/ledger/build.sh [moved from disabled-packages/ledger/build.sh with 54% similarity]
packages/utf8cpp/build.sh [new file with mode: 0644]

diff --git a/ledger/build.sh b/ledger/build.sh
new file mode 100644 (file)
index 0000000..1901880
--- /dev/null
@@ -0,0 +1,11 @@
+TERMUX_PKG_HOMEPAGE=http://ledger-cli.org/
+TERMUX_PKG_DESCRIPTION="Powerful, double-entry accounting system"
+TERMUX_PKG_VERSION=3.1.1
+TERMUX_PKG_SRCURL=https://github.com/ledger/ledger/archive/v${TERMUX_PKG_VERSION}.tar.gz
+TERMUX_PKG_FOLDERNAME="ledger-${TERMUX_PKG_VERSION}"
+TERMUX_PKG_SHA256=90f06561ab692b192d46d67bc106158da9c6c6813cc3848b503243a9dfd8548a
+#TERMUX_PKG_DEPENDS="boost, utf8cpp"
+TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" -DBOOST_MAKE_SETTER_RUNS_EXITCODE=0"
+termux_step_pre_configure() {
+       CXXFLAGS+=" -std=c++11"
+}
similarity index 54%
rename from disabled-packages/ledger/build.sh
rename to packages/ledger/build.sh
index f35d758..184fdb7 100644 (file)
@@ -1,9 +1,10 @@
-# This package depends on boost, which is not yet available:
-# https://github.com/ledger/ledger#user-content-dependencies
 TERMUX_PKG_HOMEPAGE=http://ledger-cli.org/
 TERMUX_PKG_DESCRIPTION="Powerful, double-entry accounting system"
-TERMUX_PKG_VERSION=3.1
+TERMUX_PKG_VERSION=3.1.1
 TERMUX_PKG_SRCURL=https://github.com/ledger/ledger/archive/v${TERMUX_PKG_VERSION}.tar.gz
 TERMUX_PKG_FOLDERNAME="ledger-${TERMUX_PKG_VERSION}"
-# TERMUX_PKG_DEPENDS="..."
-
+TERMUX_PKG_SHA256=90f06561ab692b192d46d67bc106158da9c6c6813cc3848b503243a9dfd8548a
+TERMUX_PKG_DEPENDS="libedit, boost, utf8cpp"
+termux_step_pre_configure() {
+       CXXFLAGS+=" -std=c++11"
+}
diff --git a/packages/utf8cpp/build.sh b/packages/utf8cpp/build.sh
new file mode 100644 (file)
index 0000000..36e015f
--- /dev/null
@@ -0,0 +1,17 @@
+TERMUX_PKG_HOMEPAGE=http://utfcpp.sourceforge.net/
+TERMUX_PKG_DESCRIPTION="UTF8-CPP: UTF-8 with C++ in a Portable Way"
+TERMUX_PKG_VERSION=2.3.4
+TERMUX_PKG_SRCURL=http://pkgs.fedoraproject.org/repo/extras/utf8cpp/utf8_v2_3_4.zip/c5e9522fde3debcad5e8922d796b2bd0/utf8_v2_3_4.zip
+TERMUX_PKG_SHA256=3373cebb25d88c662a2b960c4d585daf9ae7b396031ecd786e7bb31b15d010ef
+TERMUX_PKG_FOLDERNAME="source"
+TERMUX_PKG_BUILD_IN_SRC=yes
+TERMUX_PKG_NO_DEVELSPLIT=yes
+termux_step_configure() {
+       return 0;
+}
+termux_step_make() {
+       return 0;
+}
+termux_step_make_install(){
+       cp * -r $TERMUX_PREFIX/include
+}