public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: app-laptop/pommed/, app-laptop/pommed/files/
@ 2020-12-28 14:48 David Seifert
  0 siblings, 0 replies; only message in thread
From: David Seifert @ 2020-12-28 14:48 UTC (permalink / raw
  To: gentoo-commits

commit:     82d9607922cc4d6c00dfa2a83060828a00b99599
Author:     Jakov Smolic <jakov.smolic <AT> sartura <DOT> hr>
AuthorDate: Mon Dec 28 14:47:50 2020 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Mon Dec 28 14:47:50 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=82d96079

app-laptop/pommed: Port to EAPI 7

Closes: https://bugs.gentoo.org/708514
Package-Manager: Portage-3.0.9, Repoman-3.0.1
Signed-off-by: Jakov Smolic <jakov.smolic <AT> sartura.hr>
Signed-off-by: David Seifert <soap <AT> gentoo.org>

 .../pommed/files/pommed-1.39-fno-common.patch      | 22 +++++++++++
 app-laptop/pommed/pommed-1.39-r1.ebuild            | 44 ++++++++++++----------
 2 files changed, 46 insertions(+), 20 deletions(-)

diff --git a/app-laptop/pommed/files/pommed-1.39-fno-common.patch b/app-laptop/pommed/files/pommed-1.39-fno-common.patch
new file mode 100644
index 00000000000..4cc66bcc60b
--- /dev/null
+++ b/app-laptop/pommed/files/pommed-1.39-fno-common.patch
@@ -0,0 +1,22 @@
+--- a/pommed/mactel/nv8600mgt_backlight.c
++++ b/pommed/mactel/nv8600mgt_backlight.c
+@@ -48,7 +48,7 @@
+ #include "../dbus.h"
+ 
+ 
+-struct _lcd_bck_info lcd_bck_info;
++extern struct _lcd_bck_info lcd_bck_info;
+ 
+ 
+ static int nv8600mgt_inited = 0;
+--- a/pommed/mactel/x1600_backlight.c
++++ b/pommed/mactel/x1600_backlight.c
+@@ -45,7 +45,7 @@
+ #include "../dbus.h"
+ 
+ 
+-struct _lcd_bck_info lcd_bck_info;
++extern struct _lcd_bck_info lcd_bck_info;
+ 
+ static int fd = -1;
+ static char *memory = NULL;

diff --git a/app-laptop/pommed/pommed-1.39-r1.ebuild b/app-laptop/pommed/pommed-1.39-r1.ebuild
index f1350763190..21e31ee3052 100644
--- a/app-laptop/pommed/pommed-1.39-r1.ebuild
+++ b/app-laptop/pommed/pommed-1.39-r1.ebuild
@@ -1,8 +1,9 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=5
-inherit eutils toolchain-funcs linux-info systemd
+EAPI=7
+
+inherit desktop linux-info systemd
 
 DESCRIPTION="Manage screen and keyboard backlight on Apple MacBook Pro/PowerBook"
 HOMEPAGE="http://technologeek.org/projects/pommed/index.html"
@@ -14,23 +15,30 @@ SLOT="0"
 KEYWORDS="amd64 ppc x86"
 IUSE="gtk X"
 
-COMMON_DEPEND="media-libs/alsa-lib
-	x86? ( sys-apps/pciutils )
-	amd64? (  sys-apps/pciutils )
+DEPEND="
+	media-libs/alsa-lib
+	media-libs/audiofile
 	dev-libs/confuse
-	>=sys-apps/dbus-1.1
 	dev-libs/dbus-glib
+	sys-apps/dbus
 	sys-libs/zlib
-	media-libs/audiofile
+	amd64? ( sys-apps/pciutils )
+	x86? ( sys-apps/pciutils )
 	gtk? ( x11-libs/gtk+:2 )
-	X? ( x11-libs/libX11
+	X? (
+		x11-libs/libX11
 		x11-libs/libXext
-		x11-libs/libXpm )"
-DEPEND="${COMMON_DEPEND}
-	virtual/pkgconfig"
-RDEPEND="${COMMON_DEPEND}
+		x11-libs/libXpm
+	)"
+RDEPEND="${DEPEND}
 	media-sound/alsa-utils
 	virtual/eject"
+BDEPEND="virtual/pkgconfig"
+
+PATCHES=(
+	"${FILESDIR}"/${P}.patch
+	"${FILESDIR}"/${P}-fno-common.patch
+)
 
 pkg_setup() {
 	if ! use ppc; then
@@ -41,16 +49,12 @@ pkg_setup() {
 	fi
 }
 
-src_prepare() {
-	epatch "${FILESDIR}/${P}.patch"
-}
-
 src_compile() {
-	cd "${S}"/pommed
+	cd "${S}"/pommed || die
 	emake CC="$(tc-getCC)" OFLIB=1
 
 	if use gtk; then
-		cd "${S}"/gpomme
+		cd "${S}"/gpomme || die
 		local POFILES=""
 		for LANG in ${LINGUAS}; do
 			if [ -f po/${LANG}.po ]; then
@@ -60,7 +64,7 @@ src_compile() {
 		emake CC="$(tc-getCC)" POFILES="${POFILES}"
 	fi
 	if use X; then
-		cd "${S}"/wmpomme
+		cd "${S}"/wmpomme || die
 		emake CC="$(tc-getCC)"
 	fi
 }


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2020-12-28 14:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-12-28 14:48 [gentoo-commits] repo/gentoo:master commit in: app-laptop/pommed/, app-laptop/pommed/files/ David Seifert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox