Browse Source

Add package i18n to the index

Loïc Hoguin 9 years ago
parent
commit
3a0614508a
2 changed files with 15 additions and 0 deletions
  1. 7 0
      index/i18n.mk
  2. 8 0
      test/Makefile

+ 7 - 0
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

+ 8 - 0
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; \