net-libs/libiio: import from pentoo
authorZero_Chaos <zerochaos@gentoo.org>
Tue, 4 Sep 2018 20:53:00 +0000 (20:53 +0000)
committerZero_Chaos <zerochaos@gentoo.org>
Tue, 4 Sep 2018 20:54:28 +0000 (20:54 +0000)
Package-Manager: Portage-2.3.48, Repoman-2.3.10

net-libs/libiio/Manifest [new file with mode: 0644]
net-libs/libiio/libiio-0.15-r1.ebuild [new file with mode: 0644]
net-libs/libiio/libiio-9999.ebuild [new file with mode: 0644]
net-libs/libiio/metadata.xml [new file with mode: 0644]

diff --git a/net-libs/libiio/Manifest b/net-libs/libiio/Manifest
new file mode 100644 (file)
index 0000000..e9bb388
--- /dev/null
@@ -0,0 +1 @@
+DIST libiio-0.15.tar.gz 192704 BLAKE2B 7eeaad1535f69ca11fe3f716ac70a161f98d24513fe910cb34ca11a0b63c07f5b5321447c96c247cc9a76ed838d806fa9f160e87fd10f1aeac5025edfa16b8f6 SHA512 7e3ca1a8b97486f20baf38afecfd26c626bed1fef535d88020d11eb4e49fc1226390c6383799222f6811c13b8b7e5cc77fb899c776c150a9d1c2024bf8ab338b
diff --git a/net-libs/libiio/libiio-0.15-r1.ebuild b/net-libs/libiio/libiio-0.15-r1.ebuild
new file mode 100644 (file)
index 0000000..64bf167
--- /dev/null
@@ -0,0 +1,27 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils
+
+DESCRIPTION="Library for interfacing with IIO devices"
+HOMEPAGE="https://github.com/analogdevicesinc/libiio"
+if [ "${PV}" = "9999" ]; then
+       EGIT_REPO_URI="https://github.com/analogdevicesinc/libiio"
+       inherit git-r3
+       KEYWORDS=""
+else
+       SRC_URI="https://github.com/analogdevicesinc/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+       KEYWORDS="~amd64 ~x86"
+fi
+
+LICENSE="LGPL-2.1"
+SLOT="0/${PV}"
+IUSE="+aio +avahi"
+
+RDEPEND="dev-libs/libxml2:=
+       virtual/libusb:1=
+       aio? ( dev-libs/libaio )
+       avahi? ( net-dns/avahi )"
+DEPEND="${RDEPEND}"
diff --git a/net-libs/libiio/libiio-9999.ebuild b/net-libs/libiio/libiio-9999.ebuild
new file mode 100644 (file)
index 0000000..64bf167
--- /dev/null
@@ -0,0 +1,27 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils
+
+DESCRIPTION="Library for interfacing with IIO devices"
+HOMEPAGE="https://github.com/analogdevicesinc/libiio"
+if [ "${PV}" = "9999" ]; then
+       EGIT_REPO_URI="https://github.com/analogdevicesinc/libiio"
+       inherit git-r3
+       KEYWORDS=""
+else
+       SRC_URI="https://github.com/analogdevicesinc/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+       KEYWORDS="~amd64 ~x86"
+fi
+
+LICENSE="LGPL-2.1"
+SLOT="0/${PV}"
+IUSE="+aio +avahi"
+
+RDEPEND="dev-libs/libxml2:=
+       virtual/libusb:1=
+       aio? ( dev-libs/libaio )
+       avahi? ( net-dns/avahi )"
+DEPEND="${RDEPEND}"
diff --git a/net-libs/libiio/metadata.xml b/net-libs/libiio/metadata.xml
new file mode 100644 (file)
index 0000000..01dc388
--- /dev/null
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+       <maintainer type="person">
+               <email>zerochaos@gentoo.org</email>
+               <name>Rick Farina</name>
+       </maintainer>
+       <maintainer type="project">
+               <email>radio@gentoo.org</email>
+               <name>Radio</name>
+       </maintainer>
+       <use>
+               <flag name="aio">Enable asynchronous IO support</flag>
+       </use>
+       <upstream>
+               <remote-id type="github">analogdevicesinc/libiio</remote-id>
+       </upstream>
+</pkgmetadata>