From 3b882b15eed3bb219b5f340b63733c8cda643079 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 19 Aug 2023 15:38:48 +0100 Subject: gentoo auto-resync : 19:08:2023 - 15:38:48 --- app-laptop/Manifest.gz | Bin 3248 -> 3248 bytes app-laptop/mbpfan/Manifest | 2 + .../files/mbpfan-2.3.0-clang16-build-fix.patch | 12 +++++ app-laptop/mbpfan/mbpfan-2.3.0-r1.ebuild | 51 +++++++++++++++++++++ 4 files changed, 65 insertions(+) create mode 100644 app-laptop/mbpfan/files/mbpfan-2.3.0-clang16-build-fix.patch create mode 100644 app-laptop/mbpfan/mbpfan-2.3.0-r1.ebuild (limited to 'app-laptop') diff --git a/app-laptop/Manifest.gz b/app-laptop/Manifest.gz index 59aa9df1aaff..3e02528b24c6 100644 Binary files a/app-laptop/Manifest.gz and b/app-laptop/Manifest.gz differ diff --git a/app-laptop/mbpfan/Manifest b/app-laptop/mbpfan/Manifest index 9195e702b2a7..12103966282e 100644 --- a/app-laptop/mbpfan/Manifest +++ b/app-laptop/mbpfan/Manifest @@ -1,4 +1,6 @@ +AUX mbpfan-2.3.0-clang16-build-fix.patch 273 BLAKE2B 92d11a6d902524085361bc801a8304d78ee44413016634f872f75dc6fea53959a8a893bfbb44d0fc4d6dbdccb9c666838f3dd284996fbb01ea729dbad4644d7b SHA512 d712c0a0e6b6e94b88d130fa11acfe4a73203b9cd5a4525bc1e635ca56e3d79dae356b2157e418a1b50564789836013f8f449a4d7c2dbb058242dfce84c5f318 DIST mbpfan-2.3.0.tar.gz 40984 BLAKE2B ac593e94ee5915935767b221b3f8b29d416fadf3294b4930ba1b441838758c5014dc960c90e5ce35e3475793aaf68b2981641323dd9ea22dd50772cd54f75078 SHA512 676817d7d9b9e9fa866539d4b0e3edc8d0d22761807695961451fe1d5845c22031d45f53222d37c5ed967757b4cf80523a3af7d28084d9af11248798a463cdfd +EBUILD mbpfan-2.3.0-r1.ebuild 1332 BLAKE2B 9a2c82c0ddca78cc0b712e6f322d098d0389d90c81ef1c797d133ae6f258bc4eee33b9f9c5b60c768ff44ad6171b2bcd7701eff4719118ab15132d75784dc1c8 SHA512 fff4e57a662a01e0b2a842d5f0a518e86b8af61d5abec2427eb4f2bdf96c6f4d32c9a01dd28b06cd56da47a07d0db5a46b915b9fb3cacd9dc97243301d158423 EBUILD mbpfan-2.3.0.ebuild 1268 BLAKE2B 9b7f6dcd3bd869f12ebcad59d4a9793da704a1469f93353697b1185ec88253d0848f9a425a1a48402968d8252eabee8d978e7422096aafccc87c2863bcc1f6ea SHA512 a6a7a5d262e3dd4bcf6dc4bf5dae151493e35813533bad385858d3313a0883d2aa149789bf75b0e7a31da1a19cfc0d48eaee410e274dd648f0fbf7842c891bbe EBUILD mbpfan-9999.ebuild 1268 BLAKE2B d06dc087c6c857239069624770bdf8214847d44bc4f0156654e812666dd87fc2bcc2e3d04af0de513f655c58dbfcb6b3d57e919ef0adbf448aeede8352285780 SHA512 ced6de88ebfda6389f250234ed474373e64b759f970384f0866667e104e3760a14e911ca680ee286682e32deb6a3dbe78fee9cd6ac3210fbe60f91656a71a2ca MISC metadata.xml 690 BLAKE2B bde3ec1fac36fe5dd4f3fa628f16a7fb6fe64179ae8f9e8ee8edb651abec9da089d1e875db956931d4182d8975bd1de04c43104260e1bba04f01433f0741fe7e SHA512 bbec74e4ae64483001c35aa3963e9e681d63c4e6205b838b0dc0d952b461497c0ff3ad5d52e8714d1804f2935d4db8f69da6aa79b01964f0a6da99ed6eb5f89c diff --git a/app-laptop/mbpfan/files/mbpfan-2.3.0-clang16-build-fix.patch b/app-laptop/mbpfan/files/mbpfan-2.3.0-clang16-build-fix.patch new file mode 100644 index 000000000000..169033c8be57 --- /dev/null +++ b/app-laptop/mbpfan/files/mbpfan-2.3.0-clang16-build-fix.patch @@ -0,0 +1,12 @@ +Bug: https://bugs.gentoo.org/894522 +Upstream PR: https://github.com/linux-on-mac/mbpfan/pull/261 +--- a/src/util.c ++++ b/src/util.c +@@ -1,6 +1,7 @@ + #include + #include + #define __USE_MISC ++#define _BSD_SOURCE + #include + + #include "global.h" diff --git a/app-laptop/mbpfan/mbpfan-2.3.0-r1.ebuild b/app-laptop/mbpfan/mbpfan-2.3.0-r1.ebuild new file mode 100644 index 000000000000..c25ca979e056 --- /dev/null +++ b/app-laptop/mbpfan/mbpfan-2.3.0-r1.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit linux-info systemd toolchain-funcs + +DESCRIPTION="A simple daemon to control fan speed on all Macbook/Macbook Pros" +HOMEPAGE="https://github.com/dgraziotin/mbpfan" + +if [[ ${PV} == *9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/dgraziotin/${PN}.git" +else + SRC_URI="https://github.com/dgraziotin/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" +fi + +LICENSE="GPL-3+" +SLOT="0" +RESTRICT="test" # will fail if the hardware is unavailable, not useful + +CONFIG_CHECK="~SENSORS_APPLESMC ~SENSORS_CORETEMP" + +PATCHES=( + "${FILESDIR}"/${PN}-2.3.0-clang16-build-fix.patch +) + +src_compile() { + emake CC="$(tc-getCC)" +} + +src_install() { + emake DESTDIR="${ED}" install + + # Decompress the man page to enable PM auto compression + gzip -d "${ED}"/usr/share/man/man8/mbpfan.8.gz || die + + # Remove the empty systemd unit directory + # It doesn't actually install the unit file + rmdir --ignore-fail-on-non-empty -p "${ED}"/lib/systemd/system || die + # Actually install the sytstemd unit file + systemd_dounit ${PN}.service + # Install openrc init file + newinitd ${PN}.init.gentoo ${PN} + + # make install doesn't install the docs in the right place + rm -r "${ED}"/usr/share/doc/${PN} || die + + einstalldocs +} -- cgit v1.2.3