From a47d6b53d472989d86924fd317bac135d3817855 Mon Sep 17 00:00:00 2001 From: Mikle Kolyada Date: Sat, 8 Aug 2020 17:23:56 +0300 Subject: sys-apps/pcmciautils: migrate to sys-apps/kmod Package-Manager: Portage-2.3.103, Repoman-2.3.23 Signed-off-by: Mikle Kolyada --- sys-apps/pcmciautils/pcmciautils-018_p8-r2.ebuild | 75 ----------------------- sys-apps/pcmciautils/pcmciautils-018_p8-r3.ebuild | 75 +++++++++++++++++++++++ 2 files changed, 75 insertions(+), 75 deletions(-) delete mode 100644 sys-apps/pcmciautils/pcmciautils-018_p8-r2.ebuild create mode 100644 sys-apps/pcmciautils/pcmciautils-018_p8-r3.ebuild (limited to 'sys-apps/pcmciautils') diff --git a/sys-apps/pcmciautils/pcmciautils-018_p8-r2.ebuild b/sys-apps/pcmciautils/pcmciautils-018_p8-r2.ebuild deleted file mode 100644 index 798f57159009..000000000000 --- a/sys-apps/pcmciautils/pcmciautils-018_p8-r2.ebuild +++ /dev/null @@ -1,75 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 -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.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="amd64 arm ppc x86" -IUSE="debug staticsocket" - -RDEPEND="virtual/modutils" -DEPEND="${RDEPEND} - virtual/yacc - sys-devel/flex" - -S=${WORKDIR}/${PN}-${MY_PV} - -pkg_setup() { - CONFIG_CHECK="~PCMCIA" - linux-info_pkg_setup - - kernel_is lt 2 6 32 && ewarn "${P} requires at least kernel 2.6.32." - - mypcmciaopts=( - STARTUP=$(usex staticsocket false true) - exec_prefix=/usr - UDEV=true - DEBUG=false - STATIC=false - V=true - udevdir="$(get_udevdir)" - CC="$(tc-getCC)" - LD="$(tc-getCC)" - AR="$(tc-getAR)" - STRIP=true - RANLIB="$(tc-getRANLIB)" - OPTIMIZATION="${CFLAGS} ${CPPFLAGS}" - DESTDIR="${D}" - ) - - use debug && append-cppflags -DDEBUG -} - -PATCHES=( - "${WORKDIR}"/debian/patches/no-modprobe-rules.patch - "${WORKDIR}"/debian/patches/remove-libsysfs-dep.patch - "${FILESDIR}"/${P}-flex-2.6.3-fix.patch -) - -src_prepare() { - default - sed -i \ - -e '/CFLAGS/s:-fomit-frame-pointer::' \ - -e '/dir/s:sbin:bin:g' \ - Makefile || die -} - -src_compile() { - emake "${mypcmciaopts[@]}" -} - -src_install() { - emake "${mypcmciaopts[@]}" install - - dodoc doc/*.txt -} diff --git a/sys-apps/pcmciautils/pcmciautils-018_p8-r3.ebuild b/sys-apps/pcmciautils/pcmciautils-018_p8-r3.ebuild new file mode 100644 index 000000000000..6ba72087ffb2 --- /dev/null +++ b/sys-apps/pcmciautils/pcmciautils-018_p8-r3.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +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.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 arm ppc x86" +IUSE="debug staticsocket" + +RDEPEND="sys-apps/kmod[tools]" +DEPEND="${RDEPEND} + virtual/yacc + sys-devel/flex" + +S=${WORKDIR}/${PN}-${MY_PV} + +pkg_setup() { + CONFIG_CHECK="~PCMCIA" + linux-info_pkg_setup + + kernel_is lt 2 6 32 && ewarn "${P} requires at least kernel 2.6.32." + + mypcmciaopts=( + STARTUP=$(usex staticsocket false true) + exec_prefix=/usr + UDEV=true + DEBUG=false + STATIC=false + V=true + udevdir="$(get_udevdir)" + CC="$(tc-getCC)" + LD="$(tc-getCC)" + AR="$(tc-getAR)" + STRIP=true + RANLIB="$(tc-getRANLIB)" + OPTIMIZATION="${CFLAGS} ${CPPFLAGS}" + DESTDIR="${D}" + ) + + use debug && append-cppflags -DDEBUG +} + +PATCHES=( + "${WORKDIR}"/debian/patches/no-modprobe-rules.patch + "${WORKDIR}"/debian/patches/remove-libsysfs-dep.patch + "${FILESDIR}"/${P}-flex-2.6.3-fix.patch +) + +src_prepare() { + default + sed -i \ + -e '/CFLAGS/s:-fomit-frame-pointer::' \ + -e '/dir/s:sbin:bin:g' \ + Makefile || die +} + +src_compile() { + emake "${mypcmciaopts[@]}" +} + +src_install() { + emake "${mypcmciaopts[@]}" install + + dodoc doc/*.txt +} -- cgit v1.2.3-65-gdbad