diff options
author | Akinori Hattori <hattya@gentoo.org> | 2022-11-16 21:45:16 +0900 |
---|---|---|
committer | Akinori Hattori <hattya@gentoo.org> | 2022-11-16 21:51:31 +0900 |
commit | effdb8f9e9b543481fe69f471719ee794b26c470 (patch) | |
tree | b77d265306ff972c4997b64966899bf0eee9fd26 /dev-libs/libutf8proc | |
parent | dev-python/diff-match-patch: Stabilize 20200713 ALLARCHES, #881411 (diff) | |
download | gentoo-effdb8f9e9b543481fe69f471719ee794b26c470.tar.gz gentoo-effdb8f9e9b543481fe69f471719ee794b26c470.tar.bz2 gentoo-effdb8f9e9b543481fe69f471719ee794b26c470.zip |
dev-libs/libutf8proc: tidy
Signed-off-by: Akinori Hattori <hattya@gentoo.org>
Diffstat (limited to 'dev-libs/libutf8proc')
-rw-r--r-- | dev-libs/libutf8proc/libutf8proc-2.7.0.ebuild | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/dev-libs/libutf8proc/libutf8proc-2.7.0.ebuild b/dev-libs/libutf8proc/libutf8proc-2.7.0.ebuild index eac516b92568..9341fa9d0187 100644 --- a/dev-libs/libutf8proc/libutf8proc-2.7.0.ebuild +++ b/dev-libs/libutf8proc/libutf8proc-2.7.0.ebuild @@ -31,6 +31,7 @@ src_prepare() { cp "${WORKDIR}"/${PN}-EastAsianWidth-14.0.0 ${PN#lib}_data.c || die fi + sed -i "/^libdir/s:/lib:/$(get_libdir):" Makefile default } @@ -38,21 +39,19 @@ src_compile() { emake \ AR="$(tc-getAR)" \ CC="$(tc-getCC)" \ - prefix="/usr" \ - libdir="${EPREFIX}/usr/$(get_libdir)" + prefix="${EPREFIX}/usr" +} + +src_test() { + cp "${BROOT}"/usr/share/unicode-data/{DerivedCoreProperties,{Normalization,auxiliary/GraphemeBreak}Test}.txt data || die + + emake CC="$(tc-getCC)" check } src_install() { emake \ - DESTDIR="${ED}" \ - prefix="/usr" \ - libdir="/usr/$(get_libdir)" \ + DESTDIR="${D}" \ + prefix="${EPREFIX}/usr" \ install use static-libs || find "${ED}" -name '*.a' -delete || die } - -src_test() { - cp "${EPREFIX}"/usr/share/unicode-data/{DerivedCoreProperties,{Normalization,auxiliary/GraphemeBreak}Test}.txt data || die - - emake CC="$(tc-getCC)" check -} |