Sfoglia il codice sorgente

Updated clevo-wmi driver

Sergey Ilinykh 7 anni fa
parent
commit
3918cdb57b

+ 2 - 0
app-laptop/clevo-wmi/clevo-wmi-9999.ebuild

@@ -33,4 +33,6 @@ pkg_setup() {
 src_prepare() {
 	sed -i -e "s|KDIR :=.*|KDIR := ${KERNEL_DIR}|" \
 	  Makefile || die "Failed to change Makefile"
+	sed -i -e 's|args.m.instance = 1;|args.m.instance = 0;|' \
+	  clevo_wmi.c || die "Failed to change clevo_wmi.c"
 }

+ 31 - 0
app-laptop/clevo-xsm-wmi-gui/clevo-xsm-wmi-gui-9999.ebuild

@@ -0,0 +1,31 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit qmake-utils git-r3
+
+DESCRIPTION="An app for some Clevo P15xSM(1)(-A)/P17xSM(-A)/P370SM-A Laptop models"
+HOMEPAGE="https://bitbucket.org/tuxedocomputers/clevo-xsm-wmi"
+EGIT_REPO_URI="https://bitbucket.org/tuxedocomputers/clevo-xsm-wmi.git"
+
+SLOT="0"
+LICENSE="GPL-2+"
+KEYWORDS=""
+IUSE="systemd"
+
+DEPEND="
+    app-laptop/clevo-xsm-wmi
+    dev-qt/qtwidgets
+"
+RDEPEND=""
+
+S="${WORKDIR}/${P}/utility"
+
+src_configure() {
+    eqmake5 clevo-xsm-wmi.pro
+}
+
+src_install() {
+    dobin clevo-xsm-wmi
+}

+ 49 - 0
app-laptop/clevo-xsm-wmi/clevo-xsm-wmi-9999.ebuild

@@ -0,0 +1,49 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit linux-mod git-r3
+
+DESCRIPTION="A driver for the Clevo P15xSM(1)(-A)/P17xSM(-A)/P370SM-A Laptop models"
+HOMEPAGE="https://bitbucket.org/tuxedocomputers/clevo-xsm-wmi"
+EGIT_REPO_URI="https://bitbucket.org/tuxedocomputers/${PN}.git"
+
+SLOT="0"
+LICENSE="GPL-2+"
+KEYWORDS=""
+IUSE="systemd"
+
+DEPEND="
+    sys-kernel/linux-headers
+    virtual/linux-sources
+"
+RDEPEND=""
+
+KERN_MAX_VER=13
+MODULE_NAMES="${PN}(wmi:${S}/module)"
+MODULESD_CLEVO_XSM_WMI_DOCS="README.md"
+
+pkg_setup() {
+	CONFIG_CHECK="ACPI_WMI"
+	linux-mod_pkg_setup
+	BUILD_TARGETS="all"
+}
+
+src_prepare() {
+	kernel_is gt 4 ${KERN_MAX_VER} 99 && eapply "${FILESDIR}"/wmi-id.patch
+	eapply_user
+}
+
+src_compile() {
+    BUILD_PARAMS="KDIR=${KV_OUT_DIR}"
+    linux-mod_src_compile
+}
+
+src_install() {
+    linux-mod_src_install
+    if use systemd; then
+        mkdir ${D}/etc/modules-load.d || die
+        echo "${PN}" > ${D}/etc/modules-load.d/${PN}.conf
+    fi
+}

+ 13 - 0
app-laptop/clevo-xsm-wmi/files/wmi-id.patch

@@ -0,0 +1,13 @@
+diff --git a/module/clevo-xsm-wmi.c b/module/clevo-xsm-wmi.c
+index 162577b..2e7406a 100644
+--- a/module/clevo-xsm-wmi.c
++++ b/module/clevo-xsm-wmi.c
+@@ -431,7 +431,7 @@ static int clevo_xsm_wmi_evaluate_wmbb_method(u32 method_id, u32 arg,
+ 
+ 	CLEVO_XSM_DEBUG("%0#4x  IN : %0#6x\n", method_id, arg);
+ 
+-	status = wmi_evaluate_method(CLEVO_GET_GUID, 0x01,
++	status = wmi_evaluate_method(CLEVO_GET_GUID, 0x00,
+ 		method_id, &in, &out);
+ 
+ 	if (unlikely(ACPI_FAILURE(status)))

+ 0 - 116
net-im/skypeforlinux/skypeforlinux-8.15.76.2.ebuild

@@ -1,116 +0,0 @@
-# Copyright 1999-2018 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-MULTILIB_COMPAT=( abi_x86_64 )
-
-inherit eutils gnome2-utils pax-utils rpm multilib-build xdg-utils
-
-DESCRIPTION="Instant messaging client, with support for audio and video"
-HOMEPAGE="https://www.skype.com/"
-SRC_URI="https://repo.skype.com/rpm/unstable/${PN}_${PV}-1.x86_64.rpm"
-
-LICENSE="Skype-TOS MIT MIT-with-advertising BSD-1 BSD-2 BSD Apache-2.0 Boost-1.0 ISC CC-BY-SA-3.0 CC0-1.0 openssl ZLIB APSL-2 icu Artistic-2 LGPL-2.1"
-SLOT="0"
-KEYWORDS="~amd64 -*"
-IUSE="pax_kernel"
-
-S="${WORKDIR}"
-QA_PREBUILT="*"
-RESTRICT="mirror bindist strip" #299368
-
-RDEPEND="
-	app-crypt/libsecret[${MULTILIB_USEDEP}]
-	dev-libs/atk[${MULTILIB_USEDEP}]
-	dev-libs/expat[${MULTILIB_USEDEP}]
-	dev-libs/glib:2[${MULTILIB_USEDEP}]
-	dev-libs/nspr[${MULTILIB_USEDEP}]
-	dev-libs/nss[${MULTILIB_USEDEP}]
-	gnome-base/gconf:2[${MULTILIB_USEDEP}]
-	media-libs/alsa-lib[${MULTILIB_USEDEP}]
-	media-libs/fontconfig:1.0[${MULTILIB_USEDEP}]
-	media-libs/freetype:2[${MULTILIB_USEDEP}]
-	media-libs/libv4l[${MULTILIB_USEDEP}]
-	net-print/cups[${MULTILIB_USEDEP}]
-	sys-apps/dbus[${MULTILIB_USEDEP}]
-	sys-devel/gcc[cxx]
-	virtual/ttf-fonts
-	x11-libs/cairo[${MULTILIB_USEDEP}]
-	x11-libs/gdk-pixbuf:2[${MULTILIB_USEDEP}]
-	x11-libs/gtk+:2[${MULTILIB_USEDEP}]
-	x11-libs/libX11[${MULTILIB_USEDEP}]
-	x11-libs/libXScrnSaver[${MULTILIB_USEDEP}]
-	x11-libs/libXcomposite[${MULTILIB_USEDEP}]
-	x11-libs/libXcursor[${MULTILIB_USEDEP}]
-	x11-libs/libXdamage[${MULTILIB_USEDEP}]
-	x11-libs/libXext[${MULTILIB_USEDEP}]
-	x11-libs/libXfixes[${MULTILIB_USEDEP}]
-	x11-libs/libXi[${MULTILIB_USEDEP}]
-	x11-libs/libXrandr[${MULTILIB_USEDEP}]
-	x11-libs/libXrender[${MULTILIB_USEDEP}]
-	x11-libs/libXtst[${MULTILIB_USEDEP}]
-	x11-libs/libxcb[${MULTILIB_USEDEP}]
-	x11-libs/libxkbfile[${MULTILIB_USEDEP}]
-	x11-libs/pango[${MULTILIB_USEDEP}]"
-
-src_unpack() {
-	rpm_src_unpack ${A}
-}
-
-src_prepare() {
-	default
-	sed -e "s!^SKYPE_PATH=.*!SKYPE_PATH=${EPREFIX}/opt/${PN}/${PN}!" \
-		-i usr/bin/${PN} || die
-	sed -e "s!^Exec=.*!Exec=${EPREFIX}/opt/bin/${PN}!" \
-		-e "s!^Categories=.*!Categories=Network;InstantMessaging;Telephony;!" \
-		-e "/^OnlyShowIn=/d" \
-		-i usr/share/applications/${PN}.desktop || die
-}
-
-src_install() {
-	dodir /opt
-	cp -a usr/share/${PN} "${D}"/opt || die
-
-	into /opt
-	dobin usr/bin/${PN}
-
-	dodoc usr/share/${PN}/*.html
-	dodoc -r usr/share/doc/${PN}/.
-	# symlink required for the "Help->3rd Party Notes" menu entry  (otherwise frozen skype -> xdg-open)
-	dosym ${P} usr/share/doc/${PN}
-
-	doicon usr/share/pixmaps/${PN}.png
-
-	# compat symlink for the autostart desktop file
-	dosym ../../opt/bin/${PN} usr/bin/${PN}
-
-	local res
-	for res in 16 32 256 512; do
-		newicon -s ${res} usr/share/icons/hicolor/${res}x${res}/apps/${PN}.png ${PN}.png
-	done
-
-	domenu usr/share/applications/${PN}.desktop
-
-	if use pax_kernel; then
-		pax-mark -m "${ED%/}"/opt/${PN}/${PN}
-		pax-mark -m "${ED%/}"/opt/${PN}/resources/app.asar.unpacked/node_modules/slimcore/bin/slimcore.node
-		eqawarn "You have set USE=pax_kernel meaning that you intend to run"
-		eqawarn "${PN} under a PaX enabled kernel. To do so, we must modify"
-		eqawarn "the ${PN} binary itself and this *may* lead to breakage! If"
-		eqawarn "you suspect that ${PN} is being broken by this modification,"
-		eqawarn "please open a bug."
-	fi
-}
-
-pkg_postinst() {
-	xdg_desktop_database_update
-	xdg_mimeinfo_database_update
-	gnome2_icon_cache_update
-}
-
-pkg_postrm() {
-	xdg_desktop_database_update
-	xdg_mimeinfo_database_update
-	gnome2_icon_cache_update
-}