diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /app-laptop/tpb | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'app-laptop/tpb')
-rw-r--r-- | app-laptop/tpb/Manifest | 5 | ||||
-rw-r--r-- | app-laptop/tpb/files/tpb-0.6.4-nvram.patch | 34 | ||||
-rw-r--r-- | app-laptop/tpb/files/tpb-configure-fix.diff | 16 | ||||
-rw-r--r-- | app-laptop/tpb/metadata.xml | 5 | ||||
-rw-r--r-- | app-laptop/tpb/tpb-0.6.4-r1.ebuild | 38 |
5 files changed, 98 insertions, 0 deletions
diff --git a/app-laptop/tpb/Manifest b/app-laptop/tpb/Manifest new file mode 100644 index 000000000000..bd23395c9922 --- /dev/null +++ b/app-laptop/tpb/Manifest @@ -0,0 +1,5 @@ +AUX tpb-0.6.4-nvram.patch 2321 BLAKE2B 183d5a76ffda4d0da3b9e7f06add1c0258bd56fb651980599d6401bc914f3b95aa584ab7835d3a9a6a2865208a325e22f6ae07caa9790207b7212c813c15ab14 SHA512 0e59e3c01805c608738b6539e4cab78d7377b0550c08636b51f4df0ed02d3adb2d391d5e76bdf043a835fb523492dea8c0c7293915f0dc60df357dec4d759457 +AUX tpb-configure-fix.diff 478 BLAKE2B bb28bd7f2f0c0bf10904f97314323244999688726d96786e46b7c5e3b5d3e248f1f74a42cc6908eafce3fd97e7db073eb7497339eaf9849babad4b7762635511 SHA512 461088eb82e66976a6bf591e4bb0de43e76c8aa9e404448d862535a27acb2857fcf3b5830edc6ece650857eb0e1ed24e7366c83d77d2e91b427f96f68928b32a +DIST tpb-0.6.4.tar.gz 280316 BLAKE2B c629840245d2e749f3669e274da72baffb2856f969346d1f1feed3e45b9909f1ba12d125e48baa4cd29d021a04cba9cddec35edad80bd3ccff1ffea1423157a3 SHA512 1a12f4231b86bc3da2867670d5800f8f99f347743cf40b229c92485b6fe52e12b0222356d95d071ec26162ac778d2fe40867b4e635701620bc52236dbdb7b76a +EBUILD tpb-0.6.4-r1.ebuild 806 BLAKE2B 1667105c2af273a522cb695fa54090808b56ddfa41a8d9cc1707cb05b43c2829000a6b4d256089918cf382b7fddb3060965dd042475befd6dbbd4b1d3f65126c SHA512 ee233ff77a410ae38578e36787e462580c3fca7d6273c1965cf3da5cc09d84afe1f5f252863de79155235125f5440d6b1b482e632161255b93b0cb23ff848a55 +MISC metadata.xml 166 BLAKE2B c254f1fb642881aba57637be14fb0a89b10384f91a128feaec3a8c870d76efc2cbacb92caccc0dee2dd19a5ac5eaf8643080dafa05c4e2ac96a68568927e5afd SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 diff --git a/app-laptop/tpb/files/tpb-0.6.4-nvram.patch b/app-laptop/tpb/files/tpb-0.6.4-nvram.patch new file mode 100644 index 000000000000..1ead9cbe5929 --- /dev/null +++ b/app-laptop/tpb/files/tpb-0.6.4-nvram.patch @@ -0,0 +1,34 @@ +diff -Naur tpb-0.6.4-org/src/tpb.c tpb-0.6.4/src/tpb.c +--- tpb-0.6.4-org/src/tpb.c 2005-07-18 16:15:59.000000000 +0200 ++++ tpb-0.6.4/src/tpb.c 2008-05-13 15:15:34.000000000 +0200 +@@ -523,10 +523,10 @@ + /* determine the state of the brightness buttons {{{ */ + if(thinkpad_state.brightness_level != last_thinkpad_state.brightness_level) { + if(cfg.verbose == STATE_ON) { +- printf(_("Brightness changed: Level %d\n"), thinkpad_state.brightness_level * 100 / 7); ++ printf(_("Brightness changed: Level %d\n"), thinkpad_state.brightness_level * 100 / 15); + } + if(cfg.callback != NULL) { +- snprintf(callback_cmd, sizeof(callback_cmd), "%s brightness %d", cfg.callback, thinkpad_state.brightness_level * 100 / 7); ++ snprintf(callback_cmd, sizeof(callback_cmd), "%s brightness %d", cfg.callback, thinkpad_state.brightness_level * 100 / 15); + if(fork_app(callback_cmd) != 0) { + _exit(0); + } +@@ -537,7 +537,7 @@ + if(osd_ptr != NULL && + ((cfg.osd == STATE_OFF && cfg.osdbrightness == STATE_ON) || (cfg.osd == STATE_ON && cfg.osdbrightness != STATE_OFF))) { + xosd_display(osd_ptr, 0, XOSD_string, _("Brightness")); +- xosd_display(osd_ptr, 1, XOSD_percentage, thinkpad_state.brightness_level * 100 / 7); ++ xosd_display(osd_ptr, 1, XOSD_percentage, thinkpad_state.brightness_level * 100 / 15); + } + } + #endif /* HAVE_LIBXOSD */ /* }}} */ +@@ -1031,7 +1031,7 @@ + thinkpad_state->hibernate_toggle = (thinkpad_state->hibernate_toggle & ~0x01) | (( buffer[0x58] & 0x01) ); + thinkpad_state->display_state = (( buffer[0x59] & 0x03) ); + thinkpad_state->expand_toggle = (thinkpad_state->expand_toggle & ~0x01) | (( buffer[0x59] & 0x10) >> 4); +- thinkpad_state->brightness_level = (( buffer[0x5E] & 0x07) ); ++ thinkpad_state->brightness_level = (( buffer[0x5E] & 0x0F) ); + thinkpad_state->brightness_toggle = (thinkpad_state->brightness_toggle & ~0x01) | (( buffer[0x5E] & 0x20) >> 5); + thinkpad_state->volume_level = (( buffer[0x60] & 0x0f) ); + thinkpad_state->volume_toggle = (thinkpad_state->volume_toggle & ~0x01) | (( buffer[0x60] & 0x80) >> 7); diff --git a/app-laptop/tpb/files/tpb-configure-fix.diff b/app-laptop/tpb/files/tpb-configure-fix.diff new file mode 100644 index 000000000000..7dc4683d158b --- /dev/null +++ b/app-laptop/tpb/files/tpb-configure-fix.diff @@ -0,0 +1,16 @@ +diff -aur tpb-0.5.1/configure tpb-0.5.1-patched/configure +--- tpb-0.5.1/configure 2003-04-10 04:06:26.000000000 -0400 ++++ tpb-0.5.1-patched/configure 2003-06-30 12:06:41.000000000 -0400 +@@ -790,10 +790,10 @@ + + # additional options + # Check whether --enable-xosd or --disable-xosd was given. +-if test "${enable_xosd+set}" = set; then +- enableval="$enable_xosd" ++if test "x${enable_xosd}" = xno; then + enable_xosd=no + else ++ enableval="$enable_xosd" + enable_xosd=yes + fi + diff --git a/app-laptop/tpb/metadata.xml b/app-laptop/tpb/metadata.xml new file mode 100644 index 000000000000..6f49eba8f496 --- /dev/null +++ b/app-laptop/tpb/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<!-- maintainer-needed --> +</pkgmetadata> diff --git a/app-laptop/tpb/tpb-0.6.4-r1.ebuild b/app-laptop/tpb/tpb-0.6.4-r1.ebuild new file mode 100644 index 000000000000..f8bff7aa3280 --- /dev/null +++ b/app-laptop/tpb/tpb-0.6.4-r1.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit linux-info eutils + +DESCRIPTION="IBM ThinkPad buttons utility" +HOMEPAGE="https://savannah.nongnu.org/projects/tpb/" +SRC_URI="https://savannah.nongnu.org/download/tpb/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 -ppc x86" +IUSE="nls xosd" + +RDEPEND="x11-libs/libXt + x11-libs/libXext + xosd? ( >=x11-libs/xosd-2.2.0 )" +DEPEND="${RDEPEND}" + +CONFIG_CHECK="~NVRAM" +ERROR_NVRAM="${P} requires /dev/nvram support (CONFIG_NVRAM)" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-configure-fix.diff + epatch "${FILESDIR}"/${P}-nvram.patch +} + +src_configure() { + econf \ + $(use_enable nls) \ + $(use_enable xosd) +} + +src_install() { + default + dodoc doc/{callback_example.sh,nvram.txt,tpbrc} +} |