mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
x11-wm/blackbox: update EAPI 7 -> 8
Signed-off-by: Ben Kohler <bkohler@gentoo.org>
This commit is contained in:
61
x11-wm/blackbox/blackbox-0.77-r2.ebuild
Normal file
61
x11-wm/blackbox/blackbox-0.77-r2.ebuild
Normal file
@@ -0,0 +1,61 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
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"
|
||||
S="${WORKDIR}"/blackboxwm-${PV}
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~sparc ~x86"
|
||||
IUSE="debug nls static-libs truetype"
|
||||
|
||||
RDEPEND="x11-libs/libXft
|
||||
x11-libs/libXt
|
||||
x11-libs/libX11
|
||||
nls? ( >=sys-devel/gettext-0.20 )
|
||||
truetype? ( media-libs/freetype )"
|
||||
DEPEND="${RDEPEND}
|
||||
x11-base/xorg-proto"
|
||||
BDEPEND=">=dev-build/autoconf-2.71
|
||||
virtual/pkgconfig"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-0.77-gcc12-time.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
sed -e '/AC_DISABLE_SHARED/d' -i configure.ac || die
|
||||
default
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
--sysconfdir=/etc/X11/${PN} \
|
||||
$(use_enable debug) \
|
||||
$(use_enable nls) \
|
||||
$(use_enable truetype xft)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
exeinto /etc/X11/Sessions
|
||||
newexe - ${PN} <<-EOF
|
||||
#!/bin/sh
|
||||
${PN}
|
||||
EOF
|
||||
|
||||
insinto /usr/share/xsessions
|
||||
doins "${FILESDIR}/${PN}.desktop"
|
||||
|
||||
emake DESTDIR="${D}" install
|
||||
dodoc AUTHORS ChangeLog* COMPLIANCE README* TODO
|
||||
|
||||
find "${D}" -name '*.la' -delete || die
|
||||
use static-libs || rm "${D}"/usr/$(get_libdir)/libbt.a || die
|
||||
}
|
||||
Reference in New Issue
Block a user