/[gentoo-x86]/sys-apps/i2c-tools/i2c-tools-3.0.2.ebuild
Gentoo

Contents of /sys-apps/i2c-tools/i2c-tools-3.0.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Sun Nov 6 17:00:50 2011 UTC (19 months, 1 week ago) by armin76
Branch: MAIN
Changes since 1.3: +2 -2 lines
Add ~sparc wrt #369895

(Portage version: 2.1.10.11/cvs/Linux ia64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-apps/i2c-tools/i2c-tools-3.0.2.ebuild,v 1.3 2011/03/05 17:14:21 arfrever Exp $
4
5 EAPI="3"
6 PYTHON_DEPEND="python? 2"
7 SUPPORT_PYTHON_ABIS="1"
8 RESTRICT_PYTHON_ABIS="3.* *-jython"
9
10 inherit flag-o-matic toolchain-funcs distutils
11
12 DESCRIPTION="I2C tools for bus probing, chip dumping, register-level access helpers, EEPROM decoding scripts, and more"
13 HOMEPAGE="http://www.lm-sensors.org/wiki/I2CTools"
14 SRC_URI="http://dl.lm-sensors.org/i2c-tools/releases/${P}.tar.bz2"
15
16 LICENSE="GPL-2"
17 SLOT="0"
18 KEYWORDS="amd64 ~arm ~sparc x86"
19 IUSE="python"
20
21 DEPEND="!<sys-apps/lm_sensors-3"
22 RDEPEND="${DEPEND}"
23
24 pkg_setup() {
25 use python && python_pkg_setup
26 }
27
28 src_compile() {
29 emake CC=$(tc-getCC) CFLAGS="${CFLAGS}" || die
30 if use python ; then
31 cd py-smbus
32 append-cppflags -I../include
33 distutils_src_compile
34 fi
35 }
36
37 src_install() {
38 emake install prefix="${D}"/usr || die
39 rm -rf "${D}"/usr/include # part of linux-headers
40 dodoc CHANGES README
41 local d
42 for d in eeprom eepromer ; do
43 docinto ${d}
44 dodoc ${d}/README*
45 done
46
47 if use python ; then
48 cd py-smbus
49 docinto py-smbus
50 dodoc README*
51 distutils_src_install
52 fi
53 }
54
55 pkg_postinst() {
56 use python && distutils_pkg_postinst
57 }
58
59 pkg_postrm() {
60 use python && distutils_pkg_postrm
61 }

  ViewVC Help
Powered by ViewVC 1.1.20