diff options
author | Diego Elio Pettenò <flameeyes@gentoo.org> | 2014-03-01 17:32:54 +0000 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@gentoo.org> | 2014-03-01 17:32:54 +0000 |
commit | a267f092fcc41da7e00ac8d7ed2cc538d9ccf1bb (patch) | |
tree | 92ea755fdcffc6687ea091e9879bd80d4ddff626 /sys-apps/hwids | |
parent | Fixed installation of doc (bug #449854) (diff) | |
download | gentoo-2-a267f092fcc41da7e00ac8d7ed2cc538d9ccf1bb.tar.gz gentoo-2-a267f092fcc41da7e00ac8d7ed2cc538d9ccf1bb.tar.bz2 gentoo-2-a267f092fcc41da7e00ac8d7ed2cc538d9ccf1bb.zip |
Version bump.
(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key D4301342)
Diffstat (limited to 'sys-apps/hwids')
-rw-r--r-- | sys-apps/hwids/ChangeLog | 7 | ||||
-rw-r--r-- | sys-apps/hwids/hwids-20140228.ebuild | 51 |
2 files changed, 57 insertions, 1 deletions
diff --git a/sys-apps/hwids/ChangeLog b/sys-apps/hwids/ChangeLog index e34be2a8e280..2a95fe29ae85 100644 --- a/sys-apps/hwids/ChangeLog +++ b/sys-apps/hwids/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for sys-apps/hwids # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/hwids/ChangeLog,v 1.134 2014/02/06 20:38:53 flameeyes Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/hwids/ChangeLog,v 1.135 2014/03/01 17:32:54 flameeyes Exp $ + +*hwids-20140228 (01 Mar 2014) + + 01 Mar 2014; Diego E. Pettenò <flameeyes@gentoo.org> +hwids-20140228.ebuild: + Version bump. *hwids-20140206 (06 Feb 2014) diff --git a/sys-apps/hwids/hwids-20140228.ebuild b/sys-apps/hwids/hwids-20140228.ebuild new file mode 100644 index 000000000000..ca734225635b --- /dev/null +++ b/sys-apps/hwids/hwids-20140228.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/hwids/hwids-20140228.ebuild,v 1.1 2014/03/01 17:32:54 flameeyes Exp $ + +EAPI=5 +inherit udev eutils + +DESCRIPTION="Hardware (PCI, USB, OUI, IAB) IDs databases" +HOMEPAGE="https://github.com/gentoo/hwids" +SRC_URI="https://github.com/gentoo/hwids/archive/${P}.tar.gz" + +LICENSE="|| ( GPL-2 BSD ) public-domain" +SLOT="0" +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" +IUSE="+udev" + +DEPEND="udev? ( + dev-lang/perl + >=virtual/udev-206 +)" +RDEPEND="!<sys-apps/pciutils-3.1.9-r2 + !<sys-apps/usbutils-005-r1" + +S=${WORKDIR}/hwids-${P} + +src_prepare() { + sed -i -e '/udevadm hwdb/d' Makefile || die +} + +src_compile() { + emake UDEV=$(usex udev) +} + +src_install() { + emake UDEV=$(usex udev) 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%/}" + # http://cgit.freedesktop.org/systemd/systemd/commit/?id=1fab57c209035f7e66198343074e9cee06718bda + if [[ ${ROOT} != "" ]] && [[ ${ROOT} != "/" ]]; then + return 0 + fi + udevadm control --reload + fi +} |