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

DESCRIPTION="A small and simple personal WikiWikiWeb"
HOMEPAGE="http://didiwiki.org/"
SRC_URI="http://didiwiki.org/sources/${P}.tar.gz"

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

src_compile() {
	econf --prefix=/usr || die "econf failed"
	emake || die "emake failed"
}

src_install() {
	dobin src/didiwiki
	dodoc AUTHORS ChangeLog README TODO COPYING

	newinitd "${FILESDIR}"/${P}.rc didiwiki
	newconfd "${FILESDIR}"/${P}.conf didiwiki
}

pkg_postinst() {
	elog
	elog "If you are upgrading from a earlier version of DidiWiki, "
	elog "delete ~/.didiwiki/WikiHelp to get the latest Help file."
	elog
}