mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-21 21:17:37 -08:00
64 lines
1.1 KiB
Bash
64 lines
1.1 KiB
Bash
# Copyright 1999-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit autotools
|
|
|
|
DESCRIPTION="Library full of useful things to hack the Blinkenlights"
|
|
HOMEPAGE="http://www.blinkenlights.de"
|
|
SRC_URI="http://www.blinkenlights.de/dist/${P}.tar.gz"
|
|
|
|
LICENSE="GPL-2+"
|
|
SLOT="0"
|
|
KEYWORDS="amd64 x86"
|
|
IUSE="aalib gtk"
|
|
|
|
RDEPEND="
|
|
dev-libs/glib:2
|
|
x11-libs/gdk-pixbuf:2
|
|
aalib? ( media-libs/aalib )
|
|
gtk? (
|
|
app-accessibility/at-spi2-core:2
|
|
media-libs/fontconfig
|
|
media-libs/freetype
|
|
media-libs/harfbuzz:=
|
|
x11-libs/cairo
|
|
x11-libs/gtk+:2
|
|
x11-libs/pango
|
|
)"
|
|
DEPEND="${RDEPEND}"
|
|
BDEPEND="virtual/pkgconfig"
|
|
|
|
PATCHES=(
|
|
"${FILESDIR}"/${P}-deprecated.patch
|
|
"${FILESDIR}"/${P}-C23.patch
|
|
)
|
|
|
|
src_prepare() {
|
|
default
|
|
|
|
# drop DEPRECATED flags, bug #391105
|
|
sed -e 's:-D[A-Z_]*DISABLE_DEPRECATED:$(NULL):g' \
|
|
-i {blib,gfx,{,test/}modules}/Makefile.{am,in} || die
|
|
|
|
#https://bugs.gentoo.org/899808
|
|
eautoreconf
|
|
}
|
|
|
|
src_configure() {
|
|
local econfargs=(
|
|
$(use_enable aalib aa)
|
|
--disable-directfb
|
|
$(use_enable gtk)
|
|
)
|
|
|
|
econf "${econfargs[@]}"
|
|
}
|
|
|
|
src_install() {
|
|
default
|
|
|
|
find "${ED}" -type f -name '*.la' -delete || die
|
|
}
|