summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVadim Misbakh-Soloviov <mva@gentoo.org>2021-09-26 05:19:08 +0700
committerVadim Misbakh-Soloviov <mva@gentoo.org>2021-09-26 05:56:44 +0700
commit0b234b03472b19154e4a2893909cc85c02c557a2 (patch)
tree0b6b8afea78515a2468fac2262aa9d86de29528a /dev-libs/libutf8proc
parentapp-i18n/ibus: reflect new data path of app-i18n/unicode-data (diff)
downloadgentoo-0b234b03472b19154e4a2893909cc85c02c557a2.tar.gz
gentoo-0b234b03472b19154e4a2893909cc85c02c557a2.tar.bz2
gentoo-0b234b03472b19154e4a2893909cc85c02c557a2.zip
dev-libs/libutf8proc: reflect new data path of app-i18n/unicode-data
Package-Manager: Portage-3.0.23, Repoman-3.0.1 Signed-off-by: Vadim Misbakh-Soloviov <mva@gentoo.org>
Diffstat (limited to 'dev-libs/libutf8proc')
-rw-r--r--dev-libs/libutf8proc/libutf8proc-2.5.0.ebuild11
-rw-r--r--dev-libs/libutf8proc/libutf8proc-2.6.1.ebuild11
2 files changed, 20 insertions, 2 deletions
diff --git a/dev-libs/libutf8proc/libutf8proc-2.5.0.ebuild b/dev-libs/libutf8proc/libutf8proc-2.5.0.ebuild
index 5a659f96fa5b..0e8e2c250e3e 100644
--- a/dev-libs/libutf8proc/libutf8proc-2.5.0.ebuild
+++ b/dev-libs/libutf8proc/libutf8proc-2.5.0.ebuild
@@ -46,7 +46,16 @@ src_install() {
}
src_test() {
- cp "${EPREFIX}"/usr/share/unicode-data/{Normalization,auxiliary/GraphemeBreak}Test.txt data || die
+ local unicodedir="${EPREFIX}"/usr/share/unicode
+ local ucddir
+
+ if has_verson '<app-i18n/unicode-data-14.0.0-r1'; then
+ ucddir="${unicodedir}-data"
+ else
+ ucddir=${unicodedir}
+ fi
+
+ cp "${ucddir}"/{Normalization,auxiliary/GraphemeBreak}Test.txt data || die
emake CC="$(tc-getCC)" check
}
diff --git a/dev-libs/libutf8proc/libutf8proc-2.6.1.ebuild b/dev-libs/libutf8proc/libutf8proc-2.6.1.ebuild
index 4790df370ef2..96a3fc9a1fbb 100644
--- a/dev-libs/libutf8proc/libutf8proc-2.6.1.ebuild
+++ b/dev-libs/libutf8proc/libutf8proc-2.6.1.ebuild
@@ -50,7 +50,16 @@ src_install() {
}
src_test() {
- cp "${EPREFIX}"/usr/share/unicode-data/{DerivedCoreProperties,{Normalization,auxiliary/GraphemeBreak}Test}.txt data || die
+ local unicodedir="${EPREFIX}"/usr/share/unicode
+ local ucddir
+
+ if has_verson '<app-i18n/unicode-data-14.0.0-r1'; then
+ ucddir="${unicodedir}-data"
+ else
+ ucddir=${unicodedir}
+ fi
+
+ cp "${ucddir}"/{DerivedCoreProperties,{Normalization,auxiliary/GraphemeBreak}Test}.txt data || die
emake CC="$(tc-getCC)" check
}