summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenrik Brix Andersen <brix@gentoo.org>2005-06-11 11:20:21 +0000
committerHenrik Brix Andersen <brix@gentoo.org>2005-06-11 11:20:21 +0000
commit55659ea9b03902e9ed99e0d0c7663802cb9e8569 (patch)
tree21f1dca293763d29ebdc0b706d67d530acf18c7e /sys-apps/i2c
parentunmasked libpq and its related packages (diff)
downloadgentoo-2-55659ea9b03902e9ed99e0d0c7663802cb9e8569.tar.gz
gentoo-2-55659ea9b03902e9ed99e0d0c7663802cb9e8569.tar.bz2
gentoo-2-55659ea9b03902e9ed99e0d0c7663802cb9e8569.zip
Version bump.
(Portage version: 2.0.51.22-r1)
Diffstat (limited to 'sys-apps/i2c')
-rw-r--r--sys-apps/i2c/ChangeLog8
-rw-r--r--sys-apps/i2c/Manifest7
-rw-r--r--sys-apps/i2c/files/digest-i2c-2.9.11
-rw-r--r--sys-apps/i2c/files/i2c-2.9.1-module-path.patch27
-rw-r--r--sys-apps/i2c/i2c-2.9.1.ebuild68
5 files changed, 108 insertions, 3 deletions
diff --git a/sys-apps/i2c/ChangeLog b/sys-apps/i2c/ChangeLog
index 53ad1fe38a67..bee58441aefe 100644
--- a/sys-apps/i2c/ChangeLog
+++ b/sys-apps/i2c/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sys-apps/i2c
# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/i2c/ChangeLog,v 1.33 2005/05/10 09:08:44 dholm Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/i2c/ChangeLog,v 1.34 2005/06/11 11:20:21 brix Exp $
+
+*i2c-2.9.1 (11 Jun 2005)
+
+ 11 Jun 2005; <brix@gentoo.org> +files/i2c-2.9.1-module-path.patch,
+ +i2c-2.9.1.ebuild:
+ Version bump.
10 May 2005; David Holm <dholm@gentoo.org> i2c-2.9.0.ebuild:
Readded to ~ppc. Please don't remove it without filing a proper bug report.
diff --git a/sys-apps/i2c/Manifest b/sys-apps/i2c/Manifest
index c76f0c74bc73..7a6fdec33ecd 100644
--- a/sys-apps/i2c/Manifest
+++ b/sys-apps/i2c/Manifest
@@ -1,8 +1,11 @@
-MD5 2f28cd2d1b9ff9fd7208ead412c6151c ChangeLog 6129
-MD5 b280eebc74d70d85e664debf1adce2c3 metadata.xml 255
+MD5 c928aa92468ac5c468d62c7803100e81 i2c-2.9.1.ebuild 1622
MD5 6b68f571173c7911797f9d24a80a027f i2c-2.8.7.ebuild 3505
MD5 2a12d150ddb0e965eb7edc9ec0f8fabd i2c-2.9.0.ebuild 2645
+MD5 2f28cd2d1b9ff9fd7208ead412c6151c ChangeLog 6129
+MD5 b280eebc74d70d85e664debf1adce2c3 metadata.xml 255
MD5 9a742c848861fdb77a2ece979a81edc3 files/i2c-2.8.0-alphaCompile.patch 353
MD5 3d1523487606d28ad6cb49a5f34b1601 files/digest-i2c-2.8.7 61
MD5 09a33c917d4a0919bb6aa7d6d83402c0 files/digest-i2c-2.9.0 61
+MD5 719058245870177c6519a7faae4540d4 files/digest-i2c-2.9.1 61
MD5 bf13f28c20a1fb6338fa2ced6fe4862d files/i2c-2.9.0.fix.patch 2570
+MD5 94e41662a7f774ade36247d658373f85 files/i2c-2.9.1-module-path.patch 1792
diff --git a/sys-apps/i2c/files/digest-i2c-2.9.1 b/sys-apps/i2c/files/digest-i2c-2.9.1
new file mode 100644
index 000000000000..3130cb56ca82
--- /dev/null
+++ b/sys-apps/i2c/files/digest-i2c-2.9.1
@@ -0,0 +1 @@
+MD5 eb3d1df2d3b46f199af2485db612c76d i2c-2.9.1.tar.gz 142961
diff --git a/sys-apps/i2c/files/i2c-2.9.1-module-path.patch b/sys-apps/i2c/files/i2c-2.9.1-module-path.patch
new file mode 100644
index 000000000000..60443dffd021
--- /dev/null
+++ b/sys-apps/i2c/files/i2c-2.9.1-module-path.patch
@@ -0,0 +1,27 @@
+diff -urp i2c-2.9.1/kernel/Module.mk i2c-2.9.1-module-path/kernel/Module.mk
+--- i2c-2.9.1/kernel/Module.mk 2005-01-03 18:21:07.000000000 +0100
++++ i2c-2.9.1-module-path/kernel/Module.mk 2005-06-04 15:09:16.000000000 +0200
+@@ -96,18 +96,18 @@ all :: all-kernel
+
+ #
+ # If $MODPREF/kernel exists, we presume the new (2.4.0) /lib/modules/x.y.z directory
+-# layout, so we install in kernel/drivers/i2c/ and remove old versions in misc/
++# layout, so we install in drivers/i2c/ and remove old versions in misc/
+ # Otherwise we install in misc/ as before.
+ #
+ install-kernel: all-kernel
+ if [ -n "$(KERNELTARGETS)" ] ; then \
+- $(MKDIR) $(DESTDIR)$(MODPREF)/kernel/drivers/i2c ; \
+- $(INSTALL) -m 644 $(KERNELTARGETS) $(DESTDIR)$(MODPREF)/kernel/drivers/i2c ; \
++ $(MKDIR) $(DESTDIR)$(MODPREF)/drivers/i2c ; \
++ $(INSTALL) -m 644 $(KERNELTARGETS) $(DESTDIR)$(MODPREF)/drivers/i2c ; \
+ for i in $(KERNELTARGETS) ; do \
+- $(RM) $(DESTDIR)$(MODPREF)/misc/`basename $$i` $(DESTDIR)$(MODPREF)/misc/`basename $$i`.gz $(DESTDIR)$(MODPREF)/kernel/drivers/i2c/`basename $$i`.gz ; \
++ $(RM) $(DESTDIR)$(MODPREF)/misc/`basename $$i` $(DESTDIR)$(MODPREF)/misc/`basename $$i`.gz $(DESTDIR)$(MODPREF)/drivers/i2c/`basename $$i`.gz ; \
+ done ; \
+ for i in i2c-elektor.o i2c-pcf-epp.o ; do \
+- $(RM) $(DESTDIR)$(MODPREF)/misc/`basename $$i` $(DESTDIR)$(MODPREF)/misc/`basename $$i`.gz $(DESTDIR)$(MODPREF)/kernel/drivers/i2c/`basename $$i` $(DESTDIR)$(MODPREF)/kernel/drivers/i2c/`basename $$i`.gz ; \
++ $(RM) $(DESTDIR)$(MODPREF)/misc/`basename $$i` $(DESTDIR)$(MODPREF)/misc/`basename $$i`.gz $(DESTDIR)$(MODPREF)/drivers/i2c/`basename $$i` $(DESTDIR)$(MODPREF)/drivers/i2c/`basename $$i`.gz ; \
+ done ; \
+ $(RMDIR) $(DESTDIR)$(MODPREF)/misc 2> /dev/null || true ; \
+ fi
diff --git a/sys-apps/i2c/i2c-2.9.1.ebuild b/sys-apps/i2c/i2c-2.9.1.ebuild
new file mode 100644
index 000000000000..b15a5b4967db
--- /dev/null
+++ b/sys-apps/i2c/i2c-2.9.1.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/i2c/i2c-2.9.1.ebuild,v 1.1 2005/06/11 11:20:21 brix Exp $
+
+inherit eutils toolchain-funcs linux-info
+
+DESCRIPTION="I2C Bus support for 2.4.x kernels"
+HOMEPAGE="http://www2.lm-sensors.nu/~lm78/"
+SRC_URI="http://www2.lm-sensors.nu/~lm78/archive/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~amd64 ~ppc"
+
+IUSE=""
+
+pkg_setup() {
+ linux-info_pkg_setup
+
+ if kernel_is lt 2 4 10; then
+ eerror "${PV} requires kernel 2.4.10 or later"
+ die "${PV} requires kernel 2.4.10 or later"
+ fi
+
+ if kernel_is gt 2 4; then
+ eerror "${PV} is only needed for kernel 2.4.x"
+ eerror "You need to use the in-kernel I2C drivers for later kernels."
+ die "Non 2.4.x kernel detected"
+ fi
+
+ if linux_chkconfig_present I2C; then
+ eerror "${PV} requires kernel CONFIG_I2C to be disabled."
+ die "Kernel with CONFIG_I2C detected"
+ fi
+}
+
+src_unpack() {
+ unpack ${A}
+
+ cd ${S}
+ epatch ${FILESDIR}/${P}-module-path.patch
+}
+
+src_compile () {
+ einfo
+ einfo "You may safely ignore any errors from compilation"
+ einfo "that contain \"No such file or directory\" references."
+ einfo
+
+ emake CC=$(tc-getCC) LINUX=${KV_DIR} || die "emake failed"
+}
+
+src_install() {
+ einfo
+ einfo "This package will need to overwrite your kernel I2C headers."
+ einfo "If this fails, please emerge with FEATURES=\"-collision-protect\""
+ einfo
+ ebeep 5
+
+ emake CC=$(tc-getCC) \
+ LINUX=${KV_DIR} LINUX_INCLUDE_DIR=${KV_DIR}/include/linux MODPREF=/lib/modules/${KV_FULL} \
+ DESTDIR=${D} PREFIX=/usr MANDIR=/usr/share/man install \
+ || die "emake install failed"
+
+ dodoc CHANGES README TODO
+
+ dodoc doc/*
+}