public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Richard Farina" <zerochaos@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/libad9361-iio/, net-libs/libad9361-iio/files/
Date: Tue,  4 Sep 2018 20:54:41 +0000 (UTC)	[thread overview]
Message-ID: <1536094469.25a6def0fb2acebe908412892dd8be516c68de0f.zerochaos@gentoo> (raw)

commit:     25a6def0fb2acebe908412892dd8be516c68de0f
Author:     Zero_Chaos <zerochaos <AT> gentoo <DOT> org>
AuthorDate: Tue Sep  4 20:53:34 2018 +0000
Commit:     Richard Farina <zerochaos <AT> gentoo <DOT> org>
CommitDate: Tue Sep  4 20:54:29 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=25a6def0

net-libs/libad9361-iio: import from pentoo

Package-Manager: Portage-2.3.48, Repoman-2.3.10

 net-libs/libad9361-iio/Manifest                    |  1 +
 .../7206bb2a9b655be3bdb66c6cf03aa504817ed240.patch | 36 ++++++++++++++++++++++
 net-libs/libad9361-iio/libad9361-iio-0.1-r2.ebuild | 29 +++++++++++++++++
 net-libs/libad9361-iio/libad9361-iio-9999.ebuild   | 29 +++++++++++++++++
 net-libs/libad9361-iio/metadata.xml                | 15 +++++++++
 5 files changed, 110 insertions(+)

diff --git a/net-libs/libad9361-iio/Manifest b/net-libs/libad9361-iio/Manifest
new file mode 100644
index 00000000000..ade8b02deb7
--- /dev/null
+++ b/net-libs/libad9361-iio/Manifest
@@ -0,0 +1 @@
+DIST libad9361-iio-0.1.tar.gz 27495 BLAKE2B d46873d69c494835e028ba1de7d17d48e5ed6bf1a73e96cf958dcfe44142cd39a9df3b00d61d3d3b8934bcb59fff3bd33c82f5c11de65f332185fe0e8c296f54 SHA512 64df3d4ce5e1c10fb44b6e39c11bac119ef77f2cc5b9785023b22670ca4905a1afd13c6923b3056f957789a911a3cae3cb7208770e1a112d849e7e3d2feb2fdc

diff --git a/net-libs/libad9361-iio/files/7206bb2a9b655be3bdb66c6cf03aa504817ed240.patch b/net-libs/libad9361-iio/files/7206bb2a9b655be3bdb66c6cf03aa504817ed240.patch
new file mode 100644
index 00000000000..6b1668f0a0e
--- /dev/null
+++ b/net-libs/libad9361-iio/files/7206bb2a9b655be3bdb66c6cf03aa504817ed240.patch
@@ -0,0 +1,36 @@
+From 7206bb2a9b655be3bdb66c6cf03aa504817ed240 Mon Sep 17 00:00:00 2001
+From: Lars-Peter Clausen <lars@metafoo.de>
+Date: Tue, 14 Aug 2018 09:48:59 +0200
+Subject: [PATCH] Fix building outside git repository
+
+Currently when building the project on a machine that has git installed,
+but the source is not inside a git repository cmake fails with the
+following error.
+
+	CMake Error at CMakeLists.txt:35 (if):
+	  if given arguments:
+
+		"STREQUAL" "/home/lars/libad9361-iio"
+
+This is due to LIBAD9361_GIT_REPO variable being empty. In order to handle
+empty variables in CMake in a string comparison they need to be
+encapsulated in quotes.
+
+Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
+---
+ CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 7af5444..8d04ba0 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -32,7 +32,7 @@ if (GIT_FOUND)
+ 		OUTPUT_STRIP_TRAILING_WHITESPACE
+ 	)
+ 
+-if (${LIBAD9361_GIT_REPO} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR})
++if ("${LIBAD9361_GIT_REPO}" STREQUAL "${CMAKE_CURRENT_SOURCE_DIR}")
+ 		execute_process(
+ 			COMMAND ${GIT_EXECUTABLE} rev-parse --short HEAD
+ 			WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}

diff --git a/net-libs/libad9361-iio/libad9361-iio-0.1-r2.ebuild b/net-libs/libad9361-iio/libad9361-iio-0.1-r2.ebuild
new file mode 100644
index 00000000000..429ddc4b83f
--- /dev/null
+++ b/net-libs/libad9361-iio/libad9361-iio-0.1-r2.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils
+
+DESCRIPTION="IIO AD9361 library for filter design and handling, multi-chip sync, etc."
+HOMEPAGE="https://github.com/analogdevicesinc/libad9361-iio"
+if [ "${PV}" = "9999" ]; then
+	EGIT_REPO_URI="https://github.com/analogdevicesinc/libad9361-iio"
+	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}"
+
+RDEPEND="net-libs/libiio:="
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+	epatch "${FILESDIR}/7206bb2a9b655be3bdb66c6cf03aa504817ed240.patch"
+	cmake-utils_src_prepare
+	eapply_user
+}

diff --git a/net-libs/libad9361-iio/libad9361-iio-9999.ebuild b/net-libs/libad9361-iio/libad9361-iio-9999.ebuild
new file mode 100644
index 00000000000..429ddc4b83f
--- /dev/null
+++ b/net-libs/libad9361-iio/libad9361-iio-9999.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils
+
+DESCRIPTION="IIO AD9361 library for filter design and handling, multi-chip sync, etc."
+HOMEPAGE="https://github.com/analogdevicesinc/libad9361-iio"
+if [ "${PV}" = "9999" ]; then
+	EGIT_REPO_URI="https://github.com/analogdevicesinc/libad9361-iio"
+	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}"
+
+RDEPEND="net-libs/libiio:="
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+	epatch "${FILESDIR}/7206bb2a9b655be3bdb66c6cf03aa504817ed240.patch"
+	cmake-utils_src_prepare
+	eapply_user
+}

diff --git a/net-libs/libad9361-iio/metadata.xml b/net-libs/libad9361-iio/metadata.xml
new file mode 100644
index 00000000000..36c978cfbdb
--- /dev/null
+++ b/net-libs/libad9361-iio/metadata.xml
@@ -0,0 +1,15 @@
+<?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>
+	<upstream>
+		<remote-id type="github">analogdevicesinc/libad9361-iio</remote-id>
+	</upstream>
+</pkgmetadata>


             reply	other threads:[~2018-09-04 20:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-04 20:54 Richard Farina [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-06-14 19:21 [gentoo-commits] repo/gentoo:master commit in: net-libs/libad9361-iio/, net-libs/libad9361-iio/files/ Sam James
2023-08-21  2:30 Rick Farina

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1536094469.25a6def0fb2acebe908412892dd8be516c68de0f.zerochaos@gentoo \
    --to=zerochaos@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox