summaryrefslogtreecommitdiff
blob: 05709b21044256effd01082de12b5dc17a2d32c3 (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
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-doc/php-docs/php-docs-20050822.ebuild,v 1.2 2005/09/09 12:55:23 agriffis Exp $

DESCRIPTION="HTML documentation for PHP"
HOMEPAGE="http://www.php.net/download-docs.php"
SRC_URI="http://dev.gentoo.org/~stuart/php/${PN}-${PVR}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc x86"
IUSE=""

DEPEND=""

S=${WORKDIR}/html

src_install() {
	# the whole structure is too much to do with a simple dohtml *

	for x in a b c d e f g h i j k l m n o p q r s t u v w x y z ; do
		dohtml function.$x*
		rm function.$x*
	done

	# what's left will fit into a single dohtml *
	dohtml *
}

pkg_postinst() {
	einfo "Creating symlink to PHP manual at /usr/share/php-docs"
	[[ -e /usr/share/php-docs ]] && rm -f /usr/share/php-docs
	ln -s /usr/share/doc/php-docs-${PVR}/html /usr/share/php-docs
}