/[gentoo-x86]/media-sound/trommler/trommler-3.8.ebuild
Gentoo

Contents of /media-sound/trommler/trommler-3.8.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Sat May 5 08:54:36 2012 UTC (2 years, 2 months ago) by mgorny
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +3 -3 lines
dev-util/pkgconfig -> virtual/pkgconfig

(Portage version: 2.2.0_alpha101_p8/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-sound/trommler/trommler-3.8.ebuild,v 1.7 2010/08/22 20:11:30 ssuominen Exp $
4
5 EAPI=2
6 inherit eutils toolchain-funcs
7
8 DESCRIPTION="GTK+ based drum machine."
9 HOMEPAGE="http://muth.org/Robert/Trommler"
10 SRC_URI="http://muth.org/Robert/${PN/t/T}/${P/-/.}.tar.gz"
11
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="alpha amd64 ppc ~sparc x86"
15 IUSE="+sox"
16
17 RDEPEND="x11-libs/gtk+:2
18 sox? ( media-sound/sox )"
19 DEPEND="${RDEPEND}
20 x11-misc/makedepend
21 virtual/pkgconfig"
22
23 S=${WORKDIR}/${PN/t/T}
24
25 src_prepare() {
26 sed -i \
27 -e 's:$(CC):$(CC) $(LDFLAGS):' \
28 Makefile || die
29 }
30
31 src_compile() {
32 tc-export CC
33 emake export.h || die
34 emake CFLAGS="${CFLAGS} -Wall $(pkg-config --cflags gtk+-2.0)" || die
35 }
36
37 src_install() {
38 exeinto /usr/libexec
39 doexe ${PN} || die
40
41 newbin "${FILESDIR}"/${PN}.wrapper ${PN} || die
42 dobin wav2smp playsample || die
43 use sox && { dobin smp2wav || die; }
44
45 insinto /usr/share/${PN}/Drums
46 doins Drums/*.smp || die
47 insinto /usr/share/${PN}/Songs
48 doins Songs/*.sng || die
49
50 dodoc CHANGES README
51 dohtml index.html style.css
52
53 make_desktop_entry ${PN} Trommler
54 }

  ViewVC Help
Powered by ViewVC 1.1.20