2019-06-14 12:17:48 +03:00
|
|
|
# Copyright 1999-2019 Gentoo Authors
|
2016-08-17 08:49:36 +03:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=6
|
|
|
|
|
2016-09-08 08:51:45 +03:00
|
|
|
SCM=""
|
|
|
|
[[ "${PV}" == 9999 ]] && SCM="git-r3"
|
2018-01-03 01:01:15 +03:00
|
|
|
inherit cmake-utils ${SCM}
|
2016-09-08 08:51:45 +03:00
|
|
|
unset SCM
|
2016-08-17 08:49:36 +03:00
|
|
|
|
|
|
|
DESCRIPTION="A PulseAudio NCurses mixer"
|
|
|
|
HOMEPAGE="https://github.com/patroclos/PAmix"
|
|
|
|
LICENSE="MIT"
|
|
|
|
SLOT="0"
|
2016-09-08 08:51:45 +03:00
|
|
|
IUSE="+unicode"
|
2016-08-17 08:49:36 +03:00
|
|
|
|
|
|
|
if [[ ${PV} == 9999 ]] ; then
|
2017-07-31 18:47:13 +03:00
|
|
|
EGIT_REPO_URI="https://github.com/patroclos/PAmix.git"
|
2016-08-17 08:49:36 +03:00
|
|
|
else
|
2018-01-03 01:01:15 +03:00
|
|
|
SRC_URI="https://github.com/patroclos/PAmix/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
2019-06-17 08:49:24 +03:00
|
|
|
KEYWORDS="amd64 x86"
|
2016-08-17 08:49:36 +03:00
|
|
|
S="${WORKDIR}/PAmix-${PV}"
|
|
|
|
fi
|
|
|
|
|
|
|
|
RDEPEND="media-sound/pulseaudio
|
2016-09-08 08:51:45 +03:00
|
|
|
sys-libs/ncurses:0=[unicode?]"
|
2016-09-18 12:41:10 +03:00
|
|
|
DEPEND="sys-devel/autoconf-archive
|
|
|
|
virtual/pkgconfig
|
2016-08-17 08:49:36 +03:00
|
|
|
${RDEPEND}"
|
|
|
|
|
2018-01-04 12:44:39 +03:00
|
|
|
PATCHES=(
|
|
|
|
"${FILESDIR}/${P}-ncurses_pkgconfig.patch"
|
|
|
|
)
|
2016-09-08 08:51:45 +03:00
|
|
|
|
|
|
|
src_configure() {
|
2018-01-03 01:01:15 +03:00
|
|
|
local mycmakeargs=(
|
|
|
|
-DWITH_UNICODE="$(usex unicode)"
|
|
|
|
)
|
|
|
|
cmake-utils_src_configure
|
2016-08-17 08:49:36 +03:00
|
|
|
}
|