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-20140927.ebuild ChangeLog hwids-20140602.ebuild hwids-20130915.1.ebuild hwids-20140509.ebuild hwids-20140602-r1.ebuild
Date: Sat, 27 Sep 2014 13:02:16
Message-Id: 20140927130212.6762766AE@oystercatcher.gentoo.org
1 flameeyes 14/09/27 13:02:12
2
3 Modified: ChangeLog
4 Added: hwids-20140927.ebuild
5 Removed: hwids-20140602.ebuild hwids-20130915.1.ebuild
6 hwids-20140509.ebuild hwids-20140602-r1.ebuild
7 Log:
8 Version bump and clean old.
9
10 (Portage version: 2.2.12/cvs/Linux x86_64, signed Manifest commit with key 1CD13C8AD4301342)
11
12 Revision Changes Path
13 1.146 sys-apps/hwids/ChangeLog
14
15 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/hwids/ChangeLog?rev=1.146&view=markup
16 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/hwids/ChangeLog?rev=1.146&content-type=text/plain
17 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/hwids/ChangeLog?r1=1.145&r2=1.146
18
19 Index: ChangeLog
20 ===================================================================
21 RCS file: /var/cvsroot/gentoo-x86/sys-apps/hwids/ChangeLog,v
22 retrieving revision 1.145
23 retrieving revision 1.146
24 diff -u -r1.145 -r1.146
25 --- ChangeLog 27 Jun 2014 18:50:10 -0000 1.145
26 +++ ChangeLog 27 Sep 2014 13:02:12 -0000 1.146
27 @@ -1,6 +1,13 @@
28 # ChangeLog for sys-apps/hwids
29 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
30 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/hwids/ChangeLog,v 1.145 2014/06/27 18:50:10 flameeyes Exp $
31 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/hwids/ChangeLog,v 1.146 2014/09/27 13:02:12 flameeyes Exp $
32 +
33 +*hwids-20140927 (27 Sep 2014)
34 +
35 + 27 Sep 2014; Diego E. Pettenò <flameeyes@g.o> +hwids-20140927.ebuild,
36 + -hwids-20130915.1.ebuild, -hwids-20140509.ebuild, -hwids-20140602-r1.ebuild,
37 + -hwids-20140602.ebuild:
38 + Version bump and clean old.
39
40 *hwids-20140627 (27 Jun 2014)
41
42
43
44
45 1.1 sys-apps/hwids/hwids-20140927.ebuild
46
47 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/hwids/hwids-20140927.ebuild?rev=1.1&view=markup
48 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/hwids/hwids-20140927.ebuild?rev=1.1&content-type=text/plain
49
50 Index: hwids-20140927.ebuild
51 ===================================================================
52 # Copyright 1999-2014 Gentoo Foundation
53 # Distributed under the terms of the GNU General Public License v2
54 # $Header: /var/cvsroot/gentoo-x86/sys-apps/hwids/hwids-20140927.ebuild,v 1.1 2014/09/27 13:02:12 flameeyes Exp $
55
56 EAPI=5
57 inherit udev eutils
58
59 DESCRIPTION="Hardware (PCI, USB, OUI, IAB) IDs databases"
60 HOMEPAGE="https://github.com/gentoo/hwids"
61 if [[ ${PV} == "99999999" ]]; then
62 EGIT_REPO_URI="${HOMEPAGE}.git"
63 inherit git-2
64 else
65 SRC_URI="${HOMEPAGE}/archive/${P}.tar.gz"
66 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~amd64-linux ~arm-linux ~x86-linux"
67 fi
68
69 LICENSE="|| ( GPL-2 BSD ) public-domain"
70 SLOT="0"
71 IUSE="+net +pci +udev +usb"
72
73 DEPEND="udev? (
74 dev-lang/perl
75 >=virtual/udev-206
76 )"
77 [[ ${PV} == "99999999" ]] && DEPEND+=" udev? ( net-misc/curl )"
78 RDEPEND="!<sys-apps/pciutils-3.1.9-r2
79 !<sys-apps/usbutils-005-r1"
80
81 S=${WORKDIR}/hwids-${P}
82
83 src_prepare() {
84 [[ ${PV} == "99999999" ]] && emake fetch
85
86 sed -i -e '/udevadm hwdb/d' Makefile || die
87 }
88
89 _emake() {
90 emake \
91 NET=$(usex net) \
92 PCI=$(usex pci) \
93 UDEV=$(usex udev) \
94 USB=$(usex usb) \
95 "$@"
96 }
97
98 src_compile() {
99 _emake
100 }
101
102 src_install() {
103 _emake install \
104 DOCDIR="${EPREFIX}/usr/share/doc/${PF}" \
105 MISCDIR="${EPREFIX}/usr/share/misc" \
106 HWDBDIR="${EPREFIX}$(get_udevdir)/hwdb.d" \
107 DESTDIR="${D}"
108 }
109
110 pkg_postinst() {
111 if use udev; then
112 udevadm hwdb --update --root="${ROOT%/}"
113 # http://cgit.freedesktop.org/systemd/systemd/commit/?id=1fab57c209035f7e66198343074e9cee06718bda
114 [ "${ROOT:-/}" = "/" ] && udevadm control --reload
115 fi
116 }