aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authortota <tota@FreeBSD.org>2011-08-18 15:03:22 +0800
committertota <tota@FreeBSD.org>2011-08-18 15:03:22 +0800
commit6c2754a846ef9e9da2dd157f7a6480beec26522a (patch)
treee8d461d364315832800a19912c30b50e76138b59 /devel
parent4c91b96c0a5c2ee9c5c79469ff1214593d913810 (diff)
downloadfreebsd-ports-gnome-6c2754a846ef9e9da2dd157f7a6480beec26522a.tar.gz
freebsd-ports-gnome-6c2754a846ef9e9da2dd157f7a6480beec26522a.tar.zst
freebsd-ports-gnome-6c2754a846ef9e9da2dd157f7a6480beec26522a.zip
- Split langscan from devel/gonzui into devel/ruby-langscan port
- Add the new port: devel/ruby-langscan LangScan is a program analyzer for source code search engine. Main Characteristics: * Use source code-specific information - Function names, string, comments, etc. * Prity-printed source code views * Easy-to-use for both general users and administrators * Support multi-byte characters Supported Languages: * Brainfuck * JavaScript * C * Lua * C++ * Objective Caml * C# * PHP * CSS * Perl * D * Python * Eiffel * Ruby * Emacs Lisp * Scheme * Io * Shell Script * Java * Plain Text WWW: http://gonzui.sourceforge.net/langscan/ PR: ports/159774 Submitted by: tota (myself) Approved by: sumikawa (maintainer)
Diffstat (limited to 'devel')
-rw-r--r--devel/Makefile1
-rw-r--r--devel/gonzui/Makefile13
-rw-r--r--devel/gonzui/pkg-plist39
-rw-r--r--devel/ruby-langscan/Makefile50
-rw-r--r--devel/ruby-langscan/distinfo2
-rw-r--r--devel/ruby-langscan/pkg-descr22
-rw-r--r--devel/ruby-langscan/pkg-plist66
7 files changed, 152 insertions, 41 deletions
diff --git a/devel/Makefile b/devel/Makefile
index 97ff6fe4bfec..0ee26e16974c 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -3247,6 +3247,7 @@
SUBDIR += ruby-intl
SUBDIR += ruby-io-reactor
SUBDIR += ruby-jttui
+ SUBDIR += ruby-langscan
SUBDIR += ruby-libglade2
SUBDIR += ruby-locale
SUBDIR += ruby-locale2
diff --git a/devel/gonzui/Makefile b/devel/gonzui/Makefile
index e9c64d46fbb7..ce1053176e53 100644
--- a/devel/gonzui/Makefile
+++ b/devel/gonzui/Makefile
@@ -7,7 +7,7 @@
PORTNAME= gonzui
PORTVERSION= 1.2
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= devel
MASTER_SITES= SF
@@ -17,15 +17,24 @@ COMMENT= A source code search engine
BUILD_DEPENDS= ${RUBY_SITEARCHLIBDIR}/bdb.so:${PORTSDIR}/databases/ruby-bdb \
${RUBY_ARCHLIBDIR}/iconv.so:${PORTSDIR}/converters/ruby-iconv
RUN_DEPENDS= ${RUBY_SITEARCHLIBDIR}/bdb.so:${PORTSDIR}/databases/ruby-bdb \
- ${RUBY_ARCHLIBDIR}/iconv.so:${PORTSDIR}/converters/ruby-iconv
+ ${RUBY_ARCHLIBDIR}/iconv.so:${PORTSDIR}/converters/ruby-iconv \
+ ${RUBY_SITELIBDIR}/langscan.rb:${PORTSDIR}/devel/ruby-langscan
USE_RUBY= yes
GNU_CONFIGURE= yes
+RUBY_SHEBANG_FILES= gonzui-db gonzui-import gonzui-remove \
+ gonzui-search gonzui-server gonzui-update
+
.include <bsd.port.pre.mk>
.if ${RUBY_VER} == 1.9
BROKEN= does not build with ruby 1.9
.endif
+post-configure:
+ ${REINPLACE_CMD} -e 's| langscan | |' \
+ -e 's| langscan.*\.rb||' \
+ ${WRKSRC}/Makefile
+
.include <bsd.port.post.mk>
diff --git a/devel/gonzui/pkg-plist b/devel/gonzui/pkg-plist
index 1bc68f9db627..8f071c52d59c 100644
--- a/devel/gonzui/pkg-plist
+++ b/devel/gonzui/pkg-plist
@@ -11,13 +11,6 @@ share/gonzui/doc/folder.png
share/gonzui/doc/gonzui.css
share/gonzui/doc/gonzui.js
share/gonzui/doc/text.png
-%%RUBY_SITEARCHLIBDIR%%/langscan/c/c.so
-%%RUBY_SITEARCHLIBDIR%%/langscan/java/java.so
-%%RUBY_SITEARCHLIBDIR%%/langscan/javascript/javascript.so
-%%RUBY_SITEARCHLIBDIR%%/langscan/pairmatcher/pairmatcher.so
-%%RUBY_SITEARCHLIBDIR%%/langscan/php/php.so
-%%RUBY_SITEARCHLIBDIR%%/langscan/python/python.so
-%%RUBY_SITEARCHLIBDIR%%/langscan/sh/sh.so
%%RUBY_SITEARCHLIBDIR%%/gonzui/autopack.so
%%RUBY_SITEARCHLIBDIR%%/gonzui/delta.so
%%RUBY_SITEARCHLIBDIR%%/gonzui/texttokenizer.so
@@ -63,43 +56,11 @@ share/gonzui/doc/text.png
%%RUBY_SITELIBDIR%%/gonzui/webapp/top.rb
%%RUBY_SITELIBDIR%%/gonzui/webapp/uri.rb
%%RUBY_SITELIBDIR%%/gonzui/webapp/webrick.rb
-%%RUBY_SITELIBDIR%%/langscan.rb
-%%RUBY_SITELIBDIR%%/langscan/_common.rb
-%%RUBY_SITELIBDIR%%/langscan/_easyscanner.rb
-%%RUBY_SITELIBDIR%%/langscan/_pairmatcher.rb
-%%RUBY_SITELIBDIR%%/langscan/_type.rb
-%%RUBY_SITELIBDIR%%/langscan/autoconf.rb
-%%RUBY_SITELIBDIR%%/langscan/automake.rb
-%%RUBY_SITELIBDIR%%/langscan/brainfuck.rb
-%%RUBY_SITELIBDIR%%/langscan/c.rb
-%%RUBY_SITELIBDIR%%/langscan/css.rb
-%%RUBY_SITELIBDIR%%/langscan/elisp.rb
-%%RUBY_SITELIBDIR%%/langscan/java.rb
-%%RUBY_SITELIBDIR%%/langscan/javascript.rb
-%%RUBY_SITELIBDIR%%/langscan/perl.rb
-%%RUBY_SITELIBDIR%%/langscan/perl/tokenizer.pl
-%%RUBY_SITELIBDIR%%/langscan/php.rb
-%%RUBY_SITELIBDIR%%/langscan/python.rb
-%%RUBY_SITELIBDIR%%/langscan/rpmspec.rb
-%%RUBY_SITELIBDIR%%/langscan/ruby.rb
-%%RUBY_SITELIBDIR%%/langscan/sh.rb
-%%RUBY_SITELIBDIR%%/langscan/text.rb
@dirrm share/gonzui/catalog
@dirrm share/gonzui/doc
@dirrm share/gonzui
-@dirrm %%RUBY_SITEARCHLIBDIR%%/langscan/sh
-@dirrm %%RUBY_SITEARCHLIBDIR%%/langscan/python
-@dirrm %%RUBY_SITEARCHLIBDIR%%/langscan/php
-@dirrm %%RUBY_SITEARCHLIBDIR%%/langscan/pairmatcher
-@dirrm %%RUBY_SITEARCHLIBDIR%%/langscan/ocaml
-@dirrm %%RUBY_SITEARCHLIBDIR%%/langscan/javascript
-@dirrm %%RUBY_SITEARCHLIBDIR%%/langscan/java
-@dirrm %%RUBY_SITEARCHLIBDIR%%/langscan/c
-@dirrm %%RUBY_SITEARCHLIBDIR%%/langscan
@dirrm %%RUBY_SITEARCHLIBDIR%%/gonzui/webapp
@dirrm %%RUBY_SITEARCHLIBDIR%%/gonzui
-@dirrm %%RUBY_SITELIBDIR%%/langscan/perl
-@dirrm %%RUBY_SITELIBDIR%%/langscan
@dirrm %%RUBY_SITELIBDIR%%/gonzui/webapp
@dirrm %%RUBY_SITELIBDIR%%/gonzui/cmdapp
@dirrm %%RUBY_SITELIBDIR%%/gonzui
diff --git a/devel/ruby-langscan/Makefile b/devel/ruby-langscan/Makefile
new file mode 100644
index 000000000000..8cd51d7e6249
--- /dev/null
+++ b/devel/ruby-langscan/Makefile
@@ -0,0 +1,50 @@
+# New ports collection makefile for: ruby-langscan
+# Date created: 2011-08-10
+# Whom: TAKATSU Tomonari <tota@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= langscan
+PORTVERSION= 1.2
+CATEGORIES= devel ruby
+MASTER_SITES= SF
+MASTER_SITE_SUBDIR= gonzui/${PORTNAME}/${PORTVERSION}
+PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
+DIST_SUBDIR= ${RUBY_PKGNAMEPREFIX:S|${RUBY_SUFFIX}-||}
+
+MAINTAINER= tota@FreeBSD.org
+COMMENT= A program analyzer for source code search engine
+
+LICENSE= GPLv2
+LICENSE_FILE= ${WRKSRC}/COPYING
+
+RUN_DEPENDS= flex>=2.5.31:${PORTSDIR}/textproc/flex \
+ p5-PPI>=0:${PORTSDIR}/textproc/p5-PPI
+
+GNU_CONFIGURE= yes
+USE_RUBY= yes
+USE_PERL5_RUN= yes
+USE_OCAML= yes
+NO_OCAML_RUNDEPENDS= yes
+
+PORTDOCS= ChangeLog NEWS README
+DOCSDIR= ${RUBY_MODDOCDIR}
+
+post-install:
+ ${CHMOD} ${BINMODE} ${RUBY_SITEARCHLIBDIR}/${PORTNAME}/ocaml/camlexer
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${DOCSDIR}
+.for f in ${PORTDOCS}
+ ${INSTALL_DATA} ${INSTALL_WRKSRC}/${f} ${DOCSDIR}/
+.endfor
+.endif
+
+x-generate-plist:
+ ${ECHO} %%RUBY_SITELIBDIR%%/langscan.rb > pkg-plist.new
+ ${FIND} ${RUBY_SITEARCHLIBDIR}/${PORTNAME} -type f | ${SORT} | ${SED} -e 's,${RUBY_SITEARCHLIBDIR},%%RUBY_SITEARCHLIBDIR%%,' >> pkg-plist.new
+ ${FIND} ${RUBY_SITELIBDIR}/${PORTNAME} -type f | ${SORT} | ${SED} -e 's,${RUBY_SITELIBDIR},%%RUBY_SITELIBDIR%%,' >> pkg-plist.new
+ ${FIND} ${RUBY_SITELIBDIR}/${PORTNAME} -type d -depth | ${SORT} -r | ${SED} -e 's,${RUBY_SITELIBDIR},@dirrm %%RUBY_SITELIBDIR%%,' >> pkg-plist.new
+ ${FIND} ${RUBY_SITEARCHLIBDIR}/${PORTNAME} -type d -depth | ${SORT} -r | ${SED} -e 's,${RUBY_SITEARCHLIBDIR},@dirrm %%RUBY_SITEARCHLIBDIR%%,' >> pkg-plist.new
+
+.include <bsd.port.mk>
diff --git a/devel/ruby-langscan/distinfo b/devel/ruby-langscan/distinfo
new file mode 100644
index 000000000000..55f99884a967
--- /dev/null
+++ b/devel/ruby-langscan/distinfo
@@ -0,0 +1,2 @@
+SHA256 (ruby/langscan-1.2.tar.gz) = 213125595629bf37a08b9c8f586cce5d1c40a7eebfc483c4a9eadf3f9eb703db
+SIZE (ruby/langscan-1.2.tar.gz) = 574748
diff --git a/devel/ruby-langscan/pkg-descr b/devel/ruby-langscan/pkg-descr
new file mode 100644
index 000000000000..ec15e31e9195
--- /dev/null
+++ b/devel/ruby-langscan/pkg-descr
@@ -0,0 +1,22 @@
+LangScan is a program analyzer for source code search engine.
+
+Main Characteristics:
+ * Use source code-specific information
+ - Function names, string, comments, etc.
+ * Prity-printed source code views
+ * Easy-to-use for both general users and administrators
+ * Support multi-byte characters
+
+ Supported Languages:
+ * Brainfuck * JavaScript
+ * C * Lua
+ * C++ * Objective Caml
+ * C# * PHP
+ * CSS * Perl
+ * D * Python
+ * Eiffel * Ruby
+ * Emacs Lisp * Scheme
+ * Io * Shell Script
+ * Java * Plain Text
+
+WWW: http://gonzui.sourceforge.net/langscan/
diff --git a/devel/ruby-langscan/pkg-plist b/devel/ruby-langscan/pkg-plist
new file mode 100644
index 000000000000..1eb507a1e06e
--- /dev/null
+++ b/devel/ruby-langscan/pkg-plist
@@ -0,0 +1,66 @@
+%%RUBY_SITELIBDIR%%/langscan.rb
+%%RUBY_SITEARCHLIBDIR%%/langscan/c/c.so
+%%RUBY_SITEARCHLIBDIR%%/langscan/csharp/csharp.so
+%%RUBY_SITEARCHLIBDIR%%/langscan/d/d.so
+%%RUBY_SITEARCHLIBDIR%%/langscan/elisp/elisp.so
+%%RUBY_SITEARCHLIBDIR%%/langscan/java/java.so
+%%RUBY_SITEARCHLIBDIR%%/langscan/javascript/javascript.so
+%%RUBY_SITEARCHLIBDIR%%/langscan/ocaml/camlexer
+%%RUBY_SITEARCHLIBDIR%%/langscan/pairmatcher/pairmatcher.so
+%%RUBY_SITEARCHLIBDIR%%/langscan/php/php.so
+%%RUBY_SITEARCHLIBDIR%%/langscan/python/python.so
+%%RUBY_SITEARCHLIBDIR%%/langscan/ruby/compat/ripper.so
+%%RUBY_SITEARCHLIBDIR%%/langscan/scheme/scheme.so
+%%RUBY_SITEARCHLIBDIR%%/langscan/sh/sh.so
+%%RUBY_SITELIBDIR%%/langscan/_common.rb
+%%RUBY_SITELIBDIR%%/langscan/_easyscanner.rb
+%%RUBY_SITELIBDIR%%/langscan/_pairmatcher.rb
+%%RUBY_SITELIBDIR%%/langscan/_type.rb
+%%RUBY_SITELIBDIR%%/langscan/autoconf.rb
+%%RUBY_SITELIBDIR%%/langscan/automake.rb
+%%RUBY_SITELIBDIR%%/langscan/brainfuck.rb
+%%RUBY_SITELIBDIR%%/langscan/c.rb
+%%RUBY_SITELIBDIR%%/langscan/csharp.rb
+%%RUBY_SITELIBDIR%%/langscan/css.rb
+%%RUBY_SITELIBDIR%%/langscan/d.rb
+%%RUBY_SITELIBDIR%%/langscan/eiffel.rb
+%%RUBY_SITELIBDIR%%/langscan/elisp.rb
+%%RUBY_SITELIBDIR%%/langscan/io.rb
+%%RUBY_SITELIBDIR%%/langscan/java.rb
+%%RUBY_SITELIBDIR%%/langscan/javascript.rb
+%%RUBY_SITELIBDIR%%/langscan/lua.rb
+%%RUBY_SITELIBDIR%%/langscan/ocaml.rb
+%%RUBY_SITELIBDIR%%/langscan/perl.rb
+%%RUBY_SITELIBDIR%%/langscan/perl/tokenizer.pl
+%%RUBY_SITELIBDIR%%/langscan/php.rb
+%%RUBY_SITELIBDIR%%/langscan/python.rb
+%%RUBY_SITELIBDIR%%/langscan/rpmspec.rb
+%%RUBY_SITELIBDIR%%/langscan/ruby.rb
+%%RUBY_SITELIBDIR%%/langscan/ruby/compat/ripper.rb
+%%RUBY_SITELIBDIR%%/langscan/ruby/compat/ripper/core.rb
+%%RUBY_SITELIBDIR%%/langscan/ruby/compat/ripper/filter.rb
+%%RUBY_SITELIBDIR%%/langscan/ruby/compat/ripper/lexer.rb
+%%RUBY_SITELIBDIR%%/langscan/ruby/compat/ripper/sexp.rb
+%%RUBY_SITELIBDIR%%/langscan/scheme.rb
+%%RUBY_SITELIBDIR%%/langscan/sh.rb
+%%RUBY_SITELIBDIR%%/langscan/text.rb
+@dirrm %%RUBY_SITELIBDIR%%/langscan/ruby/compat/ripper
+@dirrm %%RUBY_SITELIBDIR%%/langscan/ruby/compat
+@dirrm %%RUBY_SITELIBDIR%%/langscan/ruby
+@dirrm %%RUBY_SITELIBDIR%%/langscan/perl
+@dirrm %%RUBY_SITELIBDIR%%/langscan
+@dirrm %%RUBY_SITEARCHLIBDIR%%/langscan/sh
+@dirrm %%RUBY_SITEARCHLIBDIR%%/langscan/scheme
+@dirrm %%RUBY_SITEARCHLIBDIR%%/langscan/ruby/compat
+@dirrm %%RUBY_SITEARCHLIBDIR%%/langscan/ruby
+@dirrm %%RUBY_SITEARCHLIBDIR%%/langscan/python
+@dirrm %%RUBY_SITEARCHLIBDIR%%/langscan/php
+@dirrm %%RUBY_SITEARCHLIBDIR%%/langscan/pairmatcher
+@dirrm %%RUBY_SITEARCHLIBDIR%%/langscan/ocaml
+@dirrm %%RUBY_SITEARCHLIBDIR%%/langscan/javascript
+@dirrm %%RUBY_SITEARCHLIBDIR%%/langscan/java
+@dirrm %%RUBY_SITEARCHLIBDIR%%/langscan/elisp
+@dirrm %%RUBY_SITEARCHLIBDIR%%/langscan/d
+@dirrm %%RUBY_SITEARCHLIBDIR%%/langscan/csharp
+@dirrm %%RUBY_SITEARCHLIBDIR%%/langscan/c
+@dirrm %%RUBY_SITEARCHLIBDIR%%/langscan