Gentoo Archives: gentoo-commits

From: "Jason Donenfeld (zx2c4)" <zx2c4@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in www-apps/cgit: cgit-0.10.1.ebuild ChangeLog
Date: Thu, 27 Feb 2014 23:47:45
Message-Id: 20140227234741.46E6E2004C@flycatcher.gentoo.org
1 zx2c4 14/02/27 23:47:41
2
3 Modified: ChangeLog
4 Added: cgit-0.10.1.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.23 www-apps/cgit/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/cgit/ChangeLog?rev=1.23&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/cgit/ChangeLog?rev=1.23&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/cgit/ChangeLog?r1=1.22&r2=1.23
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/www-apps/cgit/ChangeLog,v
20 retrieving revision 1.22
21 retrieving revision 1.23
22 diff -u -r1.22 -r1.23
23 --- ChangeLog 5 Feb 2014 16:32:50 -0000 1.22
24 +++ ChangeLog 27 Feb 2014 23:47:41 -0000 1.23
25 @@ -1,6 +1,11 @@
26 # ChangeLog for www-apps/cgit
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/www-apps/cgit/ChangeLog,v 1.22 2014/02/05 16:32:50 zx2c4 Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/www-apps/cgit/ChangeLog,v 1.23 2014/02/27 23:47:41 zx2c4 Exp $
30 +
31 +*cgit-0.10.1 (27 Feb 2014)
32 +
33 + 27 Feb 2014; Jason A. Donenfeld <zx2c4@g.o> +cgit-0.10.1.ebuild:
34 + Version bump.
35
36 05 Feb 2014; Jason A. Donenfeld <zx2c4@g.o> -cgit-0.9.2.ebuild,
37 cgit-0.10.ebuild:
38
39
40
41 1.1 www-apps/cgit/cgit-0.10.1.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/cgit/cgit-0.10.1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/cgit/cgit-0.10.1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: cgit-0.10.1.ebuild
47 ===================================================================
48 # Copyright 1999-2014 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/www-apps/cgit/cgit-0.10.1.ebuild,v 1.1 2014/02/27 23:47:41 zx2c4 Exp $
51
52 EAPI="4"
53
54 WEBAPP_MANUAL_SLOT="yes"
55
56 inherit webapp eutils multilib user
57
58 [[ -z "${CGIT_CACHEDIR}" ]] && CGIT_CACHEDIR="/var/cache/${PN}/"
59
60 GIT_V="1.9.0"
61
62 DESCRIPTION="a fast web-interface for git repositories"
63 HOMEPAGE="http://git.zx2c4.com/cgit/about"
64 SRC_URI="mirror://kernel/software/scm/git/git-${GIT_V}.tar.xz
65 http://git.zx2c4.com/cgit/snapshot/${P}.tar.xz"
66
67 LICENSE="GPL-2"
68 SLOT="0"
69 KEYWORDS="~amd64 ~x86"
70 IUSE="doc +highlight +lua +jit"
71
72 RDEPEND="
73 dev-vcs/git
74 sys-libs/zlib
75 dev-libs/openssl
76 virtual/httpd-cgi
77 highlight? ( || ( dev-python/pygments app-text/highlight ) )
78 lua? ( jit? ( dev-lang/luajit ) !jit? ( dev-lang/lua ) )
79 "
80 # ebuilds without WEBAPP_MANUAL_SLOT="yes" are broken
81 DEPEND="${RDEPEND}
82 !<www-apps/cgit-0.8.3.3
83 doc? ( app-text/docbook-xsl-stylesheets
84 >=app-text/asciidoc-8.5.1 )
85 "
86
87 pkg_setup() {
88 webapp_pkg_setup
89 enewuser "${PN}"
90 }
91
92 src_prepare() {
93 rmdir git || die
94 mv "${WORKDIR}"/git-"${GIT_V}" git || die
95
96 echo "prefix = ${EPREFIX}/usr" >> cgit.conf
97 echo "libdir = ${EPREFIX}/usr/$(get_libdir)" >> cgit.conf
98 echo "CGIT_SCRIPT_PATH = ${MY_CGIBINDIR}" >> cgit.conf
99 echo "CGIT_DATA_PATH = ${MY_HTDOCSDIR}" >> cgit.conf
100 echo "CACHE_ROOT = ${CGIT_CACHEDIR}" >> cgit.conf
101 echo "DESTDIR = ${D}" >> cgit.conf
102 if use lua; then
103 if use jit; then
104 echo "LUA_PKGCONFIG = luajit" >> cgit.conf
105 else
106 echo "LUA_PKGCONFIG = lua" >> cgit.conf
107 fi
108 else
109 echo "NO_LUA = 1" >> cgit.conf
110 fi
111 }
112
113 src_compile() {
114 emake
115 use doc && emake doc-man
116 }
117
118 src_install() {
119 webapp_src_preinst
120
121 emake install
122
123 insinto /etc
124 doins "${FILESDIR}"/cgitrc
125
126 dodoc README
127 use doc && doman cgitrc.5
128
129 webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt
130 webapp_src_install
131
132 keepdir "${CGIT_CACHEDIR}"
133 fowners ${PN}:${PN} "${CGIT_CACHEDIR}"
134 fperms 700 "${CGIT_CACHEDIR}"
135 }
136
137 pkg_postinst() {
138 webapp_pkg_postinst
139 ewarn "If you intend to run cgit using web server's user"
140 ewarn "you should change ${CGIT_CACHEDIR} permissions."
141 }