From d8bbd7bc24cddac1ed223dc3ee6072021233bd20 Mon Sep 17 00:00:00 2001 From: fabolous005 Date: Thu, 26 Dec 2024 14:46:18 +0100 Subject: [PATCH] add first draft of libutf8proc ebuild for neovim deps --- dev-libs/libutf8proc/libutf8proc-9999.ebuild | 54 ++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 dev-libs/libutf8proc/libutf8proc-9999.ebuild diff --git a/dev-libs/libutf8proc/libutf8proc-9999.ebuild b/dev-libs/libutf8proc/libutf8proc-9999.ebuild new file mode 100644 index 0000000..bfbf17d --- /dev/null +++ b/dev-libs/libutf8proc/libutf8proc-9999.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="8" +USE_RUBY="ruby31 ruby32" + +inherit ruby-single toolchain-funcs git-r3 + +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}/releases/download/v${PV}/${P#lib}.tar.gz -> ${P}.tar.gz + # cjk? ( https://dev.gentoo.org/~hattya/distfiles/${PN}-EastAsianWidth-15.1.0.xz )" + +EGIT_REPO_URI="https://github.com/JuliaStrings/utf8proc.git" + +LICENSE="MIT" +SLOT="0/${PV}" +# KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~x64-macos" +IUSE="static-libs test" +RESTRICT="!test? ( test )" + +BDEPEND="test? ( + =app-i18n/unicode-data-15.1* + ${RUBY_DEPS} + )" +S="${WORKDIR}/${P#lib}" + +# QA_PKGCONFIG_VERSION="3.0.0" + +src_prepare() { + sed -i "/^libdir/s:/lib:/$(get_libdir):" Makefile + default +} + +src_compile() { + emake \ + AR="$(tc-getAR)" \ + CC="$(tc-getCC)" \ + 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="${D}" \ + prefix="${EPREFIX}/usr" \ + install + use static-libs || find "${ED}" -name '*.a' -delete || die +}