commit: 7d1147ff437ae8a21aca609c603f8562542d29f6
Author: Lucio Sauer <watermanpaint <AT> posteo <DOT> net>
AuthorDate: Fri Apr 26 13:45:34 2024 +0000
Commit: Lucio Sauer <watermanpaint <AT> posteo <DOT> net>
CommitDate: Fri Apr 26 13:51:45 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=7d1147ff
dev-libs/libtypec: fix revision bump (7e6af504b7ecc)
Replace symlink to ${PV} 0.5.0 with regular ...-r1 file.
Partially revert 7e6af504b7ecca1853034f60eb6dd6dc20f2ce46 to reset
libtypec-0.5.0 to its pre-revision state.
Signed-off-by: Lucio Sauer <watermanpaint <AT> posteo.net>
dev-libs/libtypec/libtypec-0.5.0-r1.ebuild | 37 +++++++++++++++++++++++++++++-
dev-libs/libtypec/libtypec-0.5.0.ebuild | 6 -----
2 files changed, 36 insertions(+), 7 deletions(-)
diff --git a/dev-libs/libtypec/libtypec-0.5.0-r1.ebuild
b/dev-libs/libtypec/libtypec-0.5.0-r1.ebuild
deleted file mode 120000
index 6fadeb75a3..0000000000
--- a/dev-libs/libtypec/libtypec-0.5.0-r1.ebuild
+++ /dev/null
@@ -1 +0,0 @@
-libtypec-0.5.0.ebuild
\ No newline at end of file
diff --git a/dev-libs/libtypec/libtypec-0.5.0-r1.ebuild
b/dev-libs/libtypec/libtypec-0.5.0-r1.ebuild
new file mode 100644
index 0000000000..0e9c08e3aa
--- /dev/null
+++ b/dev-libs/libtypec/libtypec-0.5.0-r1.ebuild
@@ -0,0 +1,36 @@
+# Copyright 2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+DESCRIPTION="Library to interface with USB Type-c/Power Delivery devices"
+HOMEPAGE="https://github.com/Rajaram-Regupathy/libtypec"
+SRC_URI="https://github.com/Rajaram-Regupathy/libtypec/releases/download/${P}/${P}-Source.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+
+S="${WORKDIR}/${P}-Source"
+
+PATCHES=(
+
"${FILESDIR}/${PN}-0.5.0-CMakeLists.txt-fix-pkgconfig-install-path.patch"
+
"${FILESDIR}/${PN}-0.5.0-sysfs_ops-define-feature-test-macro-for-nft.patch"
+ "${FILESDIR}/${PN}-0.5.0-sysfs_ops-fix-nftw-fun-pointer-def.patch"
+ "${FILESDIR}/${PN}-0.5.0-libtypec-utils-close-fp-before-returning.patch"
+ "${FILESDIR}/${PN}-0.5.0-libtypec-close-fp-before-returning.patch"
+
"${FILESDIR}/${PN}-0.5.0-libtypec-utils-add-missing-return-at-end-of-fun.patch"
+
"${FILESDIR}/${PN}-0.5.0-libtypec-utils-add-missing-return-at-end-of-function.patch"
+
"${FILESDIR}/${PN}-0.5.0-libtypec-utils-add-missing-break-in-switch-statement.patch"
+ "${FILESDIR}/${PN}-0.5.0-typecstatus-fix-potential-overflow.patch"
+)
+
+src_configure() {
+ # don't force CFLAGS to allow Gentoo toolchain to set them
+ local mycmakeargs=(
+ -DLIBTYPEC_STRICT_CFLAGS=OFF
+ )
+ cmake_src_configure
+}
diff --git a/dev-libs/libtypec/libtypec-0.5.0.ebuild
b/dev-libs/libtypec/libtypec-0.5.0.ebuild
index 0e9c08e3aa..02697c52d9 100644
--- a/dev-libs/libtypec/libtypec-0.5.0.ebuild
+++ b/dev-libs/libtypec/libtypec-0.5.0.ebuild
@@ -19,12 +19,6 @@ PATCHES=(
"${FILESDIR}/${PN}-0.5.0-CMakeLists.txt-fix-pkgconfig-install-path.patch"
"${FILESDIR}/${PN}-0.5.0-sysfs_ops-define-feature-test-macro-for-nft.patch"
"${FILESDIR}/${PN}-0.5.0-sysfs_ops-fix-nftw-fun-pointer-def.patch"
- "${FILESDIR}/${PN}-0.5.0-libtypec-utils-close-fp-before-returning.patch"
- "${FILESDIR}/${PN}-0.5.0-libtypec-close-fp-before-returning.patch"
-
"${FILESDIR}/${PN}-0.5.0-libtypec-utils-add-missing-return-at-end-of-fun.patch"
-
"${FILESDIR}/${PN}-0.5.0-libtypec-utils-add-missing-return-at-end-of-function.patch"
-
"${FILESDIR}/${PN}-0.5.0-libtypec-utils-add-missing-break-in-switch-statement.patch"
- "${FILESDIR}/${PN}-0.5.0-typecstatus-fix-potential-overflow.patch"
)
src_configure() {