blob: a5309acde8451c5eadeac7a9f8c17218b30f671e (
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
|
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=0
inherit eutils
IUSE=""
MY_P=${P/_beta/-beta}
S=${WORKDIR}/${PN}
DESCRIPTION="CD player applet for WindowMaker"
SRC_URI="https://www.dockapps.net/download/${MY_P}.tgz"
HOMEPAGE="https://www.dockapps.net/wmcdplay"
RDEPEND="x11-libs/libX11
x11-libs/libXext
x11-libs/libXpm"
DEPEND="${RDEPEND}
x11-base/xorg-proto
x11-misc/imake"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="x86 ~ppc"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${PN}-xpmdir.patch
epatch "${FILESDIR}"/${PN}-ComplexProgramTargetNoMan.patch
epatch "${FILESDIR}"/${PN}-c++.patch
}
src_compile() {
xmkmf || die "xmkmf failed."
emake CDEBUGFLAGS="${CFLAGS}" LDOPTIONS="${LDFLAGS}" || die "emake failed."
}
src_install() {
einstall DESTDIR="${D}" BINDIR="/usr/bin" || die "emake install failed."
insinto /usr/share/WMcdplay
doins XPM/*.art
dodoc ARTWORK README
domenu "${FILESDIR}"/${PN}.desktop
}
|