diff options
author | Sam James <sam@gentoo.org> | 2022-11-08 04:42:42 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-11-08 04:42:42 +0000 |
commit | 0be8f27429a4a8aaa19d8401b8786ec74ab9e82f (patch) | |
tree | 2d68df4362e924e11bf064adce632e8930124b23 /dev-libs/libtompoly/libtompoly-0.04-r2.ebuild | |
parent | app-editors/bvi: fix IncorrectCopyright (diff) | |
download | gentoo-0be8f27429a4a8aaa19d8401b8786ec74ab9e82f.tar.gz gentoo-0be8f27429a4a8aaa19d8401b8786ec74ab9e82f.tar.bz2 gentoo-0be8f27429a4a8aaa19d8401b8786ec74ab9e82f.zip |
dev-libs/libtompoly: switch to upstream variant of patch
As I noted in upstream PR, should be equivalent given the actual
uses and inputs to these, but let's be safe and match what
was actually merged.
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-libs/libtompoly/libtompoly-0.04-r2.ebuild')
-rw-r--r-- | dev-libs/libtompoly/libtompoly-0.04-r2.ebuild | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/dev-libs/libtompoly/libtompoly-0.04-r2.ebuild b/dev-libs/libtompoly/libtompoly-0.04-r2.ebuild new file mode 100644 index 000000000000..8199bd6ce0cd --- /dev/null +++ b/dev-libs/libtompoly/libtompoly-0.04-r2.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit toolchain-funcs + +DESCRIPTION="Portable ISO C library for polynomial basis arithmetic" +HOMEPAGE="https://www.libtom.net/" +SRC_URI="https://github.com/libtom/libtompoly/releases/download/${PV}/ltp-${PV}.tar.bz2" + +LICENSE="|| ( public-domain WTFPL-2 )" +SLOT="0" +KEYWORDS="amd64 ppc x86" + +DEPEND="dev-libs/libtommath" +RDEPEND="${DEPEND}" + +PATCHES=( + "${FILESDIR}"/${PN}-0.04-Fix-Wimplicit-function-declaration.patch +) + +src_prepare() { + default + sed -i \ + -e 's:\<ar\>:$(AR):' \ + -e "/^LIBPATH/s:/lib:/$(get_libdir):" \ + makefile || die "Fixing makefile failed" + tc-export AR CC +} + +src_install() { + default + dodoc changes.txt pb.pdf + docinto demo + dodoc demo/demo.c +} |