From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 6B3CF138350 for ; Mon, 13 Jan 2020 20:53:16 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 94902E0B01; Mon, 13 Jan 2020 20:53:15 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 53460E0B01 for ; Mon, 13 Jan 2020 20:53:15 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 7C06934E04D for ; Mon, 13 Jan 2020 20:53:13 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0825F89 for ; Mon, 13 Jan 2020 20:53:12 +0000 (UTC) From: "Jason A. Donenfeld" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Jason A. Donenfeld" Message-ID: <1578948776.d9e6f0967d0d4faf89b3a0cc35c0863c64e8b9a6.zx2c4@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: www-apps/cgit/ X-VCS-Repository: repo/gentoo X-VCS-Files: www-apps/cgit/Manifest www-apps/cgit/cgit-1.2.2.ebuild X-VCS-Directories: www-apps/cgit/ X-VCS-Committer: zx2c4 X-VCS-Committer-Name: Jason A. Donenfeld X-VCS-Revision: d9e6f0967d0d4faf89b3a0cc35c0863c64e8b9a6 X-VCS-Branch: master Date: Mon, 13 Jan 2020 20:53:12 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: d1b0ae04-6e99-4b81-9127-fa0f41a15f70 X-Archives-Hash: 22f54659029179c8c1cd628113173c84 commit: d9e6f0967d0d4faf89b3a0cc35c0863c64e8b9a6 Author: Jason A. Donenfeld gentoo org> AuthorDate: Mon Jan 13 20:19:20 2020 +0000 Commit: Jason A. Donenfeld gentoo org> CommitDate: Mon Jan 13 20:52:56 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d9e6f096 www-apps/cgit: version bump to 1.2.2 Package-Manager: Portage-2.3.84, Repoman-2.3.20 Signed-off-by: Jason A. Donenfeld gentoo.org> www-apps/cgit/Manifest | 2 + www-apps/cgit/cgit-1.2.2.ebuild | 95 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 97 insertions(+) diff --git a/www-apps/cgit/Manifest b/www-apps/cgit/Manifest index adbbfd2694c..0f5c0eaaffa 100644 --- a/www-apps/cgit/Manifest +++ b/www-apps/cgit/Manifest @@ -1,2 +1,4 @@ DIST cgit-1.2.1.tar.xz 89648 BLAKE2B c1dc2fe9af58cc00bef9e11c5f784c5696d108671456be61c46e971659df3274874e751b26d6e124c2b3e7b407bbad2878ec5d74f26a0469146bfc66a479501c SHA512 c7380df9afbc3735ef9e4f196f4f5bbd26cf52e473fa6f435e7d0c00dc295cc8de6bee6bfb1857144025c8591d41a6a74efb1af551e8610848d90ac40fcfab36 +DIST cgit-1.2.2.tar.xz 90204 BLAKE2B de8c4c8cd96b3f12f914c5df9e5f1af408fc6f268a3cee185f5721696fe5a064340eb05243aa9b8536d096daaf794c3f74669388d029d21a12722917e0dc0903 SHA512 ac006db0b14ae84fc9304b4cb1b49c3445d229593071be39b2d6e2709b54d03b11efd0ac1b5daef8160278303a7611c897fb6cf1e008c66c3f2463151e650af9 DIST git-2.18.0.tar.xz 5102264 BLAKE2B 94a8469a0e489d517136233301f1af622a3e612967316620800a771721f4e558dfb9159f158ddd07d294fce3ceb256038483f5a8c1fe6a84f661710857945dce SHA512 db19363c9c2042248322d49874a27c0614acfb912183725e5d4f0331d6b44cef66a9a7da6a49bd4a17e5d86d30c5fed6bef7527f386494184595a433c4060e46 +DIST git-2.25.0.tar.xz 5873532 BLAKE2B 7e9e54677ac3c4d3295e9f92ba7e3f7f5b33620d6d0fb8105d5e57d609fe3ee499d1c1bc4a6d8832927a28f4948f4466a6ca4edf996b8a324279f91d25627660 SHA512 8bbada0451fe0a3314e1b9a43a74135115449aa41f5b3e7f960279e4a7fe6069c36e78825fc4b60d06806e3a6fa8158f327cb8a3801686ac22a35e3704244191 diff --git a/www-apps/cgit/cgit-1.2.2.ebuild b/www-apps/cgit/cgit-1.2.2.ebuild new file mode 100644 index 00000000000..a74743dfbc3 --- /dev/null +++ b/www-apps/cgit/cgit-1.2.2.ebuild @@ -0,0 +1,95 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +WEBAPP_MANUAL_SLOT="yes" + +inherit webapp eutils multilib user toolchain-funcs + +[[ -z "${CGIT_CACHEDIR}" ]] && CGIT_CACHEDIR="/var/cache/${PN}/" + +GIT_V="2.25.0" + +DESCRIPTION="a fast web-interface for git repositories" +HOMEPAGE="https://git.zx2c4.com/cgit/about" +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="~amd64 ~arm ~x86" +IUSE="doc +highlight libressl +lua +jit" + +RDEPEND=" + dev-vcs/git + sys-libs/zlib + virtual/httpd-cgi + highlight? ( || ( dev-python/pygments app-text/highlight ) ) + !libressl? ( dev-libs/openssl:0= ) + libressl? ( dev-libs/libressl:0= ) + lua? ( jit? ( dev-lang/luajit ) !jit? ( dev-lang/lua:0 ) ) +" +# ebuilds without WEBAPP_MANUAL_SLOT="yes" are broken +DEPEND="${RDEPEND} + !=app-text/asciidoc-8.5.1 ) +" + +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 + echo "CGIT_DATA_PATH = ${MY_HTDOCSDIR}" >> cgit.conf + echo "CACHE_ROOT = ${CGIT_CACHEDIR}" >> cgit.conf + echo "DESTDIR = ${D}" >> cgit.conf + if use lua; then + if use jit; then + echo "LUA_PKGCONFIG = luajit" >> cgit.conf + else + echo "LUA_PKGCONFIG = lua" >> cgit.conf + fi + else + echo "NO_LUA = 1" >> cgit.conf + fi +} + +src_compile() { + emake V=1 AR="$(tc-getAR)" CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" + use doc && emake V=1 doc-man +} + +src_install() { + webapp_src_preinst + + emake V=1 AR="$(tc-getAR)" CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" install + + insinto /etc + doins "${FILESDIR}"/cgitrc + + dodoc README + use doc && doman cgitrc.5 + + webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt + webapp_src_install + + keepdir "${CGIT_CACHEDIR}" + fowners ${PN}:${PN} "${CGIT_CACHEDIR}" + fperms 700 "${CGIT_CACHEDIR}" +} + +pkg_postinst() { + webapp_pkg_postinst + ewarn "If you intend to run cgit using web server's user" + ewarn "you should change ${CGIT_CACHEDIR} permissions." +}