1 |
zx2c4 14/01/21 19:49:03 |
2 |
|
3 |
Modified: metadata.xml cgit-9999.ebuild ChangeLog |
4 |
Added: cgit-0.10.ebuild |
5 |
Log: |
6 |
Version bump. |
7 |
|
8 |
(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key A5DE03AE) |
9 |
|
10 |
Revision Changes Path |
11 |
1.7 www-apps/cgit/metadata.xml |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/cgit/metadata.xml?rev=1.7&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/cgit/metadata.xml?rev=1.7&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/cgit/metadata.xml?r1=1.6&r2=1.7 |
16 |
|
17 |
Index: metadata.xml |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/www-apps/cgit/metadata.xml,v |
20 |
retrieving revision 1.6 |
21 |
retrieving revision 1.7 |
22 |
diff -u -r1.6 -r1.7 |
23 |
--- metadata.xml 13 Oct 2013 10:20:55 -0000 1.6 |
24 |
+++ metadata.xml 21 Jan 2014 19:49:03 -0000 1.7 |
25 |
@@ -15,6 +15,8 @@ |
26 |
</longdescription> |
27 |
<use> |
28 |
<flag name="highlight">Enable source code highlighting</flag> |
29 |
+ <flag name="lua">Enable support for Lua scripting</flag> |
30 |
+ <flag name="jit">If the lua flag is enabled, jit uses LuaJIT instead of vanilla Lua</flag> |
31 |
</use> |
32 |
</pkgmetadata> |
33 |
|
34 |
|
35 |
|
36 |
|
37 |
1.7 www-apps/cgit/cgit-9999.ebuild |
38 |
|
39 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/cgit/cgit-9999.ebuild?rev=1.7&view=markup |
40 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/cgit/cgit-9999.ebuild?rev=1.7&content-type=text/plain |
41 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/cgit/cgit-9999.ebuild?r1=1.6&r2=1.7 |
42 |
|
43 |
Index: cgit-9999.ebuild |
44 |
=================================================================== |
45 |
RCS file: /var/cvsroot/gentoo-x86/www-apps/cgit/cgit-9999.ebuild,v |
46 |
retrieving revision 1.6 |
47 |
retrieving revision 1.7 |
48 |
diff -u -r1.6 -r1.7 |
49 |
--- cgit-9999.ebuild 15 Nov 2012 01:14:11 -0000 1.6 |
50 |
+++ cgit-9999.ebuild 21 Jan 2014 19:49:03 -0000 1.7 |
51 |
@@ -1,33 +1,34 @@ |
52 |
-# Copyright 1999-2012 Gentoo Foundation |
53 |
+# Copyright 1999-2014 Gentoo Foundation |
54 |
# Distributed under the terms of the GNU General Public License v2 |
55 |
-# $Header: /var/cvsroot/gentoo-x86/www-apps/cgit/cgit-9999.ebuild,v 1.6 2012/11/15 01:14:11 zx2c4 Exp $ |
56 |
+# $Header: /var/cvsroot/gentoo-x86/www-apps/cgit/cgit-9999.ebuild,v 1.7 2014/01/21 19:49:03 zx2c4 Exp $ |
57 |
|
58 |
EAPI="4" |
59 |
|
60 |
WEBAPP_MANUAL_SLOT="yes" |
61 |
|
62 |
-inherit webapp multilib user git-2 |
63 |
+inherit webapp eutils multilib user git-2 |
64 |
|
65 |
[[ -z "${CGIT_CACHEDIR}" ]] && CGIT_CACHEDIR="/var/cache/${PN}/" |
66 |
|
67 |
-GIT_V="1.7.4" |
68 |
+GIT_V="1.8.5" |
69 |
|
70 |
DESCRIPTION="a fast web-interface for git repositories" |
71 |
-HOMEPAGE="http://git.zx2c4.com/cgit/about/" |
72 |
-SRC_URI="mirror://kernel/software/scm/git/git-${GIT_V}.tar.bz2" |
73 |
-EGIT_REPO_URI="http://git.zx2c4.com/cgit" |
74 |
+HOMEPAGE="http://git.zx2c4.com/cgit/about" |
75 |
+SRC_URI="" |
76 |
+EGIT_REPO_URI="git://git.zx2c4.com/cgit" |
77 |
|
78 |
LICENSE="GPL-2" |
79 |
SLOT="0" |
80 |
KEYWORDS="" |
81 |
-IUSE="doc highlight" |
82 |
+IUSE="doc +highlight +lua +jit" |
83 |
|
84 |
RDEPEND=" |
85 |
dev-vcs/git |
86 |
sys-libs/zlib |
87 |
dev-libs/openssl |
88 |
virtual/httpd-cgi |
89 |
- highlight? ( app-text/highlight ) |
90 |
+ highlight? ( || ( dev-python/pygments app-text/highlight ) ) |
91 |
+ lua? ( jit? ( dev-lang/luajit ) !jit? ( dev-lang/lua ) ) |
92 |
" |
93 |
# ebuilds without WEBAPP_MANUAL_SLOT="yes" are broken |
94 |
DEPEND="${RDEPEND} |
95 |
@@ -42,12 +43,24 @@ |
96 |
} |
97 |
|
98 |
src_prepare() { |
99 |
- rmdir git || die |
100 |
- mv "${WORKDIR}"/git-"${GIT_V}" git || die |
101 |
+ git submodule init || die |
102 |
+ git submodule update || die |
103 |
|
104 |
- sed -i \ |
105 |
- -e "/^CACHE_ROOT =/s:/var/cache/cgit:${CGIT_CACHEDIR}:" \ |
106 |
- Makefile || die |
107 |
+ echo "prefix = ${EPREFIX}/usr" >> cgit.conf |
108 |
+ echo "libdir = ${EPREFIX}/usr/$(get_libdir)" >> cgit.conf |
109 |
+ echo "CGIT_SCRIPT_PATH = ${MY_CGIBINDIR}" >> cgit.conf |
110 |
+ echo "CGIT_DATA_PATH = ${MY_HTDOCSDIR}" >> cgit.conf |
111 |
+ echo "CACHE_ROOT = ${CGIT_CACHEDIR}" >> cgit.conf |
112 |
+ echo "DESTDIR = ${D}" >> cgit.conf |
113 |
+ if use lua; then |
114 |
+ if use jit; then |
115 |
+ echo "LUA_IMPLEMENTATION = JIT" >> cgit.conf |
116 |
+ else |
117 |
+ echo "LUA_IMPLEMENTATION = VANILLA" >> cgit.conf |
118 |
+ fi |
119 |
+ else |
120 |
+ echo "NO_LUA = 1" >> cgit.conf |
121 |
+ fi |
122 |
} |
123 |
|
124 |
src_compile() { |
125 |
@@ -58,12 +71,7 @@ |
126 |
src_install() { |
127 |
webapp_src_preinst |
128 |
|
129 |
- emake \ |
130 |
- prefix="${EPREFIX}"/usr \ |
131 |
- libdir="${EPREFIX}"/usr/$(get_libdir) \ |
132 |
- CGIT_SCRIPT_PATH="${MY_CGIBINDIR}" \ |
133 |
- CGIT_DATA_PATH="${MY_HTDOCSDIR}" \ |
134 |
- DESTDIR="${D}" install |
135 |
+ emake install |
136 |
|
137 |
insinto /etc |
138 |
doins "${FILESDIR}"/cgitrc |
139 |
|
140 |
|
141 |
|
142 |
1.19 www-apps/cgit/ChangeLog |
143 |
|
144 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/cgit/ChangeLog?rev=1.19&view=markup |
145 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/cgit/ChangeLog?rev=1.19&content-type=text/plain |
146 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/cgit/ChangeLog?r1=1.18&r2=1.19 |
147 |
|
148 |
Index: ChangeLog |
149 |
=================================================================== |
150 |
RCS file: /var/cvsroot/gentoo-x86/www-apps/cgit/ChangeLog,v |
151 |
retrieving revision 1.18 |
152 |
retrieving revision 1.19 |
153 |
diff -u -r1.18 -r1.19 |
154 |
--- ChangeLog 13 Oct 2013 10:20:55 -0000 1.18 |
155 |
+++ ChangeLog 21 Jan 2014 19:49:03 -0000 1.19 |
156 |
@@ -1,6 +1,12 @@ |
157 |
# ChangeLog for www-apps/cgit |
158 |
-# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
159 |
-# $Header: /var/cvsroot/gentoo-x86/www-apps/cgit/ChangeLog,v 1.18 2013/10/13 10:20:55 tomwij Exp $ |
160 |
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
161 |
+# $Header: /var/cvsroot/gentoo-x86/www-apps/cgit/ChangeLog,v 1.19 2014/01/21 19:49:03 zx2c4 Exp $ |
162 |
+ |
163 |
+*cgit-0.10 (21 Jan 2014) |
164 |
+ |
165 |
+ 21 Jan 2014; Jason A. Donenfeld <zx2c4@g.o> +cgit-0.10.ebuild, |
166 |
+ cgit-9999.ebuild, metadata.xml: |
167 |
+ Version bump. |
168 |
|
169 |
13 Oct 2013; Tom Wijsman <TomWij@g.o> metadata.xml: |
170 |
Updated Nikoli's e-mail address for easier automatic assignment. |
171 |
|
172 |
|
173 |
|
174 |
1.1 www-apps/cgit/cgit-0.10.ebuild |
175 |
|
176 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/cgit/cgit-0.10.ebuild?rev=1.1&view=markup |
177 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/cgit/cgit-0.10.ebuild?rev=1.1&content-type=text/plain |
178 |
|
179 |
Index: cgit-0.10.ebuild |
180 |
=================================================================== |
181 |
# Copyright 1999-2014 Gentoo Foundation |
182 |
# Distributed under the terms of the GNU General Public License v2 |
183 |
# $Header: /var/cvsroot/gentoo-x86/www-apps/cgit/cgit-0.10.ebuild,v 1.1 2014/01/21 19:49:03 zx2c4 Exp $ |
184 |
|
185 |
EAPI="4" |
186 |
|
187 |
WEBAPP_MANUAL_SLOT="yes" |
188 |
|
189 |
inherit webapp eutils multilib user |
190 |
|
191 |
[[ -z "${CGIT_CACHEDIR}" ]] && CGIT_CACHEDIR="/var/cache/${PN}/" |
192 |
|
193 |
GIT_V="1.8.5" |
194 |
|
195 |
DESCRIPTION="a fast web-interface for git repositories" |
196 |
HOMEPAGE="http://git.zx2c4.com/cgit/about" |
197 |
SRC_URI="mirror://kernel/software/scm/git/git-${GIT_V}.tar.bz2 |
198 |
http://git.zx2c4.com/cgit/snapshot/${P}.tar.xz" |
199 |
|
200 |
LICENSE="GPL-2" |
201 |
SLOT="0" |
202 |
KEYWORDS="~amd64 ~x86" |
203 |
IUSE="doc +highlight +lua +jit" |
204 |
|
205 |
RDEPEND=" |
206 |
dev-vcs/git |
207 |
sys-libs/zlib |
208 |
dev-libs/openssl |
209 |
virtual/httpd-cgi |
210 |
highlight? ( || ( dev-python/pygments app-text/highlight ) ) |
211 |
lua? ( jit? ( dev-lang/luajit ) !jit? ( dev-lang/lua ) ) |
212 |
" |
213 |
# ebuilds without WEBAPP_MANUAL_SLOT="yes" are broken |
214 |
DEPEND="${RDEPEND} |
215 |
!<www-apps/cgit-0.8.3.3 |
216 |
doc? ( app-text/docbook-xsl-stylesheets |
217 |
>=app-text/asciidoc-8.5.1 ) |
218 |
" |
219 |
|
220 |
pkg_setup() { |
221 |
webapp_pkg_setup |
222 |
enewuser "${PN}" |
223 |
} |
224 |
|
225 |
src_prepare() { |
226 |
rmdir git || die |
227 |
mv "${WORKDIR}"/git-"${GIT_V}" git || die |
228 |
|
229 |
echo "prefix = ${EPREFIX}/usr" >> cgit.conf |
230 |
echo "libdir = ${EPREFIX}/usr/$(get_libdir)" >> cgit.conf |
231 |
echo "CGIT_SCRIPT_PATH = ${MY_CGIBINDIR}" >> cgit.conf |
232 |
echo "CGIT_DATA_PATH = ${MY_HTDOCSDIR}" >> cgit.conf |
233 |
echo "CACHE_ROOT = ${CGIT_CACHEDIR}" >> cgit.conf |
234 |
echo "DESTDIR = ${D}" >> cgit.conf |
235 |
if use lua; then |
236 |
if use jit; then |
237 |
echo "LUA_IMPLEMENTATION = JIT" >> cgit.conf |
238 |
else |
239 |
echo "LUA_IMPLEMENTATION = VANILLA" >> cgit.conf |
240 |
fi |
241 |
else |
242 |
echo "NO_LUA = 1" >> cgit.conf |
243 |
fi |
244 |
} |
245 |
|
246 |
src_compile() { |
247 |
emake |
248 |
use doc && emake doc-man |
249 |
} |
250 |
|
251 |
src_install() { |
252 |
webapp_src_preinst |
253 |
|
254 |
emake install |
255 |
|
256 |
insinto /etc |
257 |
doins "${FILESDIR}"/cgitrc |
258 |
|
259 |
dodoc README |
260 |
use doc && doman cgitrc.5 |
261 |
|
262 |
webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt |
263 |
webapp_src_install |
264 |
|
265 |
keepdir "${CGIT_CACHEDIR}" |
266 |
fowners ${PN}:${PN} "${CGIT_CACHEDIR}" |
267 |
fperms 700 "${CGIT_CACHEDIR}" |
268 |
} |
269 |
|
270 |
pkg_postinst() { |
271 |
webapp_pkg_postinst |
272 |
ewarn "If you intend to run cgit using web server's user" |
273 |
ewarn "you should change ${CGIT_CACHEDIR} permissions." |
274 |
} |