sys-power/uhubctl: initial ebuild
authorZero_Chaos <zerochaos@gentoo.org>
Thu, 7 Dec 2017 16:37:32 +0000 (11:37 -0500)
committerZero_Chaos <zerochaos@gentoo.org>
Thu, 7 Dec 2017 16:37:46 +0000 (11:37 -0500)
Package-Manager: Portage-2.3.16, Repoman-2.3.6

sys-power/uhubctl/Manifest [new file with mode: 0644]
sys-power/uhubctl/metadata.xml [new file with mode: 0644]
sys-power/uhubctl/uhubctl-1.8.ebuild [new file with mode: 0644]

diff --git a/sys-power/uhubctl/Manifest b/sys-power/uhubctl/Manifest
new file mode 100644 (file)
index 0000000..cbc78b8
--- /dev/null
@@ -0,0 +1 @@
+DIST v1.8.tar.gz 16158 BLAKE2B 1203e9711716987c0f60786cfe48a92a9a9a78f4bceb3851889a305a1289772375c6a512c361ba1e3e937fa1cb2f64e07365ef494e248e07a7a4f45f9e78c451 SHA512 fcc88ca47467e8e6085a75461495393306ddff1d6f7c9184c129bbdd044451b6430ac916f648b9f71c798054373f3d9102185e3d0c8f355c47e2574a1984ec9d
diff --git a/sys-power/uhubctl/metadata.xml b/sys-power/uhubctl/metadata.xml
new file mode 100644 (file)
index 0000000..b4ca965
--- /dev/null
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+       <maintainer type="person">
+               <name>Rick Farina</name>
+               <email>zerochaos@gentoo.org</email>
+       </maintainer>
+       <longdescription lang="en">
+       </longdescription>
+</pkgmetadata>
diff --git a/sys-power/uhubctl/uhubctl-1.8.ebuild b/sys-power/uhubctl/uhubctl-1.8.ebuild
new file mode 100644 (file)
index 0000000..90759ed
--- /dev/null
@@ -0,0 +1,21 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="USB hub per-port power control"
+HOMEPAGE="https://github.com/mvp/uhubctl"
+SRC_URI="https://github.com/mvp/uhubctl/archive/v${PV}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~arm"
+IUSE=""
+
+DEPEND="dev-libs/libusb:1"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+       sed -i "s#\$(shell git describe --abbrev=4 --dirty --always --tags)#${PV}#" Makefile || die
+       eapply_user
+}