[28815] trunk/dports/www
source_changes at macosforge.org
source_changes at macosforge.org
Sun Sep 9 07:31:02 PDT 2007
Revision: 28815
http://trac.macosforge.org/projects/macports/changeset/28815
Author: sfiera at macports.org
Date: 2007-09-09 07:31:02 -0700 (Sun, 09 Sep 2007)
Log Message:
-----------
New port cgit, a web interface for git projects
Added Paths:
-----------
trunk/dports/www/cgit/
trunk/dports/www/cgit/Portfile
trunk/dports/www/cgit/files/
trunk/dports/www/cgit/files/cgit.conf
Added: trunk/dports/www/cgit/Portfile
===================================================================
--- trunk/dports/www/cgit/Portfile (rev 0)
+++ trunk/dports/www/cgit/Portfile 2007-09-09 14:31:02 UTC (rev 28815)
@@ -0,0 +1,61 @@
+# $Id: Portfile 28206 2007-08-24 17:24:55Z sfiera at macports.org $
+
+PortSystem 1.0
+
+name cgit
+version 0.6.2
+set git-version 1.5.3
+set tag 4beecc9a1873a603cd9b438e317ca385c79af92d
+categories www devel
+maintainers sfiera openmaintainer
+description A fast web interface for the git source code management system
+homepage http://hjemli.net/git/cgit/
+platforms darwin
+
+long_description \
+ cgit is an attempt to create a fast web interface for the git scm, using a \
+ builtin cache to decrease server io-pressure. It can run on any \
+ CGI-capable web server.
+
+use_bzip2 yes
+set cgit-dist ${name}-${tag}${extract.suffix}
+set git-dist git-${git-version}${extract.suffix}
+distfiles ${cgit-dist}:cgit ${git-dist}:git
+master_sites ${homepage}snapshot:cgit \
+ http://www.kernel.org/pub/software/scm/git:git
+checksums ${cgit-dist} \
+ md5 d13c9883c9127576cc07bea6aea29784 \
+ sha1 9f3c845743cf8494aca5f7031c577060b03df12a \
+ rmd160 a579654b3e60677ae424e109d9ebfa7575f827a0 \
+ ${git-dist} \
+ md5 798e5784670e0a3e0daaea048e60851d \
+ sha1 a5a7b3d14f182d3d50223661289e9b5b953f5b59 \
+ rmd160 7182cadbd5d323749117340ad0abd8194aadf9e7
+
+depends_lib port:git-core \
+ port:openssl \
+ port:zlib \
+ port:iconv
+
+post-extract {
+ file delete ${worksrcpath}/git
+ file rename ${worksrcpath}/../git-${git-version} ${worksrcpath}/git
+}
+
+post-patch {
+ file copy ${filespath}/cgit.conf ${worksrcpath}/cgit.conf
+ reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/cgit.conf
+ reinplace "s|@GIT_VER@|${git-version}|g" ${worksrcpath}/cgit.conf
+}
+
+post-destroot {
+ xinstall -m 444 ${worksrcpath}/cgitrc ${destroot}${prefix}/etc/cgitrc.sample
+ xinstall -m 700 -o www -g www -d ${destroot}/${prefix}/var/cache/cgit
+ destroot.keepdirs ${destroot}${prefix}/var/cache/cgit
+}
+
+worksrcdir ${name}
+use_configure no
+build.env CFLAGS='-L${prefix}/lib -liconv'
+
+livecheck.check none
Added: trunk/dports/www/cgit/files/cgit.conf
===================================================================
--- trunk/dports/www/cgit/files/cgit.conf (rev 0)
+++ trunk/dports/www/cgit/files/cgit.conf 2007-09-09 14:31:02 UTC (rev 28815)
@@ -0,0 +1,5 @@
+CGIT_CONFIG = @PREFIX@/etc/cgitrc
+CGIT_SCRIPT_PATH = @PREFIX@/www/data/cgit
+CACHE_ROOT = @PREFIX@/var/cache/cgit
+GIT_VER = @GIT_VER@
+GIT_URL = file://@PREFIX@/var/macports/distfiles/cgit/git-@GIT_VER@.tar.bz2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070909/19a7e850/attachment.html
More information about the macports-changes
mailing list