blob: 0f65c3299c55a3f89fb5806a2df936b520b79c34 (
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
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-doc/php-docs/php-docs-20070202-r1.ebuild,v 1.5 2007/09/10 12:37:01 jer Exp $
DESCRIPTION="HTML documentation for PHP"
HOMEPAGE="http://www.php.net/download-docs.php"
SRC_URI="mirror://gentoo/php-docs-${PV}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha amd64 ~arm hppa ~ia64 ~mips ppc ~ppc64 ~s390 ~sh sparc ~x86 ~x86-fbsd"
IUSE=""
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
files="$(echo function.${x}*)"
[[ -n ${files} ]] || continue;
dohtml function.${x}*
rm function.${x}*
done
# what's left will fit into a single dohtml *
dohtml *.html
mv * "${D}"/usr/share/doc/php-docs-${PVR}/html/ || die "bad mv"
}
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
}
|