From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id C44BE139360 for ; Tue, 10 Aug 2021 13:00:39 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 07BADE08CE; Tue, 10 Aug 2021 13:00:39 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D9251E08CE for ; Tue, 10 Aug 2021 13:00:38 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8CFB8335C0F for ; Tue, 10 Aug 2021 13:00:37 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4A37A842 for ; Tue, 10 Aug 2021 13:00:35 +0000 (UTC) From: "Marek Szuba" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Marek Szuba" Message-ID: <1628600395.7372c941c40885db8c74a6cf4c5bc527efcda6a4.marecki@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/djbfft/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-libs/djbfft/djbfft-0.76-r3.ebuild X-VCS-Directories: sci-libs/djbfft/ X-VCS-Committer: marecki X-VCS-Committer-Name: Marek Szuba X-VCS-Revision: 7372c941c40885db8c74a6cf4c5bc527efcda6a4 X-VCS-Branch: master Date: Tue, 10 Aug 2021 13:00:35 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: a3bb1f72-303d-4824-89af-a93064f07d8c X-Archives-Hash: 2811c8eb5dc7b419b88f49572b8d9fbb commit: 7372c941c40885db8c74a6cf4c5bc527efcda6a4 Author: Marek Szuba gentoo org> AuthorDate: Tue Aug 10 12:59:26 2021 +0000 Commit: Marek Szuba gentoo org> CommitDate: Tue Aug 10 12:59:55 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7372c941 sci-libs/djbfft: update EAPI 5 -> 8 Signed-off-by: Marek Szuba gentoo.org> sci-libs/djbfft/djbfft-0.76-r3.ebuild | 72 +++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) diff --git a/sci-libs/djbfft/djbfft-0.76-r3.ebuild b/sci-libs/djbfft/djbfft-0.76-r3.ebuild new file mode 100644 index 00000000000..87ed3a30bcd --- /dev/null +++ b/sci-libs/djbfft/djbfft-0.76-r3.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit flag-o-matic toolchain-funcs multilib multilib-minimal + +DESCRIPTION="Extremely fast library for floating-point convolution" +HOMEPAGE="https://cr.yp.to/djbfft.html" +SRC_URI="https://cr.yp.to/djbfft/${P}.tar.gz" + +LICENSE="public-domain" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux" + +PATCHES=( + "${FILESDIR}"/${P}-gcc3.patch + "${FILESDIR}"/${P}-shared.patch + "${FILESDIR}"/${P}-headers.patch +) + +DOCS=( CHANGES README TODO VERSION ) + +src_prepare() { + default + + # mask out everything which is not suggested by the author (RTFM)! + ALLOWED_FLAGS="-fstack-protector -march -mcpu -pipe -mpreferred-stack-boundary -ffast-math" + strip-flags + + SOVER="${PV:0:1}.${PV:2:1}.${PV:3:1}" # a.bc -> a.b.c + SONAME="libdjbfft.so.${SOVER}" + + multilib_copy_sources +} + +multilib_src_configure() { + [[ ${ABI} == x86* ]] && append-cflags -malign-double + + sed -i -e "s:\"lib\":\"$(get_libdir)\":" hier.c || die + echo "$(tc-getCC) ${CFLAGS} -fPIC" > "conf-cc" + echo "$(tc-getCC) ${LDFLAGS}" > "conf-ld" + echo "${ED}/usr" > "conf-home" + einfo "conf-cc: $( ${t}.out || die "test ${t} failed" + done +} + +multilib_src_install() { + emake LIBDJBFFT=${SONAME} install + ./install || die "install failed" + dosym ${SONAME} /usr/$(get_libdir)/libdjbfft.so + dosym ${SONAME} /usr/$(get_libdir)/libdjbfft.so.${SOVER%%.*} +}