[gentoo-commits] repo/proj/guru:dev commit in: gui-apps/1password/

2024-03-28 Thread Jay Faulkner
commit: a5317d8f33a5c3c23b2ae6d23f47d68736fe473e
Author: Jay Faulkner  jvf  cc>
AuthorDate: Thu Mar 28 22:26:30 2024 +
Commit:     Jay Faulkner  jvf  cc>
CommitDate: Thu Mar 28 22:32:42 2024 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=a5317d8f

gui-apps/1password-8.10.28: Fix systemd-utils dep

Before this change, this was uninstallable on systemd profiles.

Signed-off-by: Jay Faulkner  jvf.cc>

 gui-apps/1password/1password-8.10.28.ebuild | 5 -
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/gui-apps/1password/1password-8.10.28.ebuild 
b/gui-apps/1password/1password-8.10.28.ebuild
index 8183250656..bf55bdd2d2 100644
--- a/gui-apps/1password/1password-8.10.28.ebuild
+++ b/gui-apps/1password/1password-8.10.28.ebuild
@@ -31,7 +31,10 @@ RDEPEND="
media-libs/mesa
net-print/cups
sys-apps/dbus
-   sys-apps/systemd-utils
+   || (
+   sys-apps/systemd-utils
+   sys-apps/systemd
+   )
sys-libs/zlib
x11-libs/cairo
x11-libs/gtk+:3



[gentoo-commits] repo/proj/guru:dev commit in: sys-power/tlp/, sys-power/tlp/files/

2022-10-13 Thread Jay Faulkner
commit: 49bd36df466d5f61e857a6a2084925efbcf73de3
Author: Jay Faulkner  jvf  cc>
AuthorDate: Thu Oct 13 23:03:23 2022 +
Commit:     Jay Faulkner  jvf  cc>
CommitDate: Thu Oct 13 23:05:12 2022 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=49bd36df

sys-power/tlp: treeclean

Imported to ::gentoo in bce5e19

Signed-off-by: Jay Faulkner  jvf.cc>

 sys-power/tlp/Manifest |  1 -
 sys-power/tlp/files/tlp.init   | 28 ---
 sys-power/tlp/metadata.xml |  8 
 sys-power/tlp/tlp-1.5.0.ebuild | 44 --
 4 files changed, 81 deletions(-)

diff --git a/sys-power/tlp/Manifest b/sys-power/tlp/Manifest
deleted file mode 100644
index 5cddbd3ad..0
--- a/sys-power/tlp/Manifest
+++ /dev/null
@@ -1 +0,0 @@
-DIST tlp-1.5.0.tar.gz 126447 BLAKE2B 
cdd2a5d094d1146a534de07cc646fd428a97f8d40c3d4ed5ec0522848ebe3a4182e36617854feeab7fa8923f7e7ef6797623a09609fdfa2a2b5dda321b188b31
 SHA512 
93be83f276b902467049160c20a546cdf2f0ec221274bbb4761bf89a8da09f10a494ce2f36379ef9be48ca2e7325de8e582f5dbb823e2ddd339366bae1228122

diff --git a/sys-power/tlp/files/tlp.init b/sys-power/tlp/files/tlp.init
deleted file mode 100644
index f50de9029..0
--- a/sys-power/tlp/files/tlp.init
+++ /dev/null
@@ -1,28 +0,0 @@
-#!/sbin/openrc-run
-command=/usr/sbin/tlp
-name="TLP"
-extra_started_commands="reload stat"
-
-depend() {
-   need udev
-}
-
-start() {
-   ebegin "Starting tlp..."
-   $command init start
-   eend $?
-}
-
-reload() {
-   ebegin "Reloading tlp's configuration..."
-   $command start
-   eend $?
-}
-
-stop() {
-   elog "Reboot to stop tlp."
-}
-
-stat() {
-   /usr/bin/tlp-stat
-}

diff --git a/sys-power/tlp/metadata.xml b/sys-power/tlp/metadata.xml
deleted file mode 100644
index 62988a0d4..0
--- a/sys-power/tlp/metadata.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-https://www.gentoo.org/dtd/metadata.dtd'>
-
-   
-   duje.mihano...@skole.hr
-   Duje Mihanović
-   
-

