summaryrefslogtreecommitdiff
blob: 8c40bfd5077ad2a829d914214761b3f12e8640d6 (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
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-misc/clockywock/clockywock-0.2.3f.ebuild,v 1.3 2011/12/06 01:07:42 vapier Exp $

EAPI="4"

inherit eutils toolchain-funcs

MY_P=${P/f/F}

DESCRIPTION="ncurses based analog clock"
HOMEPAGE="http://dentar.com/open-source"
SRC_URI="https://dentar.com/opensource/${MY_P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

RDEPEND="sys-libs/ncurses"
DEPEND="${RDEPEND}"

S=${WORKDIR}/${MY_P}

src_prepare() {
	epatch "${FILESDIR}"/${P}-makefile.patch
	sed -i 's:\<timex\>:timecw:g' clockywock.cpp || die #371383
}

src_compile() {
	tc-export CXX
	emake || die
}

src_install() {
	dobin ${PN}
	doman ${PN}.7
	dodoc README CREDITS
}