Gentoo Archives: gentoo-commits

From: "Diego Petteno (flameeyes)" <flameeyes@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-apps/hwids: hwids-20140103.ebuild ChangeLog
Date: Fri, 03 Jan 2014 21:41:19
Message-Id: 20140103214112.7656B2004C@flycatcher.gentoo.org
1 flameeyes 14/01/03 21:41:12
2
3 Modified: ChangeLog
4 Added: hwids-20140103.ebuild
5 Log:
6 Update.
7
8 (Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 1CD13C8AD4301342)
9
10 Revision Changes Path
11 1.127 sys-apps/hwids/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/hwids/ChangeLog?rev=1.127&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/hwids/ChangeLog?rev=1.127&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/hwids/ChangeLog?r1=1.126&r2=1.127
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-apps/hwids/ChangeLog,v
20 retrieving revision 1.126
21 retrieving revision 1.127
22 diff -u -r1.126 -r1.127
23 --- ChangeLog 26 Dec 2013 18:46:01 -0000 1.126
24 +++ ChangeLog 3 Jan 2014 21:41:12 -0000 1.127
25 @@ -1,6 +1,11 @@
26 # ChangeLog for sys-apps/hwids
27 -# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/hwids/ChangeLog,v 1.126 2013/12/26 18:46:01 flameeyes Exp $
29 +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/hwids/ChangeLog,v 1.127 2014/01/03 21:41:12 flameeyes Exp $
31 +
32 +*hwids-20140103 (03 Jan 2014)
33 +
34 + 03 Jan 2014; Diego E. Pettenò <flameeyes@g.o> +hwids-20140103.ebuild:
35 + Update.
36
37 *hwids-20131226 (26 Dec 2013)
38
39
40
41
42 1.1 sys-apps/hwids/hwids-20140103.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/hwids/hwids-20140103.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/hwids/hwids-20140103.ebuild?rev=1.1&content-type=text/plain
46
47 Index: hwids-20140103.ebuild
48 ===================================================================
49 # Copyright 1999-2014 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/sys-apps/hwids/hwids-20140103.ebuild,v 1.1 2014/01/03 21:41:12 flameeyes Exp $
52
53 EAPI=5
54 inherit udev eutils
55
56 DESCRIPTION="Hardware (PCI, USB, OUI, IAB) IDs databases"
57 HOMEPAGE="https://github.com/gentoo/hwids"
58 SRC_URI="https://github.com/gentoo/hwids/archive/${P}.tar.gz"
59
60 LICENSE="|| ( GPL-2 BSD ) public-domain"
61 SLOT="0"
62 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~amd64-linux ~arm-linux ~x86-linux"
63 IUSE="+udev"
64
65 DEPEND="udev? (
66 dev-lang/perl
67 >=virtual/udev-206
68 )"
69 RDEPEND="!<sys-apps/pciutils-3.1.9-r2
70 !<sys-apps/usbutils-005-r1"
71
72 S=${WORKDIR}/hwids-${P}
73
74 src_prepare() {
75 sed -i -e '/udevadm hwdb/d' Makefile || die
76 }
77
78 src_compile() {
79 emake UDEV=$(usex udev)
80 }
81
82 src_install() {
83 emake UDEV=$(usex udev) install \
84 DOCDIR="${EPREFIX}/usr/share/doc/${PF}" \
85 MISCDIR="${EPREFIX}/usr/share/misc" \
86 HWDBDIR="${EPREFIX}$(get_udevdir)/hwdb.d" \
87 DESTDIR="${D}"
88 }
89
90 pkg_postinst() {
91 if use udev; then
92 udevadm hwdb --update --root="${ROOT%/}"
93 # http://cgit.freedesktop.org/systemd/systemd/commit/?id=1fab57c209035f7e66198343074e9cee06718bda
94 if [[ ${ROOT} != "" ]] && [[ ${ROOT} != "/" ]]; then
95 return 0
96 fi
97 udevadm control --reload
98 fi
99 }