diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-08-14 18:13:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-08-14 18:13:29 +0100 |
commit | 85dc262ae9ec9413f8172a2a8442d6d9134d02f4 (patch) | |
tree | 81768a8b154fded73a17e9475cebc90d79fd4720 /sys-apps/pcmciautils/pcmciautils-018_p14.ebuild | |
parent | b6323af2602e6a5cd4920d4af06b5c2f3949b9d0 (diff) |
gentoo auto-resync : 14:08:2023 - 18:13:29
Diffstat (limited to 'sys-apps/pcmciautils/pcmciautils-018_p14.ebuild')
-rw-r--r-- | sys-apps/pcmciautils/pcmciautils-018_p14.ebuild | 88 |
1 files changed, 88 insertions, 0 deletions
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 +} |