Gentoo Archives: gentoo-commits

From: Matt Turner <mattst88@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-apps/cgit/
Date: Fri, 29 Jul 2022 18:57:21
Message-Id: 1659121030.7a0cc3705521088ad1a00e85823c47869313ad9b.mattst88@gentoo
1 commit: 7a0cc3705521088ad1a00e85823c47869313ad9b
2 Author: Matt Turner <mattst88 <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jul 29 18:43:58 2022 +0000
4 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
5 CommitDate: Fri Jul 29 18:57:10 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7a0cc370
7
8 www-apps/cgit: Drop unmaintained live ebuild
9
10 Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>
11
12 www-apps/cgit/cgit-9999.ebuild | 94 ------------------------------------------
13 1 file changed, 94 deletions(-)
14
15 diff --git a/www-apps/cgit/cgit-9999.ebuild b/www-apps/cgit/cgit-9999.ebuild
16 deleted file mode 100644
17 index 0efa5da905aa..000000000000
18 --- a/www-apps/cgit/cgit-9999.ebuild
19 +++ /dev/null
20 @@ -1,94 +0,0 @@
21 -# Copyright 1999-2021 Gentoo Authors
22 -# Distributed under the terms of the GNU General Public License v2
23 -
24 -EAPI=7
25 -
26 -LUA_COMPAT=( lua5-{1..2} luajit )
27 -WEBAPP_MANUAL_SLOT="yes"
28 -
29 -inherit git-r3 lua-single toolchain-funcs webapp
30 -
31 -[[ -z "${CGIT_CACHEDIR}" ]] && CGIT_CACHEDIR="/var/cache/${PN}/"
32 -
33 -DESCRIPTION="a fast web-interface for git repositories"
34 -HOMEPAGE="https://git.zx2c4.com/cgit/about"
35 -SRC_URI=""
36 -EGIT_REPO_URI="https://git.zx2c4.com/cgit"
37 -
38 -LICENSE="GPL-2"
39 -SLOT="0"
40 -KEYWORDS=""
41 -IUSE="doc +highlight +lua test"
42 -REQUIRED_USE="lua? ( ${LUA_REQUIRED_USE} )"
43 -RESTRICT="!test? ( test )"
44 -
45 -RDEPEND="
46 - acct-group/cgit
47 - acct-user/cgit
48 - dev-vcs/git
49 - highlight? ( || ( dev-python/pygments app-text/highlight ) )
50 - dev-libs/openssl:0=
51 - lua? ( ${LUA_DEPS} )
52 - sys-libs/zlib
53 - virtual/httpd-cgi
54 -"
55 -# ebuilds without WEBAPP_MANUAL_SLOT="yes" are broken
56 -DEPEND="${RDEPEND}
57 - doc? ( app-text/docbook-xsl-stylesheets
58 - >=app-text/asciidoc-8.5.1 )
59 -"
60 -
61 -pkg_setup() {
62 - webapp_pkg_setup
63 - use lua && lua-single_pkg_setup
64 -}
65 -
66 -src_prepare() {
67 - echo "prefix = ${EPREFIX}/usr" >> cgit.conf
68 - echo "libdir = ${EPREFIX}/usr/$(get_libdir)" >> cgit.conf
69 - echo "CGIT_SCRIPT_PATH = ${MY_CGIBINDIR}" >> cgit.conf
70 - echo "CGIT_DATA_PATH = ${MY_HTDOCSDIR}" >> cgit.conf
71 - echo "CACHE_ROOT = ${CGIT_CACHEDIR}" >> cgit.conf
72 - echo "DESTDIR = ${D}" >> cgit.conf
73 - if use lua; then
74 - echo "LUA_PKGCONFIG = ${ELUA}" >> cgit.conf
75 - else
76 - echo "NO_LUA = 1" >> cgit.conf
77 - fi
78 -
79 - eapply_user
80 -}
81 -
82 -src_compile() {
83 - emake V=1 AR="$(tc-getAR)" CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
84 - use doc && emake V=1 doc-man
85 -}
86 -
87 -src_install() {
88 - webapp_src_preinst
89 -
90 - emake V=1 AR="$(tc-getAR)" CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" install
91 -
92 - insinto /etc
93 - doins "${FILESDIR}"/cgitrc
94 -
95 - dodoc README
96 - use doc && doman cgitrc.5
97 -
98 - webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt
99 - webapp_src_install
100 -
101 - keepdir "${CGIT_CACHEDIR}"
102 - fowners ${PN}:${PN} "${CGIT_CACHEDIR}"
103 - fperms 700 "${CGIT_CACHEDIR}"
104 -}
105 -
106 -src_test() {
107 - emake V=1 AR="$(tc-getAR)" CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" test
108 -}
109 -
110 -pkg_postinst() {
111 - webapp_pkg_postinst
112 - ewarn "If you intend to run cgit using web server's user"
113 - ewarn "you should change ${CGIT_CACHEDIR} permissions."
114 -}