Gentoo Archives: gentoo-commits

From: "Markus Ullmann (jokey)" <jokey@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-doc/php-docs: ChangeLog php-docs-20071125-r1.ebuild php-docs-20071125.ebuild php-docs-4.2.3.ebuild
Date: Wed, 05 Dec 2007 23:25:29
Message-Id: E1J03cK-0003bE-04@stork.gentoo.org
1 jokey 07/12/05 23:25:23
2
3 Modified: ChangeLog
4 Added: php-docs-20071125-r1.ebuild
5 Removed: php-docs-20071125.ebuild php-docs-4.2.3.ebuild
6 Log:
7 Bunch of fixes from project overlay
8 (Portage version: 2.1.4_rc7)
9
10 Revision Changes Path
11 1.33 app-doc/php-docs/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-doc/php-docs/ChangeLog?rev=1.33&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-doc/php-docs/ChangeLog?rev=1.33&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-doc/php-docs/ChangeLog?r1=1.32&r2=1.33
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-doc/php-docs/ChangeLog,v
20 retrieving revision 1.32
21 retrieving revision 1.33
22 diff -u -r1.32 -r1.33
23 --- ChangeLog 29 Nov 2007 23:15:46 -0000 1.32
24 +++ ChangeLog 5 Dec 2007 23:25:23 -0000 1.33
25 @@ -1,6 +1,12 @@
26 # ChangeLog for app-doc/php-docs
27 # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-doc/php-docs/ChangeLog,v 1.32 2007/11/29 23:15:46 jokey Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/app-doc/php-docs/ChangeLog,v 1.33 2007/12/05 23:25:23 jokey Exp $
30 +
31 +*php-docs-20071125-r1 (05 Dec 2007)
32 +
33 + 05 Dec 2007; Markus Ullmann <jokey@g.o> -php-docs-4.2.3.ebuild,
34 + -php-docs-20071125.ebuild, +php-docs-20071125-r1.ebuild:
35 + Bunch of fixes from project overlay
36
37 *php-docs-20071125 (29 Nov 2007)
38
39
40
41
42 1.1 app-doc/php-docs/php-docs-20071125-r1.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-doc/php-docs/php-docs-20071125-r1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-doc/php-docs/php-docs-20071125-r1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: php-docs-20071125-r1.ebuild
48 ===================================================================
49 # Copyright 1999-2007 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/app-doc/php-docs/php-docs-20071125-r1.ebuild,v 1.1 2007/12/05 23:25:23 jokey Exp $
52
53 EAPI="1"
54
55 DESCRIPTION="HTML documentation for PHP"
56 HOMEPAGE="http://www.php.net/download-docs.php"
57
58 LICENSE="GPL-2"
59 SLOT="0"
60 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
61 IUSE="+linguas_en"
62 SRC_URI="linguas_en? ( http://dev.gentooexperimental.org/~jakub/distfiles/${P}_en.tar.gz
63 mirror://gentoo/${P}_en.tar.gz )"
64
65 RESTRICT="strip binchecks"
66
67
68 LANGS="cs da de el es fi fr he hu it ja ko nl pl pt_BR ro ru sk sv zh_CN zh_TW"
69 for lang in ${LANGS} ; do
70 IUSE="${IUSE} linguas_${lang}"
71 SRC_URI="${SRC_URI}
72 linguas_${lang}? ( http://dev.gentooexperimental.org/~jakub/distfiles/${P}_${lang}.tar.gz
73 mirror://gentoo/${P}_${lang}.tar.gz )"
74 done
75
76 S=${WORKDIR}
77
78 src_unpack() {
79 for lang in en ${LANGS} ; do
80 if use linguas_${lang} ; then
81 mkdir ${lang}
82 pushd ${lang} >/dev/null
83 unpack ${P}_${lang}.tar.gz || die "unpack failed on ${lang}"
84 popd >/dev/null
85 fi
86 done
87 }
88
89
90 pkg_preinst() {
91 # remove broken/stale symlink created by previous ebuilds
92 [[ -L ${ROOT}/usr/share/php-docs ]] && rm -f "${ROOT}"/usr/share/php-docs
93 }
94
95 src_install() {
96 for lang in en ${LANGS} ; do
97 if use linguas_${lang} ; then
98 pushd ${lang}/html >/dev/null
99 ebegin "Installing ${lang} manual, this will take a while..."
100 # the whole structure is too much to do with a simple dohtml *
101 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
102 files="$(echo function.${x}*)"
103 [[ -n ${files} ]] || continue;
104
105 dohtml function.${x}*
106 rm function.${x}*
107 done
108
109 # what's left will fit into a single dohtml *
110 dohtml -r *
111 popd >/dev/null
112 dodir /usr/share/doc/${PF}/html/${lang}
113 mv "${D}"/usr/share/doc/${PF}/html/{*.html,figures} "${D}"/usr/share/doc/${PF}/html/${lang} \
114 || die "mv failed on ${lang}"
115 eend $?
116 fi
117 done
118
119 einfo "Creating symlink to PHP manual at /usr/share/php-docs"
120 dosym /usr/share/doc/${PF}/html /usr/share/php-docs
121 }
122
123
124
125 --
126 gentoo-commits@g.o mailing list