public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-embedded/libftdi/
Date: Sun, 27 Dec 2020 20:19:36 +0000 (UTC)	[thread overview]
Message-ID: <1609100373.ec756fc35c98d20a36e8a239612998148a7b9e29.sam@gentoo> (raw)

commit:     ec756fc35c98d20a36e8a239612998148a7b9e29
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Dec 27 19:50:10 2020 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Dec 27 20:19:33 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ec756fc3

dev-embedded/libftdi: bump to 1.5

Package-Manager: Portage-3.0.9, Repoman-3.0.2
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-embedded/libftdi/Manifest                      |  1 +
 .../{libftdi-9999.ebuild => libftdi-1.5.ebuild}    | 29 +++++++++++++++-------
 dev-embedded/libftdi/libftdi-9999.ebuild           | 29 +++++++++++++++-------
 3 files changed, 41 insertions(+), 18 deletions(-)

diff --git a/dev-embedded/libftdi/Manifest b/dev-embedded/libftdi/Manifest
index 4f82f27ba19..d47dc505633 100644
--- a/dev-embedded/libftdi/Manifest
+++ b/dev-embedded/libftdi/Manifest
@@ -1,2 +1,3 @@
 DIST libftdi-0.20.tar.gz 423570 BLAKE2B f0aa420a704e18c4257b99a4593dbaf46a15806d980b24909fe8678b36e74b568cd5915db1e14f8b904541334fbf3d18f069dc479a0bf66b2ea8e113611cb82b SHA512 540e5eb201a65936c3dbabff70c251deba1615874b11ff27c5ca16c39d71c150cf61758a68b541135a444fe32ab403b0fba0daf55c587647aaf9b3f400f1dee7
 DIST libftdi1-1.4.tar.bz2 109521 BLAKE2B 4186342afb2a0118c454230a925ccff2ed0aedd942cdd3afb1ac59519f1cd48db7f04421ecdb5aa6e53993666a903de00ce447fd81d00839806f8cc0d34c6e52 SHA512 dbab74f7bc35ca835b9c6dd5b70a64816948d65da1f73a9ece37a0f0f630bd0df1a676543acc517b02a718bc34ba4f7a30cbc48b6eed1c154c917f8ef0a358fc
+DIST libftdi1-1.5.tar.bz2 116297 BLAKE2B 460ab93026e14a452e31fcc6930d305638fdc0ed06cb44fb9d50ad8f80199b17057d2f48a27b8295b43b956934289c872a2ef1ddb7f93fa93c6816511ef7607d SHA512 c525b2ab6aff9ef9254971ae7d57f3549a36a36875765c48f947d52532814a2a004de1232389d4fe824a8c8ab84277b08427308573476e1da9b7db83db802f6f

diff --git a/dev-embedded/libftdi/libftdi-9999.ebuild b/dev-embedded/libftdi/libftdi-1.5.ebuild
similarity index 84%
copy from dev-embedded/libftdi/libftdi-9999.ebuild
copy to dev-embedded/libftdi/libftdi-1.5.ebuild
index a85450a924c..78362696c2e 100644
--- a/dev-embedded/libftdi/libftdi-9999.ebuild
+++ b/dev-embedded/libftdi/libftdi-1.5.ebuild
@@ -1,10 +1,10 @@
 # Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=6
+EAPI=7
 
 PYTHON_COMPAT=( python3_{6,7,8,9} )
-inherit cmake-utils python-single-r1
+inherit cmake python-single-r1
 
 MY_P="${PN}1-${PV}"
 if [[ ${PV} == 9999* ]] ; then
@@ -17,6 +17,7 @@ fi
 
 DESCRIPTION="Userspace access to FTDI USB interface chips"
 HOMEPAGE="https://www.intra2net.com/en/developer/libftdi/"
+S="${WORKDIR}/${MY_P}"
 
 LICENSE="LGPL-2"
 SLOT="1"
@@ -24,6 +25,10 @@ IUSE="cxx doc examples python static-libs test tools"
 RESTRICT="!test? ( test )"
 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
 
+BDEPEND="
+	doc? ( app-doc/doxygen )
+	python? ( dev-lang/swig )
+"
 RDEPEND="virtual/libusb:1
 	cxx? ( dev-libs/boost )
 	python? ( ${PYTHON_DEPS} )
@@ -31,16 +36,16 @@ RDEPEND="virtual/libusb:1
 		!<dev-embedded/ftdi_eeprom-1.0
 		dev-libs/confuse:=
 	)"
-DEPEND="${RDEPEND}
-	python? ( dev-lang/swig )
-	doc? ( app-doc/doxygen )"
+DEPEND="${RDEPEND}"
+
+PATCHES=(
+	"${FILESDIR}/${P}-tests-no-cxx.patch"
+)
 
 pkg_setup() {
 	use python && python-single-r1_pkg_setup
 }
 
