summaryrefslogtreecommitdiff
path: root/x11-wm/notion/notion-4.0.4.ebuild
diff options
context:
space:
mode:
Diffstat (limited to 'x11-wm/notion/notion-4.0.4.ebuild')
-rw-r--r--x11-wm/notion/notion-4.0.4.ebuild30
1 files changed, 12 insertions, 18 deletions
diff --git a/x11-wm/notion/notion-4.0.4.ebuild b/x11-wm/notion/notion-4.0.4.ebuild
index f965b8cb9780..857c67935469 100644
--- a/x11-wm/notion/notion-4.0.4.ebuild
+++ b/x11-wm/notion/notion-4.0.4.ebuild
@@ -5,7 +5,7 @@ EAPI=8
LUA_COMPAT=( lua5-4 )
-inherit lua-single toolchain-funcs readme.gentoo-r1
+inherit flag-o-matic lua-single toolchain-funcs readme.gentoo-r1
DESCRIPTION="Notion is a tiling, tabbed window manager for the X window system"
HOMEPAGE="https://notionwm.net/"
@@ -23,22 +23,19 @@ fi
LICENSE="LGPL-2.1"
SLOT="0"
-IUSE="nls xinerama +xrandr"
+IUSE="nls"
# needs slingshot,... not in tree
RESTRICT="test"
-# mod_xrandr references mod_xinerama
-REQUIRED_USE="
- ${LUA_REQUIRED_USE}
- xrandr? ( xinerama )"
+REQUIRED_USE="${LUA_REQUIRED_USE}"
RDEPEND="
${LUA_DEPS}
x11-libs/libSM
x11-libs/libX11
x11-libs/libXext
- nls? ( sys-devel/gettext )
- xinerama? ( x11-libs/libXinerama )
- xrandr? ( x11-libs/libXrandr )"
+ x11-libs/libXinerama
+ x11-libs/libXrandr
+ nls? ( sys-devel/gettext )"
DEPEND="${RDEPEND}"
# luac is called at build time
BDEPEND="
@@ -51,6 +48,12 @@ PATCHES=(
)
src_configure() {
+ # -Werror=strict-aliasing
+ # https://bugs.gentoo.org/965850
+ # https://github.com/raboof/notion/issues/390
+ append-flags -fno-strict-aliasing
+ filter-lto
+
tc-export AR CC PKG_CONFIG
export INSTALL_STRIP=""
@@ -67,15 +70,6 @@ src_configure() {
LUA_INCLUDES=$(lua_get_CFLAGS)
$(usev !nls "DEFINES+=-DCF_NO_LOCALE -DCF_NO_GETTEXT")
_EOF_
-
- if ! use xinerama ; then
- sed -e 's/mod_xinerama//g' -i modulelist.mk || die
- fi
-
- if ! use xrandr ; then
- sed -e 's/mod_xrandr//g' -i modulelist.mk || die
- sed -e '/mod_xrandr/d' -i etc/cfg_defaults.lua || die
- fi
}
src_install() {