mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-21 19:42:24 +01:00
development/cgit: Updated for version 0.11.0.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
This commit is contained in:
parent
c2067d87a9
commit
620d5c6794
3 changed files with 8 additions and 56 deletions
|
@ -22,7 +22,7 @@
|
|||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
PRGNAM=cgit
|
||||
VERSION=${VERSION:-0.10.1}
|
||||
VERSION=${VERSION:-0.11.0}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
|
@ -55,8 +55,8 @@ else
|
|||
LIBDIRSUFFIX=""
|
||||
fi
|
||||
|
||||
CGIT_VERSION=${CGIT_VERSION:-v0.10.1}
|
||||
GIT_VERSION=${GIT_VERSION:-1.9.0}
|
||||
CGIT_VERSION=${CGIT_VERSION:-v0.11.0}
|
||||
GIT_VERSION=${GIT_VERSION:-2.3.0}
|
||||
|
||||
DOCS="cgitrc.5.txt COPYING README $CWD/config/cgitrc.sample \
|
||||
$CWD/config/cgit-lighttpd.conf $CWD/config/cgit-httpd.conf \
|
||||
|
@ -78,9 +78,6 @@ find -L . \
|
|||
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
||||
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
||||
|
||||
# apply upstream patches
|
||||
for i in $CWD/patches/* ; do patch -p1 < $i ; done
|
||||
|
||||
# prepare sources
|
||||
sed -i Makefile \
|
||||
-e "s|-g -Wall -Igit|-Wall ${SLKCFLAGS} -Igit|" \
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
PRGNAM="cgit"
|
||||
VERSION="0.10.1"
|
||||
VERSION="0.11.0"
|
||||
HOMEPAGE="http://git.zx2c4.com/cgit/about/"
|
||||
DOWNLOAD="https://github.com/zx2c4/cgit/archive/v0.10.1.tar.gz \
|
||||
http://ponce.cc/slackware/sources/repo/git-1.9.0.tar.xz"
|
||||
MD5SUM="e4adc12f086103a7dd4560cab28392a4 \
|
||||
7debe72e09d6c725fd291d4d68c5f638"
|
||||
DOWNLOAD="https://github.com/zx2c4/cgit/archive/v0.11.0.tar.gz \
|
||||
https://www.kernel.org/pub/software/scm/git/git-2.3.0.tar.xz"
|
||||
MD5SUM="f791ee8ce8f123c4d68265c053a8cbb7 \
|
||||
e5880760d1f43f4f49b3bf94b9046eee"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES=""
|
||||
|
|
|
@ -1,45 +0,0 @@
|
|||
From e22e985416929adb735bd952db00fce82d883914 Mon Sep 17 00:00:00 2001
|
||||
From: Christian Hesse <mail@eworm.de>
|
||||
Date: Thu, 13 Mar 2014 11:55:49 +0100
|
||||
Subject: [PATCH] filter: add libravatar email-filter lua script
|
||||
|
||||
---
|
||||
filters/email-libravatar.lua | 26 ++++++++++++++++++++++++++
|
||||
1 file changed, 26 insertions(+)
|
||||
create mode 100644 filters/email-libravatar.lua
|
||||
|
||||
diff --git a/filters/email-libravatar.lua b/filters/email-libravatar.lua
|
||||
new file mode 100644
|
||||
index 0000000..a248be4
|
||||
--- /dev/null
|
||||
+++ b/filters/email-libravatar.lua
|
||||
@@ -0,0 +1,26 @@
|
||||
+-- This script may be used with the email-filter or repo.email-filter settings in cgitrc.
|
||||
+-- It adds libravatar icons to author names. It is designed to be used with the lua:
|
||||
+-- prefix in filters.
|
||||
+--
|
||||
+-- Requirements:
|
||||
+-- luacrypto >= 0.3
|
||||
+-- <http://mkottman.github.io/luacrypto/>
|
||||
+--
|
||||
+
|
||||
+local crypto = require("crypto")
|
||||
+
|
||||
+function filter_open(email, page)
|
||||
+ buffer = ""
|
||||
+ md5 = crypto.digest("md5", email:sub(2, -2):lower())
|
||||
+end
|
||||
+
|
||||
+function filter_close()
|
||||
+ html("<img src='//cdn.libravatar.org/avatar/" .. md5 .. "?s=13&d=retro' width='13' height='13' alt='Libravatar' /> " .. buffer)
|
||||
+ return 0
|
||||
+end
|
||||
+
|
||||
+function filter_write(str)
|
||||
+ buffer = buffer .. str
|
||||
+end
|
||||
+
|
||||
+
|
||||
--
|
||||
1.9.0
|
||||
|
Loading…
Reference in a new issue