summaryrefslogtreecommitdiff
blob: afe89cc1b41751ff01afb3a5057c091b84023cea (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
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emacs/mpg123-el/mpg123-el-1.42.ebuild,v 1.4 2005/01/01 13:54:37 eradicator Exp $

inherit gcc elisp

IUSE="oggvorbis"

DESCRIPTION="Emacs front-end to mpg123 audio player and OggVorbis audio player"
HOMEPAGE="http://www.gentei.org/~yuuji/software/mpg123el/"
# source bits are taken from the site above
SRC_URI="mirror://gentoo/${P}.tar.bz2"

DEPEND="virtual/emacs"
RDEPEND="${DEPEND}
	virtual/mpg123
	media-sound/aumix
	oggvorbis? ( media-sound/vorbis-tools )"

SLOT="0"
LICENSE="freedist"
KEYWORDS="x86"

SITEFILE="50mpg123-el-gentoo.el"

src_compile(){
	$(gcc-getCC) ${CFLAGS} -o tagput tagput.c || die
	$(gcc-getCC) ${CFLAGS} -o id3put id3put.c || die
	elisp-compile *.el
}

src_install(){
	dobin tagput || die
	dobin id3put || die

	elisp-install ${PN} *.el *.elc
	elisp-site-file-install ${FILESDIR}/${SITEFILE}

	dodoc README
}