diff options
author | Mike Gilbert <floppym@gentoo.org> | 2017-03-28 17:04:12 -0400 |
---|---|---|
committer | Mike Gilbert <floppym@gentoo.org> | 2017-03-28 17:04:46 -0400 |
commit | fd3f938bd4f6a801ec2afd0b2f42b4a7c7143681 (patch) | |
tree | ac0136be9c62fc5c243e0dbd8510088a29b9579f | |
parent | dev-python/gevent: Remove installation of changelog (diff) | |
download | gentoo-fd3f938bd4f6a801ec2afd0b2f42b4a7c7143681.tar.gz gentoo-fd3f938bd4f6a801ec2afd0b2f42b4a7c7143681.tar.bz2 gentoo-fd3f938bd4f6a801ec2afd0b2f42b4a7c7143681.zip |
sys-apps/hwids: bump
Package-Manager: Portage-2.3.5_p2, Repoman-2.3.2_p32
-rw-r--r-- | sys-apps/hwids/Manifest | 1 | ||||
-rw-r--r-- | sys-apps/hwids/hwids-20170328.ebuild | 74 | ||||
-rw-r--r-- | sys-apps/hwids/hwids-99999999.ebuild | 2 |
3 files changed, 76 insertions, 1 deletions
diff --git a/sys-apps/hwids/Manifest b/sys-apps/hwids/Manifest index 709d2e1ac07d..7957ff8f1fed 100644 --- a/sys-apps/hwids/Manifest +++ b/sys-apps/hwids/Manifest @@ -3,3 +3,4 @@ DIST hwids-20160306.tar.gz 1900745 SHA256 d5ae6937e87c4ae0a4dad84b8a917434831eda DIST hwids-20160421.tar.gz 1916501 SHA256 dcdfbb732e08ca3822c98599dc0a04c6dad092ee46441f9afec9e42d9a978d5f SHA512 7097dc74cd1db3e9695502d4ca49ff0c3a59d169cd15dd6d03841900a9c5e13f89becc12bbc1a673386c6f7620a916e0edb7c5704990991beb21fc21d5deb673 WHIRLPOOL 42641b19601ba62d2f136d263342a39e56147cb89f557408677868215b83cf8466a8d5bb9127f28113c6097d08e05a194b4e78c8e6dd2222371f180d1b3cff24 DIST hwids-20160801.tar.gz 1957408 SHA256 404c1fca03d11c90e21de9e3bec10600b0bbaefede1dcb71ff520bff8dfb6aec SHA512 c233f9a44e813efbef302c0d7aefff9168b8bb6f48e537ae6568ca89944f69cde3fd9d618019fdd8fbe442ef4a85bfcfe762b9837fea82d8f219155ff5551f77 WHIRLPOOL b24da4e6e6c9b5a8894e2b42cf29ae2ee8c40ea198290aa87e622b2db16f50c6c0f4e059aa8f2501e2a8ebc6e5e04372ea224bdf17bdcadbe94f6f73470c30ec DIST hwids-20161103.tar.gz 2000437 SHA256 3353680623b97ffb3e73486dac7e9d61cb58889544aeefd6bbe12d51189e4313 SHA512 8bdd01a27b18661a186d9f04a5e30b28d73c13c8b1f10f26ccb8103857dcd7f74ebde228f0be8c7b87cc29087315c60e56bfedaab934f51cb78f8b710057961a WHIRLPOOL d2bcb220f9bbdce0e567c5da968c8980d336d2716b7974e5cf4ff477e5c87892f6fd5a9ca5b07620ba789d70c4cc75870d42f3efab9d05629c34161a2ececa6a +DIST hwids-20170328.tar.gz 2049249 SHA256 e46abb9ccb54aff728bb0502405aa700974a2a7366d3bb257967ce60d847cfb3 SHA512 ffccbcda78f856b93026102d1d7f62f4639910671c63e30471c990b1029db94b542c555b6ad69820f8a91a45ef9d52c320b9767d38ff08b6e72c041a28e6f0f3 WHIRLPOOL c08493ad1e96c53ec1cc7b7df46e6e8f9db982bcdda57595f7a51820b43ab955a40760adfa9d03bfbc283a05dffe18075d0244a638b5ecf94a4068906f2ffc24 diff --git a/sys-apps/hwids/hwids-20170328.ebuild b/sys-apps/hwids/hwids-20170328.ebuild new file mode 100644 index 000000000000..13f25bb11b32 --- /dev/null +++ b/sys-apps/hwids/hwids-20170328.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +inherit udev + +DESCRIPTION="Hardware (PCI, USB, OUI, IAB) IDs databases" +HOMEPAGE="https://github.com/gentoo/hwids" +if [[ ${PV} == "99999999" ]]; then + inherit git-r3 + EGIT_REPO_URI="${HOMEPAGE}.git" +else + SRC_URI="${HOMEPAGE}/archive/${P}.tar.gz" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux" +fi + +LICENSE="|| ( GPL-2 BSD ) public-domain" +SLOT="0" +IUSE="+net +pci +udev +usb" + +DEPEND="udev? ( + dev-lang/perl + >=virtual/udev-206 +)" +[[ ${PV} == "99999999" ]] && DEPEND+=" udev? ( net-misc/curl )" +RDEPEND="!<sys-apps/pciutils-3.1.9-r2 + !<sys-apps/usbutils-005-r1" + +if [[ ${PV} != 99999999 ]]; then + S=${WORKDIR}/hwids-${P} +fi + +src_unpack() { + if [[ ${PV} == 99999999 ]]; then + git-r3_src_unpack + cd "${S}" || die + emake fetch + else + default + fi +} + +src_prepare() { + default + sed -i -e '/udevadm hwdb/d' Makefile || die +} + +_emake() { + emake \ + NET=$(usex net) \ + PCI=$(usex pci) \ + UDEV=$(usex udev) \ + USB=$(usex usb) \ + "$@" +} + +src_compile() { + _emake +} + +src_install() { + _emake install \ + DOCDIR="${EPREFIX}/usr/share/doc/${PF}" \ + MISCDIR="${EPREFIX}/usr/share/misc" \ + HWDBDIR="${EPREFIX}$(get_udevdir)/hwdb.d" \ + DESTDIR="${D}" +} + +pkg_postinst() { + if use udev; then + udevadm hwdb --update --root="${ROOT%/}" + fi +} diff --git a/sys-apps/hwids/hwids-99999999.ebuild b/sys-apps/hwids/hwids-99999999.ebuild index 21e34846a7e0..13f25bb11b32 100644 --- a/sys-apps/hwids/hwids-99999999.ebuild +++ b/sys-apps/hwids/hwids-99999999.ebuild @@ -3,7 +3,7 @@ EAPI="6" -inherit udev eutils +inherit udev DESCRIPTION="Hardware (PCI, USB, OUI, IAB) IDs databases" HOMEPAGE="https://github.com/gentoo/hwids" |