|
|
|
@ -2,7 +2,7 @@
|
|
|
|
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. |
|
|
|
|
# |
|
|
|
|
# Filename: package/.../git/git.conf |
|
|
|
|
# Copyright (C) 2007 - 2009 The OpenSDE Project |
|
|
|
|
# Copyright (C) 2007 - 2010 The OpenSDE Project |
|
|
|
|
# |
|
|
|
|
# More information can be found in the files COPYING and README. |
|
|
|
|
# |
|
|
|
@ -17,21 +17,16 @@ if ! pkginstalled tk; then
|
|
|
|
|
var_append extraconfopt ' ' "--without-tcltk" |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
var_append makeopt ' ' 'gitweb' |
|
|
|
|
|
|
|
|
|
var_append makeinstopt ' ' 'gitwebdir=$root$docdir/gitweb' |
|
|
|
|
var_append makeinstopt ' ' 'install-gitweb' |
|
|
|
|
|
|
|
|
|
if pkginstalled asciidoc; then |
|
|
|
|
var_append makeopt ' ' 'doc' |
|
|
|
|
var_append makeinstopt ' ' 'install-doc' |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
gitweb_install() { |
|
|
|
|
local dir="$root$docdir/gitweb" |
|
|
|
|
|
|
|
|
|
mkdir -p "$dir" |
|
|
|
|
|
|
|
|
|
cp -vf gitweb/*.{cgi,png,css} "$dir/" |
|
|
|
|
cp -vf gitweb/README "$dir/" |
|
|
|
|
} |
|
|
|
|
hook_add postmake 5 'gitweb_install' |
|
|
|
|
|
|
|
|
|
git_contrib_install() { |
|
|
|
|
tar -cf - contrib | tar -C "$root$docdir" -xvf - |
|
|
|
|
} |
|
|
|
|