diff options
Diffstat (limited to 'sys-apps/pcmciautils')
-rw-r--r-- | sys-apps/pcmciautils/Manifest | 2 | ||||
-rw-r--r-- | sys-apps/pcmciautils/pcmciautils-018_p14.ebuild | 88 |
2 files changed, 90 insertions, 0 deletions
diff --git a/sys-apps/pcmciautils/Manifest b/sys-apps/pcmciautils/Manifest index 2ac9e90e63eb..a2564f796dd4 100644 --- a/sys-apps/pcmciautils/Manifest +++ b/sys-apps/pcmciautils/Manifest @@ -1,6 +1,8 @@ AUX pcmciautils-018_p8-flex-2.6.3-fix.patch 593 BLAKE2B bff765ae6c80daf3d2413528c4d42aefb7af7e3823590d33315c7089a5221d99c82802378cf9b51502b53bd920e0b5b4b68aaa82d50a92e83f5dfe7207c39a49 SHA512 b96f9bc3176f1eeb936a31f8fab5a495ce14218e92fbae2350aa970328b53bd6732ade90721f1ca55d80a94436189773f83a300aa8af7c43ecc5ed62c95f3557 AUX pcmciautils-018_p8-musl-unsigned-type.patch 648 BLAKE2B dd82e800e032eb95dc1160424157f13f56ca8f000fe7c857cbaf40010dc2e65914e5d38ee8910607ea45859a7464d64f6aa9ff1f7b4c6a8412fc4d0ad2f10378 SHA512 7d140e327421f70007728e7330042dbf6d16988d6ecdc2372321a3d0a6e1c240549a5e9d110d9e6d5b74c1bdcb1caa13f52d3ad75a35dbf70d1602c46e50d358 +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 +EBUILD pcmciautils-018_p14.ebuild 1810 BLAKE2B e21638f71fc2f6e52349e2f920dbb1b90673424adbec935c087a3ce2b3eb1facd5a86020398322f284cc19a8fcd31b16ad7b9dc396fe2f0dbd4f2c00303d4f6b SHA512 cdd7d2c9e6b65b03b49490e06ec3816b5521ba1609084362b70689a789548677d49acfddf978127aa5cfada663f132d6bcf341177f54c26df5eb9dee4ec2eb4c EBUILD pcmciautils-018_p8-r3.ebuild 1655 BLAKE2B bcd2b4413649e7088a98342a5ac9765b038c4350b819f629579a936b7fc0dcf99a3fcac8c3838fbe61c9f4404e8bc43efd1729a24d0a92d9647612616b5f897d SHA512 0e3b4e120d0fcb9ab70d5ff8048b72f08aa06a2ab86df07c51a1c5fb5477aeb41e10c6c1c8b4559ce2bb9c6ca2526600da55f2929f16535c47ae18d22d2c84ae MISC metadata.xml 245 BLAKE2B 7c3776457ba60210a6b5e9b1a0d81ca8fa5cebad8aa6b06001104cf7bbe9dc65ca4fe70b827f3423fc6d0f6de56d8bb5484580e47331655fd4b07e58e2ced33c SHA512 e05491fb93b9ea6296bd0ebdbf9a8027b413e9d8d798a815c65c566b44cfb76b601a82b6da42a5bcea6d8b9ff31d721248d944891abd71cff844537dd4e50cc4 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 +} |