blackbox-0.75.ebuild 1.14 KB
Newer Older
Liguros - Gitlab CI/CD [develop]'s avatar
updates  
Liguros - Gitlab CI/CD [develop] committed
1
# Copyright 1999-2020 Gentoo Authors
Liguros - Gitlab CI/CD [test]'s avatar
updates  
Liguros - Gitlab CI/CD [test] committed
2 3 4 5 6 7 8 9 10 11 12 13
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit autotools

DESCRIPTION="A small, fast, full-featured window manager for X"
HOMEPAGE="https://github.com/bbidulock/blackboxwm"
SRC_URI="https://github.com/bbidulock/blackboxwm/archive/${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="MIT"
SLOT="0"
Liguros - Gitlab CI/CD [test]'s avatar
updates  
Liguros - Gitlab CI/CD [test] committed
14
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
Liguros - Gitlab CI/CD [test]'s avatar
updates  
Liguros - Gitlab CI/CD [test] committed
15 16 17 18
IUSE="nls truetype debug"

RDEPEND="x11-libs/libXft
	x11-libs/libXt
Liguros - Gitlab CI/CD [develop]'s avatar
updates  
Liguros - Gitlab CI/CD [develop] committed
19
	nls? ( >=sys-devel/gettext-0.20 )
Liguros - Gitlab CI/CD [test]'s avatar
updates  
Liguros - Gitlab CI/CD [test] committed
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
	truetype? ( media-libs/freetype )"
DEPEND="${RDEPEND}
	x11-base/xorg-proto"
BDEPEND="virtual/pkgconfig"

S="${WORKDIR}"/blackboxwm-${PV}

src_prepare() {
	default
	eautoreconf
}

src_configure() {
	econf \
		--sysconfdir=/etc/X11/${PN} \
		$(use_enable debug) \
		$(use_enable nls) \
		$(use_enable truetype xft)
}

src_install() {
	dodir /etc/X11/Sessions
	echo "/usr/bin/blackbox" > "${D}/etc/X11/Sessions/${PN}"
	fperms a+x /etc/X11/Sessions/${PN}

	insinto /usr/share/xsessions
	doins "${FILESDIR}/${PN}.desktop"

	emake DESTDIR="${D}" install
	dodoc AUTHORS ChangeLog* COMPLIANCE README* TODO

Liguros - Gitlab CI/CD [develop]'s avatar
updates  
Liguros - Gitlab CI/CD [develop] committed
51
	find "${D}" -name '*.la' -delete || die
Liguros - Gitlab CI/CD [test]'s avatar
updates  
Liguros - Gitlab CI/CD [test] committed
52
}