Convert external/hyphenation-patterns to Android.bp

In order to reflect license for each locale precisely, add Android.bp to
every build in locale folder and due to combine .hyb and .lic.txt to a
single soong module name 'hyph-*', also modified PRODUCT_PACKAGES from
both hyph-$(locale) and hyph-$(locale).lic.txt to hyph-$(locale) only.

Bug: 328699844
Test: m ; check system/usr/hyphen-data/
Change-Id: Ibcdd5578d90cc94c95992ad50957070636c1afde
diff --git a/Android.mk b/Android.mk
deleted file mode 100644
index dc55c2e..0000000
--- a/Android.mk
+++ /dev/null
@@ -1,112 +0,0 @@
-# Copyright (C) 2015 The Android Open Source Project
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-#      http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-#disable build in PDK
-ifneq ($(TARGET_BUILD_PDK),true)
-
-LOCAL_PATH := $(call my-dir)
-
-pattern_locales := \
-    rekenaar/af/af \
-    TeX/am/mul-ethi \
-    TeX/as/as \
-    TeX/be/be \
-    TeX/bn/bn \
-    TeX/bg/bg \
-    tensojka/cs/cs \
-    TeX/cu/cu \
-    TeX/cy/cy \
-    TeX/da/da \
-    TeX/de/de-1901 \
-    TeX/de/de-1996 \
-    TeX/de/de-ch-1901 \
-    TeX/el/el \
-    TeX/en-GB/en-gb \
-    TeX/en-US/en-us \
-    TeX/es/es \
-    TeX/et/et \
-    TeX/eu/eu \
-    TeX/Ethi/und-ethi \
-    TeX/fr/fr \
-    TeX/ga/ga \
-    TeX/gl/gl \
-    TeX/gu/gu \
-    TeX/hi/hi \
-    TeX/hr/hr \
-    TeX/hu/hu \
-    TeX/hy/hy \
-    TeX/it/it \
-    TeX/ka/ka \
-    TeX/kn/kn \
-    TeX/la/la \
-    TeX/lt/lt \
-    TeX/lv/lv \
-    TeX/ml/ml \
-    TeX/mn/mn-cyrl \
-    TeX/mr/mr \
-    TeX/nb/nb \
-    OpenTaal/nl/nl \
-    TeX/nn/nn \
-    TeX/or/or \
-    TeX/pa/pa \
-    TeX/pl/pl \
-    TeX/pt/pt \
-    laboratory50/ru/ru \
-    TeX/sk/sk \
-    TeX/sl/sl \
-    TeX/sq/sq \
-    LibreOffice/sv/sv \
-    TeX/ta/ta \
-    TeX/te/te \
-    TeX/tk/tk \
-    TeX/uk/uk
-
-# TODO: we have data for sa/sa, but it requires special case handling for case
-# folding and normalization, so don't build it until that's fixed.
-#
-# TODO: we have data for Liturgical Latin, but there is no standard BCP 47 tag
-# for it, so we don't build it.
-
-BUILD_HYB := $(LOCAL_PATH)/build-hyb.mk
-
-#############################################################################
-# $(1): The subdirectory where the source files live.
-$ $(2): The file name fragment.
-#       It is used to find source files, and also generate the resulting binary.
-#############################################################################
-define build-one-pattern-module
-$(eval include $(CLEAR_VARS))\
-$(eval LOCAL_MODULE := $(addprefix hyph-, $(2)))\
-$(eval LOCAL_SRC_FILES := $(addprefix $(1)/hyph-, $(addprefix $(2), .pat.txt .chr.txt .hyp.txt)))\
-$(eval LOCAL_LICENSE_KINDS := SPDX-license-identifier-MIT SPDX-license-identifier-BSD-3-Clause SPDX-license-identifier-FSFAP SPDX-license-identifier-Unicode-DFS SPDX-license-identifier-LGPL-2.1 SPDX-license-identifier-MPL)\
-$(eval LOCAL_LICENSE_CONDITIONS := notice reciprocal restricted)\
-$(eval LOCAL_NOTICE_FILE := $(wildcard $(addprefix $(LOCAL_PATH)/$(1), /NOTICE /LICENSE)))\
-$(eval include $(BUILD_HYB))\
-$(eval include $(CLEAR_VARS))\
-$(eval LOCAL_MODULE := $(addprefix $(addprefix hyph-, $(2)), .lic.txt))\
-$(eval LOCAL_SRC_FILES := $(addprefix $(1)/hyph-, $(addprefix $(2), .lic.txt)))\
-$(eval LOCAL_MODULE_CLASS := ETC)\
-$(eval LOCAL_MODULE_TAGS := optional)\
-$(eval LOCAL_MODULE_PATH := $(TARGET_OUT)/usr/hyphen-data)\
-$(eval LOCAL_LICENSE_KINDS := SPDX-license-identifier-MIT SPDX-license-identifier-BSD-3-Clause SPDX-license-identifier-FSFAP SPDX-license-identifier-Unicode-DFS SPDX-license-identifier-LGPL-2.1 SPDX-license-identifier-MPL)\
-$(eval LOCAL_LICENSE_CONDITIONS := notice reciprocal restricted)\
-$(eval LOCAL_NOTICE_FILE := $(wildcard $(addprefix $(LOCAL_PATH)/$(1), /NOTICE /LICENSE)))\
-$(eval include $(BUILD_PREBUILT))
-endef
-
-$(foreach l, $(pattern_locales), $(call build-one-pattern-module,$(dir $(l)),$(notdir $l)))
-build-one-pattern-module :=
-pattern_locales :=
-
-endif #TARGET_BUILD_PDK
diff --git a/LibreOffice/sv/Android.bp b/LibreOffice/sv/Android.bp
new file mode 100644
index 0000000..cab5c3b
--- /dev/null
+++ b/LibreOffice/sv/Android.bp
@@ -0,0 +1,51 @@
+// Copyright 2015 The Android Open Source Project
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+package {
+    default_applicable_licenses: [
+        "external_hyphenation_patterns_LibreOffice_sv_license",
+    ],
+}
+
+// See: http://go/android-license-faq
+license {
+    name: "external_hyphenation_patterns_LibreOffice_sv_license",
+    visibility: [":__subpackages__"],
+    license_kinds: [
+        "SPDX-license-identifier-MPL",
+    ],
+    license_text: [
+        "NOTICE",
+    ],
+}
+
+genrule {
+    name: "hyph-sv-hyb",
+    srcs: [
+        "hyph-sv.pat.txt",
+        "hyph-sv.chr.txt",
+        "hyph-sv.hyp.txt",
+    ],
+    cmd: "$(location mk_hyb_file) $(location hyph-sv.pat.txt) $(out)",
+    tools: ["mk_hyb_file"],
+    out: ["hyph-sv.hyb"],
+}
+
+prebuilt_usr_hyphendata {
+    name: "hyph-sv",
+    srcs: [
+        ":hyph-sv-hyb",
+        "hyph-sv.lic.txt",
+    ],
+}
diff --git a/OpenTaal/nl/Android.bp b/OpenTaal/nl/Android.bp
new file mode 100644
index 0000000..a781684
--- /dev/null
+++ b/OpenTaal/nl/Android.bp
@@ -0,0 +1,51 @@
+// Copyright 2015 The Android Open Source Project
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+package {
+    default_applicable_licenses: [
+        "external_hyphenation_patterns_OpenTaal_nl_license",
+    ],
+}
+
+// See: http://go/android-license-faq
+license {
+    name: "external_hyphenation_patterns_OpenTaal_nl_license",
+    visibility: [":__subpackages__"],
+    license_kinds: [
+        "SPDX-license-identifier-BSD-3-Clause",
+    ],
+    license_text: [
+        "NOTICE",
+    ],
+}
+
+genrule {
+    name: "hyph-nl-hyb",
+    srcs: [
+        "hyph-nl.pat.txt",
+        "hyph-nl.chr.txt",
+        "hyph-nl.hyp.txt",
+    ],
+    cmd: "$(location mk_hyb_file) $(location hyph-nl.pat.txt) $(out)",
+    tools: ["mk_hyb_file"],
+    out: ["hyph-nl.hyb"],
+}
+
+prebuilt_usr_hyphendata {
+    name: "hyph-nl",
+    srcs: [
+        ":hyph-nl-hyb",
+        "hyph-nl.lic.txt",
+    ],
+}
diff --git a/TeX/Ethi/Android.bp b/TeX/Ethi/Android.bp
new file mode 100644
index 0000000..8db6085
--- /dev/null
+++ b/TeX/Ethi/Android.bp
@@ -0,0 +1,51 @@
+// Copyright 2015 The Android Open Source Project
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+package {
+    default_applicable_licenses: [
+        "external_hyphenation_patterns_TeX_Ethi_license",
+    ],
+}
+
+// See: http://go/android-license-faq
+license {
+    name: "external_hyphenation_patterns_TeX_Ethi_license",
+    visibility: [":__subpackages__"],
+    license_kinds: [
+        "legacy_permissive",
+    ],
+    license_text: [
+        "NOTICE",
+    ],
+}
+
+genrule {
+    name: "hyph-und-ethi-hyb",
+    srcs: [
+        "hyph-und-ethi.pat.txt",
+        "hyph-und-ethi.chr.txt",
+        "hyph-und-ethi.hyp.txt",
+    ],
+    cmd: "$(location mk_hyb_file) $(location hyph-und-ethi.pat.txt) $(out)",
+    tools: ["mk_hyb_file"],
+    out: ["hyph-und-ethi.hyb"],
+}
+
+prebuilt_usr_hyphendata {
+    name: "hyph-und-ethi",
+    srcs: [
+        ":hyph-und-ethi-hyb",
+        "hyph-und-ethi.lic.txt",
+    ],
+}
diff --git a/TeX/am/Android.bp b/TeX/am/Android.bp
new file mode 100644
index 0000000..ae80a69
--- /dev/null
+++ b/TeX/am/Android.bp
@@ -0,0 +1,51 @@
+// Copyright 2015 The Android Open Source Project
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+package {
+    default_applicable_licenses: [
+        "external_hyphenation_patterns_TeX_am_license",
+    ],
+}
+
+// See: http://go/android-license-faq
+license {
+    name: "external_hyphenation_patterns_TeX_am_license",
+    visibility: [":__subpackages__"],
+    license_kinds: [
+        "SPDX-license-identifier-MIT",
+    ],
+    license_text: [
+        "NOTICE",
+    ],
+}
+
+genrule {
+    name: "hyph-mul-ethi-hyb",
+    srcs: [
+        "hyph-mul-ethi.pat.txt",
+        "hyph-mul-ethi.chr.txt",
+        "hyph-mul-ethi.hyp.txt",
+    ],
+    cmd: "$(location mk_hyb_file) $(location hyph-mul-ethi.pat.txt) $(out)",
+    tools: ["mk_hyb_file"],
+    out: ["hyph-mul-ethi.hyb"],
+}
+
+prebuilt_usr_hyphendata {
+    name: "hyph-mul-ethi",
+    srcs: [
+        ":hyph-mul-ethi-hyb",
+        "hyph-mul-ethi.lic.txt",
+    ],
+}
diff --git a/TeX/as/Android.bp b/TeX/as/Android.bp
new file mode 100644
index 0000000..5dbf960
--- /dev/null
+++ b/TeX/as/Android.bp
@@ -0,0 +1,51 @@
+// Copyright 2015 The Android Open Source Project
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+package {
+    default_applicable_licenses: [
+        "external_hyphenation_patterns_TeX_as_license",
+    ],
+}
+
+// See: http://go/android-license-faq
+license {
+    name: "external_hyphenation_patterns_TeX_as_license",
+    visibility: [":__subpackages__"],
+    license_kinds: [
+        "SPDX-license-identifier-MIT",
+    ],
+    license_text: [
+        "NOTICE",
+    ],
+}
+
+genrule {
+    name: "hyph-as-hyb",
+    srcs: [
+        "hyph-as.pat.txt",
+        "hyph-as.chr.txt",
+        "hyph-as.hyp.txt",
+    ],
+    cmd: "$(location mk_hyb_file) $(location hyph-as.pat.txt) $(out)",
+    tools: ["mk_hyb_file"],
+    out: ["hyph-as.hyb"],
+}
+
+prebuilt_usr_hyphendata {
+    name: "hyph-as",
+    srcs: [
+        ":hyph-as-hyb",
+        "hyph-as.lic.txt",
+    ],
+}
diff --git a/TeX/be/Android.bp b/TeX/be/Android.bp
new file mode 100644
index 0000000..7411e9d
--- /dev/null
+++ b/TeX/be/Android.bp
@@ -0,0 +1,51 @@
+// Copyright 2015 The Android Open Source Project
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+package {
+    default_applicable_licenses: [
+        "external_hyphenation_patterns_TeX_be_license",
+    ],
+}
+
+// See: http://go/android-license-faq
+license {
+    name: "external_hyphenation_patterns_TeX_be_license",
+    visibility: [":__subpackages__"],
+    license_kinds: [
+        "SPDX-license-identifier-MIT",
+    ],
+    license_text: [
+        "NOTICE",
+    ],
+}
+
+genrule {
+    name: "hyph-be-hyb",
+    srcs: [
+        "hyph-be.pat.txt",
+        "hyph-be.chr.txt",
+        "hyph-be.hyp.txt",
+    ],
+    cmd: "$(location mk_hyb_file) $(location hyph-be.pat.txt) $(out)",
+    tools: ["mk_hyb_file"],
+    out: ["hyph-be.hyb"],
+}
+
+prebuilt_usr_hyphendata {
+    name: "hyph-be",
+    srcs: [
+        ":hyph-be-hyb",
+        "hyph-be.lic.txt",
+    ],
+}
diff --git a/TeX/bg/Android.bp b/TeX/bg/Android.bp
new file mode 100644
index 0000000..23ad170
--- /dev/null
+++ b/TeX/bg/Android.bp
@@ -0,0 +1,51 @@
+// Copyright 2015 The Android Open Source Project
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+package {
+    default_applicable_licenses: [
+        "external_hyphenation_patterns_TeX_bg_license",
+    ],
+}
+
+// See: http://go/android-license-faq
+license {
+    name: "external_hyphenation_patterns_TeX_bg_license",
+    visibility: [":__subpackages__"],
+    license_kinds: [
+        "SPDX-license-identifier-MIT",
+    ],
+    license_text: [
+        "NOTICE",
+    ],
+}
+
+genrule {
+    name: "hyph-bg-hyb",
+    srcs: [
+        "hyph-bg.pat.txt",
+        "hyph-bg.chr.txt",
+        "hyph-bg.hyp.txt",
+    ],
+    cmd: "$(location mk_hyb_file) $(location hyph-bg.pat.txt) $(out)",
+    tools: ["mk_hyb_file"],
+    out: ["hyph-bg.hyb"],
+}
+
+prebuilt_usr_hyphendata {
+    name: "hyph-bg",
+    srcs: [
+        ":hyph-bg-hyb",
+        "hyph-bg.lic.txt",
+    ],
+}
diff --git a/TeX/bn/Android.bp b/TeX/bn/Android.bp
new file mode 100644
index 0000000..ee79ee3
--- /dev/null
+++ b/TeX/bn/Android.bp
@@ -0,0 +1,51 @@
+// Copyright 2015 The Android Open Source Project
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+package {
+    default_applicable_licenses: [
+        "external_hyphenation_patterns_TeX_bn_license",
+    ],
+}
+
+// See: http://go/android-license-faq
+license {
+    name: "external_hyphenation_patterns_TeX_bn_license",
+    visibility: [":__subpackages__"],
+    license_kinds: [
+        "SPDX-license-identifier-MIT",
+    ],
+    license_text: [
+        "NOTICE",
+    ],
+}
+
+genrule {
+    name: "hyph-bn-hyb",
+    srcs: [
+        "hyph-bn.pat.txt",
+        "hyph-bn.chr.txt",
+        "hyph-bn.hyp.txt",
+    ],
+    cmd: "$(location mk_hyb_file) $(location hyph-bn.pat.txt) $(out)",
+    tools: ["mk_hyb_file"],
+    out: ["hyph-bn.hyb"],
+}
+
+prebuilt_usr_hyphendata {
+    name: "hyph-bn",
+    srcs: [
+        ":hyph-bn-hyb",
+        "hyph-bn.lic.txt",
+    ],
+}
diff --git a/TeX/cu/Android.bp b/TeX/cu/Android.bp
new file mode 100644
index 0000000..3647cc9
--- /dev/null
+++ b/TeX/cu/Android.bp
@@ -0,0 +1,51 @@
+// Copyright 2015 The Android Open Source Project
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+package {
+    default_applicable_licenses: [
+        "external_hyphenation_patterns_TeX_cu_license",
+    ],
+}
+
+// See: http://go/android-license-faq
+license {
+    name: "external_hyphenation_patterns_TeX_cu_license",
+    visibility: [":__subpackages__"],
+    license_kinds: [
+        "SPDX-license-identifier-MIT",
+    ],
+    license_text: [
+        "NOTICE",
+    ],
+}
+
+genrule {
+    name: "hyph-cu-hyb",
+    srcs: [
+        "hyph-cu.pat.txt",
+        "hyph-cu.chr.txt",
+        "hyph-cu.hyp.txt",
+    ],
+    cmd: "$(location mk_hyb_file) $(location hyph-cu.pat.txt) $(out)",
+    tools: ["mk_hyb_file"],
+    out: ["hyph-cu.hyb"],
+}
+
+prebuilt_usr_hyphendata {
+    name: "hyph-cu",
+    srcs: [
+        ":hyph-cu-hyb",
+        "hyph-cu.lic.txt",
+    ],
+}
diff --git a/TeX/cy/Android.bp b/TeX/cy/Android.bp
new file mode 100644
index 0000000..35d7092
--- /dev/null
+++ b/TeX/cy/Android.bp
@@ -0,0 +1,51 @@
+// Copyright 2015 The Android Open Source Project
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+package {
+    default_applicable_licenses: [
+        "external_hyphenation_patterns_TeX_cy_license",
+    ],
+}
+
+// See: http://go/android-license-faq
+license {
+    name: "external_hyphenation_patterns_TeX_cy_license",
+    visibility: [":__subpackages__"],
+    license_kinds: [
+        "SPDX-license-identifier-MIT",
+    ],
+    license_text: [
+        "NOTICE",
+    ],
+}
+
+genrule {
+    name: "hyph-cy-hyb",
+    srcs: [
+        "hyph-cy.pat.txt",
+        "hyph-cy.chr.txt",
+        "hyph-cy.hyp.txt",
+    ],
+    cmd: "$(location mk_hyb_file) $(location hyph-cy.pat.txt) $(out)",
+    tools: ["mk_hyb_file"],
+    out: ["hyph-cy.hyb"],
+}
+
+prebuilt_usr_hyphendata {
+    name: "hyph-cy",
+    srcs: [
+        ":hyph-cy-hyb",
+        "hyph-cy.lic.txt",
+    ],
+}
diff --git a/TeX/da/Android.bp b/TeX/da/Android.bp
new file mode 100644
index 0000000..ad49ed7
--- /dev/null
+++ b/TeX/da/Android.bp
@@ -0,0 +1,51 @@
+// Copyright 2015 The Android Open Source Project
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+package {
+    default_applicable_licenses: [
+        "external_hyphenation_patterns_TeX_da_license",
+    ],
+}
+
+// See: http://go/android-license-faq
+license {
+    name: "external_hyphenation_patterns_TeX_da_license",
+    visibility: [":__subpackages__"],
+    license_kinds: [
+        "SPDX-license-identifier-MIT",
+    ],
+    license_text: [
+        "NOTICE",
+    ],
+}
+
+genrule {
+    name: "hyph-da-hyb",
+    srcs: [
+        "hyph-da.pat.txt",
+        "hyph-da.chr.txt",
+        "hyph-da.hyp.txt",
+    ],
+    cmd: "$(location mk_hyb_file) $(location hyph-da.pat.txt) $(out)",
+    tools: ["mk_hyb_file"],
+    out: ["hyph-da.hyb"],
+}
+
+prebuilt_usr_hyphendata {
+    name: "hyph-da",
+    srcs: [
+        ":hyph-da-hyb",
+        "hyph-da.lic.txt",
+    ],
+}
diff --git a/TeX/de/Android.bp b/TeX/de/Android.bp
new file mode 100644
index 0000000..b001a76
--- /dev/null
+++ b/TeX/de/Android.bp
@@ -0,0 +1,91 @@
+// Copyright 2015 The Android Open Source Project
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+package {
+    default_applicable_licenses: [
+        "external_hyphenation_patterns_TeX_de_license",
+    ],
+}
+
+// See: http://go/android-license-faq
+license {
+    name: "external_hyphenation_patterns_TeX_de_license",
+    visibility: [":__subpackages__"],
+    license_kinds: [
+        "SPDX-license-identifier-MIT",
+    ],
+    license_text: [
+        "NOTICE",
+    ],
+}
+
+genrule {
+    name: "hyph-de-1901-hyb",
+    srcs: [
+        "hyph-de-1901.pat.txt",
+        "hyph-de-1901.chr.txt",
+        "hyph-de-1901.hyp.txt",
+    ],
+    cmd: "$(location mk_hyb_file) $(location hyph-de-1901.pat.txt) $(out)",
+    tools: ["mk_hyb_file"],
+    out: ["hyph-de-1901.hyb"],
+}
+
+prebuilt_usr_hyphendata {
+    name: "hyph-de-1901",
+    srcs: [
+        ":hyph-de-1901-hyb",
+        "hyph-de-1901.lic.txt",
+    ],
+}
+
+genrule {
+    name: "hyph-de-1996-hyb",
+    srcs: [
+        "hyph-de-1996.pat.txt",
+        "hyph-de-1996.chr.txt",
+        "hyph-de-1996.hyp.txt",
+    ],
+    cmd: "$(location mk_hyb_file) $(location hyph-de-1996.pat.txt) $(out)",
+    tools: ["mk_hyb_file"],
+    out: ["hyph-de-1996.hyb"],
+}
+
+prebuilt_usr_hyphendata {
+    name: "hyph-de-1996",
+    srcs: [
+        ":hyph-de-1996-hyb",
+        "hyph-de-1996.lic.txt",
+    ],
+}
+
+genrule {
+    name: "hyph-de-ch-1901-hyb",
+    srcs: [
+        "hyph-de-ch-1901.pat.txt",
+        "hyph-de-ch-1901.chr.txt",
+        "hyph-de-ch-1901.hyp.txt",
+    ],
+    cmd: "$(location mk_hyb_file) $(location hyph-de-ch-1901.pat.txt) $(out)",
+    tools: ["mk_hyb_file"],
+    out: ["hyph-de-ch-1901.hyb"],
+}
+
+prebuilt_usr_hyphendata {
+    name: "hyph-de-ch-1901",
+    srcs: [
+        ":hyph-de-ch-1901-hyb",
+        "hyph-de-ch-1901.lic.txt",
+    ],
+}
diff --git a/TeX/el/Android.bp b/TeX/el/Android.bp
new file mode 100644
index 0000000..a880cbd
--- /dev/null
+++ b/TeX/el/Android.bp
@@ -0,0 +1,51 @@
+// Copyright 2015 The Android Open Source Project
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+package {
+    default_applicable_licenses: [
+        "external_hyphenation_patterns_TeX_el_license",
+    ],
+}
+
+// See: http://go/android-license-faq
+license {
+    name: "external_hyphenation_patterns_TeX_el_license",
+    visibility: [":__subpackages__"],
+    license_kinds: [
+        "SPDX-license-identifier-MIT",
+    ],
+    license_text: [
+        "NOTICE",
+    ],
+}
+
+genrule {
+    name: "hyph-el-hyb",
+    srcs: [
+        "hyph-el.pat.txt",
+        "hyph-el.chr.txt",
+        "hyph-el.hyp.txt",
+    ],
+    cmd: "$(location mk_hyb_file) $(location hyph-el.pat.txt) $(out)",
+    tools: ["mk_hyb_file"],
+    out: ["hyph-el.hyb"],
+}
+
+prebuilt_usr_hyphendata {
+    name: "hyph-el",
+    srcs: [
+        ":hyph-el-hyb",
+        "hyph-el.lic.txt",
+    ],
+}
diff --git a/TeX/en-GB/Android.bp b/TeX/en-GB/Android.bp
new file mode 100644
index 0000000..25d32b6
--- /dev/null
+++ b/TeX/en-GB/Android.bp
@@ -0,0 +1,51 @@
+// Copyright 2015 The Android Open Source Project
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+package {
+    default_applicable_licenses: [
+        "external_hyphenation_patterns_TeX_en_GB_license",
+    ],
+}
+
+// See: http://go/android-license-faq
+license {
+    name: "external_hyphenation_patterns_TeX_en_GB_license",
+    visibility: [":__subpackages__"],
+    license_kinds: [
+        "SPDX-license-identifier-Unicode-DFS",
+    ],
+    license_text: [
+        "NOTICE",
+    ],
+}
+
+genrule {
+    name: "hyph-en-gb-hyb",
+    srcs: [
+        "hyph-en-gb.pat.txt",
+        "hyph-en-gb.chr.txt",
+        "hyph-en-gb.hyp.txt",
+    ],
+    cmd: "$(location mk_hyb_file) $(location hyph-en-gb.pat.txt) $(out)",
+    tools: ["mk_hyb_file"],
+    out: ["hyph-en-gb.hyb"],
+}
+
+prebuilt_usr_hyphendata {
+    name: "hyph-en-gb",
+    srcs: [
+        ":hyph-en-gb-hyb",
+        "hyph-en-gb.lic.txt",
+    ],
+}
diff --git a/TeX/en-US/Android.bp b/TeX/en-US/Android.bp
new file mode 100644
index 0000000..f27ceac
--- /dev/null
+++ b/TeX/en-US/Android.bp
@@ -0,0 +1,51 @@
+// Copyright 2015 The Android Open Source Project
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+package {
+    default_applicable_licenses: [
+        "external_hyphenation_patterns_TeX_en_US_license",
+    ],
+}
+
+// See: http://go/android-license-faq
+license {
+    name: "external_hyphenation_patterns_TeX_en_US_license",
+    visibility: [":__subpackages__"],
+    license_kinds: [
+        "legacy_notice",
+    ],
+    license_text: [
+        "NOTICE",
+    ],
+}
+
+genrule {
+    name: "hyph-en-us-hyb",
+    srcs: [
+        "hyph-en-us.pat.txt",
+        "hyph-en-us.chr.txt",
+        "hyph-en-us.hyp.txt",
+    ],
+    cmd: "$(location mk_hyb_file) $(location hyph-en-us.pat.txt) $(out)",
+    tools: ["mk_hyb_file"],
+    out: ["hyph-en-us.hyb"],
+}
+
+prebuilt_usr_hyphendata {
+    name: "hyph-en-us",
+    srcs: [
+        ":hyph-en-us-hyb",
+        "hyph-en-us.lic.txt",
+    ],
+}
diff --git a/TeX/es/Android.bp b/TeX/es/Android.bp
new file mode 100644
index 0000000..c3c85ea
--- /dev/null
+++ b/TeX/es/Android.bp
@@ -0,0 +1,51 @@
+// Copyright 2015 The Android Open Source Project
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+package {
+    default_applicable_licenses: [
+        "external_hyphenation_patterns_TeX_es_license",
+    ],
+}
+
+// See: http://go/android-license-faq
+license {
+    name: "external_hyphenation_patterns_TeX_es_license",
+    visibility: [":__subpackages__"],
+    license_kinds: [
+        "SPDX-license-identifier-MIT",
+    ],
+    license_text: [
+        "NOTICE",
+    ],
+}
+
+genrule {
+    name: "hyph-es-hyb",
+    srcs: [
+        "hyph-es.pat.txt",
+        "hyph-es.chr.txt",
+        "hyph-es.hyp.txt",
+    ],
+    cmd: "$(location mk_hyb_file) $(location hyph-es.pat.txt) $(out)",
+    tools: ["mk_hyb_file"],
+    out: ["hyph-es.hyb"],
+}
+
+prebuilt_usr_hyphendata {
+    name: "hyph-es",
+    srcs: [
+        ":hyph-es-hyb",
+        "hyph-es.lic.txt",
+    ],
+}
diff --git a/TeX/et/Android.bp b/TeX/et/Android.bp
new file mode 100644
index 0000000..e33f49e
--- /dev/null
+++ b/TeX/et/Android.bp
@@ -0,0 +1,51 @@
+// Copyright 2015 The Android Open Source Project
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+package {
+    default_applicable_licenses: [
+        "external_hyphenation_patterns_TeX_et_license",
+    ],
+}
+
+// See: http://go/android-license-faq
+license {
+    name: "external_hyphenation_patterns_TeX_et_license",
+    visibility: [":__subpackages__"],
+    license_kinds: [
+        "SPDX-license-identifier-MIT",
+    ],
+    license_text: [
+        "NOTICE",
+    ],
+}
+
+genrule {
+    name: "hyph-et-hyb",
+    srcs: [
+        "hyph-et.pat.txt",
+        "hyph-et.chr.txt",
+        "hyph-et.hyp.txt",
+    ],
+    cmd: "$(location mk_hyb_file) $(location hyph-et.pat.txt) $(out)",
+    tools: ["mk_hyb_file"],
+    out: ["hyph-et.hyb"],
+}
+
+prebuilt_usr_hyphendata {
+    name: "hyph-et",
+    srcs: [
+        ":hyph-et-hyb",
+        "hyph-et.lic.txt",
+    ],
+}
diff --git a/TeX/eu/Android.bp b/TeX/eu/Android.bp
new file mode 100644
index 0000000..d54fe5d
--- /dev/null
+++ b/TeX/eu/Android.bp
@@ -0,0 +1,51 @@
+// Copyright 2015 The Android Open Source Project
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+package {
+    default_applicable_licenses: [
+        "external_hyphenation_patterns_TeX_eu_license",
+    ],
+}
+
+// See: http://go/android-license-faq
+license {
+    name: "external_hyphenation_patterns_TeX_eu_license",
+    visibility: [":__subpackages__"],
+    license_kinds: [
+        "SPDX-license-identifier-Unicode-DFS",
+    ],
+    license_text: [
+        "NOTICE",
+    ],
+}
+
+genrule {
+    name: "hyph-eu-hyb",
+    srcs: [
+        "hyph-eu.pat.txt",
+        "hyph-eu.chr.txt",
+        "hyph-eu.hyp.txt",
+    ],
+    cmd: "$(location mk_hyb_file) $(location hyph-eu.pat.txt) $(out)",
+    tools: ["mk_hyb_file"],
+    out: ["hyph-eu.hyb"],
+}
+
+prebuilt_usr_hyphendata {
+    name: "hyph-eu",
+    srcs: [
+        ":hyph-eu-hyb",
+        "hyph-eu.lic.txt",
+    ],
+}
diff --git a/TeX/fr/Android.bp b/TeX/fr/Android.bp
new file mode 100644
index 0000000..ce57944
--- /dev/null
+++ b/TeX/fr/Android.bp
@@ -0,0 +1,51 @@
+// Copyright 2015 The Android Open Source Project
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+package {
+    default_applicable_licenses: [
+        "external_hyphenation_patterns_TeX_fr_license",
+    ],
+}
+
+// See: http://go/android-license-faq
+license {
+    name: "external_hyphenation_patterns_TeX_fr_license",
+    visibility: [":__subpackages__"],
+    license_kinds: [
+        "SPDX-license-identifier-MIT",
+    ],
+    license_text: [
+        "NOTICE",
+    ],
+}
+
+genrule {
+    name: "hyph-fr-hyb",
+    srcs: [
+        "hyph-fr.pat.txt",
+        "hyph-fr.chr.txt",
+        "hyph-fr.hyp.txt",
+    ],
+    cmd: "$(location mk_hyb_file) $(location hyph-fr.pat.txt) $(out)",
+    tools: ["mk_hyb_file"],
+    out: ["hyph-fr.hyb"],
+}
+
+prebuilt_usr_hyphendata {
+    name: "hyph-fr",
+    srcs: [
+        ":hyph-fr-hyb",
+        "hyph-fr.lic.txt",
+    ],
+}
diff --git a/TeX/ga/Android.bp b/TeX/ga/Android.bp
new file mode 100644
index 0000000..ef072e9
--- /dev/null
+++ b/TeX/ga/Android.bp
@@ -0,0 +1,51 @@
+// Copyright 2015 The Android Open Source Project
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+package {
+    default_applicable_licenses: [
+        "external_hyphenation_patterns_TeX_ga_license",
+    ],
+}
+
+// See: http://go/android-license-faq
+license {
+    name: "external_hyphenation_patterns_TeX_ga_license",
+    visibility: [":__subpackages__"],
+    license_kinds: [
+        "SPDX-license-identifier-MIT",
+    ],
+    license_text: [
+        "NOTICE",
+    ],
+}
+
+genrule {
+    name: "hyph-ga-hyb",
+    srcs: [
+        "hyph-ga.pat.txt",
+        "hyph-ga.chr.txt",
+        "hyph-ga.hyp.txt",
+    ],
+    cmd: "$(location mk_hyb_file) $(location hyph-ga.pat.txt) $(out)",
+    tools: ["mk_hyb_file"],
+    out: ["hyph-ga.hyb"],
+}
+
+prebuilt_usr_hyphendata {
+    name: "hyph-ga",
+    srcs: [
+        ":hyph-ga-hyb",
+        "hyph-ga.lic.txt",
+    ],
+}
diff --git a/TeX/gl/Android.bp b/TeX/gl/Android.bp
new file mode 100644
index 0000000..3e0d59d
--- /dev/null
+++ b/TeX/gl/Android.bp
@@ -0,0 +1,51 @@
+// Copyright 2015 The Android Open Source Project
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+package {
+    default_applicable_licenses: [
+        "external_hyphenation_patterns_TeX_gl_license",
+    ],
+}
+
+// See: http://go/android-license-faq
+license {
+    name: "external_hyphenation_patterns_TeX_gl_license",
+    visibility: [":__subpackages__"],
+    license_kinds: [
+        "SPDX-license-identifier-Unlicense",
+    ],
+    license_text: [
+        "NOTICE",
+    ],
+}
+
+genrule {
+    name: "hyph-gl-hyb",
+    srcs: [
+        "hyph-gl.pat.txt",
+        "hyph-gl.chr.txt",
+        "hyph-gl.hyp.txt",
+    ],
+    cmd: "$(location mk_hyb_file) $(location hyph-gl.pat.txt) $(out)",
+    tools: ["mk_hyb_file"],
+    out: ["hyph-gl.hyb"],
+}
+
+prebuilt_usr_hyphendata {
+    name: "hyph-gl",
+    srcs: [
+        ":hyph-gl-hyb",
+        "hyph-gl.lic.txt",
+    ],
+}
diff --git a/TeX/gu/Android.bp b/TeX/gu/Android.bp
new file mode 100644
index 0000000..1c63500
--- /dev/null
+++ b/TeX/gu/Android.bp
@@ -0,0 +1,51 @@
+// Copyright 2015 The Android Open Source Project
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+package {
+    default_applicable_licenses: [
+        "external_hyphenation_patterns_TeX_gu_license",
+    ],
+}
+
+// See: http://go/android-license-faq
+license {
+    name: "external_hyphenation_patterns_TeX_gu_license",
+    visibility: [":__subpackages__"],
+    license_kinds: [
+        "SPDX-license-identifier-MIT",
+    ],
+    license_text: [
+        "NOTICE",
+    ],
+}
+
+genrule {
+    name: "hyph-gu-hyb",
+    srcs: [
+        "hyph-gu.pat.txt",
+        "hyph-gu.chr.txt",
+        "hyph-gu.hyp.txt",
+    ],
+    cmd: "$(location mk_hyb_file) $(location hyph-gu.pat.txt) $(out)",
+    tools: ["mk_hyb_file"],
+    out: ["hyph-gu.hyb"],
+}
+
+prebuilt_usr_hyphendata {
+    name: "hyph-gu",
+    srcs: [
+        ":hyph-gu-hyb",
+        "hyph-gu.lic.txt",
+    ],
+}
diff --git a/TeX/hi/Android.bp b/TeX/hi/Android.bp
new file mode 100644
index 0000000..8aef9c2
--- /dev/null
+++ b/TeX/hi/Android.bp
@@ -0,0 +1,51 @@
+// Copyright 2015 The Android Open Source Project
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+package {
+    default_applicable_licenses: [
+        "external_hyphenation_patterns_TeX_hi_license",
+    ],
+}
+
+// See: http://go/android-license-faq
+license {
+    name: "external_hyphenation_patterns_TeX_hi_license",
+    visibility: [":__subpackages__"],
+    license_kinds: [
+        "SPDX-license-identifier-MIT",
+    ],
+    license_text: [
+        "NOTICE",
+    ],
+}
+
+genrule {
+    name: "hyph-hi-hyb",
+    srcs: [
+        "hyph-hi.pat.txt",
+        "hyph-hi.chr.txt",
+        "hyph-hi.hyp.txt",
+    ],
+    cmd: "$(location mk_hyb_file) $(location hyph-hi.pat.txt) $(out)",
+    tools: ["mk_hyb_file"],
+    out: ["hyph-hi.hyb"],
+}
+
+prebuilt_usr_hyphendata {
+    name: "hyph-hi",
+    srcs: [
+        ":hyph-hi-hyb",
+        "hyph-hi.lic.txt",
+    ],
+}
diff --git a/TeX/hr/Android.bp b/TeX/hr/Android.bp
new file mode 100644
index 0000000..99db778
--- /dev/null
+++ b/TeX/hr/Android.bp
@@ -0,0 +1,51 @@
+// Copyright 2015 The Android Open Source Project
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+package {
+    default_applicable_licenses: [
+        "external_hyphenation_patterns_TeX_hr_license",
+    ],
+}
+
+// See: http://go/android-license-faq
+license {
+    name: "external_hyphenation_patterns_TeX_hr_license",
+    visibility: [":__subpackages__"],
+    license_kinds: [
+        "SPDX-license-identifier-Unicode-DFS",
+    ],
+    license_text: [
+        "NOTICE",
+    ],
+}
+
+genrule {
+    name: "hyph-hr-hyb",
+    srcs: [
+        "hyph-hr.pat.txt",
+        "hyph-hr.chr.txt",
+        "hyph-hr.hyp.txt",
+    ],
+    cmd: "$(location mk_hyb_file) $(location hyph-hr.pat.txt) $(out)",
+    tools: ["mk_hyb_file"],
+    out: ["hyph-hr.hyb"],
+}
+
+prebuilt_usr_hyphendata {
+    name: "hyph-hr",
+    srcs: [
+        ":hyph-hr-hyb",
+        "hyph-hr.lic.txt",
+    ],
+}
diff --git a/TeX/hu/Android.bp b/TeX/hu/Android.bp
new file mode 100644
index 0000000..09ba695
--- /dev/null
+++ b/TeX/hu/Android.bp
@@ -0,0 +1,51 @@
+// Copyright 2015 The Android Open Source Project
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+package {
+    default_applicable_licenses: [
+        "external_hyphenation_patterns_TeX_hu_license",
+    ],
+}
+
+// See: http://go/android-license-faq
+license {
+    name: "external_hyphenation_patterns_TeX_hu_license",
+    visibility: [":__subpackages__"],
+    license_kinds: [
+        "SPDX-license-identifier-MPL-1.1",
+    ],
+    license_text: [
+        "NOTICE",
+    ],
+}
+
+genrule {
+    name: "hyph-hu-hyb",
+    srcs: [
+        "hyph-hu.pat.txt",
+        "hyph-hu.chr.txt",
+        "hyph-hu.hyp.txt",
+    ],
+    cmd: "$(location mk_hyb_file) $(location hyph-hu.pat.txt) $(out)",
+    tools: ["mk_hyb_file"],
+    out: ["hyph-hu.hyb"],
+}
+
+prebuilt_usr_hyphendata {
+    name: "hyph-hu",
+    srcs: [
+        ":hyph-hu-hyb",
+        "hyph-hu.lic.txt",
+    ],
+}
diff --git a/TeX/hy/Android.bp b/TeX/hy/Android.bp
new file mode 100644
index 0000000..25eee62
--- /dev/null
+++ b/TeX/hy/Android.bp
@@ -0,0 +1,51 @@
+// Copyright 2015 The Android Open Source Project
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+package {
+    default_applicable_licenses: [
+        "external_hyphenation_patterns_TeX_hy_license",
+    ],
+}
+
+// See: http://go/android-license-faq
+license {
+    name: "external_hyphenation_patterns_TeX_hy_license",
+    visibility: [":__subpackages__"],
+    license_kinds: [
+        "SPDX-license-identifier-LGPL-2.1",
+    ],
+    license_text: [
+        "NOTICE",
+    ],
+}
+
+genrule {
+    name: "hyph-hy-hyb",
+    srcs: [
+        "hyph-hy.pat.txt",
+        "hyph-hy.chr.txt",
+        "hyph-hy.hyp.txt",
+    ],
+    cmd: "$(location mk_hyb_file) $(location hyph-hy.pat.txt) $(out)",
+    tools: ["mk_hyb_file"],
+    out: ["hyph-hy.hyb"],
+}
+
+prebuilt_usr_hyphendata {
+    name: "hyph-hy",
+    srcs: [
+        ":hyph-hy-hyb",
+        "hyph-hy.lic.txt",
+    ],
+}
diff --git a/TeX/it/Android.bp b/TeX/it/Android.bp
new file mode 100644
index 0000000..ab67b91
--- /dev/null
+++ b/TeX/it/Android.bp
@@ -0,0 +1,51 @@
+// Copyright 2015 The Android Open Source Project
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+package {
+    default_applicable_licenses: [
+        "external_hyphenation_patterns_TeX_it_license",
+    ],
+}
+
+// See: http://go/android-license-faq
+license {
+    name: "external_hyphenation_patterns_TeX_it_license",
+    visibility: [":__subpackages__"],
+    license_kinds: [
+        "SPDX-license-identifier-MIT",
+    ],
+    license_text: [
+        "NOTICE",
+    ],
+}
+
+genrule {
+    name: "hyph-it-hyb",
+    srcs: [
+        "hyph-it.pat.txt",
+        "hyph-it.chr.txt",
+        "hyph-it.hyp.txt",
+    ],
+    cmd: "$(location mk_hyb_file) $(location hyph-it.pat.txt) $(out)",
+    tools: ["mk_hyb_file"],
+    out: ["hyph-it.hyb"],
+}
+
+prebuilt_usr_hyphendata {
+    name: "hyph-it",
+    srcs: [
+        ":hyph-it-hyb",
+        "hyph-it.lic.txt",
+    ],
+}
diff --git a/TeX/ka/Android.bp b/TeX/ka/Android.bp
new file mode 100644
index 0000000..3f468a1
--- /dev/null
+++ b/TeX/ka/Android.bp
@@ -0,0 +1,51 @@
+// Copyright 2015 The Android Open Source Project
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+package {
+    default_applicable_licenses: [
+        "external_hyphenation_patterns_TeX_ka_license",
+    ],
+}
+
+// See: http://go/android-license-faq
+license {
+    name: "external_hyphenation_patterns_TeX_ka_license",
+    visibility: [":__subpackages__"],
+    license_kinds: [
+        "SPDX-license-identifier-MIT",
+    ],
+    license_text: [
+        "NOTICE",
+    ],
+}
+
+genrule {
+    name: "hyph-ka-hyb",
+    srcs: [
+        "hyph-ka.pat.txt",
+        "hyph-ka.chr.txt",
+        "hyph-ka.hyp.txt",
+    ],
+    cmd: "$(location mk_hyb_file) $(location hyph-ka.pat.txt) $(out)",
+    tools: ["mk_hyb_file"],
+    out: ["hyph-ka.hyb"],
+}
+
+prebuilt_usr_hyphendata {
+    name: "hyph-ka",
+    srcs: [
+        ":hyph-ka-hyb",
+        "hyph-ka.lic.txt",
+    ],
+}
diff --git a/TeX/kn/Android.bp b/TeX/kn/Android.bp
new file mode 100644
index 0000000..652aba5
--- /dev/null
+++ b/TeX/kn/Android.bp
@@ -0,0 +1,51 @@
+// Copyright 2015 The Android Open Source Project
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+package {
+    default_applicable_licenses: [
+        "external_hyphenation_patterns_TeX_kn_license",
+    ],
+}
+
+// See: http://go/android-license-faq
+license {
+    name: "external_hyphenation_patterns_TeX_kn_license",
+    visibility: [":__subpackages__"],
+    license_kinds: [
+        "SPDX-license-identifier-MIT",
+    ],
+    license_text: [
+        "NOTICE",
+    ],
+}
+
+genrule {
+    name: "hyph-kn-hyb",
+    srcs: [
+        "hyph-kn.pat.txt",
+        "hyph-kn.chr.txt",
+        "hyph-kn.hyp.txt",
+    ],
+    cmd: "$(location mk_hyb_file) $(location hyph-kn.pat.txt) $(out)",
+    tools: ["mk_hyb_file"],
+    out: ["hyph-kn.hyb"],
+}
+
+prebuilt_usr_hyphendata {
+    name: "hyph-kn",
+    srcs: [
+        ":hyph-kn-hyb",
+        "hyph-kn.lic.txt",
+    ],
+}
diff --git a/TeX/la/Android.bp b/TeX/la/Android.bp
new file mode 100644
index 0000000..9ce207f
--- /dev/null
+++ b/TeX/la/Android.bp
@@ -0,0 +1,54 @@
+// Copyright 2015 The Android Open Source Project
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// TODO: we have data for Liturgical Latin, but there is no standard BCP 47 tag
+// for it, so we don't build it.
+
+package {
+    default_applicable_licenses: [
+        "external_hyphenation_patterns_TeX_la_license",
+    ],
+}
+
+// See: http://go/android-license-faq
+license {
+    name: "external_hyphenation_patterns_TeX_la_license",
+    visibility: [":__subpackages__"],
+    license_kinds: [
+        "SPDX-license-identifier-MIT",
+    ],
+    license_text: [
+        "NOTICE",
+    ],
+}
+
+genrule {
+    name: "hyph-la-hyb",
+    srcs: [
+        "hyph-la.pat.txt",
+        "hyph-la.chr.txt",
+        "hyph-la.hyp.txt",
+    ],
+    cmd: "$(location mk_hyb_file) $(location hyph-la.pat.txt) $(out)",
+    tools: ["mk_hyb_file"],
+    out: ["hyph-la.hyb"],
+}
+
+prebuilt_usr_hyphendata {
+    name: "hyph-la",
+    srcs: [
+        ":hyph-la-hyb",
+        "hyph-la.lic.txt",
+    ],
+}
diff --git a/TeX/lt/Android.bp b/TeX/lt/Android.bp
new file mode 100644
index 0000000..5d39621
--- /dev/null
+++ b/TeX/lt/Android.bp
@@ -0,0 +1,51 @@
+// Copyright 2015 The Android Open Source Project
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+package {
+    default_applicable_licenses: [
+        "external_hyphenation_patterns_TeX_lt_license",
+    ],
+}
+
+// See: http://go/android-license-faq
+license {
+    name: "external_hyphenation_patterns_TeX_lt_license",
+    visibility: [":__subpackages__"],
+    license_kinds: [
+        "SPDX-license-identifier-MIT",
+    ],
+    license_text: [
+        "NOTICE",
+    ],
+}
+
+genrule {
+    name: "hyph-lt-hyb",
+    srcs: [
+        "hyph-lt.pat.txt",
+        "hyph-lt.chr.txt",
+        "hyph-lt.hyp.txt",
+    ],
+    cmd: "$(location mk_hyb_file) $(location hyph-lt.pat.txt) $(out)",
+    tools: ["mk_hyb_file"],
+    out: ["hyph-lt.hyb"],
+}
+
+prebuilt_usr_hyphendata {
+    name: "hyph-lt",
+    srcs: [
+        ":hyph-lt-hyb",
+        "hyph-lt.lic.txt",
+    ],
+}
diff --git a/TeX/lv/Android.bp b/TeX/lv/Android.bp
new file mode 100644
index 0000000..7a0df5b
--- /dev/null
+++ b/TeX/lv/Android.bp
@@ -0,0 +1,51 @@
+// Copyright 2015 The Android Open Source Project
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+package {
+    default_applicable_licenses: [
+        "external_hyphenation_patterns_TeX_lv_license",
+    ],
+}
+
+// See: http://go/android-license-faq
+license {
+    name: "external_hyphenation_patterns_TeX_lv_license",
+    visibility: [":__subpackages__"],
+    license_kinds: [
+        "SPDX-license-identifier-LGPL-2.1",
+    ],
+    license_text: [
+        "NOTICE",
+    ],
+}
+
+genrule {
+    name: "hyph-lv-hyb",
+    srcs: [
+        "hyph-lv.pat.txt",
+        "hyph-lv.chr.txt",
+        "hyph-lv.hyp.txt",
+    ],
+    cmd: "$(location mk_hyb_file) $(location hyph-lv.pat.txt) $(out)",
+    tools: ["mk_hyb_file"],
+    out: ["hyph-lv.hyb"],
+}
+
+prebuilt_usr_hyphendata {
+    name: "hyph-lv",
+    srcs: [
+        ":hyph-lv-hyb",
+        "hyph-lv.lic.txt",
+    ],
+}
diff --git a/TeX/ml/Android.bp b/TeX/ml/Android.bp
new file mode 100644
index 0000000..2a664bb
--- /dev/null
+++ b/TeX/ml/Android.bp
@@ -0,0 +1,51 @@
+// Copyright 2015 The Android Open Source Project
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+package {
+    default_applicable_licenses: [
+        "external_hyphenation_patterns_TeX_ml_license",
+    ],
+}
+
+// See: http://go/android-license-faq
+license {
+    name: "external_hyphenation_patterns_TeX_ml_license",
+    visibility: [":__subpackages__"],
+    license_kinds: [
+        "SPDX-license-identifier-MIT",
+    ],
+    license_text: [
+        "NOTICE",
+    ],
+}
+
+genrule {
+    name: "hyph-ml-hyb",
+    srcs: [
+        "hyph-ml.pat.txt",
+        "hyph-ml.chr.txt",
+        "hyph-ml.hyp.txt",
+    ],
+    cmd: "$(location mk_hyb_file) $(location hyph-ml.pat.txt) $(out)",
+    tools: ["mk_hyb_file"],
+    out: ["hyph-ml.hyb"],
+}
+
+prebuilt_usr_hyphendata {
+    name: "hyph-ml",
+    srcs: [
+        ":hyph-ml-hyb",
+        "hyph-ml.lic.txt",
+    ],
+}
diff --git a/TeX/mn/Android.bp b/TeX/mn/Android.bp
new file mode 100644
index 0000000..22b66a2
--- /dev/null
+++ b/TeX/mn/Android.bp
@@ -0,0 +1,51 @@
+// Copyright 2015 The Android Open Source Project
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+package {
+    default_applicable_licenses: [
+        "external_hyphenation_patterns_TeX_mn_license",
+    ],
+}
+
+// See: http://go/android-license-faq
+license {
+    name: "external_hyphenation_patterns_TeX_mn_license",
+    visibility: [":__subpackages__"],
+    license_kinds: [
+        "SPDX-license-identifier-MIT",
+    ],
+    license_text: [
+        "NOTICE",
+    ],
+}
+
+genrule {
+    name: "hyph-mn-cyrl-hyb",
+    srcs: [
+        "hyph-mn-cyrl.pat.txt",
+        "hyph-mn-cyrl.chr.txt",
+        "hyph-mn-cyrl.hyp.txt",
+    ],
+    cmd: "$(location mk_hyb_file) $(location hyph-mn-cyrl.pat.txt) $(out)",
+    tools: ["mk_hyb_file"],
+    out: ["hyph-mn-cyrl.hyb"],
+}
+
+prebuilt_usr_hyphendata {
+    name: "hyph-mn-cyrl",
+    srcs: [
+        ":hyph-mn-cyrl-hyb",
+        "hyph-mn-cyrl.lic.txt",
+    ],
+}
diff --git a/TeX/mr/Android.bp b/TeX/mr/Android.bp
new file mode 100644
index 0000000..f8cb31d
--- /dev/null
+++ b/TeX/mr/Android.bp
@@ -0,0 +1,51 @@
+// Copyright 2015 The Android Open Source Project
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+package {
+    default_applicable_licenses: [
+        "external_hyphenation_patterns_TeX_mr_license",
+    ],
+}
+
+// See: http://go/android-license-faq
+license {
+    name: "external_hyphenation_patterns_TeX_mr_license",
+    visibility: [":__subpackages__"],
+    license_kinds: [
+        "SPDX-license-identifier-MIT",
+    ],
+    license_text: [
+        "NOTICE",
+    ],
+}
+
+genrule {
+    name: "hyph-mr-hyb",
+    srcs: [
+        "hyph-mr.pat.txt",
+        "hyph-mr.chr.txt",
+        "hyph-mr.hyp.txt",
+    ],
+    cmd: "$(location mk_hyb_file) $(location hyph-mr.pat.txt) $(out)",
+    tools: ["mk_hyb_file"],
+    out: ["hyph-mr.hyb"],
+}
+
+prebuilt_usr_hyphendata {
+    name: "hyph-mr",
+    srcs: [
+        ":hyph-mr-hyb",
+        "hyph-mr.lic.txt",
+    ],
+}
diff --git a/TeX/nb/Android.bp b/TeX/nb/Android.bp
new file mode 100644
index 0000000..f3f961c
--- /dev/null
+++ b/TeX/nb/Android.bp
@@ -0,0 +1,51 @@
+// Copyright 2015 The Android Open Source Project
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+package {
+    default_applicable_licenses: [
+        "external_hyphenation_patterns_TeX_nb_license",
+    ],
+}
+
+// See: http://go/android-license-faq
+license {
+    name: "external_hyphenation_patterns_TeX_nb_license",
+    visibility: [":__subpackages__"],
+    license_kinds: [
+        "legacy_notice",
+    ],
+    license_text: [
+        "NOTICE",
+    ],
+}
+
+genrule {
+    name: "hyph-nb-hyb",
+    srcs: [
+        "hyph-nb.pat.txt",
+        "hyph-nb.chr.txt",
+        "hyph-nb.hyp.txt",
+    ],
+    cmd: "$(location mk_hyb_file) $(location hyph-nb.pat.txt) $(out)",
+    tools: ["mk_hyb_file"],
+    out: ["hyph-nb.hyb"],
+}
+
+prebuilt_usr_hyphendata {
+    name: "hyph-nb",
+    srcs: [
+        ":hyph-nb-hyb",
+        "hyph-nb.lic.txt",
+    ],
+}
diff --git a/TeX/nn/Android.bp b/TeX/nn/Android.bp
new file mode 100644
index 0000000..9c5202e
--- /dev/null
+++ b/TeX/nn/Android.bp
@@ -0,0 +1,51 @@
+// Copyright 2015 The Android Open Source Project
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+package {
+    default_applicable_licenses: [
+        "external_hyphenation_patterns_TeX_nn_license",
+    ],
+}
+
+// See: http://go/android-license-faq
+license {
+    name: "external_hyphenation_patterns_TeX_nn_license",
+    visibility: [":__subpackages__"],
+    license_kinds: [
+        "legacy_notice",
+    ],
+    license_text: [
+        "NOTICE",
+    ],
+}
+
+genrule {
+    name: "hyph-nn-hyb",
+    srcs: [
+        "hyph-nn.pat.txt",
+        "hyph-nn.chr.txt",
+        "hyph-nn.hyp.txt",
+    ],
+    cmd: "$(location mk_hyb_file) $(location hyph-nn.pat.txt) $(out)",
+    tools: ["mk_hyb_file"],
+    out: ["hyph-nn.hyb"],
+}
+
+prebuilt_usr_hyphendata {
+    name: "hyph-nn",
+    srcs: [
+        ":hyph-nn-hyb",
+        "hyph-nn.lic.txt",
+    ],
+}
diff --git a/TeX/or/Android.bp b/TeX/or/Android.bp
new file mode 100644
index 0000000..e1f7d45
--- /dev/null
+++ b/TeX/or/Android.bp
@@ -0,0 +1,51 @@
+// Copyright 2015 The Android Open Source Project
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+package {
+    default_applicable_licenses: [
+        "external_hyphenation_patterns_TeX_or_license",
+    ],
+}
+
+// See: http://go/android-license-faq
+license {
+    name: "external_hyphenation_patterns_TeX_or_license",
+    visibility: [":__subpackages__"],
+    license_kinds: [
+        "SPDX-license-identifier-MIT",
+    ],
+    license_text: [
+        "NOTICE",
+    ],
+}
+
+genrule {
+    name: "hyph-or-hyb",
+    srcs: [
+        "hyph-or.pat.txt",
+        "hyph-or.chr.txt",
+        "hyph-or.hyp.txt",
+    ],
+    cmd: "$(location mk_hyb_file) $(location hyph-or.pat.txt) $(out)",
+    tools: ["mk_hyb_file"],
+    out: ["hyph-or.hyb"],
+}
+
+prebuilt_usr_hyphendata {
+    name: "hyph-or",
+    srcs: [
+        ":hyph-or-hyb",
+        "hyph-or.lic.txt",
+    ],
+}
diff --git a/TeX/pa/Android.bp b/TeX/pa/Android.bp
new file mode 100644
index 0000000..3575706
--- /dev/null
+++ b/TeX/pa/Android.bp
@@ -0,0 +1,51 @@
+// Copyright 2015 The Android Open Source Project
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+package {
+    default_applicable_licenses: [
+        "external_hyphenation_patterns_TeX_pa_license",
+    ],
+}
+
+// See: http://go/android-license-faq
+license {
+    name: "external_hyphenation_patterns_TeX_pa_license",
+    visibility: [":__subpackages__"],
+    license_kinds: [
+        "SPDX-license-identifier-MIT",
+    ],
+    license_text: [
+        "NOTICE",
+    ],
+}
+
+genrule {
+    name: "hyph-pa-hyb",
+    srcs: [
+        "hyph-pa.pat.txt",
+        "hyph-pa.chr.txt",
+        "hyph-pa.hyp.txt",
+    ],
+    cmd: "$(location mk_hyb_file) $(location hyph-pa.pat.txt) $(out)",
+    tools: ["mk_hyb_file"],
+    out: ["hyph-pa.hyb"],
+}
+
+prebuilt_usr_hyphendata {
+    name: "hyph-pa",
+    srcs: [
+        ":hyph-pa-hyb",
+        "hyph-pa.lic.txt",
+    ],
+}
diff --git a/TeX/pl/Android.bp b/TeX/pl/Android.bp
new file mode 100644
index 0000000..76250a4
--- /dev/null
+++ b/TeX/pl/Android.bp
@@ -0,0 +1,51 @@
+// Copyright 2015 The Android Open Source Project
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+package {
+    default_applicable_licenses: [
+        "external_hyphenation_patterns_TeX_pl_license",
+    ],
+}
+
+// See: http://go/android-license-faq
+license {
+    name: "external_hyphenation_patterns_TeX_pl_license",
+    visibility: [":__subpackages__"],
+    license_kinds: [
+        "SPDX-license-identifier-MIT",
+    ],
+    license_text: [
+        "NOTICE",
+    ],
+}
+
+genrule {
+    name: "hyph-pl-hyb",
+    srcs: [
+        "hyph-pl.pat.txt",
+        "hyph-pl.chr.txt",
+        "hyph-pl.hyp.txt",
+    ],
+    cmd: "$(location mk_hyb_file) $(location hyph-pl.pat.txt) $(out)",
+    tools: ["mk_hyb_file"],
+    out: ["hyph-pl.hyb"],
+}
+
+prebuilt_usr_hyphendata {
+    name: "hyph-pl",
+    srcs: [
+        ":hyph-pl-hyb",
+        "hyph-pl.lic.txt",
+    ],
+}
diff --git a/TeX/pt/Android.bp b/TeX/pt/Android.bp
new file mode 100644
index 0000000..25d0e2a
--- /dev/null
+++ b/TeX/pt/Android.bp
@@ -0,0 +1,51 @@
+// Copyright 2015 The Android Open Source Project
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+package {
+    default_applicable_licenses: [
+        "external_hyphenation_patterns_TeX_pt_license",
+    ],
+}
+
+// See: http://go/android-license-faq
+license {
+    name: "external_hyphenation_patterns_TeX_pt_license",
+    visibility: [":__subpackages__"],
+    license_kinds: [
+        "SPDX-license-identifier-BSD-3-Clause",
+    ],
+    license_text: [
+        "LICENSE",
+    ],
+}
+
+genrule {
+    name: "hyph-pt-hyb",
+    srcs: [
+        "hyph-pt.pat.txt",
+        "hyph-pt.chr.txt",
+        "hyph-pt.hyp.txt",
+    ],
+    cmd: "$(location mk_hyb_file) $(location hyph-pt.pat.txt) $(out)",
+    tools: ["mk_hyb_file"],
+    out: ["hyph-pt.hyb"],
+}
+
+prebuilt_usr_hyphendata {
+    name: "hyph-pt",
+    srcs: [
+        ":hyph-pt-hyb",
+        "hyph-pt.lic.txt",
+    ],
+}
diff --git a/TeX/sa/Android.bp b/TeX/sa/Android.bp
new file mode 100644
index 0000000..d081c36
--- /dev/null
+++ b/TeX/sa/Android.bp
@@ -0,0 +1,34 @@
+// Copyright 2015 The Android Open Source Project
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// TODO: we have data for sa/sa, but it requires special case handling for case
+// folding and normalization, so don't build it until that's fixed.
+
+package {
+    default_applicable_licenses: [
+        "external_hyphenation_patterns_TeX_sa_license",
+    ],
+}
+
+// See: http://go/android-license-faq
+license {
+    name: "external_hyphenation_patterns_TeX_sa_license",
+    visibility: [":__subpackages__"],
+    license_kinds: [
+        "legacy_permissive",
+    ],
+    license_text: [
+        "NOTICE",
+    ],
+}
diff --git a/TeX/sk/Android.bp b/TeX/sk/Android.bp
new file mode 100644
index 0000000..02836b0
--- /dev/null
+++ b/TeX/sk/Android.bp
@@ -0,0 +1,51 @@
+// Copyright 2015 The Android Open Source Project
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+package {
+    default_applicable_licenses: [
+        "external_hyphenation_patterns_TeX_sk_license",
+    ],
+}
+
+// See: http://go/android-license-faq
+license {
+    name: "external_hyphenation_patterns_TeX_sk_license",
+    visibility: [":__subpackages__"],
+    license_kinds: [
+        "SPDX-license-identifier-MIT",
+    ],
+    license_text: [
+        "NOTICE",
+    ],
+}
+
+genrule {
+    name: "hyph-sk-hyb",
+    srcs: [
+        "hyph-sk.pat.txt",
+        "hyph-sk.chr.txt",
+        "hyph-sk.hyp.txt",
+    ],
+    cmd: "$(location mk_hyb_file) $(location hyph-sk.pat.txt) $(out)",
+    tools: ["mk_hyb_file"],
+    out: ["hyph-sk.hyb"],
+}
+
+prebuilt_usr_hyphendata {
+    name: "hyph-sk",
+    srcs: [
+        ":hyph-sk-hyb",
+        "hyph-sk.lic.txt",
+    ],
+}
diff --git a/TeX/sl/Android.bp b/TeX/sl/Android.bp
new file mode 100644
index 0000000..e0832e7
--- /dev/null
+++ b/TeX/sl/Android.bp
@@ -0,0 +1,51 @@
+// Copyright 2015 The Android Open Source Project
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+package {
+    default_applicable_licenses: [
+        "external_hyphenation_patterns_TeX_sl_license",
+    ],
+}
+
+// See: http://go/android-license-faq
+license {
+    name: "external_hyphenation_patterns_TeX_sl_license",
+    visibility: [":__subpackages__"],
+    license_kinds: [
+        "SPDX-license-identifier-MIT",
+    ],
+    license_text: [
+        "NOTICE",
+    ],
+}
+
+genrule {
+    name: "hyph-sl-hyb",
+    srcs: [
+        "hyph-sl.pat.txt",
+        "hyph-sl.chr.txt",
+        "hyph-sl.hyp.txt",
+    ],
+    cmd: "$(location mk_hyb_file) $(location hyph-sl.pat.txt) $(out)",
+    tools: ["mk_hyb_file"],
+    out: ["hyph-sl.hyb"],
+}
+
+prebuilt_usr_hyphendata {
+    name: "hyph-sl",
+    srcs: [
+        ":hyph-sl-hyb",
+        "hyph-sl.lic.txt",
+    ],
+}
diff --git a/TeX/sq/Android.bp b/TeX/sq/Android.bp
new file mode 100644
index 0000000..646ab81
--- /dev/null
+++ b/TeX/sq/Android.bp
@@ -0,0 +1,51 @@
+// Copyright 2015 The Android Open Source Project
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+package {
+    default_applicable_licenses: [
+        "external_hyphenation_patterns_TeX_sq_license",
+    ],
+}
+
+// See: http://go/android-license-faq
+license {
+    name: "external_hyphenation_patterns_TeX_sq_license",
+    visibility: [":__subpackages__"],
+    license_kinds: [
+        "SPDX-license-identifier-MIT",
+    ],
+    license_text: [
+        "NOTICE",
+    ],
+}
+
+genrule {
+    name: "hyph-sq-hyb",
+    srcs: [
+        "hyph-sq.pat.txt",
+        "hyph-sq.chr.txt",
+        "hyph-sq.hyp.txt",
+    ],
+    cmd: "$(location mk_hyb_file) $(location hyph-sq.pat.txt) $(out)",
+    tools: ["mk_hyb_file"],
+    out: ["hyph-sq.hyb"],
+}
+
+prebuilt_usr_hyphendata {
+    name: "hyph-sq",
+    srcs: [
+        ":hyph-sq-hyb",
+        "hyph-sq.lic.txt",
+    ],
+}
diff --git a/TeX/ta/Android.bp b/TeX/ta/Android.bp
new file mode 100644
index 0000000..6fe1b8d
--- /dev/null
+++ b/TeX/ta/Android.bp
@@ -0,0 +1,51 @@
+// Copyright 2015 The Android Open Source Project
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+package {
+    default_applicable_licenses: [
+        "external_hyphenation_patterns_TeX_ta_license",
+    ],
+}
+
+// See: http://go/android-license-faq
+license {
+    name: "external_hyphenation_patterns_TeX_ta_license",
+    visibility: [":__subpackages__"],
+    license_kinds: [
+        "SPDX-license-identifier-MIT",
+    ],
+    license_text: [
+        "NOTICE",
+    ],
+}
+
+genrule {
+    name: "hyph-ta-hyb",
+    srcs: [
+        "hyph-ta.pat.txt",
+        "hyph-ta.chr.txt",
+        "hyph-ta.hyp.txt",
+    ],
+    cmd: "$(location mk_hyb_file) $(location hyph-ta.pat.txt) $(out)",
+    tools: ["mk_hyb_file"],
+    out: ["hyph-ta.hyb"],
+}
+
+prebuilt_usr_hyphendata {
+    name: "hyph-ta",
+    srcs: [
+        ":hyph-ta-hyb",
+        "hyph-ta.lic.txt",
+    ],
+}
diff --git a/TeX/te/Android.bp b/TeX/te/Android.bp
new file mode 100644
index 0000000..275dbb8
--- /dev/null
+++ b/TeX/te/Android.bp
@@ -0,0 +1,51 @@
+// Copyright 2015 The Android Open Source Project
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+package {
+    default_applicable_licenses: [
+        "external_hyphenation_patterns_TeX_te_license",
+    ],
+}
+
+// See: http://go/android-license-faq
+license {
+    name: "external_hyphenation_patterns_TeX_te_license",
+    visibility: [":__subpackages__"],
+    license_kinds: [
+        "SPDX-license-identifier-MIT",
+    ],
+    license_text: [
+        "NOTICE",
+    ],
+}
+
+genrule {
+    name: "hyph-te-hyb",
+    srcs: [
+        "hyph-te.pat.txt",
+        "hyph-te.chr.txt",
+        "hyph-te.hyp.txt",
+    ],
+    cmd: "$(location mk_hyb_file) $(location hyph-te.pat.txt) $(out)",
+    tools: ["mk_hyb_file"],
+    out: ["hyph-te.hyb"],
+}
+
+prebuilt_usr_hyphendata {
+    name: "hyph-te",
+    srcs: [
+        ":hyph-te-hyb",
+        "hyph-te.lic.txt",
+    ],
+}
diff --git a/TeX/tk/Android.bp b/TeX/tk/Android.bp
new file mode 100644
index 0000000..ee4b210
--- /dev/null
+++ b/TeX/tk/Android.bp
@@ -0,0 +1,51 @@
+// Copyright 2015 The Android Open Source Project
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+package {
+    default_applicable_licenses: [
+        "external_hyphenation_patterns_TeX_tk_license",
+    ],
+}
+
+// See: http://go/android-license-faq
+license {
+    name: "external_hyphenation_patterns_TeX_tk_license",
+    visibility: [":__subpackages__"],
+    license_kinds: [
+        "SPDX-license-identifier-MIT",
+    ],
+    license_text: [
+        "NOTICE",
+    ],
+}
+
+genrule {
+    name: "hyph-tk-hyb",
+    srcs: [
+        "hyph-tk.pat.txt",
+        "hyph-tk.chr.txt",
+        "hyph-tk.hyp.txt",
+    ],
+    cmd: "$(location mk_hyb_file) $(location hyph-tk.pat.txt) $(out)",
+    tools: ["mk_hyb_file"],
+    out: ["hyph-tk.hyb"],
+}
+
+prebuilt_usr_hyphendata {
+    name: "hyph-tk",
+    srcs: [
+        ":hyph-tk-hyb",
+        "hyph-tk.lic.txt",
+    ],
+}
diff --git a/TeX/uk/Android.bp b/TeX/uk/Android.bp
new file mode 100644
index 0000000..ce7b5ba
--- /dev/null
+++ b/TeX/uk/Android.bp
@@ -0,0 +1,51 @@
+// Copyright 2015 The Android Open Source Project
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+package {
+    default_applicable_licenses: [
+        "external_hyphenation_patterns_TeX_uk_license",
+    ],
+}
+
+// See: http://go/android-license-faq
+license {
+    name: "external_hyphenation_patterns_TeX_uk_license",
+    visibility: [":__subpackages__"],
+    license_kinds: [
+        "SPDX-license-identifier-MIT",
+    ],
+    license_text: [
+        "NOTICE",
+    ],
+}
+
+genrule {
+    name: "hyph-uk-hyb",
+    srcs: [
+        "hyph-uk.pat.txt",
+        "hyph-uk.chr.txt",
+        "hyph-uk.hyp.txt",
+    ],
+    cmd: "$(location mk_hyb_file) $(location hyph-uk.pat.txt) $(out)",
+    tools: ["mk_hyb_file"],
+    out: ["hyph-uk.hyb"],
+}
+
+prebuilt_usr_hyphendata {
+    name: "hyph-uk",
+    srcs: [
+        ":hyph-uk-hyb",
+        "hyph-uk.lic.txt",
+    ],
+}
diff --git a/build-hyb.mk b/build-hyb.mk
deleted file mode 100644
index a809c91..0000000
--- a/build-hyb.mk
+++ /dev/null
@@ -1,13 +0,0 @@
-
-LOCAL_MODULE_CLASS := ETC
-LOCAL_MODULE_TAGS := optional
-LOCAL_MODULE_SUFFIX := .hyb
-LOCAL_MODULE_PATH := $(TARGET_OUT)/usr/hyphen-data
-
-include $(BUILD_SYSTEM)/base_rules.mk
-
-MK_HYB_FILE := frameworks/minikin/tools/mk_hyb_file.py
-$(LOCAL_BUILT_MODULE) : $(addprefix $(LOCAL_PATH)/, $(LOCAL_SRC_FILES)) $(MK_HYB_FILE)
-	@echo "Build hyb $@ <- $<"
-	@mkdir -p $(dir $@)
-	$(hide) $(MK_HYB_FILE) $< $@
diff --git a/laboratory50/ru/Android.bp b/laboratory50/ru/Android.bp
new file mode 100644
index 0000000..83adf07
--- /dev/null
+++ b/laboratory50/ru/Android.bp
@@ -0,0 +1,51 @@
+// Copyright 2015 The Android Open Source Project
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+package {
+    default_applicable_licenses: [
+        "external_hyphenation_patterns_laboratory50_ru_license",
+    ],
+}
+
+// See: http://go/android-license-faq
+license {
+    name: "external_hyphenation_patterns_laboratory50_ru_license",
+    visibility: [":__subpackages__"],
+    license_kinds: [
+        "SPDX-license-identifier-LGPL-2.1",
+    ],
+    license_text: [
+        "LICENSE",
+    ],
+}
+
+genrule {
+    name: "hyph-ru-hyb",
+    srcs: [
+        "hyph-ru.pat.txt",
+        "hyph-ru.chr.txt",
+        "hyph-ru.hyp.txt",
+    ],
+    cmd: "$(location mk_hyb_file) $(location hyph-ru.pat.txt) $(out)",
+    tools: ["mk_hyb_file"],
+    out: ["hyph-ru.hyb"],
+}
+
+prebuilt_usr_hyphendata {
+    name: "hyph-ru",
+    srcs: [
+        ":hyph-ru-hyb",
+        "hyph-ru.lic.txt",
+    ],
+}
diff --git a/patterns.mk b/patterns.mk
index 6a41de5..a8a2e13 100644
--- a/patterns.mk
+++ b/patterns.mk
@@ -71,7 +71,6 @@
     uk \
     und-ethi
 
