diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-11-02 21:10:25 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-11-02 21:10:25 +0000 |
commit | d05150f06fa67b115a83f822b1e285dca011e1b7 (patch) | |
tree | 86d728b5108b361faf2f421e2d4f3b03a85b7837 /dev-libs/libgrapheme/libgrapheme-2.0.2.ebuild | |
parent | be524496e3171d5eab8c56570dd4342a880c3264 (diff) |
gentoo auto-resync : 02:11:2022 - 21:10:25
Diffstat (limited to 'dev-libs/libgrapheme/libgrapheme-2.0.2.ebuild')
-rw-r--r-- | dev-libs/libgrapheme/libgrapheme-2.0.2.ebuild | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/dev-libs/libgrapheme/libgrapheme-2.0.2.ebuild b/dev-libs/libgrapheme/libgrapheme-2.0.2.ebuild new file mode 100644 index 000000000000..7a7149cccb1d --- /dev/null +++ b/dev-libs/libgrapheme/libgrapheme-2.0.2.ebuild @@ -0,0 +1,38 @@ +# Copyright 2021-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit flag-o-matic toolchain-funcs + +DESCRIPTION="Unicode string library" +HOMEPAGE="https://libs.suckless.org/libgrapheme/" +SRC_URI="https://dl.suckless.org/libgrapheme/${P}.tar.gz" + +LICENSE="ISC Unicode-DFS-2016" +SLOT="0/$(ver_cut 1-2)" +KEYWORDS="~amd64 ~x86" +# upstream suggests keeping the static option, others have requested it too +IUSE="static-libs" + +src_prepare() { + default + + append-cflags ${CPPFLAGS} + tc-export CC AR RANLIB + tc-export_build_env BUILD_CC + sed -Ei '/^(BUILD_|)(CC|AR|RANLIB|CFLAGS|LDFLAGS|LDCONFIG).*=/d' config.mk || die +} + +src_install() { + local emakeargs=( + DESTDIR="${D}" + PREFIX="${EPREFIX}"/usr + LIBPREFIX="${EPREFIX}"/usr/$(get_libdir) + ) + + emake "${emakeargs[@]}" install + einstalldocs + + use static-libs || rm "${ED}"/usr/$(get_libdir)/${PN}.a || die +} |