summaryrefslogtreecommitdiff
blob: 3854483c92a7c591e470fa3df632769b8cdbec16 (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
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit toolchain-funcs versionator

DESCRIPTION="Ncurses DC++ client"
HOMEPAGE="http://sourceforge.net/projects/nanodc/"
SRC_URI="http://pouserinet.be/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND="app-arch/bzip2
	sys-libs/ncurses
	dev-util/pkgconfig
	dev-util/scons
	sys-libs/zlib
	>=dev-libs/libsigc++-2.0.0
	>=dev-libs/glib-2.0.0"
RDEPEND=${DEPEND}
BIGVERSION=nanodc-$(get_version_component_range 1-2 )

pkg_setup() {
	if [[[ gcc-major-version ] != 4 ]]; then
		eerror "We need at least gcc-4.0 to compile"
		die "gcc-4 required"
	fi
}

src_compile() {
	cd "${WORKDIR}/${BIGVERSION}/trunk/src"
	scons || die "scons failed!"
}

src_install() {
	dobin "${WORKDIR}/${BIGVERSION}/trunk/src/nanodc"
}