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 F114D15800A for ; Mon, 14 Aug 2023 16:34:41 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 209CF2BC018; Mon, 14 Aug 2023 16:34:40 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.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) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 072EB2BC018 for ; Mon, 14 Aug 2023 16:34:40 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 223B9340DBF for ; Mon, 14 Aug 2023 16:34:39 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7256DFA0 for ; Mon, 14 Aug 2023 16:34:37 +0000 (UTC) From: "Ben Kohler" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ben Kohler" Message-ID: <1692030870.6565b0a84e22c9292dde2a41fab0457d6c3aaafd.bkohler@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/pcmciautils/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-apps/pcmciautils/Manifest sys-apps/pcmciautils/pcmciautils-018_p14.ebuild X-VCS-Directories: sys-apps/pcmciautils/ X-VCS-Committer: bkohler X-VCS-Committer-Name: Ben Kohler X-VCS-Revision: 6565b0a84e22c9292dde2a41fab0457d6c3aaafd X-VCS-Branch: master Date: Mon, 14 Aug 2023 16:34:37 +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: 5463439d-27a7-4aab-9628-d02cab6e96ad X-Archives-Hash: c91d362fde66a7bd13bd4a357654c0db commit: 6565b0a84e22c9292dde2a41fab0457d6c3aaafd Author: Ben Kohler gentoo org> AuthorDate: Mon Aug 14 16:33:10 2023 +0000 Commit: Ben Kohler gentoo org> CommitDate: Mon Aug 14 16:34:30 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6565b0a8 sys-apps/pcmciautils: add 018_p14 Closes: https://bugs.gentoo.org/725788 Closes: https://bugs.gentoo.org/832880 Closes: https://bugs.gentoo.org/851819 Signed-off-by: Ben Kohler gentoo.org> sys-apps/pcmciautils/Manifest | 1 + sys-apps/pcmciautils/pcmciautils-018_p14.ebuild | 88 +++++++++++++++++++++++++ 2 files changed, 89 insertions(+) diff --git a/sys-apps/pcmciautils/Manifest b/sys-apps/pcmciautils/Manifest index 453c3097e25f..63bc74b18f3d 100644 --- a/sys-apps/pcmciautils/Manifest +++ b/sys-apps/pcmciautils/Manifest @@ -1,2 +1,3 @@ +DIST pcmciautils_018-14.debian.tar.xz 11516 BLAKE2B f023fce015a71a09b4b012c0d7396bc8eb426ccbd3c92e0ce7bd46c5f5d2510d0eae5a296300017e316fef1a6471d0040e8f84afc989d7f5fba734fdd5e11e1e SHA512 e5c98cbe54da296a8de05916f2e987f0dd5668e39a65f771e46aa5b1a04aa4821c3c5d0c94b0c9bede26df011f6a441be91f3c49105ceaca631daf013fbd6430 DIST pcmciautils_018-8.debian.tar.gz 11213 BLAKE2B cf28ecf71ebfd5c4ad7d882cbadab71b787f407adb2d20258cdc1157ca7d542bf398ff09207037d1d6e933d43e477b50b28ca3f0ac0e557fbaefb9f31656843e SHA512 8a00d776e208b43d01fe22b9d4e889bc1b2c5982aa1bf225bdd613ffb0f5b37f5266ccc1cb91df9ac49c4ee3e3653ebb29807b61fff53c585e2cfed5aa2cd9e9 DIST pcmciautils_018.orig.tar.gz 48516 BLAKE2B 0b197cdd7d0940e5c0eee2da961f0f4dd972a3178ba5d07a6492185d0ab156cd61f5343c8f9d812cff402f04af76a15baa3db564d14317d3817e5325dd8811fb SHA512 f0af1fc6155686ae61c1c85a6451b032088a3880dfbc05c1d1ed33ca8e975745f9d4bedb0f3ee0a1252461aa008bed8014c73ff850cddd89d930524a6d68d47d diff --git a/sys-apps/pcmciautils/pcmciautils-018_p14.ebuild b/sys-apps/pcmciautils/pcmciautils-018_p14.ebuild new file mode 100644 index 000000000000..3d67aacffffa --- /dev/null +++ b/sys-apps/pcmciautils/pcmciautils-018_p14.ebuild @@ -0,0 +1,88 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit flag-o-matic linux-info toolchain-funcs udev + +DEB_REV=${PV#*_p} +MY_PV=${PV%_p*} + +DESCRIPTION="PCMCIA userspace utilities for Linux" +HOMEPAGE="https://packages.qa.debian.org/pcmciautils" +SRC_URI="mirror://debian/pool/main/${PN:0:1}/${PN}/${PN}_${MY_PV}.orig.tar.gz + mirror://debian/pool/main/${PN:0:1}/${PN}/${PN}_${MY_PV}-${DEB_REV}.debian.tar.xz" +S="${WORKDIR}"/${PN}-${MY_PV} + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~riscv ~x86" +IUSE="debug staticsocket" + +RDEPEND="sys-apps/kmod[tools]" +DEPEND="${RDEPEND} + app-alternatives/yacc + sys-devel/flex" + +PATCHES=( + "${WORKDIR}"/debian/patches/no-modprobe-rules.patch + "${WORKDIR}"/debian/patches/remove-libsysfs-dep.patch + "${FILESDIR}"/${PN}-018_p8-flex-2.6.3-fix.patch + "${FILESDIR}"/${PN}-018_p8-musl-unsigned-type.patch + "${WORKDIR}"/debian/patches/parallel-build.patch +) + +pkg_setup() { + CONFIG_CHECK="~PCMCIA" + linux-info_pkg_setup + + kernel_is lt 2 6 32 && ewarn "${P} requires at least kernel 2.6.32." +} + +src_prepare() { + default + + sed -i \ + -e '/CFLAGS/s:-fomit-frame-pointer::' \ + -e '/dir/s:sbin:bin:g' \ + Makefile || die +} + +src_configure() { + use debug && append-cppflags -DDEBUG + + mypcmciaopts=( + STARTUP=$(usex staticsocket false true) + exec_prefix=/usr + UDEV=true + DEBUG=false + STATIC=false + V=true + udevdir="$(get_udevdir)" + CC="$(tc-getCC)" + HOSTCC="$(tc-getBUILD_CC)" + LD="$(tc-getCC)" + AR="$(tc-getAR)" + STRIP=true + RANLIB="$(tc-getRANLIB)" + OPTIMIZATION="${CFLAGS} ${CPPFLAGS}" + ) +} + +src_compile() { + emake "${mypcmciaopts[@]}" +} + +src_install() { + emake "${mypcmciaopts[@]}" DESTDIR="${D}" install + + dodoc doc/*.txt +} + +pkg_postinst() { + udev_reload +} + +pkg_postrm() { + udev_reload +}