diff options
author | John Helmert III <ajak@gentoo.org> | 2022-07-19 11:42:50 -0500 |
---|---|---|
committer | John Helmert III <ajak@gentoo.org> | 2022-07-19 11:43:40 -0500 |
commit | d56ad80de71cba63e8862ea32fabd6f31b8cdf00 (patch) | |
tree | dfe415bfabe19967be0d8035e736f81084db06b5 /x11-misc/polybar | |
parent | app-admin/ansible: 6.1.0 bump (diff) | |
download | gentoo-d56ad80de71cba63e8862ea32fabd6f31b8cdf00.tar.gz gentoo-d56ad80de71cba63e8862ea32fabd6f31b8cdf00.tar.bz2 gentoo-d56ad80de71cba63e8862ea32fabd6f31b8cdf00.zip |
x11-misc/polybar: fix prefix installation
Bug: https://bugs.gentoo.org/858797
Signed-off-by: John Helmert III <ajak@gentoo.org>
Diffstat (limited to 'x11-misc/polybar')
-rw-r--r-- | x11-misc/polybar/files/polybar-3.6.3-fix-prefix.patch | 13 | ||||
-rw-r--r-- | x11-misc/polybar/polybar-3.6.3-r1.ebuild | 64 |
2 files changed, 77 insertions, 0 deletions
diff --git a/x11-misc/polybar/files/polybar-3.6.3-fix-prefix.patch b/x11-misc/polybar/files/polybar-3.6.3-fix-prefix.patch new file mode 100644 index 000000000000..1007d7237af7 --- /dev/null +++ b/x11-misc/polybar/files/polybar-3.6.3-fix-prefix.patch @@ -0,0 +1,13 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index f71801c8..0979f8af 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -63,7 +63,7 @@ endif() + + if(BUILD_CONFIG) + install(FILES ${CMAKE_SOURCE_DIR}/doc/config.ini +- DESTINATION /etc/${PROJECT_NAME} ++ DESTINATION ${CMAKE_INSTALL_SYSCONFDIR}/${PROJECT_NAME} + COMPONENT config) + endif() + diff --git a/x11-misc/polybar/polybar-3.6.3-r1.ebuild b/x11-misc/polybar/polybar-3.6.3-r1.ebuild new file mode 100644 index 000000000000..02c5f18ec090 --- /dev/null +++ b/x11-misc/polybar/polybar-3.6.3-r1.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..10} ) + +inherit cmake python-single-r1 + +DESCRIPTION="A fast and easy-to-use tool for creating status bars" +HOMEPAGE="https://github.com/polybar/polybar" +SRC_URI="https://github.com/polybar/${PN}/releases/download/${PV}/${P}.tar.gz" + +KEYWORDS="~amd64 ~x86" +LICENSE="MIT" +SLOT="0" +IUSE="alsa curl doc i3wm ipc mpd network pulseaudio" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +DEPEND=" + ${PYTHON_DEPS} + $(python_gen_cond_dep 'x11-base/xcb-proto[${PYTHON_USEDEP}]') + dev-libs/libuv:= + media-libs/fontconfig + media-libs/freetype + x11-libs/cairo[X,xcb(+)] + x11-libs/libxcb:=[xkb] + x11-libs/xcb-util + x11-libs/xcb-util-cursor + x11-libs/xcb-util-image + x11-libs/xcb-util-wm + x11-libs/xcb-util-xrm + alsa? ( media-libs/alsa-lib ) + curl? ( net-misc/curl ) + doc? ( dev-python/sphinx ) + i3wm? ( + dev-libs/jsoncpp:= + || ( x11-wm/i3 x11-wm/i3-gaps ) + ) + mpd? ( media-libs/libmpdclient ) + network? ( dev-libs/libnl:3 ) + pulseaudio? ( media-sound/pulseaudio ) +" +RDEPEND="${DEPEND}" + +PATCHES=( "${FILESDIR}/${P}-fix-prefix.patch" ) + +src_configure() { + local mycmakeargs=( + -DENABLE_ALSA="$(usex alsa)" + -DENABLE_CURL="$(usex curl)" + -DBUILD_DOC="$(usex doc)" + -DENABLE_I3="$(usex i3wm)" + -DBUILD_POLYBAR_MSG="$(usex ipc)" + -DENABLE_MPD="$(usex mpd)" + -DENABLE_NETWORK="$(usex network)" + -DENABLE_PULSEAUDIO="$(usex pulseaudio)" + # Bug 767949 + -DENABLE_CCACHE="OFF" + -DCMAKE_INSTALL_SYSCONFDIR="${EPREFIX}/etc/" + ) + + cmake_src_configure +} |