diff options
author | 2023-05-12 03:37:04 +0100 | |
---|---|---|
committer | 2023-05-12 03:55:39 +0100 | |
commit | 5866f0c6aba60050dff8c51d89ec800ebaf3290c (patch) | |
tree | e6604993e50fcaa4d8614d43f82833c8494cb924 /media-sound/vimpc/vimpc-0.09.2-r2.ebuild | |
parent | media-sound/mpdscribble: wire up (restricted) tests (diff) | |
download | gentoo-5866f0c6aba60050dff8c51d89ec800ebaf3290c.tar.gz gentoo-5866f0c6aba60050dff8c51d89ec800ebaf3290c.tar.bz2 gentoo-5866f0c6aba60050dff8c51d89ec800ebaf3290c.zip |
media-sound/vimpc: add tests note; fix -Wformat-security; sync live
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-sound/vimpc/vimpc-0.09.2-r2.ebuild')
-rw-r--r-- | media-sound/vimpc/vimpc-0.09.2-r2.ebuild | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/media-sound/vimpc/vimpc-0.09.2-r2.ebuild b/media-sound/vimpc/vimpc-0.09.2-r2.ebuild new file mode 100644 index 000000000000..a6a60a208193 --- /dev/null +++ b/media-sound/vimpc/vimpc-0.09.2-r2.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools + +DESCRIPTION="An ncurses based mpd client with vi-like key bindings" +HOMEPAGE="https://github.com/boysetsfrog/vimpc" +if [[ ${PV} == 9999 ]] ; then + EGIT_REPO_URI="https://github.com/boysetsfrog/${PN}.git" + inherit git-r3 +else + SRC_URI="https://github.com/boysetsfrog/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~x86" +fi + +LICENSE="GPL-3+" +SLOT="0" +IUSE="boost taglib" + +RDEPEND=" + dev-libs/libpcre + media-libs/libmpdclient + boost? ( dev-libs/boost:= ) + taglib? ( media-libs/taglib ) +" +DEPEND="${RDEPEND}" +BDEPEND="virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}"/${P}-boost.patch + "${FILESDIR}"/${P}-wformat-security.patch +) + +src_prepare() { + default + eautoreconf +} + +src_configure() { + # Tests here seem to make cppunit linked into the main vimpc binary + # Not clear how to run them either + econf \ + $(use_enable boost) \ + $(use_enable taglib) \ + --disable-test +} + +src_install() { + local DOCS=( AUTHORS README.md doc/vimpcrc.example ) + default + + # vimpc will look for help.txt + docompress -x /usr/share/doc/${PF}/help.txt +} |