portage-overlay

personal portage ebuild repository
git clone anongit@rnpnr.xyz:portage-overlay.git
Log | Files | Refs | Feed | README

ncpamixer-1.3.8.ebuild (840B)


      1 # Copyright 2024 Gentoo Authors
      2 # Distributed under the terms of the GNU General Public License v2
      3 
      4 EAPI=8
      5 
      6 inherit cmake
      7 
      8 DESCRIPTION="ncurses PulseAudio Mixer"
      9 HOMEPAGE="https://github.com/fulhax/ncpamixer"
     10 SRC_URI="https://github.com/fulhax/ncpamixer/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
     11 
     12 LICENSE="MIT"
     13 SLOT="0"
     14 KEYWORDS="~amd64 ~arm64"
     15 IUSE="man +unicode"
     16 
     17 DEPEND="
     18 	media-libs/libpulse:=
     19 	sys-libs/ncurses:=[unicode(+)?]
     20 "
     21 RDEPEND="${DEPEND}"
     22 BDEPEND="
     23 	man? ( app-text/lowdown )
     24 "
     25 
     26 CMAKE_USE_DIR="${S}/src"
     27 
     28 src_configure() {
     29 	local mycmakeargs=(
     30 		-DUSE_WIDE=$(usex unicode)
     31 		-DBUILD_MANPAGES=no
     32 	)
     33 
     34 	cmake_src_configure
     35 }
     36 
     37 src_compile() {
     38 	cmake_src_compile
     39 
     40 	use man && lowdown -s -tman src/man/ncpamixer.1.md -o ncpamixer.1
     41 }
     42 
     43 src_install() {
     44 	cmake_src_install
     45 
     46 	use man && doman ncpamixer.1
     47 	dodoc "${S}"/README.md
     48 }