summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2008-09-01 05:12:28 +0000
committerMike Frysinger <vapier@gentoo.org>2008-09-01 05:12:28 +0000
commita9ea911d1921c7aa8f7994791e043edc312649ef (patch)
treebee22a4fbccf672ad1d34c4ae3917b8d58c77bce /sys-apps/pcmciautils
parentDrop bindnow-flags #227017 by Diego Pettenò and tweak DESCRIPTION #222755 by... (diff)
downloadgentoo-2-a9ea911d1921c7aa8f7994791e043edc312649ef.tar.gz
gentoo-2-a9ea911d1921c7aa8f7994791e043edc312649ef.tar.bz2
gentoo-2-a9ea911d1921c7aa8f7994791e043edc312649ef.zip
Version bump and cleanup.
(Portage version: 2.2_rc8/cvs/Linux 2.6.26.2 x86_64)
Diffstat (limited to 'sys-apps/pcmciautils')
-rw-r--r--sys-apps/pcmciautils/ChangeLog7
-rw-r--r--sys-apps/pcmciautils/pcmciautils-015.ebuild64
2 files changed, 70 insertions, 1 deletions
diff --git a/sys-apps/pcmciautils/ChangeLog b/sys-apps/pcmciautils/ChangeLog
index b148a0be67a8..1b6428f769b7 100644
--- a/sys-apps/pcmciautils/ChangeLog
+++ b/sys-apps/pcmciautils/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for sys-apps/pcmciautils
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/pcmciautils/ChangeLog,v 1.34 2008/08/23 06:18:59 cardoe Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/pcmciautils/ChangeLog,v 1.35 2008/09/01 05:12:28 vapier Exp $
+
+*pcmciautils-015 (01 Sep 2008)
+
+ 01 Sep 2008; Mike Frysinger <vapier@gentoo.org> +pcmciautils-015.ebuild:
+ Version bump and cleanup.
23 Aug 2008; Doug Goldstein <cardoe@gentoo.org> metadata.xml:
add GLEP 56 USE flag desc from use.local.desc
diff --git a/sys-apps/pcmciautils/pcmciautils-015.ebuild b/sys-apps/pcmciautils/pcmciautils-015.ebuild
new file mode 100644
index 000000000000..75e7bf6ef7d6
--- /dev/null
+++ b/sys-apps/pcmciautils/pcmciautils-015.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/pcmciautils/pcmciautils-015.ebuild,v 1.1 2008/09/01 05:12:28 vapier Exp $
+
+inherit eutils flag-o-matic toolchain-funcs linux-info
+
+DESCRIPTION="PCMCIA userspace utilities for Linux kernel 2.6.13 and beyond"
+HOMEPAGE="http://www.kernel.org/pub/linux/utils/kernel/pcmcia/pcmcia.html"
+SRC_URI="mirror://kernel/linux/utils/kernel/pcmcia/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~ppc ~sh ~x86"
+IUSE="debug static staticsocket"
+
+RDEPEND=">=sys-fs/sysfsutils-1.2.0-r1
+ >=sys-apps/module-init-tools-3.2_pre4"
+DEPEND="${RDEPEND}
+ || ( dev-util/yacc sys-devel/bison )
+ sys-devel/flex"
+
+CONFIG_CHECK="~PCMCIA"
+ERROR_PCMCIA="${P} requires 16-bit PCMCIA support (CONFIG_PCMCIA)"
+
+pkg_setup() {
+ linux-info_pkg_setup
+ kernel_is lt 2 6 13 && ewarn "${P} requires at least kernel 2.6.13."
+}
+
+use_tf() { use $1 && echo true || echo false ; }
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ sed -i \
+ -e '/DEBUG\>/s:=.*:= false:' \
+ -e '/UDEV\>/s:=.*:= true:' \
+ -e '/CFLAGS/s:-fomit-frame-pointer::' \
+ -e '/^STATIC\>/s:=.*:= '$(use_tf static)':' \
+ -e '/^STARTUP\>/s:=.*:= '$(use_tf staticsocket)':' \
+ Makefile || die
+ use debug && append-flags -DDEBUG
+}
+
+src_compile() {
+ emake \
+ OPTIMIZATION="${CFLAGS} ${CPPFLAGS}" \
+ V="true" \
+ CC="$(tc-getCC)" \
+ LD="$(tc-getCC)" \
+ STRIP="true" \
+ || die "emake failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "make install failed"
+ dodoc doc/*.txt
+}
+
+pkg_postinst() {
+ ewarn "If you relied on pcmcia-cs to automatically load the appropriate"
+ ewarn "PCMCIA-related modules upon boot, you need to add 'pcmcia' and the"
+ ewarn "PCMCIA socket driver you need for this system (yenta-socket,"
+ ewarn "i82092, i82365, ...) to /etc/modules.autoload.d/kernel-2.6"
+}