mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
sys-apps/hwids: bump to v20180518
Package-Manager: Portage-2.3.40, Repoman-2.3.9
This commit is contained in:
@@ -2,3 +2,4 @@ DIST hwids-20170328.tar.gz 2049249 BLAKE2B b9dd6dc98c9eafd4f1eb1e129a53bf10ebc4b
|
||||
DIST hwids-20170715.tar.gz 2091853 BLAKE2B 66e930346176d3501ba0e5f802b7e44fe327a4bbfcd250ac3b96259b3c2eefbade8b0555fcffeafc35e46ce07551bdc6d26d25d9913d7a584945b52f7e744dfe SHA512 6f1d2e3d7b7fc260f02b3cc87b46385292503dda2a46dea4e69b02915e9d411e9682fb98ca921eb45289e416320a8ef46a3df0753f8f820d20c719663076bd88
|
||||
DIST hwids-20171003.tar.gz 3035908 BLAKE2B 8ecce99f6a6233b3dd79e1663053b6718fd8b4975a02e5735c1b8483214193bcd45a606145a7709f0b9021dd69e0757361bd568f4ba2d66a52641f691aa7f50a SHA512 6a05963f1883cfeb774671931a32eb9322ead145d4d8aa2fa791e90fc3c823a0b3baeaaa4ce84de0e6a10dcd7f1b5943f6d2cab8790d21e8f34ca1d403598a8a
|
||||
DIST hwids-20180315.tar.gz 3117949 BLAKE2B 34b6349d7adf38da8591a0f75e98ce09f0217bb284d1bdc70d7c1bd0a13f0c21b46b2a40ea363dfcdb7524e2a06e94d8ca3a63f5dce6f4afac2b20d05229e944 SHA512 2c52b88b74d231f7c563079b02fdbe29ff70c4df5aae64f1241ab0e1bd3ab9c3ca925e102474e32d3dc8dcb833e3451f0698024a8fff808a987ce468af281898
|
||||
DIST hwids-20180518.tar.gz 3150553 BLAKE2B e7d1be88349d04dac09e44bba728d1b371be66628d0143a5ab9d98f9ac5ce14bc21c272bdc93e88cb2af8f640f2f5d0497be8a33a136bcb8e69112a998be3827 SHA512 5a8e65b226026b59008c714df79309a888f728198ac5ab71c5908b69a1fd5365a0834afab0e38423affbda59ded04b662a09dc544b4d96695671f562aa0c5ec1
|
||||
|
||||
92
sys-apps/hwids/hwids-20180518.ebuild
Normal file
92
sys-apps/hwids/hwids-20180518.ebuild
Normal file
@@ -0,0 +1,92 @@
|
||||
# Copyright 1999-2018 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
|
||||
PYTHON_COMPAT=( python3_6 )
|
||||
inherit git-r3 python-any-r1
|
||||
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=""
|
||||
RDEPEND="
|
||||
udev? ( virtual/udev )
|
||||
!<sys-apps/pciutils-3.1.9-r2
|
||||
!<sys-apps/usbutils-005-r1
|
||||
"
|
||||
|
||||
if [[ ${PV} == 99999999 ]]; then
|
||||
DEPEND+="
|
||||
net-misc/curl
|
||||
udev? ( $(python_gen_any_dep 'dev-python/pyparsing[${PYTHON_USEDEP}]') )
|
||||
"
|
||||
python_check_deps() {
|
||||
if use udev; then
|
||||
has_version --host-root "dev-python/pyparsing[${PYTHON_USEDEP}]"
|
||||
fi
|
||||
}
|
||||
else
|
||||
S=${WORKDIR}/hwids-${P}
|
||||
fi
|
||||
|
||||
pkg_setup() {
|
||||
:
|
||||
}
|
||||
|
||||
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() {
|
||||
if [[ ${PV} == 99999999 ]] && use udev; then
|
||||
python_setup
|
||||
_emake udev-hwdb
|
||||
fi
|
||||
_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
|
||||
}
|
||||
Reference in New Issue
Block a user