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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id A4D9D158091 for ; Sun, 12 Jun 2022 15:56:45 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B65AAE087E; Sun, 12 Jun 2022 15:56:44 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7031BE087E for ; Sun, 12 Jun 2022 15:56:44 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5D20F340E0A for ; Sun, 12 Jun 2022 15:56:43 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D96FB44B for ; Sun, 12 Jun 2022 15:56:41 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1655049389.ee7cb639713d630628cc5d538a6df91e2b299df3.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-libs/libapparmor/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-libs/libapparmor/libapparmor-3.0.3-r1.ebuild X-VCS-Directories: sys-libs/libapparmor/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: ee7cb639713d630628cc5d538a6df91e2b299df3 X-VCS-Branch: master Date: Sun, 12 Jun 2022 15:56:41 +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: 56c6d337-7181-479d-99d6-0b6f55b7443d X-Archives-Hash: d19f3e18fe0e98e9564712215cdfc392 commit: ee7cb639713d630628cc5d538a6df91e2b299df3 Author: Sam James gentoo org> AuthorDate: Sun Jun 12 15:39:10 2022 +0000 Commit: Sam James gentoo org> CommitDate: Sun Jun 12 15:56:29 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ee7cb639 sys-libs/libapparmor: fix distutils-r1 usage Signed-off-by: Sam James gentoo.org> sys-libs/libapparmor/libapparmor-3.0.3-r1.ebuild | 103 +++++++++++++++++++++++ 1 file changed, 103 insertions(+) diff --git a/sys-libs/libapparmor/libapparmor-3.0.3-r1.ebuild b/sys-libs/libapparmor/libapparmor-3.0.3-r1.ebuild new file mode 100644 index 000000000000..9b57936f1568 --- /dev/null +++ b/sys-libs/libapparmor/libapparmor-3.0.3-r1.ebuild @@ -0,0 +1,103 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_OPTIONAL=1 +PYTHON_COMPAT=( python3_{8..10} ) +GENTOO_DEPEND_ON_PERL="no" + +inherit autotools distutils-r1 perl-functions + +MY_PV="$(ver_cut 1-2)" + +DESCRIPTION="Library to support AppArmor userspace utilities" +HOMEPAGE="https://gitlab.com/apparmor/apparmor/wikis/home" +SRC_URI="https://launchpad.net/apparmor/${MY_PV}/${PV}/+download/apparmor-${PV}.tar.gz" + +LICENSE="GPL-2 LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~x86" +IUSE="doc +perl +python static-libs" + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND="perl? ( dev-lang/perl:= ) + python? ( ${PYTHON_DEPS} )" +DEPEND="${RDEPEND}" +BDEPEND=" + sys-devel/autoconf-archive + sys-devel/bison + sys-devel/flex + doc? ( dev-lang/perl ) + perl? ( dev-lang/swig ) + python? ( dev-lang/swig )" + +S=${WORKDIR}/apparmor-${PV}/libraries/${PN} + +# depends on the package already being installed +#RESTRICT="test" + +src_prepare() { + rm -r m4 || die "failed to remove bundled macros" + + default + eautoreconf + + use python && distutils-r1_src_prepare +} + +src_configure() { + econf \ + $(use_enable static-libs static) \ + $(use_with perl) \ + $(use_with python) +} + +src_compile() { + emake -C src + emake -C include + use doc && emake -C doc + use perl && emake -C swig/perl + + if use python ; then + pushd swig/python > /dev/null || die + emake libapparmor_wrap.c + distutils-r1_src_compile + popd > /dev/null || die + fi +} + +src_install() { + emake DESTDIR="${D}" -C src install + emake DESTDIR="${D}" -C include install + use doc && emake DESTDIR="${D}" -C doc install + + if use perl ; then + emake DESTDIR="${D}" -C swig/perl install + perl_set_version + insinto "${VENDOR_ARCH}" + doins swig/perl/LibAppArmor.pm + + # bug 620886 + perl_delete_localpod + perl_fix_packlist + fi + + if use python ; then + pushd swig/python > /dev/null || die + distutils-r1_src_install + popd > /dev/null || die + fi + + dodoc AUTHORS ChangeLog NEWS README + + find "${D}" -name '*.la' -delete || die +} + +python_install() { + distutils-r1_python_install + + python_moduleinto LibAppArmor + python_domodule LibAppArmor.py +}