rexy712-overlay/x11-misc/i3spacer/i3spacer-1.0.ebuild
2019-11-23 10:58:22 -08:00

31 lines
685 B
Bash

# Copyright 2019 rexy712
# Distributed under the terms of the GNU General Public License v3
EAPI=7
inherit cmake-utils
DESCRIPTION="A transparent window to act as a spacer in x11-wm/i3 or x11-wm/i3gaps"
HOMEPAGE="https://gitlab.com/rexy712/i3spacer"
MY_PV="v${PV}"
MY_P="${PN}-${MY_PV}"
SRC_URI="https://gitlab.com/rexy712/i3spacer/-/archive/${MY_PV}/${PN}-${MY_PV}.tar.gz"
S="${WORKDIR}/${MY_P}"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"
IUSE="+decorate"
RDEPEND="x11-libs/gtk+:3[X]"
DEPEND="${RDEPEND}"
BDEPEND="
dev-util/cmake
dev-util/pkgconfig
"
src_configure(){
local mycmakeargs=(-DDECORATE_WINDOW=$(usex decorate ON OFF))
cmake-utils_src_configure
}