summaryrefslogtreecommitdiff
blob: 03e0395bc877905c71c33667e8738635fb829198 (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
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/wxpython-docs/wxpython-docs-2.6.0.0-r1.ebuild,v 1.4 2006/04/01 19:20:17 agriffis Exp $

inherit eutils

DESCRIPTION="wxPython documentation"
HOMEPAGE="http://www.wxpython.org"
SRC_URI="mirror://sourceforge/wxpython/wxPython-docs-${PV}.tar.gz
	mirror://sourceforge/wxpython/wxPython-demo-${PV}.tar.gz
	mirror://sourceforge/wxpython/wxPython-newdocs-${PV}.tar.gz"

LICENSE="wxWinFDL-3 LGPL-2.1"
SLOT="2.6"
KEYWORDS="~amd64 ~ia64 ~ppc ~sparc ~x86"
IUSE=""

S="${WORKDIR}/wxPython-${PV}"
DOCDIR="wxPython-${PV}"

src_unpack() {
	unpack ${A}
	cd ${S} || die "Couldn't cd to ${S}"
	epatch ${FILESDIR}/demo-${PV}-version.patch
	epatch ${FILESDIR}/${P}-writable.patch
}

src_install() {
	dodir /usr/share/doc/${DOCDIR}/docs
	cp -R ${WORKDIR}/${DOCDIR}/docs/* ${D}/usr/share/doc/${DOCDIR}/docs/
	dodir /usr/share/doc/${DOCDIR}/demo
	dodir /usr/share/doc/${DOCDIR}/samples
	cp -R ${WORKDIR}/${DOCDIR}/demo/* ${D}/usr/share/doc/${DOCDIR}/demo/
	cp -R ${WORKDIR}/${DOCDIR}/samples/* ${D}/usr/share/doc/${DOCDIR}/samples/
	mv ${D}/usr/share/doc/${DOCDIR} ${D}/usr/share/doc/${PF}
}

pkg_postinst() {
	einfo "The demo files are now included with dev-python/wxpython-docs."
	einfo "The new-style documentation is in:"
	einfo "/usr/share/doc/${PF}/docs/api\n"
	einfo "The old-style documentation can still be accessed by running"
	einfo "/usr/share/doc/${PF}/docs/viewdocs.py"
}