# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 inherit cmake xdg git-r3 DESCRIPTION="Lightweight panel/taskbar for Linux" HOMEPAGE="https://gitlab.com/nick87720z/tint2" SRC_URI="" EGIT_REPO_URI="https://gitlab.com/nick87720z/${PN}.git" LICENSE="GPL-2" SLOT="0" KEYWORDS="" IUSE="debug battery startup-notification svg tint2conf sanitize" DEPEND=" dev-libs/glib:2 svg? ( gnome-base/librsvg:2 ) >=media-libs/imlib2-1.4.2[X,png] x11-libs/cairo[X] x11-libs/pango tint2conf? ( x11-libs/gtk+:3 ) x11-libs/libX11 x11-libs/libXcomposite x11-libs/libXdamage x11-libs/libXinerama >=x11-libs/libXrandr-1.3 x11-libs/libXrender startup-notification? ( x11-libs/startup-notification ) debug? ( sys-libs/libunwind ) " RDEPEND="${DEPEND}" src_prepare() { export NINJAOPTS= cmake_src_prepare xdg_src_prepare } src_configure() { local mycmakeargs=( -Ddocdir="${EPREFIX}/usr/share/doc/${PF}" -DENABLE_ASAN=$(usex sanitize) -DENABLE_BATTERY="$(usex battery)" -DENABLE_TINT2CONF="$(usex tint2conf)" -DENABLE_SN="$(usex startup-notification)" -DENABLE_RSVG="$(usex svg)" -DENABLE_BACKTRACE=$(usex debug) -DENABLE_BACKTRACE_ON_SIGNAL=$(usex debug) -DENABLE_TRACING=$(usex debug) -G 'Unix Makefiles' ) cmake_src_configure } src_compile() { cd "${BUILD_DIR}" && emake -j1 } src_install() { cd "${BUILD_DIR}" && emake install DESTDIR="${D}" PREFIX="/usr" }