summaryrefslogtreecommitdiff
path: root/app-laptop/nvidiabl
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /app-laptop/nvidiabl
reinit the tree, so we can have metadata
Diffstat (limited to 'app-laptop/nvidiabl')
-rw-r--r--app-laptop/nvidiabl/Manifest8
-rw-r--r--app-laptop/nvidiabl/files/nvidiabl-0.87-linux-4.0.patch23
-rw-r--r--app-laptop/nvidiabl/metadata.xml16
-rw-r--r--app-laptop/nvidiabl/nvidiabl-0.83.ebuild37
-rw-r--r--app-laptop/nvidiabl/nvidiabl-0.87.ebuild34
5 files changed, 118 insertions, 0 deletions
diff --git a/app-laptop/nvidiabl/Manifest b/app-laptop/nvidiabl/Manifest
new file mode 100644
index 000000000000..be1eb6f2c1ae
--- /dev/null
+++ b/app-laptop/nvidiabl/Manifest
@@ -0,0 +1,8 @@
+AUX nvidiabl-0.87-linux-4.0.patch 904 SHA256 f1a429e7a28e806624556b2951266434ace9370822bfa3e4671c0e96249b299f SHA512 85860cdd66605c88b1d806e8c6962d70c246dd34e463e9c990156b8a023bb7d47585e95a0444ca63827f64fc4a95064c9d12cdec29264b5d4a439dbcb33958ed WHIRLPOOL c01c1ef2091d274e5085e05041226acdc56debafb6675ab6a2409583004ebc68fd60c9d39193dd66832c161187a7a14f6ab6579176d566d0c74781a2b8a28bcd
+DIST nvidiabl-0.83.tar.gz 448594 SHA256 0ea79770c02ae297fb6d660ee28ecf7a7acc346de0a55e3231ce499d4184db0f SHA512 cbf4f042acb9005c25d8d008973220f4d42fe890bfd86a34b72c0e56129dfcdcad2383acacf048e5e9da33aaf759053cdadeddac9e0946ae49a8a29ed03447dd WHIRLPOOL 4d1e13ffe1bed36ffee1c498c6384a9ff3fcc561e3aa443c15106baa9711523b8798f0283e42d6365afa57f8d7b4a394835bbea2eb8c6d41a8910c38d661012b
+DIST nvidiabl-0.87.tar.gz 36563463 SHA256 a5a035520cce17ef1b6b2f98eb6ad10ef7d4d3e55dd2f12b6b961fabc05c5e35 SHA512 778f8b9e7d6d8e9ecbeef745bf3602e56b38757791d7b49ebf3326758117487f7494e232aaa9354b91fd17ee3578c80278e0e60175b274b1a1a93e952dc0dfe5 WHIRLPOOL 3ebca47463ccc1059a3d7dd109479ee9c9bce4332da8ac25aaf14fd8630b72b6620e8941a69fd7e2e734739f894362efff75ace05692a3c402a8981601dd3c36
+EBUILD nvidiabl-0.83.ebuild 886 SHA256 6973541a128da1280f0ec8c0b1d7e048c744eaeb848df0ada0c32d0f203c375c SHA512 f6c9be10669d2c4df5f7131b3f0407ed103a27fa10c802717a59efd19ee78d21a73b1695fa060f4465d965a3b286122ad8d2d042f8b8b22d61596e732cdb81db WHIRLPOOL a94f655b7bf2930902627f4cce882a946acdf2b7d4b4460c669981902f11043b4100cb3f5350b5e177bfd2f78f221aa1019644ff22a79978e807d10a5612786a
+EBUILD nvidiabl-0.87.ebuild 910 SHA256 d44a7556c386b4c9e60c2853fdf521710c28dcd2dd6726f71b2d08d075ced824 SHA512 ab316b3421500eca4a562593075a0c79bbc7e0efc327c43109d0340be8ced1e2905a3069d0c10d780e5a6031dd687c655d20fe59a547cadb14b3fd577fec2613 WHIRLPOOL 06f5b059e4773912da01b2a1e739381af92a964050fc45b9aa704c5dcefc9d3a2df5493bce570d873374d324afbeb0935f1053da6035f7a89b504036c8242515
+MISC ChangeLog 3195 SHA256 96c63c1a0b739e0eeca1181b8418dafd6dd7cb447e0e36e80a138cbc6bff9c1a SHA512 f8887928733c3373c268c3b17d3497e793c9890b3a387478eb0f39497c617d8cdd4483d502e34cd5252c266674ad0c7847b6b62313ae770a24bdc1dbca2b7527 WHIRLPOOL 51776b51a366f15a93db053e5dbfdd52235ea392d211f4d67a424b1186f916cbd4daa0a8b5e60785c4ff30e26c0be0b9f73ce988860edce01379dbbd4f0b3cd1
+MISC ChangeLog-2015 3490 SHA256 c9d4f6d8287dde4f50d86b38343df6409d42e32347ecbea68c4b4a6727bf0ca1 SHA512 a702034e7176cb82754db504f9bce16de33e903dbe059601955295b7d200fc2ddd910e9b696688fc03fd1c6c09148f18f6a0eb81bbcd0028deba9be83d565daf WHIRLPOOL 100168454ef9110b1092af216907fff87e0f623676e065fc184af062aab740947f4dfb35cdbb8e70ecf5fc9a666fd70f75f1fbd0c1073b9e707ffa958387aa55
+MISC metadata.xml 533 SHA256 8d6cb4ef976d99356fedf1268bf304bb923d61e29e390a7dba495e0e9a7e3c78 SHA512 2990b5e49b2a74d1a0b5dd21df5d65c14f7be7edf938bd7f90db61ae45f6ce69ae12420d144c5964e50b943e65862bdd3b312db5d11dea787391b6447d761820 WHIRLPOOL 439503c07a6c5c64c3512bbbb7498b20e5a262f3c15a9aa7c8da2b4c627a1a2de035fdd6e5b6224c0a0e14a081840348d82b757bac88c0776de169848a2a16c7
diff --git a/app-laptop/nvidiabl/files/nvidiabl-0.87-linux-4.0.patch b/app-laptop/nvidiabl/files/nvidiabl-0.87-linux-4.0.patch
new file mode 100644
index 000000000000..b466bcb620c9
--- /dev/null
+++ b/app-laptop/nvidiabl/files/nvidiabl-0.87-linux-4.0.patch
@@ -0,0 +1,23 @@
+From dee67fbf8eeec1651dbee3c2045ce6a93da949dc Mon Sep 17 00:00:00 2001
+From: Thomas Wucher <mail@thomaswucher.de>
+Date: Tue, 14 Apr 2015 08:41:09 +0200
+Subject: [PATCH] Replace strnicmp by stncasecmp to fix build on Linux 4.0
+
+---
+ nvidiabl-module.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/nvidiabl-module.c b/nvidiabl-module.c
+index b789ea4..b306579 100644
+--- a/nvidiabl-module.c
++++ b/nvidiabl-module.c
+@@ -214,7 +214,7 @@ static int __init nvidiabl_init(void)
+ #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,39)
+
+ for (iii = 0 ; iii < sizeof(backlight_type_ids) ; iii++) {
+- if (strnicmp(bl_type, backlight_type_ids[iii].id, sizeof(bl_type)) == 0) {
++ if (strncasecmp(bl_type, backlight_type_ids[iii].id, sizeof(bl_type)) == 0) {
+ props.type = backlight_type_ids[iii].type;
+ printk(KERN_INFO "nvidiabl: backlight type is %s\n", backlight_type_ids[iii].id);
+ }
+
diff --git a/app-laptop/nvidiabl/metadata.xml b/app-laptop/nvidiabl/metadata.xml
new file mode 100644
index 000000000000..906ca943dc9c
--- /dev/null
+++ b/app-laptop/nvidiabl/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>gentoobugzilla@jeltef.nl</email>
+ <name>Jelte Fennema</name>
+ <description>Proxied maintainer; set to assignee in all bugs</description>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">guillaumezin/nvidiabl</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-laptop/nvidiabl/nvidiabl-0.83.ebuild b/app-laptop/nvidiabl/nvidiabl-0.83.ebuild
new file mode 100644
index 000000000000..60f196c88ea6
--- /dev/null
+++ b/app-laptop/nvidiabl/nvidiabl-0.83.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit linux-mod
+
+DESCRIPTION="Linux driver for setting the backlight brightness on laptops using
+NVIDIA GPU"
+HOMEPAGE="https://github.com/guillaumezin/nvidiabl"
+SRC_URI="https://github.com/guillaumezin/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND=""
+
+RESTRICT="test"
+
+BUILD_TARGETS="modules"
+MODULE_NAMES="nvidiabl()"
+
+pkg_pretend() {
+ CONFIG_CHECK="FB_BACKLIGHT"
+ ERROR_FB_BACKLIGHT="Your kernel does not support FB_BACKLIGHT. To enable you
+it you can enable any frame buffer with backlight control or nouveau.
+Note that you cannot use FB_NVIDIA with nvidia's proprietary driver"
+ linux-mod_pkg_setup
+}
+
+src_compile() {
+ BUILD_PARAMS="KVER=${KV_FULL}"
+ MAKEOPTS+=" V=1"
+ linux-mod_src_compile
+}
diff --git a/app-laptop/nvidiabl/nvidiabl-0.87.ebuild b/app-laptop/nvidiabl/nvidiabl-0.87.ebuild
new file mode 100644
index 000000000000..e4179351b278
--- /dev/null
+++ b/app-laptop/nvidiabl/nvidiabl-0.87.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit linux-mod eutils
+
+DESCRIPTION="Linux driver for setting the backlight brightness on laptops using NVIDIA GPU"
+HOMEPAGE="https://github.com/guillaumezin/nvidiabl"
+SRC_URI="https://github.com/guillaumezin/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+pkg_setup() {
+ CONFIG_CHECK="FB_BACKLIGHT"
+ ERROR_FB_BACKLIGHT="Your kernel does not support FB_BACKLIGHT. To enable you
+it you can enable any frame buffer with backlight control or nouveau.
+Note that you cannot use FB_NVIDIA with nvidia's proprietary driver"
+ linux-mod_pkg_setup
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-linux-4.0.patch
+}
+
+src_compile() {
+ BUILD_PARAMS="KVER=${KV_FULL}"
+ BUILD_TARGETS="modules"
+ MODULE_NAMES="nvidiabl()"
+
+ MAKEOPTS+=" V=1"
+ linux-mod_src_compile
+}