blob: a260dc90ae6efd69f0b858bcc64b16fb28095c0e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit elisp
DESCRIPTION="Buffer-oriented media player for Emacs"
HOMEPAGE="https://www.emacswiki.org/emacs/Bongo"
SRC_URI="https://github.com/dbrock/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz
mplayer? ( mirror://gentoo/${PN}-mplayer-20070204.tar.bz2 )"
LICENSE="GPL-2+ FDL-1.2+"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="mplayer"
# NOTE: Bongo can use almost anything for playing media files, therefore
# the dependency possibilities are so broad that we refrain from including
# any media players explicitly in DEPEND/RDEPEND.
RDEPEND="app-emacs/volume"
BDEPEND="${RDEPEND}
sys-apps/texinfo"
SITEFILE="50${PN}-gentoo.el"
ELISP_TEXINFO="${PN}.texi"
DOCS="NEWS README TODO tree-from-tags.rb"
src_unpack() {
elisp_src_unpack
if use mplayer; then
mv ${PN}/bongo-mplayer.el "${S}"/ || die
fi
}
src_compile() {
# volume.el calls amixer in global scope, causing a sandbox violation
# in /dev/snd/. Work around it by disabling the mixer programs.
cat <<-EOF >nomixer.txt || die
(setq volume-amixer-program "/bin/false")
(setq volume-aumix-program "/bin/false")
EOF
BYTECOMPFLAGS+=" -l nomixer.txt"
elisp_src_compile
}
src_install() {
elisp_src_install
insinto "${SITEETC}/${PN}"
doins images/*.pbm images/*.png
}
|