mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
sys-apps/pcmciautils: Drop old
Package-Manager: Portage-2.3.24, Repoman-2.3.6
This commit is contained in:
@@ -1,72 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=4
|
||||
inherit eutils 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 sh 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 true false)
|
||||
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
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch \
|
||||
"${WORKDIR}"/debian/patches/no-modprobe-rules.patch \
|
||||
"${WORKDIR}"/debian/patches/remove-libsysfs-dep.patch
|
||||
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user