diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-05-11 19:55:43 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-05-11 19:55:43 +0100 |
commit | 185fa19bbf68a4d4dca534d2b46729207a177f16 (patch) | |
tree | a8a537b82fda83a0799c2ca9887f212558363aa7 /dev-libs/trio/trio-1.16.ebuild | |
parent | c8fd0d84af0bfd1949542adc2cbb735b1d28f9ed (diff) |
gentoo resync : 11.05.2021
Diffstat (limited to 'dev-libs/trio/trio-1.16.ebuild')
-rw-r--r-- | dev-libs/trio/trio-1.16.ebuild | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/dev-libs/trio/trio-1.16.ebuild b/dev-libs/trio/trio-1.16.ebuild new file mode 100644 index 000000000000..1980624be416 --- /dev/null +++ b/dev-libs/trio/trio-1.16.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit toolchain-funcs + +DESCRIPTION="Portable string functions, focus on the *printf() and *scanf() clones" +HOMEPAGE="https://daniel.haxx.se/projects/trio/" +SRC_URI="mirror://sourceforge/ctrio/${P}.tar.gz" + +LICENSE="trio" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +HTML_DOCS=( html/. ) + +src_prepare() { + default + sed -i '/$(CC)/s/-o/$(LOCAL_LDFLAGS) -o/' Makefile.in || die +} + +src_compile() { + emake AR="$(tc-getAR)" LOCAL_LDFLAGS="${LDFLAGS}" + ln -s libtrio.so.2{.0.0,} || die + ln -s libtrio.so{.2.0.0,} || die +} + +src_test() { + emake LOCAL_LDFLAGS="${LDFLAGS}" regression + LD_LIBRARY_PATH=".:${LD_LIBRARY_PATH}" ./regression || die +} + +src_install() { + doheader trio*.h + dolib.so libtrio.so* + einstalldocs +} |