diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /app-laptop/tpb |
reinit the tree, so we can have metadata
Diffstat (limited to 'app-laptop/tpb')
-rw-r--r-- | app-laptop/tpb/Manifest | 7 | ||||
-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, 100 insertions, 0 deletions
diff --git a/app-laptop/tpb/Manifest b/app-laptop/tpb/Manifest new file mode 100644 index 000000000000..83fb8396a1ac --- /dev/null +++ b/app-laptop/tpb/Manifest @@ -0,0 +1,7 @@ +AUX tpb-0.6.4-nvram.patch 2321 SHA256 1979ed13e446db8f6cfe3e7af60fe51fd60481888fd73420f53fdd3f4dd82085 SHA512 0e59e3c01805c608738b6539e4cab78d7377b0550c08636b51f4df0ed02d3adb2d391d5e76bdf043a835fb523492dea8c0c7293915f0dc60df357dec4d759457 WHIRLPOOL ddee2555060017d017460a66132b1153f22188b1ceab4e7692a8bcae3aa19db64b70e03d0f3eea4fd3bccbfbb24d571abefa0a4e38d80943cdd5c1b8b10576c7 +AUX tpb-configure-fix.diff 478 SHA256 53baa3169b178737ffc59f108853cf79f78e8bf5ed0612ea3d95fe556cb4a0aa SHA512 461088eb82e66976a6bf591e4bb0de43e76c8aa9e404448d862535a27acb2857fcf3b5830edc6ece650857eb0e1ed24e7366c83d77d2e91b427f96f68928b32a WHIRLPOOL ca675b1025bc6cfda2ac4c9553c90de356d7eb24a2a331dc7fa740eb3bfce9ac77a403efed9f304e9ae814cf0e0e2be5f4f37ad1a1dc630614616ce1c9cd3c85 +DIST tpb-0.6.4.tar.gz 280316 SHA256 9ce4599ff4cb7397a3f49f747ff0225ef32bc6152778e55419f15aaf4cbff32a SHA512 1a12f4231b86bc3da2867670d5800f8f99f347743cf40b229c92485b6fe52e12b0222356d95d071ec26162ac778d2fe40867b4e635701620bc52236dbdb7b76a WHIRLPOOL 3b9fba89561d3c02cb2b36a266d52cba3d08f8305bcc2863b900ca3b8a2c8e5f1705bb1ffd20c03f8d28f531092ac26e2caaac634ad599f4601b9c6171652dfc +EBUILD tpb-0.6.4-r1.ebuild 806 SHA256 79a4099253922c64a17dd41a5f62f48c6c9a64c959ea6ec081d94d2d1b436e03 SHA512 ee233ff77a410ae38578e36787e462580c3fca7d6273c1965cf3da5cc09d84afe1f5f252863de79155235125f5440d6b1b482e632161255b93b0cb23ff848a55 WHIRLPOOL c29b6304c55dc8311dde6281f84abfce881e44dd87802155c1b921aadf90d0bde3dd6f3cfb650c8641c2e483b7b0b0bacfbf80b90d877beb75f7b84f9e85d45d +MISC ChangeLog 2686 SHA256 f27f27d81bd7b58296d8540f27e2eacad54fea6faa77a9319f78ad1241c08cb2 SHA512 5b0f279a9e75b179f249a07c283807a00682bb6856acf8ec067dcb05dbc7470875b893e2d1e6f9a09592a0288d03b7466be3dc0c03fb4daaf1ebe6b1d473f3c9 WHIRLPOOL 8a7c11cac2d04511a2da21547717d88e38aca27c3390150bd3b95f8efff67aa8846f1e3d40d242e4218f44026dd23b517c906ec1b9728212fc2901209d05081a +MISC ChangeLog-2015 3601 SHA256 af99c07d8826e8537d1ac41b74b38f13c5a42de14dec2a60e6d802c8e9d0ee6d SHA512 13fe25e15abb6985036cfbc7a77154349e44507e8324a497ff04194a3f7af5e191434d1c770b074abcc25c76fca229909bedd03b0e18ad3ad1646f6a26ee4786 WHIRLPOOL 10c68ee1b0ac17af40b4027804643b80050ae60e2c7fe1f7d2579d01c60903167095d1c2e42122d4734ba8b0e9bef296c48b690752d5b2f1e1fd36c5e8114d79 +MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968 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} +} |