1 |
commit: e30e94fa267abffb60b0f223521fd590bf1bfb99 |
2 |
Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Feb 12 17:36:19 2017 +0000 |
4 |
Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Feb 12 17:37:06 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e30e94fa |
7 |
|
8 |
www-apps/cgit: bump. |
9 |
|
10 |
Package-Manager: portage-2.3.2 |
11 |
|
12 |
www-apps/cgit/Manifest | 2 + |
13 |
www-apps/cgit/cgit-1.1.ebuild | 94 +++++++++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 96 insertions(+) |
15 |
|
16 |
diff --git a/www-apps/cgit/Manifest b/www-apps/cgit/Manifest |
17 |
index aa31344ba6..fddfdc6d81 100644 |
18 |
--- a/www-apps/cgit/Manifest |
19 |
+++ b/www-apps/cgit/Manifest |
20 |
@@ -1,2 +1,4 @@ |
21 |
DIST cgit-0.12.tar.xz 85152 SHA256 2ee233849335a64529a01cf2b6165ed492e20268e6e2526d7a7529ef1e24a5b7 SHA512 59c9189b5713184b07a7db65c30e26987bd14d76ccb998be52fb2d1cca0ae0d1637391c4d14ab58d29c0b58b586c1294ae865e140eda2a031ca1f175d83abc34 WHIRLPOOL f240e353545786cb90a328d2f3533070ff775cc192a915dd4e6cd9f9d1fa1be304a1412a2a63d45ed036f93ddc310d35c3884b1dfea40ad202a4bc5d69661e64 |
22 |
+DIST cgit-1.1.tar.xz 86268 SHA256 0889af29be15fc981481caa09579f982b9740fe9fd2860ab87dff286f4635890 SHA512 8f2ec418716d7a6f0880a713b622f2ee41217dc2d5462903841d59d978a021a8bc2be667ca65c25baee2b9dcd4a76bddd0c813bda0486109cc694e7610827051 WHIRLPOOL b1df953aa1bf43f4fb0900e03ecf23c0dcddc743955efc6b3428cf7fe20a2babe8c5a2676e13e3bce37fed13fcf60c70afb2fe54049a17b4c74f2e8cc7fe621b |
23 |
+DIST git-2.10.2.tar.xz 4106108 SHA256 94802903dd707d85ca3b9a2be35e936a54ce86375f52c6a789efe7ce7e238671 SHA512 0ab09de481dbb31c3304382afaa5d3fc9f861115c9954c65b11a8a1c34b939118c7ed3ff60ac329145888596388e3e4d2b2fb677fe109d33a57206d531b5ee6a WHIRLPOOL 808404fa13f908d149028f64aaf5b73400448fff6393dabfaa874d750065e86ff5dae4903724cbca4e59fb74b3ff30b8b8f0a0f1435a0a90c18267c7a0550de6 |
24 |
DIST git-2.7.0.tar.xz 3861524 SHA256 fa9fb34efce9c80527152a40fbae138e83bd04a15ef9111726252259345a7b0d SHA512 e2d51e3d547229bb1e5c3a92c71476695f23420d9c639f9cb1d953fd00579aad92f9bbaf8f3d45f966c9476da73bf4c11dabf18c06f542de6e4d26e12c43dcf3 WHIRLPOOL e0dc8071ebc4e0558a2f2b9d8b32d840f4278e893777367029e84a57bf52d1d00eadb778a3e6df70c93de8cb754b94ff985ae6025ff98d6276629d7d3318aa19 |
25 |
|
26 |
diff --git a/www-apps/cgit/cgit-1.1.ebuild b/www-apps/cgit/cgit-1.1.ebuild |
27 |
new file mode 100644 |
28 |
index 0000000000..1146254596 |
29 |
--- /dev/null |
30 |
+++ b/www-apps/cgit/cgit-1.1.ebuild |
31 |
@@ -0,0 +1,94 @@ |
32 |
+# Copyright 1999-2017 Gentoo Foundation |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+# $Id$ |
35 |
+ |
36 |
+EAPI=5 |
37 |
+ |
38 |
+WEBAPP_MANUAL_SLOT="yes" |
39 |
+ |
40 |
+inherit webapp eutils multilib user toolchain-funcs |
41 |
+ |
42 |
+[[ -z "${CGIT_CACHEDIR}" ]] && CGIT_CACHEDIR="/var/cache/${PN}/" |
43 |
+ |
44 |
+GIT_V="2.10.2" |
45 |
+ |
46 |
+DESCRIPTION="a fast web-interface for git repositories" |
47 |
+HOMEPAGE="http://git.zx2c4.com/cgit/about" |
48 |
+SRC_URI="mirror://kernel/software/scm/git/git-${GIT_V}.tar.xz |
49 |
+ http://git.zx2c4.com/cgit/snapshot/${P}.tar.xz" |
50 |
+ |
51 |
+LICENSE="GPL-2" |
52 |
+SLOT="0" |
53 |
+KEYWORDS="~amd64 ~x86" |
54 |
+IUSE="doc +highlight +lua +jit" |
55 |
+ |
56 |
+RDEPEND=" |
57 |
+ dev-vcs/git |
58 |
+ sys-libs/zlib |
59 |
+ dev-libs/openssl:0 |
60 |
+ virtual/httpd-cgi |
61 |
+ highlight? ( || ( dev-python/pygments app-text/highlight ) ) |
62 |
+ lua? ( jit? ( dev-lang/luajit ) !jit? ( dev-lang/lua ) ) |
63 |
+" |
64 |
+# ebuilds without WEBAPP_MANUAL_SLOT="yes" are broken |
65 |
+DEPEND="${RDEPEND} |
66 |
+ !<www-apps/cgit-0.8.3.3 |
67 |
+ doc? ( app-text/docbook-xsl-stylesheets |
68 |
+ >=app-text/asciidoc-8.5.1 ) |
69 |
+" |
70 |
+ |
71 |
+pkg_setup() { |
72 |
+ webapp_pkg_setup |
73 |
+ enewuser "${PN}" |
74 |
+} |
75 |
+ |
76 |
+src_prepare() { |
77 |
+ rmdir git || die |
78 |
+ mv "${WORKDIR}"/git-"${GIT_V}" git || die |
79 |
+ |
80 |
+ echo "prefix = ${EPREFIX}/usr" >> cgit.conf |
81 |
+ echo "libdir = ${EPREFIX}/usr/$(get_libdir)" >> cgit.conf |
82 |
+ echo "CGIT_SCRIPT_PATH = ${MY_CGIBINDIR}" >> cgit.conf |
83 |
+ echo "CGIT_DATA_PATH = ${MY_HTDOCSDIR}" >> cgit.conf |
84 |
+ echo "CACHE_ROOT = ${CGIT_CACHEDIR}" >> cgit.conf |
85 |
+ echo "DESTDIR = ${D}" >> cgit.conf |
86 |
+ if use lua; then |
87 |
+ if use jit; then |
88 |
+ echo "LUA_PKGCONFIG = luajit" >> cgit.conf |
89 |
+ else |
90 |
+ echo "LUA_PKGCONFIG = lua" >> cgit.conf |
91 |
+ fi |
92 |
+ else |
93 |
+ echo "NO_LUA = 1" >> cgit.conf |
94 |
+ fi |
95 |
+} |
96 |
+ |
97 |
+src_compile() { |
98 |
+ emake V=1 AR="$(tc-getAR)" CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" |
99 |
+ use doc && emake V=1 doc-man |
100 |
+} |
101 |
+ |
102 |
+src_install() { |
103 |
+ webapp_src_preinst |
104 |
+ |
105 |
+ emake V=1 AR="$(tc-getAR)" CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" install |
106 |
+ |
107 |
+ insinto /etc |
108 |
+ doins "${FILESDIR}"/cgitrc |
109 |
+ |
110 |
+ dodoc README |
111 |
+ use doc && doman cgitrc.5 |
112 |
+ |
113 |
+ webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt |
114 |
+ webapp_src_install |
115 |
+ |
116 |
+ keepdir "${CGIT_CACHEDIR}" |
117 |
+ fowners ${PN}:${PN} "${CGIT_CACHEDIR}" |
118 |
+ fperms 700 "${CGIT_CACHEDIR}" |
119 |
+} |
120 |
+ |
121 |
+pkg_postinst() { |
122 |
+ webapp_pkg_postinst |
123 |
+ ewarn "If you intend to run cgit using web server's user" |
124 |
+ ewarn "you should change ${CGIT_CACHEDIR} permissions." |
125 |
+} |