Gentoo Archives: gentoo-commits

From: "Tom Knight (tomk)" <tomk@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-php/smarty-docs: metadata.xml ChangeLog smarty-docs-2.6.ebuild smarty-docs-3.0.ebuild
Date: Fri, 11 Feb 2011 14:27:36
Message-Id: 20110211142724.8002620054@flycatcher.gentoo.org
1 tomk 11/02/11 14:27:24
2
3 Modified: metadata.xml ChangeLog
4 Added: smarty-docs-2.6.ebuild smarty-docs-3.0.ebuild
5 Log:
6 New versions to support new file locations and versioning scheme
7
8 (Portage version: 2.1.9.39/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.4 dev-php/smarty-docs/metadata.xml
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-php/smarty-docs/metadata.xml?rev=1.4&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-php/smarty-docs/metadata.xml?rev=1.4&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-php/smarty-docs/metadata.xml?r1=1.3&r2=1.4
16
17 Index: metadata.xml
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-php/smarty-docs/metadata.xml,v
20 retrieving revision 1.3
21 retrieving revision 1.4
22 diff -u -r1.3 -r1.4
23 --- metadata.xml 24 Nov 2005 12:33:30 -0000 1.3
24 +++ metadata.xml 11 Feb 2011 14:27:24 -0000 1.4
25 @@ -6,4 +6,8 @@
26 <email>tomk@g.o</email>
27 <name>Tom Knight</name>
28 </maintainer>
29 + <use>
30 + <flag name="html">Install the documentation in HTML format</flag>
31 + <flag name="pdf">Install the documentation in PDF format</flag>
32 + </use>
33 </pkgmetadata>
34
35
36
37 1.49 dev-php/smarty-docs/ChangeLog
38
39 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-php/smarty-docs/ChangeLog?rev=1.49&view=markup
40 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-php/smarty-docs/ChangeLog?rev=1.49&content-type=text/plain
41 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-php/smarty-docs/ChangeLog?r1=1.48&r2=1.49
42
43 Index: ChangeLog
44 ===================================================================
45 RCS file: /var/cvsroot/gentoo-x86/dev-php/smarty-docs/ChangeLog,v
46 retrieving revision 1.48
47 retrieving revision 1.49
48 diff -u -r1.48 -r1.49
49 --- ChangeLog 6 Jan 2011 13:09:02 -0000 1.48
50 +++ ChangeLog 11 Feb 2011 14:27:24 -0000 1.49
51 @@ -1,6 +1,13 @@
52 # ChangeLog for dev-php/smarty-docs
53 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
54 -# $Header: /var/cvsroot/gentoo-x86/dev-php/smarty-docs/ChangeLog,v 1.48 2011/01/06 13:09:02 armin76 Exp $
55 +# $Header: /var/cvsroot/gentoo-x86/dev-php/smarty-docs/ChangeLog,v 1.49 2011/02/11 14:27:24 tomk Exp $
56 +
57 +*smarty-docs-3.0 (11 Feb 2011)
58 +*smarty-docs-2.6 (11 Feb 2011)
59 +
60 + 11 Feb 2011; <tomk@g.o> +smarty-docs-2.6.ebuild,
61 + +smarty-docs-3.0.ebuild, metadata.xml:
62 + New versions to support new file locations and versioning scheme
63
64 06 Jan 2011; Raúl Porcel <armin76@g.o> smarty-docs-2.6.11.ebuild,
65 smarty-docs-2.6.14.ebuild:
66
67
68
69 1.1 dev-php/smarty-docs/smarty-docs-2.6.ebuild
70
71 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-php/smarty-docs/smarty-docs-2.6.ebuild?rev=1.1&view=markup
72 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-php/smarty-docs/smarty-docs-2.6.ebuild?rev=1.1&content-type=text/plain
73
74 Index: smarty-docs-2.6.ebuild
75 ===================================================================
76 # Copyright 1999-2011 Gentoo Foundation
77 # Distributed under the terms of the GNU General Public License v2
78 # $Header: /var/cvsroot/gentoo-x86/dev-php/smarty-docs/smarty-docs-2.6.ebuild,v 1.1 2011/02/11 14:27:24 tomk Exp $
79
80 EAPI=4
81
82 inherit confutils
83
84 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
85 IUSE="pdf html"
86 DESCRIPTION="Documentation for Smarty, a template engine for PHP."
87 HOMEPAGE="http://www.smarty.net/documentation"
88 SRC_URI="html? ( http://www.smarty.net/files/docs/manual-en-${PV}.zip -> ${P}-en.zip )
89 pdf? ( http://www.smarty.net/files/docs/manual-en-${PV}.pdf -> ${P}-en.pdf )"
90
91 LANGS="de en es fr it ja pt_BR ru"
92
93 for X in ${LANGS}; do
94 [[ ${X} != "en" ]] && SRC_URI="${SRC_URI} linguas_${X}? (
95 html? ( http://www.smarty.net/files/docs/manual-${X}-${PV}.zip -> ${P}-${X}.zip )
96 pdf? ( http://www.smarty.net/files/docs/manual-${X}-${PV}.pdf -> ${P}-${X}.pdf ) )"
97 IUSE="${IUSE} linguas_${X}"
98 done
99
100 LICENSE="LGPL-2.1"
101 SLOT="0"
102
103 DEPEND="html? ( app-arch/unzip )"
104 RDEPEND="${DEPEND}"
105
106 pkg_setup() {
107 confutils_require_any html pdf
108 }
109
110 src_unpack() {
111 mkdir -p "${S}"
112
113 if use html; then
114 mkdir "${S}"/html
115 pushd "${S}"/html > /dev/null
116
117 unpack ${P}-en.zip
118
119 for X in ${LANGS}; do
120 if [[ ${X} != "en" ]] && use linguas_${X}; then
121 unpack ${P}-${X}.zip
122 fi
123 done
124
125 popd > /dev/null
126 fi
127 }
128
129 src_install() {
130 if use html; then
131 dohtml -r html/*
132 fi
133
134 if use pdf; then
135 docinto pdf
136 dodoc "${DISTDIR}"/${P}-*.pdf
137 fi
138 }
139
140
141
142 1.1 dev-php/smarty-docs/smarty-docs-3.0.ebuild
143
144 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-php/smarty-docs/smarty-docs-3.0.ebuild?rev=1.1&view=markup
145 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-php/smarty-docs/smarty-docs-3.0.ebuild?rev=1.1&content-type=text/plain
146
147 Index: smarty-docs-3.0.ebuild
148 ===================================================================
149 # Copyright 1999-2011 Gentoo Foundation
150 # Distributed under the terms of the GNU General Public License v2
151 # $Header: /var/cvsroot/gentoo-x86/dev-php/smarty-docs/smarty-docs-3.0.ebuild,v 1.1 2011/02/11 14:27:24 tomk Exp $
152
153 EAPI=4
154
155 inherit confutils
156
157 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
158 IUSE="pdf html"
159 DESCRIPTION="Documentation for Smarty, a template engine for PHP."
160 HOMEPAGE="http://www.smarty.net/documentation"
161 SRC_URI="html? ( http://www.smarty.net/files/docs/manual-en-${PV}.zip -> ${P}-en.zip )
162 pdf? ( http://www.smarty.net/files/docs/manual-en-${PV}.pdf -> ${P}-en.pdf )"
163
164 LANGS="en"
165
166 for X in ${LANGS}; do
167 [[ ${X} != "en" ]] && SRC_URI="${SRC_URI} linguas_${X}? (
168 html? ( http://www.smarty.net/files/docs/manual-${X}-${PV}.zip -> ${P}-${X}.zip )
169 pdf? ( http://www.smarty.net/files/docs/manual-${X}-${PV}.pdf -> ${P}-${X}.pdf ) )"
170 IUSE="${IUSE} linguas_${X}"
171 done
172
173 LICENSE="LGPL-2.1"
174 SLOT="0"
175
176 DEPEND="html? ( app-arch/unzip )"
177 RDEPEND="${DEPEND}"
178
179 pkg_setup() {
180 confutils_require_any html pdf
181 }
182
183 src_unpack() {
184 mkdir -p "${S}"
185
186 if use html; then
187 mkdir "${S}"/html
188 pushd "${S}"/html > /dev/null
189
190 unpack ${P}-en.zip
191
192 for X in ${LANGS}; do
193 if [[ ${X} != "en" ]] && use linguas_${X}; then
194 unpack ${P}-${X}.zip
195 fi
196 done
197
198 popd > /dev/null
199 fi
200 }
201
202 src_install() {
203 if use html; then
204 dohtml -r html/*
205 fi
206
207 if use pdf; then
208 docinto pdf
209 dodoc "${DISTDIR}"/${P}-*.pdf
210 fi
211 }