nvme-cli-1.1.ebuild 579 B

1234567891011121314151617181920212223242526
  1. # Copyright 1999-2016 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI="6"
  4. inherit toolchain-funcs
  5. DESCRIPTION="NVM-Express user space tooling for Linux"
  6. HOMEPAGE="https://github.com/linux-nvme/nvme-cli"
  7. SRC_URI="https://github.com/linux-nvme/nvme-cli/archive/v${PV}.tar.gz -> ${P}.tar.gz"
  8. LICENSE="GPL-2"
  9. SLOT="0"
  10. KEYWORDS="~amd64 ~x86"
  11. IUSE="udev"
  12. RDEPEND="sys-libs/libcap:=
  13. udev? ( virtual/libudev:= )"
  14. DEPEND="${RDEPEND}"
  15. src_configure() {
  16. tc-export CC
  17. export PREFIX="${EPREFIX}/usr"
  18. MAKEOPTS+=" LIBUDEV=$(usex udev 0 1)"
  19. }