1 |
commit: 86a881033066925d6ed80a41a25654caad15a477 |
2 |
Author: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Mar 6 19:38:44 2020 +0000 |
4 |
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Mar 6 19:38:44 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=86a88103 |
7 |
|
8 |
sys-apps/hwids: bump to 20200306 |
9 |
|
10 |
Package-Manager: Portage-2.3.92_p3, Repoman-2.3.20_p118 |
11 |
Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org> |
12 |
|
13 |
sys-apps/hwids/Manifest | 1 + |
14 |
sys-apps/hwids/hwids-20200306.ebuild | 91 ++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 92 insertions(+) |
16 |
|
17 |
diff --git a/sys-apps/hwids/Manifest b/sys-apps/hwids/Manifest |
18 |
index 47089ef0df0..ccf1a31f162 100644 |
19 |
--- a/sys-apps/hwids/Manifest |
20 |
+++ b/sys-apps/hwids/Manifest |
21 |
@@ -2,3 +2,4 @@ DIST hwids-20190316.tar.gz 3312959 BLAKE2B d9f4c7170979c404a69ca0b51903af34db01a |
22 |
DIST hwids-20190818.tar.gz 3407208 BLAKE2B c2a0098cba4a34210461a2781f325a95f18696c1917ff3a1c26a2f56383e9edd087ab6b3a1a173a92df829fc250cf460d915a98298f9c38a71396bf232916245 SHA512 74086f96152482af3c9caabc729f34d193cc619aae88d44aa0472d674b7533ab806b13243c95bfa04417bdd40e3bb7069b766c2c0824f19d0c62385b043a01c2 |
23 |
DIST hwids-20191025.tar.gz 3443988 BLAKE2B 0352f1568d7ceeb2c599d789f96a3175703f3c86240188beb9a080eabb6e7659aeeadf193f15050519fb64c58ee8d8832919cf6922b5017861b32be543235a03 SHA512 6f637ca8c4d6b1261c5c2eccd8d1a64ab750f4c36f3d435b50b75949c15e571d83bc61dd6a14e777b53d383d7d02c34f616cc6a62d005db3d965b33b4121deca |
24 |
DIST hwids-20200204.tar.gz 3495191 BLAKE2B 23075b6728d9b0e020be45729d0df4cef95cac5e912e646b612266337d1add59c87a1031e6672c5b6eb23e13c26e6299b62a5886aa25017242a86fd474c1e9ae SHA512 1d2a9baaa7ab64575a3d9b98ae4df9060cb8593ae752365296dd53b18bc5996170bbfe1c5b4b1ffc24b28e3dbaa7c321c4fa333bbf91449a6ca7b187cbe23741 |
25 |
+DIST hwids-20200306.tar.gz 3512152 BLAKE2B 6a6ee48598e72f97a90bff8f45aacb699218570ede5b60ed119ebae78de6cd4b92e02f96cf57c83710da699be9a7dcdfdef8d404539e04b664298874b35e54ce SHA512 eff1d2783925ca459b387fbaa5cf68a98aa4209ab8509ad92a902b4d02cc7f4a47e5506c2beed4c792d24a8ab636ad77b376a92b59ae4f605d1b5258350ff250 |
26 |
|
27 |
diff --git a/sys-apps/hwids/hwids-20200306.ebuild b/sys-apps/hwids/hwids-20200306.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..bca039bc189 |
30 |
--- /dev/null |
31 |
+++ b/sys-apps/hwids/hwids-20200306.ebuild |
32 |
@@ -0,0 +1,91 @@ |
33 |
+# Copyright 2012-2020 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=7 |
37 |
+ |
38 |
+inherit udev |
39 |
+ |
40 |
+DESCRIPTION="Hardware (PCI, USB, OUI, IAB) IDs databases" |
41 |
+HOMEPAGE="https://github.com/gentoo/hwids" |
42 |
+if [[ ${PV} == 99999999 ]]; then |
43 |
+ PYTHON_COMPAT=( python3_{6,7} ) |
44 |
+ inherit git-r3 python-any-r1 |
45 |
+ EGIT_REPO_URI="https://github.com/gentoo/hwids.git" |
46 |
+else |
47 |
+ SRC_URI="https://github.com/gentoo/hwids/archive/${P}.tar.gz" |
48 |
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux" |
49 |
+fi |
50 |
+ |
51 |
+LICENSE="|| ( GPL-2 BSD ) public-domain" |
52 |
+SLOT="0" |
53 |
+IUSE="+net +pci +udev +usb" |
54 |
+ |
55 |
+RDEPEND=" |
56 |
+ udev? ( virtual/udev ) |
57 |
+ !<sys-apps/pciutils-3.1.9-r2 |
58 |
+ !<sys-apps/usbutils-005-r1 |
59 |
+" |
60 |
+ |
61 |
+if [[ ${PV} == 99999999 ]]; then |
62 |
+ BDEPEND=" |
63 |
+ net-misc/curl |
64 |
+ udev? ( $(python_gen_any_dep 'dev-python/pyparsing[${PYTHON_USEDEP}]') ) |
65 |
+ " |
66 |
+ python_check_deps() { |
67 |
+ if use udev; then |
68 |
+ has_version -b "dev-python/pyparsing[${PYTHON_USEDEP}]" |
69 |
+ fi |
70 |
+ } |
71 |
+else |
72 |
+ S=${WORKDIR}/hwids-${P} |
73 |
+fi |
74 |
+ |
75 |
+pkg_setup() { |
76 |
+ : |
77 |
+} |
78 |
+ |
79 |
+src_unpack() { |
80 |
+ if [[ ${PV} == 99999999 ]]; then |
81 |
+ git-r3_src_unpack |
82 |
+ cd "${S}" || die |
83 |
+ emake fetch |
84 |
+ else |
85 |
+ default |
86 |
+ fi |
87 |
+} |
88 |
+ |
89 |
+src_prepare() { |
90 |
+ default |
91 |
+ sed -i -e '/udevadm hwdb/d' Makefile || die |
92 |
+} |
93 |
+ |
94 |
+_emake() { |
95 |
+ emake \ |
96 |
+ NET=$(usex net) \ |
97 |
+ PCI=$(usex pci) \ |
98 |
+ UDEV=$(usex udev) \ |
99 |
+ USB=$(usex usb) \ |
100 |
+ "$@" |
101 |
+} |
102 |
+ |
103 |
+src_compile() { |
104 |
+ if [[ ${PV} == 99999999 ]] && use udev; then |
105 |
+ python_setup |
106 |
+ _emake udev-hwdb |
107 |
+ fi |
108 |
+ _emake |
109 |
+} |
110 |
+ |
111 |
+src_install() { |
112 |
+ _emake install \ |
113 |
+ DOCDIR="${EPREFIX}/usr/share/doc/${PF}" \ |
114 |
+ MISCDIR="${EPREFIX}/usr/share/misc" \ |
115 |
+ HWDBDIR="${EPREFIX}$(get_udevdir)/hwdb.d" \ |
116 |
+ DESTDIR="${D}" |
117 |
+} |
118 |
+ |
119 |
+pkg_postinst() { |
120 |
+ if use udev; then |
121 |
+ udevadm hwdb --update --root="${ROOT}" |
122 |
+ fi |
123 |
+} |