blob: be823ca4fd3afa17bf610e648050c030b6aaafea (
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
if [ "${PV}" = "9999" ]; then
inherit git
EGIT_REPO_URI="http://git.ikiwiki.info/ikiwiki.git/"
KEYWORDS=""
localunpack() { git_src_unpack ; }
else
SRC_URI="mirror://debian/pool/main/i/ikiwiki/${PN}_${PV}.tar.gz"
KEYWORDS="~amd64 ~x86"
localunpack() { unpack ${A} ; }
fi
inherit perl-app
DESCRIPTION="a wiki compiler"
HOMEPAGE="http://ikiwiki.info/"
LICENSE="GPL-2"
SLOT="0"
IUSE="extras minimal"
S=${WORKDIR}/${PN}
#Authen::Passphrase
#Search::Xapian
#Locale::gettext
#Crypt::SSLeay
#Text::CSV
#Text::Typography
#Text::Textile
#Text::WikiFormat
#Net::Amazon::S3
EXTRA_RDEPS="
dev-python/docutils
dev-perl/Digest-SHA1
dev-perl/File-MimeInfo
dev-perl/RPC-XML
dev-perl/XML-Feed
dev-perl/LWPx-ParanoidAgent
dev-perl/Net-OpenID-Consumer"
SUGGESTED_RDEPS="virtual/perl-CGI
>=dev-perl/CGI-FormBuilder-3.0202
>=dev-perl/CGI-Session-4.14
dev-perl/Mail-Sendmail
dev-perl/Term-ReadLine-Gnu
dev-perl/XML-Simple
dev-perl/TimeDate"
DEPEND=">=dev-lang/perl-5.8.8
dev-perl/HTML-Parser
dev-perl/HTML-Scrubber
dev-perl/HTML-Template
dev-perl/URI
dev-perl/Text-Markdown"
RDEPEND="${DEPEND}
!minimal? ( ${SUGGESTED_RDEPS}
extras? ( ${EXTRA_RDEPS} ) )"
SRC_TEST=do
src_unpack() {
localunpack
# if use w3m ; then
sed -i 's,lib/w3m,libexec/w3m,' "${S}"/Makefile.PL || die
# else
# sed -i '/w3m/d' "${S}"/Makefile.PL || die
# fi
}
src_install() {
emake DESTDIR="${D}" pure_install || die "make install failed"
insinto /etc/ikiwiki
doins wikilist || die
insinto /usr/share/doc/${PF}/examples
doins -r doc/examples/* || die
dohtml -r -A setup html/* || die
dodoc debian/{NEWS,changelog} || die
}
|