-PRODUCT_PACKAGES := $(addprefix hyph-,$(pattern_locales)) \
-    $(addsuffix .lic.txt,$(addprefix hyph-,$(pattern_locales)))
+PRODUCT_PACKAGES := $(addprefix hyph-,$(pattern_locales))
 
 pattern_locales :=
diff --git a/rekenaar/af/Android.bp b/rekenaar/af/Android.bp
new file mode 100644
index 0000000..7e651a9
--- /dev/null
+++ b/rekenaar/af/Android.bp
@@ -0,0 +1,51 @@
+// Copyright 2015 The Android Open Source Project
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+package {
+    default_applicable_licenses: [
+        "external_hyphenation_patterns_rekenaar_af_license",
+    ],
+}
+
+// See: http://go/android-license-faq
+license {
+    name: "external_hyphenation_patterns_rekenaar_af_license",
+    visibility: [":__subpackages__"],
+    license_kinds: [
+        "SPDX-license-identifier-MIT",
+    ],
+    license_text: [
+        "NOTICE",
+    ],
+}
+
+genrule {
+    name: "hyph-af-hyb",
+    srcs: [
+        "hyph-af.pat.txt",
+        "hyph-af.chr.txt",
+        "hyph-af.hyp.txt",
+    ],
+    cmd: "$(location mk_hyb_file) $(location hyph-af.pat.txt) $(out)",
+    tools: ["mk_hyb_file"],
+    out: ["hyph-af.hyb"],
+}
+
+prebuilt_usr_hyphendata {
+    name: "hyph-af",
+    srcs: [
+        ":hyph-af-hyb",
+        "hyph-af.lic.txt",
+    ],
+}
diff --git a/tensojka/cs/Android.bp b/tensojka/cs/Android.bp
new file mode 100644
index 0000000..82535c6
--- /dev/null
+++ b/tensojka/cs/Android.bp
@@ -0,0 +1,51 @@
+// Copyright 2015 The Android Open Source Project
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+package {
+    default_applicable_licenses: [
+        "external_hyphenation_patterns_tensojka_cs_license",
+    ],
+}
+
+// See: http://go/android-license-faq
+license {
+    name: "external_hyphenation_patterns_tensojka_cs_license",
+    visibility: [":__subpackages__"],
+    license_kinds: [
+        "SPDX-license-identifier-MIT",
+    ],
+    license_text: [
+        "NOTICE",
+    ],
+}
+
+genrule {
+    name: "hyph-cs-hyb",
+    srcs: [
+        "hyph-cs.pat.txt",
+        "hyph-cs.chr.txt",
+        "hyph-cs.hyp.txt",
+    ],
+    cmd: "$(location mk_hyb_file) $(location hyph-cs.pat.txt) $(out)",
+    tools: ["mk_hyb_file"],
+    out: ["hyph-cs.hyb"],
+}
+
+prebuilt_usr_hyphendata {
+    name: "hyph-cs",
+    srcs: [
+        ":hyph-cs-hyb",
+        "hyph-cs.lic.txt",
+    ],
+}