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

inherit eutils

DESCRIPTION="nzb based nntp/usenet downloader in perl"
HOMEPAGE="http://noisybox.net/computers/nzbperl/"
SRC_URI="http://noisybox.net/computers/nzbperl/${P}.pl"

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

DEPEND="dev-lang/perl
	app-text/uudeview
	virtual/perl-Time-HiRes
	virtual/perl-Getopt-Long
	dev-perl/TermReadKey
	virtual/perl-Term-ANSIColor
	dev-perl/XML-DOM
	ssl? ( dev-perl/IO-Socket-SSL )
	ipv6? ( dev-perl/IO-Socket-INET6 )
"

src_unpack() {
	:
}

src_install() {
	newbin "${DISTDIR}/${P}.pl" ${PN}
	dodoc "${FILESDIR}/${PN}rc.sample"
}

pkg_postinst() {
	if ! built_with_use dev-lang/perl ithreads; then
		ewarn "WARNING: dev-lang/perl was built with ithreads disabled, please start nzbperl"
		ewarn "with --dthreadct 0 to use single-threaded nzbperl OR remerge dev-lang/perl"
		ewarn "with ithreads in your USE flags."
		ewarn ""
		ewarn "Note that using --dthreadct 0 will cause downloads to pause during decoding,"
		ewarn "so it is recommended that you build perl with ithreads enabled."
	fi

	elog "A sample config file has been copied into /usr/share/doc/${PF}"
	elog "You may want to take it as a sample for your ~/.nzbperlrc"
}