aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2015-12-17 12:17:58 +0100
committerLoïc Hoguin <[email protected]>2015-12-17 12:17:58 +0100
commit3a0614508a88a9e30be2f47bc209e7d1e6f785b2 (patch)
treed8e77bbdefe7e386280f07669c91fc9deace842e
parent3c2d75e289524050dcc2a7c0a698327ea19e55e3 (diff)
downloaderlang.mk-3a0614508a88a9e30be2f47bc209e7d1e6f785b2.tar.gz
erlang.mk-3a0614508a88a9e30be2f47bc209e7d1e6f785b2.tar.bz2
erlang.mk-3a0614508a88a9e30be2f47bc209e7d1e6f785b2.zip
Add package i18n to the index
-rw-r--r--index/i18n.mk7
-rw-r--r--test/Makefile8
2 files changed, 15 insertions, 0 deletions
diff --git a/index/i18n.mk b/index/i18n.mk
new file mode 100644
index 0000000..f3f2c89
--- /dev/null
+++ b/index/i18n.mk
@@ -0,0 +1,7 @@
+PACKAGES += i18n
+pkg_i18n_name = i18n
+pkg_i18n_description = International components for unicode from Erlang (unicode, date, string, number, format, locale, localization, transliteration, icu4e)
+pkg_i18n_homepage = https://github.com/erlang-unicode/i18n
+pkg_i18n_fetch = git
+pkg_i18n_repo = https://github.com/erlang-unicode/i18n
+pkg_i18n_commit = master
diff --git a/test/Makefile b/test/Makefile
index 34d647f..06800af 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -203,6 +203,14 @@ pkg-$1: clean build
$i "Add package $1 to the Makefile"
$t perl -ni.bak -e 'print;if ($$$$.==1) {print "DEPS = $1\n"}' packages/$1_pkg/Makefile
+ $(if $(filter i18n,$1),
+ $i "Set ICU flags"
+ $(eval PATCHES := \
+ CXX="$(shell icu-config --cxx)" \
+ ICU_CFLAGS="$(shell icu-config --cflags)" \
+ ICU_CXXFLAGS="$(shell icu-config --cxxflags)" \
+ ICU_LDFLAGS="$(shell icu-config --ldflags)"))
+
$i "Compile package $1"
$t if ! ( cd packages/$1_pkg/ && $(MAKE) $(PATCHES) $v ); then \
echo "$1: compile error" >> packages/errors.log; \