Gentoo Archives: gentoo-commits

From: "William Hubbs (williamh)" <williamh@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-apps/kmod: kmod-9.ebuild ChangeLog
Date: Tue, 19 Jun 2012 23:53:12
Message-Id: 20120619235251.B20212004B@flycatcher.gentoo.org
1 williamh 12/06/19 23:52:51
2
3 Modified: ChangeLog
4 Added: kmod-9.ebuild
5 Log:
6 version bump
7
8 (Portage version: 2.2.0_alpha110/cvs/Linux i686)
9
10 Revision Changes Path
11 1.40 sys-apps/kmod/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/kmod/ChangeLog?rev=1.40&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/kmod/ChangeLog?rev=1.40&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/kmod/ChangeLog?r1=1.39&r2=1.40
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-apps/kmod/ChangeLog,v
20 retrieving revision 1.39
21 retrieving revision 1.40
22 diff -u -r1.39 -r1.40
23 --- ChangeLog 13 Jun 2012 15:46:09 -0000 1.39
24 +++ ChangeLog 19 Jun 2012 23:52:51 -0000 1.40
25 @@ -1,5 +1,10 @@
26 # ChangeLog for sys-apps/kmod# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/kmod/ChangeLog,v 1.39 2012/06/13 15:46:09 vapier Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/kmod/ChangeLog,v 1.40 2012/06/19 23:52:51 williamh Exp $
29 +
30 +*kmod-9 (19 Jun 2012)
31 +
32 + 19 Jun 2012; William Hubbs <williamh@g.o> +kmod-9.ebuild:
33 + version bump
34
35 13 Jun 2012; Mike Frysinger <vapier@g.o>
36 +files/kmod-8-gc-sections.patch, kmod-8.ebuild:
37
38
39
40 1.1 sys-apps/kmod/kmod-9.ebuild
41
42 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/kmod/kmod-9.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/kmod/kmod-9.ebuild?rev=1.1&content-type=text/plain
44
45 Index: kmod-9.ebuild
46 ===================================================================
47 # Copyright 1999-2012 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/sys-apps/kmod/kmod-9.ebuild,v 1.1 2012/06/19 23:52:51 williamh Exp $
50
51 EAPI=4
52
53 EGIT_REPO_URI="git://git.kernel.org/pub/scm/utils/kernel/${PN}/${PN}.git"
54
55 [[ ${PV} == 9999 ]] && vcs=git-2
56 inherit ${vcs} autotools eutils toolchain-funcs libtool
57 unset vcs
58
59 if [[ ${PV} != 9999 ]] ; then
60 SRC_URI="mirror://kernel/linux/utils/kernel/kmod/${P}.tar.xz"
61 KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~x86"
62 fi
63
64 DESCRIPTION="library and tools for managing linux kernel modules"
65 HOMEPAGE="http://git.kernel.org/?p=utils/kernel/kmod/kmod.git"
66
67 LICENSE="LGPL-2"
68 SLOT="0"
69 IUSE="debug doc lzma static-libs +tools zlib"
70
71 RDEPEND="!sys-apps/module-init-tools
72 !sys-apps/modutils
73 lzma? ( app-arch/xz-utils )
74 zlib? ( sys-libs/zlib )"
75 DEPEND="${RDEPEND}
76 doc? ( dev-util/gtk-doc )
77 lzma? ( virtual/pkgconfig )
78 zlib? ( virtual/pkgconfig )"
79
80 # Upstream does not support running the test suite with custom configure flags.
81 # I was also told that the test suite is intended for kmod developers.
82 # So we have to restrict it.
83 # See bug #408915.
84 RESTRICT="test"
85
86 src_prepare()
87 {
88 if [ ! -e configure ]; then
89 if use doc; then
90 gtkdocize --copy --docdir libkmod/docs || die
91 else
92 touch libkmod/docs/gtk-doc.make
93 fi
94 eautoreconf
95 else
96 elibtoolize
97 fi
98 }
99
100 src_configure()
101 {
102 # http://bugs.gentoo.org/410865
103 if has_version '<sys-libs/zlib-1.2.6'; then
104 export zlib_CFLAGS="-I/usr/include"
105 export zlib_LIBS="-lz"
106 fi
107
108 econf \
109 $(use_enable static-libs static) \
110 $(use_enable tools) \
111 $(use_enable debug) \
112 $(use_enable doc gtk-doc) \
113 $(use_with lzma xz) \
114 $(use_with zlib)
115 }
116
117 src_install()
118 {
119 default
120
121 find "${D}" -name libkmod.la -exec rm -f {} +
122
123 if use tools; then
124 dodir /bin
125 dosym /usr/bin/kmod /bin/lsmod
126 dodir /sbin
127 local cmd
128 for cmd in depmod insmod modinfo modprobe rmmod; do
129 dosym /usr/bin/kmod /sbin/${cmd}
130 done
131 fi
132 }