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 6D9881382C5 for ; Sun, 2 May 2021 02:27:56 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AF17DE089A; Sun, 2 May 2021 02:27:55 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 99DABE089A for ; Sun, 2 May 2021 02:27:55 +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 4524F340CCC for ; Sun, 2 May 2021 02:27:54 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A9F9F73A for ; Sun, 2 May 2021 02:27:52 +0000 (UTC) From: "Alessandro Barbieri" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Alessandro Barbieri" Message-ID: <1619922471.a7105e6e1674a5bc5f46fdfbcae4f834f508300b.Alessandro-Barbieri@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: sys-libs/safeclib/ X-VCS-Repository: repo/proj/guru X-VCS-Files: sys-libs/safeclib/safeclib-3.6.0_p20210407-r3.ebuild X-VCS-Directories: sys-libs/safeclib/ X-VCS-Committer: Alessandro-Barbieri X-VCS-Committer-Name: Alessandro Barbieri X-VCS-Revision: a7105e6e1674a5bc5f46fdfbcae4f834f508300b X-VCS-Branch: dev Date: Sun, 2 May 2021 02:27:52 +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: a39b633b-3e2c-49a6-b3b1-2c2b0d0b61d6 X-Archives-Hash: 3a70dd1c1b0d02e0ca311613489061d1 commit: a7105e6e1674a5bc5f46fdfbcae4f834f508300b Author: Alessandro Barbieri gmail com> AuthorDate: Sun May 2 02:25:52 2021 +0000 Commit: Alessandro Barbieri gmail com> CommitDate: Sun May 2 02:27:51 2021 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=a7105e6e sys-libs/safeclib: do not install manpages in doc Package-Manager: Portage-3.0.18, Repoman-3.0.3 Signed-off-by: Alessandro Barbieri gmail.com> .../safeclib/safeclib-3.6.0_p20210407-r3.ebuild | 108 +++++++++++++++++++++ 1 file changed, 108 insertions(+) diff --git a/sys-libs/safeclib/safeclib-3.6.0_p20210407-r3.ebuild b/sys-libs/safeclib/safeclib-3.6.0_p20210407-r3.ebuild new file mode 100644 index 000000000..38bbdb9d0 --- /dev/null +++ b/sys-libs/safeclib/safeclib-3.6.0_p20210407-r3.ebuild @@ -0,0 +1,108 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +MODULE_OPTIONAL_USE=modules +inherit autotools linux-info linux-mod + +MY_REV="986f6d34e49637d68cb41221307231f0ea79ca4d" + +DESCRIPTION="safec libc extension with all C11 Annex K functions" +HOMEPAGE="https://github.com/rurban/safeclib" +SRC_URI="https://github.com/rurban/safeclib/archive/${MY_REV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="+constraint-handler doc +extensions modules norm-compat +nullslack test unsafe valgrind" +RESTRICT="!test? ( test )" +PATCHES=( "${FILESDIR}/gh96.patch" ) +BDEPEND=" + doc? ( app-doc/doxygen[dot] ) + valgrind? ( dev-util/valgrind ) +" + +S="${WORKDIR}/${PN}-${MY_REV}" +MODULE_NAMES="slkm(misc:${S}:${S})" +BUILD_TARGETS="all" +BUILD_PARAMS="-f Makefile.kernel" + +pkg_setup() { + if use modules ; then + CONFIG_CHECK="COMPAT_32BIT_TIME" + ERROR_COMPAT_32BIT_TIME="module require COMPAT_32BIT_TIME to build" + fi + linux-mod_pkg_setup +} + +src_prepare() { + default + eautoreconf + + #duplicate the working folder + #one for the library and one for the module + cd "${WORKDIR}" || die + cp -r "${S}" "${S}-lib" || die +} + +src_configure() { + export VARTEXFONTS="${T}/fonts" + + if use modules ; then + set_kvobj ko + econf "${myconf[@]}" --disable-wchar + fi + + cd "${S}-lib" || die + #forcing wchar because of https://github.com/rurban/safeclib/issues/95 + local myconf=( + --disable-static + --disable-valgrind-sgcheck + --enable-shared + --disable-Werror + $(use_enable constraint-handler) + $(use_enable doc) + $(use_enable extensions) + $(use_enable norm-compat) + $(use_enable nullslack) + $(use_enable unsafe) + $(use_enable valgrind) + ) + econf "${myconf[@]}" --enable-wchar +} + +src_compile() { + if use modules ; then + linux-mod_src_compile + fi + + cd "${S}-lib" || die + default +} + +src_install() { + if use modules ; then + linux-mod_src_install + fi + + cd "${S}-lib" || die + default + einstalldocs + + if use doc ; then + rm -rf doc/man || die + dodoc -r doc/. + docompress -x "/usr/share/doc/${PF}/html" + + # wcsstr towupper towlower manpages collide with sys-apps/man-pages + rm "${ED}/usr/share/man/man3/towlower.3" || die + rm "${ED}/usr/share/man/man3/towupper.3" || die + rm "${ED}/usr/share/man/man3/wcsstr.3" || die + fi +} + +src_test() { + cd "${S}-lib" || die + emake check +}