public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Aaron Bauman" <bman@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: www-apps/cgit/
Date: Fri, 27 Nov 2020 20:11:24 +0000 (UTC)	[thread overview]
Message-ID: <1606507878.0344dd9fa5e6e7c9d59bf3ab65c3c2e5592406c6.bman@gentoo> (raw)

commit:     0344dd9fa5e6e7c9d59bf3ab65c3c2e5592406c6
Author:     Aaron Bauman <bman <AT> gentoo <DOT> org>
AuthorDate: Fri Nov 27 20:10:46 2020 +0000
Commit:     Aaron Bauman <bman <AT> gentoo <DOT> org>
CommitDate: Fri Nov 27 20:11:18 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0344dd9f

www-apps/cgit: port EAPI. bump. other stuff

* port to EAPI=7
* port to GLEP 81
* reorder deps
* drop unused inherits
* fix CC calls during tests

Closes: https://bugs.gentoo.org/726074
Signed-off-by: Aaron Bauman <bman <AT> gentoo.org>

 .../{cgit-9999.ebuild => cgit-1.2.3-r1.ebuild}     | 36 ++++++++++++++--------
 www-apps/cgit/cgit-9999.ebuild                     | 25 +++++++++------
 www-apps/cgit/metadata.xml                         |  4 ---
 3 files changed, 38 insertions(+), 27 deletions(-)

diff --git a/www-apps/cgit/cgit-9999.ebuild b/www-apps/cgit/cgit-1.2.3-r1.ebuild
similarity index 76%
copy from www-apps/cgit/cgit-9999.ebuild
copy to www-apps/cgit/cgit-1.2.3-r1.ebuild
index 6c5cb1217c4..6c5ff88b4c9 100644
--- a/www-apps/cgit/cgit-9999.ebuild
+++ b/www-apps/cgit/cgit-1.2.3-r1.ebuild
@@ -1,34 +1,39 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=5
+EAPI=7
 
 WEBAPP_MANUAL_SLOT="yes"
 
-inherit webapp eutils multilib user toolchain-funcs git-r3
+inherit toolchain-funcs webapp
 
 [[ -z "${CGIT_CACHEDIR}" ]] && CGIT_CACHEDIR="/var/cache/${PN}/"
 
+GIT_V="2.25.1"
+
 DESCRIPTION="a fast web-interface for git repositories"
 HOMEPAGE="https://git.zx2c4.com/cgit/about"
-SRC_URI=""
-EGIT_REPO_URI="https://git.zx2c4.com/cgit"
+SRC_URI="https://www.kernel.org/pub/software/scm/git/git-${GIT_V}.tar.xz
+	https://git.zx2c4.com/cgit/snapshot/${P}.tar.xz"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS=""
-IUSE="doc +highlight +lua +luajit"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE="doc +highlight libressl +lua +luajit test"
 
 RDEPEND="
+	acct-group/cgit
+	acct-user/cgit
 	dev-vcs/git
-	sys-libs/zlib
-	dev-libs/openssl:0
-	virtual/httpd-cgi
 	highlight? ( || ( dev-python/pygments app-text/highlight ) )
 	lua? (
 		luajit? ( dev-lang/luajit )
 		!luajit? ( dev-lang/lua:0 )
 	)
+	!libressl? ( dev-libs/openssl:0= )
+	libressl? ( dev-libs/libressl:0= )
+	sys-libs/zlib
+	virtual/httpd-cgi
 "
 # ebuilds without WEBAPP_MANUAL_SLOT="yes" are broken
 DEPEND="${RDEPEND}