diff --git a/sys-power/tlp/tlp-1.5.0.ebuild b/sys-power/tlp/tlp-1.5.0.ebuild
deleted file mode 100644
index bf187..0
--- a/sys-power/tlp/tlp-1.5.0.ebuild
+++ /dev/null
@@ -1,44 +0,0 @@
-# Copyright 1999-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit udev optfeature
-
-DESCRIPTION="Optimize laptop battery life"
-HOMEPAGE="https://linrunner.de/tlp/;
-SRC_URI="https://github.com/linrunner/TLP/archive/refs/tags/${PV}.tar.gz -> 
${P}.tar.gz"
-S="${WORKDIR}/TLP-${PV}"
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64"
-RESTRICT="mirror"
-# It's uncertain if elogind/systemd is actually required, however, without the 
sleep
-# hooks working, which require one of them, it doesn't seem like this app is 
very useful.
-RDEPEND="virtual/udev
-   || ( sys-auth/elogind sys-apps/systemd )"
-DEPEND="${RDEPEND}"
-
-src_install() {
-   emake \
-   DESTDIR="${D}" \
-   TLP_NO_INIT=1 \
-   TLP_WITH_ELOGIND=1 \
-   TLP_WITH_SYSTEMD=1 \
-   install install-man
-
-   fperms 444 "/usr/share/tlp/defaults.conf" # manpage says this file 
should not be edited
-   newinitd "${FILESDIR}/tlp.init" tlp
-   keepdir "/var/lib/tlp" # created by Makefile, probably important
-}
-
-pkg_postinst() {
-   udev_reload
-
-   optfeature "disable Wake-on-LAN" sys-apps/ethtool
-   optfeature "see disk drive health info in tlp-stat" 
sys-apps/smartmontools
-}
-
-pkg_postrm() {
-   udev_reload
-}



[gentoo-commits] repo/proj/guru:dev commit in: dev-games/godot/files/, dev-games/godot/

2022-09-01 Thread Jay Faulkner
commit: 220f64b1c15644bd4853eff296c38b2cd4018f76
Author: Jay Faulkner  jvf  cc>
AuthorDate: Fri Sep  2 02:20:28 2022 +
Commit:     Jay Faulkner  jvf  cc>
CommitDate: Fri Sep  2 02:21:00 2022 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=220f64b1

dev-games/godot: treeclean, migrated to ::gentoo

Signed-Off-By: Jay Faulkner  jvf.cc>

 dev-games/godot/Manifest   |   1 -
 .../godot/files/godot-3.3.2-fix-llvm-build.patch   |  36 -
 dev-games/godot/godot-3.3.2-r1.ebuild  | 145 -
 dev-games/godot/metadata.xml   |  30 -
 4 files changed, 212 deletions(-)

diff --git a/dev-games/godot/Manifest b/dev-games/godot/Manifest
deleted file mode 100644
index 26b22352d..0
--- a/dev-games/godot/Manifest
+++ /dev/null
@@ -1 +0,0 @@
-DIST godot-3.3.2.tar.gz 29524679 BLAKE2B 
1d7ee1703388d98c41524f64a99859216b060daad4502c4118adf31a95d45aa230d058630ae8735282a9b5d9f7c1ee464fb4caf9f92e3e55340370e007102f8d
 SHA512 
3a8d187d44460ce0f28f9d26fabb30b5a9af651d9d1a1446480823885aae3ad018e32a072d4d60cf5d2c152b97759cee2172ca314c517d01cff8ddf05d91c24e

diff --git a/dev-games/godot/files/godot-3.3.2-fix-llvm-build.patch 
b/dev-games/godot/files/godot-3.3.2-fix-llvm-build.patch
deleted file mode 100644
index 7cb5823eb..0
--- a/dev-games/godot/files/godot-3.3.2-fix-llvm-build.patch
+++ /dev/null
@@ -1,36 +0,0 @@
-diff --git a/SConstruct b/SConstruct
-index c30f533..388be69 100644
 a/SConstruct
