From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id B93D21584AD for ; Sun, 04 May 2025 17:01:25 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id A6D31343102 for ; Sun, 04 May 2025 17:01:25 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id A7E8911036D; Sun, 04 May 2025 17:01:24 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 9E32711036D for ; Sun, 04 May 2025 17:01:24 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5218A34314F for ; Sun, 04 May 2025 17:01:24 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B63EA1E0F for ; Sun, 04 May 2025 17:01:22 +0000 (UTC) From: "Jason Zaman" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Jason Zaman" Message-ID: <1746377882.46fb23a804060b77e1d115f5a4ad98b3df08f61b.perfinion@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-embedded/libftdi/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-embedded/libftdi/libftdi-1.5-r8.ebuild X-VCS-Directories: dev-embedded/libftdi/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: 46fb23a804060b77e1d115f5a4ad98b3df08f61b X-VCS-Branch: master Date: Sun, 04 May 2025 17:01:22 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 5fe4ac92-8791-499e-889a-bcbc2a9a3010 X-Archives-Hash: 75598d4164c106de050c5f4e3b043d9a commit: 46fb23a804060b77e1d115f5a4ad98b3df08f61b Author: Jason Zaman gentoo org> AuthorDate: Sun May 4 16:57:22 2025 +0000 Commit: Jason Zaman gentoo org> CommitDate: Sun May 4 16:58:02 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=46fb23a8 dev-embedded/libftdi: Add python3_13 Tests pass and my personal uses of FTDI chips works from python3.13 Closes: https://bugs.gentoo.org/952289 Signed-off-by: Jason Zaman gentoo.org> dev-embedded/libftdi/libftdi-1.5-r8.ebuild | 92 ++++++++++++++++++++++++++++++ 1 file changed, 92 insertions(+) diff --git a/dev-embedded/libftdi/libftdi-1.5-r8.ebuild b/dev-embedded/libftdi/libftdi-1.5-r8.ebuild new file mode 100644 index 000000000000..495518e62389 --- /dev/null +++ b/dev-embedded/libftdi/libftdi-1.5-r8.ebuild @@ -0,0 +1,92 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +MY_P="${PN}1-${PV}" +PYTHON_COMPAT=( python3_{11..13} ) +inherit cmake python-single-r1 + +if [[ ${PV} == 9999* ]] ; then + inherit git-r3 + EGIT_REPO_URI="git://developer.intra2net.com/${PN}" +else + SRC_URI="https://www.intra2net.com/en/developer/${PN}/download/${MY_P}.tar.bz2" + S="${WORKDIR}/${MY_P}" + KEYWORDS="~amd64 ~arm ~arm64 ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86" +fi + +DESCRIPTION="Userspace access to FTDI USB interface chips" +HOMEPAGE="https://www.intra2net.com/en/developer/libftdi/" + +LICENSE="LGPL-2" +SLOT="1" +IUSE="cxx doc examples python test tools" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" +RESTRICT="!test? ( test )" + +RDEPEND=" + virtual/libusb:1 + cxx? ( dev-libs/boost ) + doc? ( !dev-embedded/libftdi:0[doc] ) + python? ( ${PYTHON_DEPS} ) + tools? ( dev-libs/confuse:= ) +" +DEPEND="${RDEPEND} + test? ( dev-libs/boost ) +" +BDEPEND=" + doc? ( app-text/doxygen ) + python? ( >=dev-lang/swig-4.2.0 ) +" + +PATCHES=( + "${FILESDIR}"/${P}-tests-no-cxx.patch + "${FILESDIR}"/${P}-cmake-cxx.patch + "${FILESDIR}"/${P}-py312.patch + "${FILESDIR}"/${P}-cmake4.patch + "${FILESDIR}"/${P}-swig-4.3.patch +) + +pkg_setup() { + use python && python-single-r1_pkg_setup +} + +src_configure() { + local mycmakeargs=( + -DFTDIPP=$(usex cxx) + -DDOCUMENTATION=$(usex doc) + -DEXAMPLES=$(usex examples) + -DPYTHON_BINDINGS=$(usex python) + -DBUILD_TESTS=$(usex test) + -DFTDI_EEPROM=$(usex tools) + -DCMAKE_SKIP_BUILD_RPATH=ON + -DSTATICLIBS=OFF + ) + cmake_src_configure +} + +src_test() { + cd "${BUILD_DIR}/test" || die + LD_LIBRARY_PATH="${BUILD_DIR}/src" ./test_libftdi1 -l all || die +} + +src_install() { + cmake_src_install + + use python && python_optimize + dodoc AUTHORS ChangeLog README TODO + + if use doc ; then + # Clean up man pages with too generic names. #356369 + rm -vf "${BUILD_DIR}"/doc/man/man3/_* || die + + doman "${BUILD_DIR}"/doc/man/man3/* + dodoc -r "${BUILD_DIR}"/doc/html + fi + + if use examples ; then + docinto examples + dodoc examples/*.c + fi +}