@@ -38,11 +43,12 @@ DEPEND="${RDEPEND}
 
 pkg_setup() {
 	webapp_pkg_setup
-	enewgroup ${PN}
-	enewuser ${PN} -1 -1 -1 ${PN}
 }
 
 src_prepare() {
+	rmdir git || die
+	mv "${WORKDIR}"/git-"${GIT_V}" git || die
+
 	echo "prefix = ${EPREFIX}/usr" >> cgit.conf
 	echo "libdir = ${EPREFIX}/usr/$(get_libdir)" >> cgit.conf
 	echo "CGIT_SCRIPT_PATH = ${MY_CGIBINDIR}" >> cgit.conf
@@ -59,7 +65,7 @@ src_prepare() {
 		echo "NO_LUA = 1" >> cgit.conf
 	fi
 
-	epatch_user
+	eapply_user
 }
 
 src_compile() {
@@ -86,6 +92,10 @@ src_install() {
 	fperms 700 "${CGIT_CACHEDIR}"
 }
 
+src_test() {
+	emake V=1 AR="$(tc-getAR)" CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" test
+}
+
 pkg_postinst() {
 	webapp_pkg_postinst
 	ewarn "If you intend to run cgit using web server's user"

diff --git a/www-apps/cgit/cgit-9999.ebuild b/www-apps/cgit/cgit-9999.ebuild
index 6c5cb1217c4..c6c843a12c6 100644
--- a/www-apps/cgit/cgit-9999.ebuild
+++ b/www-apps/cgit/cgit-9999.ebuild
@@ -1,11 +1,11 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=5
+EAPI=7
 
 WEBAPP_MANUAL_SLOT="yes"
 
-inherit webapp eutils multilib user toolchain-funcs git-r3
+inherit git-r3 toolchain-funcs webapp
 
 [[ -z "${CGIT_CACHEDIR}" ]] && CGIT_CACHEDIR="/var/cache/${PN}/"
 
@@ -17,18 +17,21 @@ EGIT_REPO_URI="https://git.zx2c4.com/cgit"
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS=""
-IUSE="doc +highlight +lua +luajit"
+IUSE="doc +highlight libressl +lua +luajit"
 
 RDEPEND="
+	acct-group/cgit
+	acct-user/cgit
 	dev-vcs/git
-	sys-libs/zlib
-	dev-libs/openssl:0
-	virtual/httpd-cgi
 	highlight? ( || ( dev-python/pygments app-text/highlight ) )
+	!libressl? ( dev-libs/openssl:0= )
+	libressl? ( dev-libs/libressl:0= )
 	lua? (
 		luajit? ( dev-lang/luajit )
 		!luajit? ( dev-lang/lua:0 )
 	)
+	sys-libs/zlib
+	virtual/httpd-cgi
 "
 # ebuilds without WEBAPP_MANUAL_SLOT="yes" are broken
 DEPEND="${RDEPEND}
@@ -38,8 +41,6 @@ DEPEND="${RDEPEND}
 
 pkg_setup() {
 	webapp_pkg_setup
-	enewgroup ${PN}
-	enewuser ${PN} -1 -1 -1 ${PN}
 }
 
 src_prepare() {
@@ -59,7 +60,7 @@ src_prepare() {
 		echo "NO_LUA = 1" >> cgit.conf
 	fi
 
-	epatch_user
+	eapply_user
 }
 
 src_compile() {
@@ -86,6 +87,10 @@ src_install() {
 	fperms 700 "${CGIT_CACHEDIR}"
 }
 
+src_test() {
+	emake V=1 AR="$(tc-getAR)" CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" test
+}
+
 pkg_postinst() {
 	webapp_pkg_postinst
 	ewarn "If you intend to run cgit using web server's user"

diff --git a/www-apps/cgit/metadata.xml b/www-apps/cgit/metadata.xml
index 7c228e38151..647683a8f62 100644
--- a/www-apps/cgit/metadata.xml
+++ b/www-apps/cgit/metadata.xml
@@ -1,10 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
 <pkgmetadata>
-	<maintainer type="person">
-		<email>zx2c4@gentoo.org</email>
-		<name>Jason A. Donenfeld</name>
-	</maintainer>
 	<maintainer type="project">
 		<email>web-apps@gentoo.org</email>
 		<name>Gentoo Webapps</name>


             reply	other threads:[~2020-11-27 20:11 UTC|newest]

Thread overview: 50+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-27 20:11 Aaron Bauman [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-05-03  4:58 [gentoo-commits] repo/gentoo:master commit in: www-apps/cgit/ Sam James
2025-05-02  9:37 Arthur Zamarin
2025-05-02  1:45 Sam James
2025-05-02  1:45 Sam James
2025-03-18 13:57 Sam James
2025-03-18 13:57 Sam James
2024-05-29 17:37 Sam James
2024-05-29 11:47 Sam James
2024-05-29  6:26 Jakov Smolić
2024-05-08  3:15 Robin H. Johnson
2024-04-15 17:44 Viorel Munteanu
2023-04-25  2:22 Sam James
2022-10-24 22:52 Yixun Lan
2022-10-20 10:56 Jakov Smolić
2022-10-20 10:52 Jakov Smolić
2022-10-16  8:54 Agostino Sarubbo
2022-10-15 15:13 Sam James
2022-07-29 18:57 Matt Turner
2022-07-29 18:57 Matt Turner
2022-07-29 18:57 Matt Turner
2021-05-02  8:08 Mikle Kolyada
2021-02-07 23:00 Aaron Bauman
2021-01-25 17:38 Marek Szuba
2021-01-23 22:51 Sam James
2021-01-23  4:20 Sam James
2021-01-23  4:09 Sam James
2020-11-27 20:16 Aaron Bauman
2020-03-23 22:35 Matt Turner
2020-03-23 22:35 Matt Turner
2020-03-23 22:19 Matt Turner
2020-03-23 22:19 Matt Turner
2020-03-14  3:26 Jason A. Donenfeld
2020-01-13 20:53 Jason A. Donenfeld
2020-01-02  3:02 Stefan Strogin
2019-12-16  9:39 Michał Górny
2019-12-15 20:42 Michał Górny
2019-10-05 18:56 Michał Górny
2019-09-29 20:59 Ben Kohler
2018-08-07 23:01 Mart Raudsepp
2018-08-04 14:53 Jason Donenfeld
2018-08-03 15:14 Jason Donenfeld
2018-07-13 22:30 Jason Donenfeld
2018-05-18 12:34 Aaron Bauman
2017-04-05 13:45 Michael Weber
2017-02-12 17:37 Robin H. Johnson
2016-02-22 18:20 Jason Donenfeld
2016-02-12  3:38 Jason Donenfeld
2016-01-14 14:52 Jason Donenfeld
2016-01-14 14:51 Jason Donenfeld

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1606507878.0344dd9fa5e6e7c9d59bf3ab65c3c2e5592406c6.bman@gentoo \
    --to=bman@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox