You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
71 lines
1.6 KiB
71 lines
1.6 KiB
1 year ago
|
# Copyright 1999-2023 Gentoo Authors
|
||
4 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
1 year ago
|
EAPI=8
|
||
3 years ago
|
|
||
1 year ago
|
PYTHON_COMPAT=( python3_{9..11} )
|
||
3 years ago
|
|
||
1 year ago
|
inherit edo python-any-r1 toolchain-funcs
|
||
4 years ago
|
|
||
1 year ago
|
DESCRIPTION="Light-weight X11 desktop panel"
|
||
4 years ago
|
HOMEPAGE="https://aanatoly.github.io/fbpanel/"
|
||
|
SRC_URI="https://aanatoly.github.io/fbpanel/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||
|
|
||
|
LICENSE="GPL-2"
|
||
|
SLOT="0"
|
||
4 years ago
|
KEYWORDS="~alpha amd64 ~arm ~mips ppc ppc64 x86"
|
||
4 years ago
|
IUSE="alsa"
|
||
|
|
||
|
RDEPEND="
|
||
|
dev-libs/glib:2
|
||
4 years ago
|
x11-libs/gdk-pixbuf:2
|
||
4 years ago
|
x11-libs/gtk+:2
|
||
|
x11-libs/libX11
|
||
|
alsa? ( media-libs/alsa-lib )
|
||
|
"
|
||
|
DEPEND="
|
||
|
${RDEPEND}
|
||
|
x11-base/xorg-proto
|
||
|
"
|
||
|
BDEPEND="
|
||
|
${PYTHON_DEPS}
|
||
|
virtual/pkgconfig
|
||
|
"
|
||
|
|
||
|
PATCHES=(
|
||
|
"${FILESDIR}"/${PN}-6.1-underlinking.patch
|
||
|
"${FILESDIR}"/${PN}-7.0-clang.patch
|
||
|
"${FILESDIR}"/${PN}-7.0-fno-common.patch
|
||
|
"${FILESDIR}"/${PN}-7.0-images.patch
|
||
|
"${FILESDIR}"/${PN}-7.0-python3-shebangs.patch
|
||
4 years ago
|
"${FILESDIR}"/${PN}-7.0-remove-gdk-pixbuf-xlib.h.patch
|
||
2 years ago
|
"${FILESDIR}"/${PN}-7.0-python3.10.patch
|
||
4 years ago
|
)
|
||
|
|
||
|
src_prepare() {
|
||
|
default
|
||
|
2to3 -n -w --no-diffs configure .config/*.py || die
|
||
|
}
|
||
|
|
||
|
src_configure() {
|
||
|
tc-export CC
|
||
1 year ago
|
|
||
4 years ago
|
# not autotools based
|
||
1 year ago
|
local confargs=(
|
||
|
V=1
|
||
4 years ago
|
--mandir="${EPREFIX}"/usr/share/man/man1
|
||
|
--datadir="${EPREFIX}"/usr/share/${PN}
|
||
|
--prefix="${EPREFIX}"/usr
|
||
|
--libdir="${EPREFIX}"/usr/$(get_libdir)/${PN}
|
||
|
$(usex alsa --sound --no-sound)
|
||
|
)
|
||
1 year ago
|
|
||
|
edo ./configure "${confargs[@]}"
|
||
4 years ago
|
}
|
||
|
|
||
|
pkg_postinst() {
|
||
|
elog "For the volume plugin to work, you need to configure your kernel"
|
||
|
elog "with CONFIG_SND_MIXER_OSS or CONFIG_SOUND_PRIME or some other means"
|
||
|
elog "that provide the /dev/mixer device node."
|
||
|
}
|