-+++ b/SConstruct
-@@ -174,6 +174,8 @@ opts.Add(BoolVariable("builtin_zstd", "Use the built-in 
Zstd library", True))
- # Compilation environment setup
- opts.Add("CXX", "C++ compiler")
- opts.Add("CC", "C compiler")
-+opts.Add("AR", "Archiver")
-+opts.Add("RANLIB", "Random Access Library Indexer")
- opts.Add("LINK", "Linker")
- opts.Add("CCFLAGS", "Custom flags for both the C and C++ compilers")
- opts.Add("CFLAGS", "Custom flags for the C compiler")
-diff --git a/platform/x11/detect.py b/platform/x11/detect.py
-index ba5fb30..d907701 100644
 a/platform/x11/detect.py
-+++ b/platform/x11/detect.py
-@@ -129,7 +129,6 @@ def configure(env):
- if "clang++" not in os.path.basename(env["CXX"]):
- env["CC"] = "clang"
- env["CXX"] = "clang++"
--env.extra_suffix = ".llvm" + env.extra_suffix
- 
- if env["use_lld"]:
- if env["use_llvm"]:
-@@ -189,10 +188,6 @@ def configure(env):
- env.Append(CCFLAGS=["-flto"])
- env.Append(LINKFLAGS=["-flto"])
- 
--if not env["use_llvm"]:
--env["RANLIB"] = "gcc-ranlib"
--env["AR"] = "gcc-ar"
--
- env.Append(CCFLAGS=["-pipe"])
- env.Append(LINKFLAGS=["-pipe"])
- 

diff --git a/dev-games/godot/godot-3.3.2-r1.ebuild 
b/dev-games/godot/godot-3.3.2-r1.ebuild
deleted file mode 100644
index bee4feb73..0
--- a/dev-games/godot/godot-3.3.2-r1.ebuild
+++ /dev/null
@@ -1,145 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-PYTHON_COMPAT=( python3_{8..9} )
-
-inherit desktop python-any-r1 scons-utils toolchain-funcs xdg
-
-DESCRIPTION="Multi-platform 2D and 3D game engine"
-HOMEPAGE="https://godotengine.org;
-
-SRC_URI="https://github.com/godotengine/${PN}/archive/${PV}-stable.tar.gz -> 
${P}.tar.gz"
-S="${WORKDIR}/${P}-stable"
-KEYWORDS="~amd64 ~x86"
-
-LICENSE="Apache-2.0 Boost-1.0 BSD CC-BY-3.0 MIT MPL-2.0 OFL-1.1 public-domain 
ZLIB"
-SLOT="0/3"
-IUSE="+bullet debug deprecated +enet +freetype lto +mbedtls +ogg +opus 
pulseaudio +raycast +theora +udev +upnp +vorbis +webp"
-
-RDEPEND="
-   app-arch/lz4
-   app-arch/zstd
-   dev-libs/libpcre2[pcre32]
-   media-libs/alsa-lib
-   media-libs/embree:3
-   media-libs/libpng:0=
-   media-libs/libvpx
-   media-libs/mesa[gles2]
-   sys-libs/zlib
-   x11-libs/libX11
-   x11-libs/libXcursor
-   x11-libs/libXi
-   x11-libs/libXinerama
-   virtual/glu
-   virtual/opengl
-   bullet? ( >=sci-physics/bullet-2.89 )
-   enet? ( net-libs/enet:= )
-   freetype? ( media-libs/freetype:2 )
-   mbedtls? ( net-libs/mbedtls )
-   ogg? ( media-libs/libogg )
-   opus? (
-   media-libs/opus
-   media-libs/opusfile
-   )
-   pulseaudio? ( media-sound/pulseaudio )
-   theora? ( media-libs/libtheora )
-   udev? ( virtual/udev )
-   upnp? ( net-libs/miniupnpc )
-   vorbis? ( media-libs/libvorbis )
-   web

[gentoo-commits] repo/proj/guru:dev commit in: games-util/mangohud/

2022-09-01 Thread Jay Faulkner
commit: 56a16cb2b9804e88b146e69c6c96cb9437c9bf44
Author: Jay Faulkner  jvf  cc>
AuthorDate: Fri Sep  2 02:09:39 2022 +
Commit:     Jay Faulkner  jvf  cc>
CommitDate: Fri Sep  2 02:10:29 2022 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=56a16cb2

Revert "games-util/mangohud: version bump to 0.6.8"

This reverts commit 4636e479e98f107273cecb1565c4198a149d3284.

Causing pkgcheck failures:
games-util/mangohud
  NonsolvableDepsInStable: version 0.6.8: nonsolvable depset(depend) 
keyword(~x86) stable profile (default/linux/x86/17.0) (20 total): solutions: [ 
~media-libs/imgui-1.81 ]
  NonsolvableDepsInStable: version 0.6.8: nonsolvable depset(rdepend) 
keyword(~x86) stable profile (default/linux/x86/17.0) (20 total): solutions: [ 
~media-libs/imgui-1.81 ]
  NonsolvableDepsInStable: version : nonsolvable depset(depend) 
keyword(~x86) stable profile (default/linux/x86/17.0) (20 total): solutions: [ 
~media-libs/imgui-1.81 ]
  NonsolvableDepsInStable: version : nonsolvable depset(rdepend) 
keyword(~x86) stable profile (default/linux/x86/17.0) (20 total): solutions: [ 
~media-libs/imgui-1.81 ]
  VisibleVcsPkg: version : VCS version visible for KEYWORDS="~amd64", 
profile default/linux/amd64/17.0/x32 (52 total)

reverted by instruction of sam_ in #gentoo-guru

Signed-Off-By: Jay Faulkner  jvf.cc>

 games-util/mangohud/Manifest  |   1 -
 games-util/mangohud/mangohud-0.6.8.ebuild | 100 --
 games-util/mangohud/mangohud-.ebuild  |  92 ---
 3 files changed, 193 deletions(-)

diff --git a/games-util/mangohud/Manifest b/games-util/mangohud/Manifest
index 97ecf7cc5..16dbf2e48 100644
--- a/games-util/mangohud/Manifest
+++ b/games-util/mangohud/Manifest
@@ -2,4 +2,3 @@ DIST imgui-1.81-1-meson-wrap.zip 1850 BLAKE2B 
325f84fd57a896ec9aceb83a54752e8dba
 DIST imgui-1.81.tar.gz 1413443 BLAKE2B 
6f2e63777821b2767da92d9f40f4de7b4313c38817413e959e612c0ce67701645cf29f0748a3b86cfbd41e0b4b2c8099e9a0ca786c637ca1661fffd7b0de0629
 SHA512 
d7a2b66dea77359f78068a595607d7668e09ddd0b91910f67fc6463cb920b91b0cc1855984bd4d41e6a880b69ca7cd5e3adc064dcf461c0629b9f8c845a4fc3e
 DIST mangohud-0.6.6.1.tar.gz 14839055 BLAKE2B 
e0e27e62bf688b80611461ecab1bf4cf2c39f8359a9dc2cc1362555bfca55db30a72684da4e07e03970d8e5dee1d26f1d7a1fa30ff47aa86ec653dba273f24cf
 SHA512 
c097dede7e534641f12a9c7f0a2ce049611e17732c7d232251b38d5c50bbcee53b2b22e548ff27f514fa57a45c563d883a1a9382c2c0ee9ac6832a2775e8f221
 DIST mangohud-0.6.7.1.tar.gz 14834501 BLAKE2B 
6fdd91309531f32d663a0bec4f3edd26095781290ce40294f4ea87297855ce210efbc57443710aa180652bc555887519a12166c76dec19cdf3037bbdc384db15
 SHA512 
7d5250cc6a50215430cc79c7d11ad18219be374966383ab3f6cba9626fa045c973245d74bc32d75649adebf0fdc7acd086f5afdf5e1708e35da1f7a920a54f1d
-DIST mangohud-0.6.8.tar.gz 14844076 BLAKE2B 
0da41ecac5e608e755cd1f3bbb3cff698e55a59adb3a5e5c42d1b8b19b1c0666c572016c29db11992ff72abaa80b756bbd50687ce17409380e89a2554f13dee1
 SHA512 
c2344c21dedebce0c56e88db476177eef29bab9e418a3c5ba13d1059d81f3ee23718e2f9257e32f9f62dcaf6554c65cbf36dac691b2bb3c355def2c9de0a52cc

diff --git a/games-util/mangohud/mangohud-0.6.8.ebuild 
b/games-util/mangohud/mangohud-0.6.8.ebuild
deleted file mode 100644
index e77071978..0
--- a/games-util/mangohud/mangohud-0.6.8.ebuild
+++ /dev/null
@@ -1,100 +0,0 @@
-# Copyright 1999-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_{8..10} )
-
-inherit python-any-r1 meson
-
-MY_PV=$(ver_cut 1-3)
-[[ -n "$(ver_cut 4)" ]] && MY_PV_REV="-$(ver_cut 4)"
-
-DESCRIPTION="A Vulkan and OpenGL overlay for monitoring FPS, temperatures, 
CPU/GPU load and more"
-HOMEPAGE="https://github.com/flightlessmango/MangoHud;
-
-SRC_URI="
-   
https://github.com/flightlessmango/MangoHud/archive/v${MY_PV}${MY_PV_REV}.tar.gz
 -> ${P}.tar.gz
-"
-
-KEYWORDS="~amd64 ~x86"
-
-LICENSE="MIT"
-SLOT="0"
-IUSE="+dbus debug +X xnvctrl wayland video_cards_nvidia"
-
-REQUIRED_USE="
-   || ( X wayland )
-   xnvctrl? ( video_cards_nvidia )"
-
-BDEPEND="
-   app-arch/unzip
-   $(python_gen_any_dep 'dev-python/mako[${PYTHON_USEDEP}]')
-"
-
-python_check_deps() {
-   python_has_version "dev-python/mako[${PYTHON_USEDEP}]"
-}
-
-DEPEND="
-   ~media-libs/imgui-1.81
-   dev-libs/spdlog
-   dev-util/glslang
-   >=dev-util/vulkan-headers-1.2
-   media-libs/vulkan-loader
-   media-libs/libglvnd
-   x11-libs/libdrm
-   dbus? ( sys-apps/dbus )
-   X? ( x11-libs/libX11 )
-   video_cards_nvidia? (
-   x11-drivers/nvidia-drivers
-   xnvctrl? ( x11-drivers/nvidia-drivers[static-libs] )
-   )
-   wayland? ( dev-libs/wayland )
-"
-
-RDEPEND="${DEPEND}"
-
-S="${WORKDIR}/MangoH

[gentoo-commits] repo/proj/guru:dev commit in: sys-power/tlp/

2022-09-01 Thread Jay Faulkner
commit: 4c77f8f888abd2553fc03a6c54d6c0a2a0424b69
Author: Jay Faulkner  jvf  cc>
AuthorDate: Fri Sep  2 01:47:15 2022 +
Commit:     Jay Faulkner  jvf  cc>
CommitDate: Fri Sep  2 02:09:24 2022 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=4c77f8f8

sys-power/tlp: Remove unneeded use flags

The systemd and elogind toggles in the tlp build only toggle
installation of unit file and sleep triggers. There's no need to
conditionally install those per PG#0301.

Signed-Off-By: Jay Faulkner  jvf.cc>

 sys-power/tlp/tlp-1.5.0.ebuild | 15 ++-
 1 file changed, 6 insertions(+), 9 deletions(-)

diff --git a/sys-power/tlp/tlp-1.5.0.ebuild b/sys-power/tlp/tlp-1.5.0.ebuild
index 0fc6f0d01..bf187 100644
--- a/sys-power/tlp/tlp-1.5.0.ebuild
+++ b/sys-power/tlp/tlp-1.5.0.ebuild
@@ -12,25 +12,22 @@ S="${WORKDIR}/TLP-${PV}"
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="~amd64"
-IUSE="bash-completion elogind systemd"
 RESTRICT="mirror"
+# It's uncertain if elogind/systemd is actually required, however, without the 
sleep
+# hooks working, which require one of them, it doesn't seem like this app is 
very useful.
 RDEPEND="virtual/udev
-   bash-completion? ( app-shells/bash app-shells/bash-completion )
-   elogind? ( sys-auth/elogind )
-   systemd? ( sys-apps/systemd )"
+   || ( sys-auth/elogind sys-apps/systemd )"
 DEPEND="${RDEPEND}"
-REQUIRED_USE="?? ( elogind systemd )"
 
 src_install() {
emake \
DESTDIR="${D}" \
TLP_NO_INIT=1 \
-   TLP_NO_BASHCOMP=$(usex bash-completion 0 1) \
-   TLP_WITH_ELOGIND=$(usex elogind 1 0) \
-   TLP_WITH_SYSTEMD=$(usex systemd 1 0) \
+   TLP_WITH_ELOGIND=1 \
+   TLP_WITH_SYSTEMD=1 \
install install-man
 
-   chmod 444 "${D}/usr/share/tlp/defaults.conf" # manpage says this file 
should not be edited
+   fperms 444 "/usr/share/tlp/defaults.conf" # manpage says this file 
should not be edited
newinitd "${FILESDIR}/tlp.init" tlp
keepdir "/var/lib/tlp" # created by Makefile, probably important
 }



[gentoo-commits] repo/proj/guru:dev commit in: sys-power/tlp/, sys-power/tlp/files/

2022-08-27 Thread Jay Faulkner
commit: 01c3100ab2fbccb88ce6157b04d1855bd29f87ee
Author: Jay Faulkner  jvf  cc>
AuthorDate: Sun Aug 28 04:53:40 2022 +
Commit:     Jay Faulkner  jvf  cc>
CommitDate: Sun Aug 28 05:28:58 2022 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=01c3100a

sys-power/tlp: Fix systemd support

Prior to this change, systemd units were not properly installed.

Additional style and simplification fixes as needed.

Signed-off-by: Jay Faulkner  jvf.cc>

 sys-power/tlp/files/tlp-1.5.0-Makefile.patch | 18 --
 sys-power/tlp/tlp-1.5.0.ebuild   | 21 +++--
 2 files changed, 3 insertions(+), 36 deletions(-)

diff --git a/sys-power/tlp/files/tlp-1.5.0-Makefile.patch 
b/sys-power/tlp/files/tlp-1.5.0-Makefile.patch
deleted file mode 100644
index 58667ee21..0
--- a/sys-power/tlp/files/tlp-1.5.0-Makefile.patch
+++ /dev/null
@@ -1,18 +0,0 @@
-diff --git a/Makefile b/Makefile
-index b81451c..d154b6b 100644
 a/Makefile
-+++ b/Makefile
-@@ -14,10 +14,10 @@ TLP_CONFDIR ?= /etc/tlp.d
- TLP_CONFDEF ?= /usr/share/tlp/defaults.conf
- TLP_CONFREN ?= /usr/share/tlp/rename.conf
- TLP_CONF?= /etc/default/tlp
--TLP_SYSD?= /lib/systemd/system
--TLP_SDSL?= /lib/systemd/system-sleep
-+TLP_SYSD?= /@LIBDIR@/systemd/system
-+TLP_SDSL?= /@LIBDIR@/systemd/system-sleep
- TLP_SYSV?= /etc/init.d
--TLP_ELOD?= /lib/elogind/system-sleep
-+TLP_ELOD?= /@LIBDIR@/elogind/system-sleep
- TLP_SHCPL   ?= /usr/share/bash-completion/completions
- TLP_MAN ?= /usr/share/man
- TLP_META?= /usr/share/metainfo

diff --git a/sys-power/tlp/tlp-1.5.0.ebuild b/sys-power/tlp/tlp-1.5.0.ebuild
index d2cc2f1fe..0fc6f0d01 100644
--- a/sys-power/tlp/tlp-1.5.0.ebuild
+++ b/sys-power/tlp/tlp-1.5.0.ebuild
@@ -20,29 +20,14 @@ RDEPEND="virtual/udev
systemd? ( sys-apps/systemd )"
 DEPEND="${RDEPEND}"
 REQUIRED_USE="?? ( elogind systemd )"
-PATCHES="${FILESDIR}/${PN}-1.5.0-Makefile.patch"
-CONFIG_PROTECT="/etc/tlp.conf /etc/tlp.d"
-
-src_prepare() {
-   default
-   sed -i "s/@LIBDIR@/$(get_libdir)/g" "${S}/Makefile"
-}
-
-src_compile() {
-   emake
-}
 
 src_install() {
-   if use bash-completion; then export bashcomp=0; else export bashcomp=1; 
fi
-   if use elogind; then export elogind=1; else export elogind=0; fi
-   if use systemd; then export systemd=1; else export systemd=0; fi
-
emake \
DESTDIR="${D}" \
TLP_NO_INIT=1 \
-   TLP_NO_BASHCOMP=$bashcomp \
-   TLP_WITH_ELOGIND=$elogind \
-   TLP_WITH_SYSTEMD=$systemd \
+   TLP_NO_BASHCOMP=$(usex bash-completion 0 1) \
+   TLP_WITH_ELOGIND=$(usex elogind 1 0) \
+   TLP_WITH_SYSTEMD=$(usex systemd 1 0) \
install install-man
 
chmod 444 "${D}/usr/share/tlp/defaults.conf" # manpage says this file 
should not be edited