Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-apps/hwids: metadata.xml hwids-20140602-r1.ebuild hwids-99999999.ebuild ChangeLog
Date: Fri, 06 Jun 2014 18:20:11
Message-Id: 20140606182005.642642004E@flycatcher.gentoo.org
1 vapier 14/06/06 18:20:05
2
3 Modified: metadata.xml hwids-99999999.ebuild ChangeLog
4 Added: hwids-20140602-r1.ebuild
5 Log:
6 Add USE flags to control the install of the net/pci/usb databases. Unify the live & release ebuilds.
7
8 (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key D2E96200)
9
10 Revision Changes Path
11 1.2 sys-apps/hwids/metadata.xml
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/hwids/metadata.xml?rev=1.2&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/hwids/metadata.xml?rev=1.2&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/hwids/metadata.xml?r1=1.1&r2=1.2
16
17 Index: metadata.xml
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-apps/hwids/metadata.xml,v
20 retrieving revision 1.1
21 retrieving revision 1.2
22 diff -u -r1.1 -r1.2
23 --- metadata.xml 1 Apr 2012 01:46:52 -0000 1.1
24 +++ metadata.xml 6 Jun 2014 18:20:05 -0000 1.2
25 @@ -8,4 +8,10 @@
26 <maintainer>
27 <email>gregkh@g.o</email>
28 </maintainer>
29 +<use>
30 + <flag name='net'>Install the oui.txt and iab.txt databases</flag>
31 + <flag name='pci'>Install the pci.ids database</flag>
32 + <flag name='usb'>Install the usb.ids database</flag>
33 + <flag name='udev'>Install hwdb.d rules for udev</flag>
34 +</use>
35 </pkgmetadata>
36
37
38
39 1.25 sys-apps/hwids/hwids-99999999.ebuild
40
41 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/hwids/hwids-99999999.ebuild?rev=1.25&view=markup
42 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/hwids/hwids-99999999.ebuild?rev=1.25&content-type=text/plain
43 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/hwids/hwids-99999999.ebuild?r1=1.24&r2=1.25
44
45 Index: hwids-99999999.ebuild
46 ===================================================================
47 RCS file: /var/cvsroot/gentoo-x86/sys-apps/hwids/hwids-99999999.ebuild,v
48 retrieving revision 1.24
49 retrieving revision 1.25
50 diff -u -r1.24 -r1.25
51 --- hwids-99999999.ebuild 30 May 2014 14:41:46 -0000 1.24
52 +++ hwids-99999999.ebuild 6 Jun 2014 18:20:05 -0000 1.25
53 @@ -1,39 +1,55 @@
54 # Copyright 1999-2014 Gentoo Foundation
55 # Distributed under the terms of the GNU General Public License v2
56 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/hwids/hwids-99999999.ebuild,v 1.24 2014/05/30 14:41:46 vapier Exp $
57 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/hwids/hwids-99999999.ebuild,v 1.25 2014/06/06 18:20:05 vapier Exp $
58
59 EAPI=5
60 -inherit udev eutils git-2
61 +inherit udev eutils
62
63 DESCRIPTION="Hardware (PCI, USB, OUI, IAB) IDs databases"
64 HOMEPAGE="https://github.com/gentoo/hwids"
65 -EGIT_REPO_URI="${HOMEPAGE}.git"
66 +if [[ ${PV} == "99999999" ]]; then
67 + EGIT_REPO_URI="${HOMEPAGE}.git"
68 + inherit git-2
69 +else
70 + SRC_URI="${HOMEPAGE}/archive/${P}.tar.gz"
71 + 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"
72 +fi
73
74 LICENSE="|| ( GPL-2 BSD ) public-domain"
75 SLOT="0"
76 -KEYWORDS=""
77 -IUSE="+udev"
78 +IUSE="+net +pci +udev +usb"
79
80 DEPEND="udev? (
81 - net-misc/curl
82 dev-lang/perl
83 >=virtual/udev-206
84 )"
85 +[[ ${PV} == "99999999" ]] && DEPEND+=" udev? ( net-misc/curl )"
86 RDEPEND="!<sys-apps/pciutils-3.1.9-r2
87 !<sys-apps/usbutils-005-r1"
88
89 +S=${WORKDIR}/hwids-${P}
90 +
91 src_prepare() {
92 - emake fetch
93 + [[ ${PV} == "99999999" ]] && emake fetch
94
95 sed -i -e '/udevadm hwdb/d' Makefile || die
96 }
97
98 +_emake() {
99 + emake \
100 + NET=$(usex net) \
101 + PCI=$(usex pci) \
102 + UDEV=$(usex udev) \
103 + USB=$(usex usb) \
104 + "$@"
105 +}
106 +
107 src_compile() {
108 - emake UDEV=$(usex udev)
109 + _emake
110 }
111
112 src_install() {
113 - emake UDEV=$(usex udev) install \
114 + _emake install \
115 DOCDIR="${EPREFIX}/usr/share/doc/${PF}" \
116 MISCDIR="${EPREFIX}/usr/share/misc" \
117 HWDBDIR="${EPREFIX}$(get_udevdir)/hwdb.d" \
118
119
120
121 1.144 sys-apps/hwids/ChangeLog
122
123 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/hwids/ChangeLog?rev=1.144&view=markup
124 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/hwids/ChangeLog?rev=1.144&content-type=text/plain
125 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/hwids/ChangeLog?r1=1.143&r2=1.144
126
127 Index: ChangeLog
128 ===================================================================
129 RCS file: /var/cvsroot/gentoo-x86/sys-apps/hwids/ChangeLog,v
130 retrieving revision 1.143
131 retrieving revision 1.144
132 diff -u -r1.143 -r1.144
133 --- ChangeLog 2 Jun 2014 11:58:34 -0000 1.143
134 +++ ChangeLog 6 Jun 2014 18:20:05 -0000 1.144
135 @@ -1,6 +1,13 @@
136 # ChangeLog for sys-apps/hwids
137 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
138 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/hwids/ChangeLog,v 1.143 2014/06/02 11:58:34 flameeyes Exp $
139 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/hwids/ChangeLog,v 1.144 2014/06/06 18:20:05 vapier Exp $
140 +
141 +*hwids-20140602-r1 (06 Jun 2014)
142 +
143 + 06 Jun 2014; Mike Frysinger <vapier@g.o> +hwids-20140602-r1.ebuild,
144 + hwids-99999999.ebuild, metadata.xml:
145 + Add USE flags to control the install of the net/pci/usb databases. Unify the
146 + live & release ebuilds.
147
148 *hwids-20140602 (02 Jun 2014)
149
150
151
152
153 1.1 sys-apps/hwids/hwids-20140602-r1.ebuild
154
155 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/hwids/hwids-20140602-r1.ebuild?rev=1.1&view=markup
156 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/hwids/hwids-20140602-r1.ebuild?rev=1.1&content-type=text/plain
157
158 Index: hwids-20140602-r1.ebuild
159 ===================================================================
160 # Copyright 1999-2014 Gentoo Foundation
161 # Distributed under the terms of the GNU General Public License v2
162 # $Header: /var/cvsroot/gentoo-x86/sys-apps/hwids/hwids-20140602-r1.ebuild,v 1.1 2014/06/06 18:20:05 vapier Exp $
163
164 EAPI=5
165 inherit udev eutils
166
167 DESCRIPTION="Hardware (PCI, USB, OUI, IAB) IDs databases"
168 HOMEPAGE="https://github.com/gentoo/hwids"
169 if [[ ${PV} == "99999999" ]]; then
170 EGIT_REPO_URI="${HOMEPAGE}.git"
171 inherit git-2
172 else
173 SRC_URI="${HOMEPAGE}/archive/${P}.tar.gz"
174 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"
175 fi
176
177 LICENSE="|| ( GPL-2 BSD ) public-domain"
178 SLOT="0"
179 IUSE="+net +pci +udev +usb"
180
181 DEPEND="udev? (
182 dev-lang/perl
183 >=virtual/udev-206
184 )"
185 [[ ${PV} == "99999999" ]] && DEPEND+=" udev? ( net-misc/curl )"
186 RDEPEND="!<sys-apps/pciutils-3.1.9-r2
187 !<sys-apps/usbutils-005-r1"
188
189 S=${WORKDIR}/hwids-${P}
190
191 src_prepare() {
192 [[ ${PV} == "99999999" ]] && emake fetch
193
194 sed -i -e '/udevadm hwdb/d' Makefile || die
195 }
196
197 _emake() {
198 emake \
199 NET=$(usex net) \
200 PCI=$(usex pci) \
201 UDEV=$(usex udev) \
202 USB=$(usex usb) \
203 "$@"
204 }
205
206 src_compile() {
207 _emake
208 }
209
210 src_install() {
211 _emake install \
212 DOCDIR="${EPREFIX}/usr/share/doc/${PF}" \
213 MISCDIR="${EPREFIX}/usr/share/misc" \
214 HWDBDIR="${EPREFIX}$(get_udevdir)/hwdb.d" \
215 DESTDIR="${D}"
216 }
217
218 pkg_postinst() {
219 if use udev; then
220 udevadm hwdb --update --root="${ROOT%/}"
221 # http://cgit.freedesktop.org/systemd/systemd/commit/?id=1fab57c209035f7e66198343074e9cee06718bda
222 [ "${ROOT:-/}" = "/" ] && udevadm control --reload
223 fi
224 }