diff options
author | 2020-05-06 22:46:39 +0900 | |
---|---|---|
committer | 2020-05-06 22:50:19 +0900 | |
commit | 740e260d059b22f8a9fb57d5290acde5aa30b9f7 (patch) | |
tree | beaf7efab2522e3bc8e218d2f72f125fbf4afd60 /dev-libs/libutf8proc/libutf8proc-2.4.0.ebuild | |
parent | net-misc/openntpd: Fix issues with -fno-common compilation (diff) | |
download | gentoo-740e260d059b22f8a9fb57d5290acde5aa30b9f7.tar.gz gentoo-740e260d059b22f8a9fb57d5290acde5aa30b9f7.tar.bz2 gentoo-740e260d059b22f8a9fb57d5290acde5aa30b9f7.zip |
dev-libs/libutf8proc: add cjk USE flag
Package-Manager: Portage-2.3.89, Repoman-2.3.20
Signed-off-by: Akinori Hattori <hattya@gentoo.org>
Diffstat (limited to 'dev-libs/libutf8proc/libutf8proc-2.4.0.ebuild')
-rw-r--r-- | dev-libs/libutf8proc/libutf8proc-2.4.0.ebuild | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/dev-libs/libutf8proc/libutf8proc-2.4.0.ebuild b/dev-libs/libutf8proc/libutf8proc-2.4.0.ebuild index c9a00ee06e5b..38e2c5e109a9 100644 --- a/dev-libs/libutf8proc/libutf8proc-2.4.0.ebuild +++ b/dev-libs/libutf8proc/libutf8proc-2.4.0.ebuild @@ -7,12 +7,13 @@ inherit toolchain-funcs DESCRIPTION="A clean C Library for processing UTF-8 Unicode data" HOMEPAGE="https://github.com/JuliaStrings/utf8proc" -SRC_URI="https://github.com/JuliaStrings/${PN#lib}/archive/v${PV}.tar.gz -> ${P}.tar.gz" +SRC_URI="https://github.com/JuliaStrings/${PN#lib}/archive/v${PV}.tar.gz -> ${P}.tar.gz + cjk? ( https://dev.gentoo.org/~hattya/distfiles/${PN}-EastAsianWidth-12.1.0.xz )" LICENSE="MIT" SLOT="0/${PV}" KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux" -IUSE="static-libs test" +IUSE="cjk static-libs test" RESTRICT="!test? ( test )" BDEPEND="test? ( =app-i18n/unicode-data-12.0* )" @@ -20,6 +21,15 @@ S="${WORKDIR}/${P#lib}" PATCHES=( "${FILESDIR}"/${PN}-grapheme-test.patch ) +src_prepare() { + if use cjk; then + einfo "Modifying East Asian Ambiguous (A) as wide ..." + cp "${WORKDIR}"/${PN}-EastAsianWidth-12.1.0 ${PN#lib}_data.c || die + fi + + default +} + src_compile() { emake \ AR="$(tc-getAR)" \ |