You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
76 lines
1.5 KiB
76 lines
1.5 KiB
5 years ago
|
# Copyright 1999-2020 Gentoo Authors
|
||
10 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
8 years ago
|
EAPI=6
|
||
|
inherit flag-o-matic linux-info toolchain-funcs udev
|
||
10 years ago
|
|
||
|
DEB_REV=${PV#*_p}
|
||
|
MY_PV=${PV%_p*}
|
||
|
|
||
|
DESCRIPTION="PCMCIA userspace utilities for Linux"
|
||
7 years ago
|
HOMEPAGE="https://packages.qa.debian.org/pcmciautils"
|
||
10 years ago
|
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"
|
||
5 years ago
|
KEYWORDS="amd64 arm ppc x86"
|
||
10 years ago
|
IUSE="debug staticsocket"
|
||
|
|
||
4 years ago
|
RDEPEND="sys-apps/kmod[tools]"
|
||
10 years ago
|
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
|
||
|
}
|
||
|
|
||
8 years ago
|
PATCHES=(
|
||
|
"${WORKDIR}"/debian/patches/no-modprobe-rules.patch
|
||
|
"${WORKDIR}"/debian/patches/remove-libsysfs-dep.patch
|
||
|
"${FILESDIR}"/${P}-flex-2.6.3-fix.patch
|
||
|
)
|
||
10 years ago
|
|
||
8 years ago
|
src_prepare() {
|
||
|
default
|
||
10 years ago
|
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
|
||
|
}
|