summaryrefslogtreecommitdiff
blob: 5e30e14ad1fa7dacb36f8906a06c99cdfa19459c (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-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-p2p/hrktorrent/hrktorrent-0.3.0.ebuild,v 1.1 2007/12/25 17:35:40 drac Exp $

inherit toolchain-funcs

DESCRIPTION="A slim rb_libtorrent based console torrent application supporting DHT"
HOMEPAGE="http://henrik.unit5.ca/hrktorrent"
SRC_URI="http://henrik.unit5.ca/${PN}/${P}.tar.bz2"

LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

RDEPEND="=net-libs/rb_libtorrent-0.12*"
DEPEND="${RDEPEND}
	dev-cpp/asio
	dev-util/pkgconfig"

src_compile() {
	emake CXX="$(tc-getCXX)" || die "emake failed."
}

src_install() {
	dobin ${PN}
	doman ${PN}.1
	dodoc CHANGELOG README ${PN}.rc.example
}

pkg_postinst() {
	local docsuffix=$(ecompress --suffix)

	elog "A sample configuration file for ${PN} can be found in"
	elog "/usr/share/doc/${PF}/hrktorrent.rc.example${docsuffix}"
	elog "To use a config file, extract it, put it in your home directory"
	elog "and name it \".hrktorrent.rc\""
}