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 33E59158086 for ; Wed, 24 Nov 2021 17:44:23 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 59D7FE0849; Wed, 24 Nov 2021 17:44:22 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 3E828E0849 for ; Wed, 24 Nov 2021 17:44:22 +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) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 4C396343399 for ; Wed, 24 Nov 2021 17:44:21 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 957531DA for ; Wed, 24 Nov 2021 17:44:19 +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: <1637775851.d7768022a61f800ee4858a239247b9f2746cc79f.marecki@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/lockdev/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/lockdev/lockdev-1.0.3.1.2-r4.ebuild X-VCS-Directories: dev-libs/lockdev/ X-VCS-Committer: marecki X-VCS-Committer-Name: Marek Szuba X-VCS-Revision: d7768022a61f800ee4858a239247b9f2746cc79f X-VCS-Branch: master Date: Wed, 24 Nov 2021 17:44:19 +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: bb45b7af-1828-4827-8d20-01705df3b54a X-Archives-Hash: 9d02d4d27763fea34ec40de2b0b87059 commit: d7768022a61f800ee4858a239247b9f2746cc79f Author: Marek Szuba gentoo org> AuthorDate: Wed Nov 24 17:35:33 2021 +0000 Commit: Marek Szuba gentoo org> CommitDate: Wed Nov 24 17:44:11 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d7768022 dev-libs/lockdev: update EAPI 5 -> 8 Bug: https://bugs.gentoo.org/819609 Signed-off-by: Marek Szuba gentoo.org> dev-libs/lockdev/lockdev-1.0.3.1.2-r4.ebuild | 96 ++++++++++++++++++++++++++++ 1 file changed, 96 insertions(+) diff --git a/dev-libs/lockdev/lockdev-1.0.3.1.2-r4.ebuild b/dev-libs/lockdev/lockdev-1.0.3.1.2-r4.ebuild new file mode 100644 index 000000000000..c19c3c4a5609 --- /dev/null +++ b/dev-libs/lockdev/lockdev-1.0.3.1.2-r4.ebuild @@ -0,0 +1,96 @@ +# Copyright 2001-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +GENTOO_DEPEND_ON_PERL="no" + +inherit perl-module autotools multilib-minimal + +MAJOR=$(ver_cut 1) +MY_PV=$(ver_cut 1-3) +MY_P=${PN}-${MY_PV} +DEB_PV=$(ver_rs 3 '-') +DEB_P=${PN}_${DEB_PV} + +DESCRIPTION="Library for locking devices" +HOMEPAGE="http://packages.debian.org/source/sid/lockdev" +SRC_URI=" + mirror://debian/pool/main/${PN:0:1}/${PN}/${PN}_${MY_PV}.orig.tar.gz + mirror://debian/pool/main/${PN:0:1}/${PN}/${DEB_P}.diff.gz +" +S="${WORKDIR}"/${PN}-${MY_PV} + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +IUSE="perl" + +PATCHES=( + "${WORKDIR}/${DEB_P}.diff" + "${FILESDIR}/${MY_P}-add-autotools.patch" + "${FILESDIR}/${MY_P}-fix-perl.patch" +) + +PERL_S=./LockDev + +pkg_setup() { + use perl && perl_set_version +} + +src_prepare() { + default + + eautoreconf + + # perl module build + multilib_copy_sources +} + +multilib_src_configure() { + econf + + if multilib_is_native_abi && use perl; then + cd "${PERL_S}" || die + perl-module_src_configure + fi +} + +multilib_src_compile() { + emake + + if multilib_is_native_abi && use perl; then + cd "${PERL_S}" || die + perl-module_src_compile + fi +} + +multilib_src_test() { + if multilib_is_native_abi && use perl; then + cd "${PERL_S}" || die + SRC_TEST="do" + export LD_LIBRARY_PATH="${LD_LIBRARY_PATH:+${LD_LIBRARY_PATH}:}${BUILD_DIR}/.libs" + perl-module_src_test + fi +} + +multilib_src_install() { + emake DESTDIR="${D}" install + + if multilib_is_native_abi && use perl; then + cd "${PERL_S}" || die + mytargets="pure_install" + perl-module_src_install + fi +} + +multilib_src_install_all() { + dodoc AUTHORS ChangeLog* debian/NEWS README.debug + newdoc debian/changelog changelog.debian + + find "${ED}" -name '*.la' -delete || die +} + +pkg_preinst() { + use perl && perl_set_version +}