From 87070843a21a342f27bc591dce385e858779b665 Mon Sep 17 00:00:00 2001 From: Ionen Wolkens Date: Tue, 3 Nov 2020 21:27:25 -0500 Subject: [PATCH] x11-misc/devilspie2: port to lua-single eclass Closes: https://bugs.gentoo.org/752885 Signed-off-by: Ionen Wolkens --- x11-misc/devilspie2/devilspie2-0.43-r1.ebuild | 45 +++++++++++++++++++ .../files/devilspie2-0.43-lua-pkgconfig.patch | 12 +++++ 2 files changed, 57 insertions(+) create mode 100644 x11-misc/devilspie2/devilspie2-0.43-r1.ebuild create mode 100644 x11-misc/devilspie2/files/devilspie2-0.43-lua-pkgconfig.patch diff --git a/x11-misc/devilspie2/devilspie2-0.43-r1.ebuild b/x11-misc/devilspie2/devilspie2-0.43-r1.ebuild new file mode 100644 index 000000000000..fe0a0e56acc6 --- /dev/null +++ b/x11-misc/devilspie2/devilspie2-0.43-r1.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PLOCALES="fi fr it ja nl pt_BR ru sv" +LUA_COMPAT=( luajit lua5-{1..3} ) +inherit lua-single toolchain-funcs l10n + +DESCRIPTION="Devilspie like window matching utility, using LUA for scripting" +HOMEPAGE="https://www.nongnu.org/devilspie2/" +SRC_URI="https://download.savannah.gnu.org/releases/devilspie2/devilspie2_${PV}-src.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + ${LUA_DEPS} + >=dev-libs/glib-2.32.4:2 + >=x11-libs/gtk+-3.4.4:3 + >=x11-libs/libwnck-3.4.4:3 + x11-libs/libX11 +" +DEPEND=" + ${RDEPEND} + x11-base/xorg-proto +" +BDEPEND=" + sys-devel/gettext + virtual/pkgconfig +" + +PATCHES=( + "${FILESDIR}/${PN}-0.43-lua-pkgconfig.patch" +) + +src_compile() { + emake CC="$(tc-getCC)" PREFIX="/usr" LANGUAGES="$(l10n_get_locales)" +} + +src_install() { + emake PREFIX="/usr" DESTDIR="${D}" LANGUAGES="$(l10n_get_locales)" install + einstalldocs + doman devilspie2.1 +} diff --git a/x11-misc/devilspie2/files/devilspie2-0.43-lua-pkgconfig.patch b/x11-misc/devilspie2/files/devilspie2-0.43-lua-pkgconfig.patch new file mode 100644 index 000000000000..fcddea54d8a2 --- /dev/null +++ b/x11-misc/devilspie2/files/devilspie2-0.43-lua-pkgconfig.patch @@ -0,0 +1,12 @@ +--- a/Makefile 2017-09-26 09:03:36.000000000 -0400 ++++ b/Makefile 2020-11-03 19:15:20.168146735 -0500 +@@ -60,7 +60,7 @@ + endif + +-LIB_CFLAGS=$(shell pkg-config --cflags --silence-errors $(PKG_GTK) $(PKG_WNCK) lua5.1 || pkg-config --cflags $(PKG_GTK) $(PKG_WNCK) lua) ++LIB_CFLAGS=$(shell pkg-config --cflags $(PKG_GTK) $(PKG_WNCK) lua) + STD_LDFLAGS= +-LIBS=-lX11 $(shell pkg-config --libs --silence-errors $(PKG_GTK) $(PKG_WNCK) lua5.1 || pkg-config --libs $(PKG_GTK) $(PKG_WNCK) lua) ++LIBS=-lX11 $(shell pkg-config --libs $(PKG_GTK) $(PKG_WNCK) lua) + + LOCAL_CFLAGS=$(STD_CFLAGS) $(DEPRECATED) $(CFLAGS) $(LIB_CFLAGS) -- 2.29.2