forked from ports/contrib
31 lines
768 B
Plaintext
31 lines
768 B
Plaintext
# Description: Git web interface written in C.
|
|
# URL: http://hjemli.net/git/cgit/
|
|
# Maintainer: Danny Rawlins, monster dot romster at gmail dot com
|
|
# Packager: Lucas Hazel, lucas at die dot net dot au
|
|
# Depends on: git asciidoc
|
|
|
|
name=cgit
|
|
version=0.9.0.2
|
|
gitversion=1.7.4.1
|
|
release=1
|
|
source=(http://hjemli.net/git/cgit/snapshot/$name-$version.tar.bz2
|
|
http://hjemli.net/git/git/snapshot/git-$gitversion.tar.bz2
|
|
cgit.conf)
|
|
|
|
build() {
|
|
cd $name-$version
|
|
|
|
rm -rf git
|
|
ln -s $SRC/git-$gitversion git
|
|
|
|
sed -i \
|
|
-e "s/GIT_VER = .*/GIT_VER = $gitversion/" \
|
|
-e '/^mandir = $(prefix)/s|/share/man|/man|' Makefile
|
|
|
|
make
|
|
make DESTDIR=$PKG install install-man
|
|
|
|
install -D -m 0640 $SRC/cgit.conf $PKG/etc/apache/extra/cgit.conf
|
|
install -d -m 0750 $PKG/var/cache/cgit
|
|
}
|