-S=${WORKDIR}/${MY_P}
-
 src_configure() {
 	local mycmakeargs=(
 		-DFTDIPP=$(usex cxx)
@@ -52,11 +57,16 @@ src_configure() {
 		-DFTDI_EEPROM=$(usex tools)
 		-DCMAKE_SKIP_BUILD_RPATH=ON
 	)
-	cmake-utils_src_configure
+	cmake_src_configure
+}
+
+src_test() {
+	cd "${BUILD_DIR}/test" || die
+	./test_libftdi1	-l all || die
 }
 
 src_install() {
-	cmake-utils_src_install
+	cmake_src_install
 	use python && python_optimize
 	dodoc AUTHORS ChangeLog README TODO
 
@@ -67,6 +77,7 @@ src_install() {
 		doman "${CMAKE_BUILD_DIR}"/doc/man/man3/*
 		dodoc -r "${CMAKE_BUILD_DIR}"/doc/html
 	fi
+
 	if use examples ; then
 		docinto examples
 		dodoc examples/*.c

diff --git a/dev-embedded/libftdi/libftdi-9999.ebuild b/dev-embedded/libftdi/libftdi-9999.ebuild
index a85450a924c..4ad4a4e4baf 100644
--- a/dev-embedded/libftdi/libftdi-9999.ebuild
+++ b/dev-embedded/libftdi/libftdi-9999.ebuild
@@ -1,10 +1,10 @@
 # Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=6
+EAPI=7
 
 PYTHON_COMPAT=( python3_{6,7,8,9} )
-inherit cmake-utils python-single-r1
+inherit cmake python-single-r1
 
 MY_P="${PN}1-${PV}"
 if [[ ${PV} == 9999* ]] ; then
@@ -17,6 +17,7 @@ fi
 
 DESCRIPTION="Userspace access to FTDI USB interface chips"
 HOMEPAGE="https://www.intra2net.com/en/developer/libftdi/"
+S="${WORKDIR}/${MY_P}"
 
 LICENSE="LGPL-2"
 SLOT="1"
@@ -24,6 +25,10 @@ IUSE="cxx doc examples python static-libs test tools"
 RESTRICT="!test? ( test )"
 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
 
+BDEPEND="
+	doc? ( app-doc/doxygen )
+	python? ( dev-lang/swig )
+"
 RDEPEND="virtual/libusb:1
 	cxx? ( dev-libs/boost )
 	python? ( ${PYTHON_DEPS} )
@@ -31,16 +36,16 @@ RDEPEND="virtual/libusb:1
 		!<dev-embedded/ftdi_eeprom-1.0
 		dev-libs/confuse:=
 	)"
-DEPEND="${RDEPEND}
-	python? ( dev-lang/swig )
-	doc? ( app-doc/doxygen )"
+DEPEND="${RDEPEND}"
+
+PATCHES=(
+	"${FILESDIR}/libftdi-1.5-cmake-git.patch"
+)
 
 pkg_setup() {
 	use python && python-single-r1_pkg_setup
 }
 
-S=${WORKDIR}/${MY_P}
-
 src_configure() {
 	local mycmakeargs=(
 		-DFTDIPP=$(usex cxx)
@@ -52,11 +57,16 @@ src_configure() {
 		-DFTDI_EEPROM=$(usex tools)
 		-DCMAKE_SKIP_BUILD_RPATH=ON
 	)
-	cmake-utils_src_configure
+	cmake_src_configure
+}
+
+src_test() {
+	cd "${BUILD_DIR}/test" || die
+	./test_libftdi1	-l all || die
 }
 
 src_install() {
-	cmake-utils_src_install
+	cmake_src_install
 	use python && python_optimize
 	dodoc AUTHORS ChangeLog README TODO
 
@@ -67,6 +77,7 @@ src_install() {
 		doman "${CMAKE_BUILD_DIR}"/doc/man/man3/*
 		dodoc -r "${CMAKE_BUILD_DIR}"/doc/html
 	fi
+
 	if use examples ; then
 		docinto examples
 		dodoc examples/*.c


             reply	other threads:[~2020-12-27 20:19 UTC|newest]

Thread overview: 108+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-27 20:19 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-05-17 19:39 [gentoo-commits] repo/gentoo:master commit in: dev-embedded/libftdi/ Andreas K. Hüttel
2025-05-17 19:39 Andreas K. Hüttel
2025-05-05 15:17 Sam James
2025-05-05 15:17 Sam James
2025-05-04 17:01 Jason Zaman
2024-09-24 15:03 Arthur Zamarin
2024-09-24 15:03 Arthur Zamarin
2024-08-09 17:45 Arthur Zamarin
2024-08-09 17:43 Arthur Zamarin
2024-07-02 10:02 Sam James
2024-07-02 10:02 Sam James
2024-06-19 13:20 Sam James
2024-06-19 13:18 Sam James
2024-06-08  7:12 Sam James
2024-06-08  6:35 Arthur Zamarin
2024-06-08  5:51 Arthur Zamarin
2024-06-08  5:40 Arthur Zamarin
2024-05-29 14:43 Jakov Smolić
2024-05-29 14:43 Jakov Smolić
2024-05-29 11:47 Sam James
2024-05-29 11:47 Sam James
2024-04-20 19:47 Viorel Munteanu
2023-08-20  9:33 Viorel Munteanu
2023-08-20  9:33 Viorel Munteanu
2023-04-19 11:14 Viorel Munteanu
2023-04-19 11:14 Viorel Munteanu
2023-04-19 11:07 Sam James
2023-04-19 10:16 Arthur Zamarin
2023-04-19 10:16 Arthur Zamarin
2023-04-19 10:16 Arthur Zamarin
2023-04-19 10:16 Arthur Zamarin
2023-04-19 10:16 Arthur Zamarin
2023-04-19  9:47 Arthur Zamarin
2023-04-19  9:45 Sam James
2023-04-19  9:45 Sam James
2023-04-19  9:43 Sam James
2023-04-19  9:43 Sam James
2023-04-19  9:43 Sam James
2023-04-19  9:43 Sam James
2023-04-19  9:41 Arthur Zamarin
2023-03-31 19:48 Viorel Munteanu
2023-03-31 19:48 Viorel Munteanu
2023-03-31 19:48 Viorel Munteanu
2022-12-02 18:44 WANG Xuerui
2022-11-10  5:28 Sam James
2022-11-10  5:10 Sam James
2022-04-29 19:06 Sam James
2022-04-29 19:06 Sam James
2022-02-02  4:44 Craig Andrews
2021-08-22  0:07 Marek Szuba
2021-08-22  0:07 Marek Szuba
2021-05-06 21:20 Sam James
2021-05-01 14:06 Sam James
2021-04-30 23:39 Sam James
2021-04-30 23:37 Sam James
2021-04-30 23:29 Sam James
2021-04-30 20:28 Sergei Trofimovich
2021-04-30 15:23 Agostino Sarubbo
2021-02-26 13:55 Sam James
2021-02-25 18:34 Sergei Trofimovich
2021-02-25  8:32 Sam James
2021-02-25  7:31 Sam James
2021-02-25  1:41 Sam James
2021-02-24 20:25 Sam James
2021-02-24 20:24 Sam James
2021-02-05  7:23 Sam James
2021-01-27 18:33 Sam James
2021-01-27 18:25 Sam James
2021-01-27 18:25 Sam James
2020-12-28 15:17 David Seifert
2020-12-28 15:17 David Seifert
2020-12-28  8:22 Sam James
2020-12-27 21:40 Sam James
2020-12-27 20:48 Sam James
2020-12-27 20:46 Sam James
2020-12-27 20:34 Sam James
2020-12-27 20:27 Sam James
2020-07-10 11:53 Andreas Sturmlechner
2020-06-09 13:53 Agostino Sarubbo
2020-06-09 13:51 Agostino Sarubbo
2020-06-09 13:50 Agostino Sarubbo
2020-06-09 13:49 Agostino Sarubbo
2020-06-09 13:47 Agostino Sarubbo
2020-06-09 13:45 Agostino Sarubbo
2020-06-08 17:29 Matt Turner
2020-06-08 16:34 Mart Raudsepp
2020-02-10 11:54 Michał Górny
2018-07-26  0:44 Mikle Kolyada
2018-07-23 18:42 Sergei Trofimovich
2018-07-20  3:58 Jeroen Roovers
2018-07-15 10:25 Sergei Trofimovich
2018-05-01  7:41 Markus Meier
2018-04-03 21:43 Sergei Trofimovich
2017-12-25 10:43 David Seifert
2017-11-22 10:24 Jeroen Roovers
2017-06-26 10:03 Alexis Ballier
2017-05-19 15:31 David Seifert
2017-05-18 22:38 Michael Weber
2017-05-12 14:55 Agostino Sarubbo
2017-05-06  7:27 Markus Meier
2017-05-01 13:37 Agostino Sarubbo
2017-02-18 10:32 Michał Górny
2016-06-24  7:47 Mike Frysinger
2016-06-24  7:47 Mike Frysinger
2016-06-11 16:44 Agostino Sarubbo
2016-06-08 19:29 Markus Meier
2015-12-31 13:11 Sven Wegener

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=1609100373.ec756fc35c98d20a36e8a239612998148a7b9e29.sam@gentoo \
    --to=sam@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