[99761] trunk/dports/devel

eborisch at macports.org eborisch at macports.org
Fri Nov 16 14:17:56 PST 2012


Revision: 99761
          https://trac.macports.org/changeset/99761
Author:   eborisch at macports.org
Date:     2012-11-16 14:17:56 -0800 (Fri, 16 Nov 2012)
Log Message:
-----------
codesearch: New port. Closes #37007.

Added Paths:
-----------
    trunk/dports/devel/codesearch/
    trunk/dports/devel/codesearch/Portfile

Added: trunk/dports/devel/codesearch/Portfile
===================================================================
--- trunk/dports/devel/codesearch/Portfile	                        (rev 0)
+++ trunk/dports/devel/codesearch/Portfile	2012-11-16 22:17:56 UTC (rev 99761)
@@ -0,0 +1,56 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+# Adapted from https://bitbucket.org/seanfarley/scienceports/src/de7cc636fbec/devel/codesearch/Portfile?at=default
+
+PortSystem          1.0
+
+name                codesearch
+version             20121021
+categories          devel
+maintainers         openmainter
+description         Indexed regular expression-based search
+long_description \
+    Code Search is a tool for indexing and then performing regular \
+    expression searches over large bodies of source code. It is a \
+    set of command-line programs written in Go
+
+license             BSD
+homepage            http://code.google.com/p/codesearch/
+master_sites        http://codesearch.googlecode.com/files/
+
+depends_lib         port:go
+
+worksrcdir          src/code.google.com/p/codesearch
+
+distname            ${name}-${version}
+extract.suffix      .tgz
+
+post-extract {
+    xinstall -d ${workpath}/src/code.google.com/p
+    move ${workpath}/${name} ${workpath}/src/code.google.com/p
+}
+
+use_configure       no
+set progs           [list cgrep csearch cindex]
+
+build {
+  foreach prog ${progs} {
+    system -W ${worksrcpath} \
+     "GOPATH=${workpath} go build cmd/${prog}/${prog}.go"
+  }
+}
+
+destroot {
+  foreach prog ${progs} {
+    xinstall ${worksrcpath}/${prog} ${destroot}${prefix}/bin
+  }
+}
+
+checksums \
+    rmd160  28e1c25f4fe5381d84c8ad4280b70a4bc2fd0427 \
+    sha256  cec62d9951fa4fb29a212139b1f2ddbab7536b3fb3fe2067840596cb482191c6
+
+livecheck.type      regex
+livecheck.url       http://code.google.com/p/codesearch/downloads/list
+livecheck.regex     ${name}-(\\d+).tgz


Property changes on: trunk/dports/devel/codesearch/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121116/65ddd0f6/attachment.html>


More information about the macports-changes mailing list