Import nagelfar 1.1.12.
A syntax analysis tool for Tcl. Ok sebastia@
This commit is contained in:
parent
d1cfb54f2b
commit
ad05267968
49
devel/nagelfar/Makefile
Normal file
49
devel/nagelfar/Makefile
Normal file
@ -0,0 +1,49 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2012/08/09 04:53:10 stu Exp $
|
||||
|
||||
COMMENT = syntax analysis tool for Tcl
|
||||
|
||||
DISTNAME = nagelfar1112
|
||||
PKGNAME = nagelfar-1.1.12
|
||||
CATEGORIES = devel
|
||||
HOMEPAGE = http://nagelfar.berlios.de/
|
||||
MAINTAINER = Stuart Cassoff <stwo@users.sourceforge.net>
|
||||
|
||||
# GPLv2 (Nagelfar)
|
||||
# BSD (textSearch)
|
||||
PERMIT_PACKAGE_CDROM = Yes
|
||||
PERMIT_PACKAGE_FTP = Yes
|
||||
PERMIT_DISTFILES_CDROM =Yes
|
||||
PERMIT_DISTFILES_FTP = Yes
|
||||
|
||||
MASTER_SITES = ${MASTER_SITE_BERLIOS:=nagelfar/}
|
||||
MODULES = x11/tk
|
||||
RUN_DEPENDS = ${MODTK_RUN_DEPENDS}
|
||||
NO_BUILD = Yes
|
||||
NO_REGRESS = Yes
|
||||
PKG_ARCH = *
|
||||
|
||||
NF_LIB_DIR = ${PREFIX}/libdata/nagelfar
|
||||
NF_DOC_DIR = ${PREFIX}/share/doc/nagelfar
|
||||
TS_SRC_DIR = ${WRKSRC}/lib/textsearch
|
||||
TS_DOC_DIR = ${PREFIX}/share/doc/textsearch
|
||||
TS_EXA_DIR = ${PREFIX}/share/examples/textsearch
|
||||
MOD_DIR = ${DESTDIR}${MODTCL_MODDIR}/${MODTCL_VERSION}
|
||||
|
||||
do-configure:
|
||||
@${MODTCL_TCLSH_ADJ} ${WRKSRC}/nagelfar.tcl
|
||||
@${SUBST_CMD} ${WRKSRC}/nagelfar.tcl
|
||||
@${MODTCL_TCLSH_ADJ} ${TS_SRC_DIR}/examples/demo.tcl
|
||||
@${SUBST_CMD} ${TS_SRC_DIR}/examples/demo.tcl
|
||||
|
||||
do-install:
|
||||
${INSTALL_DATA_DIR} ${NF_LIB_DIR} ${NF_DOC_DIR}
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/nagelfar.tcl ${PREFIX}/bin/nagelfar
|
||||
${INSTALL_DATA} ${WRKSRC}/syntax*.tcl ${NF_LIB_DIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/doc/*.txt ${NF_DOC_DIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/COPYING ${NF_DOC_DIR}
|
||||
${INSTALL_DATA_DIR} ${TS_DOC_DIR} ${TS_EXA_DIR} ${MOD_DIR}
|
||||
${INSTALL_DATA} ${TS_SRC_DIR}/tcl/textsearch.tcl ${MOD_DIR}/textSearch-0.3.tm
|
||||
${INSTALL_DATA} ${TS_SRC_DIR}/doc/readme.txt ${TS_DOC_DIR}
|
||||
${INSTALL_SCRIPT} ${TS_SRC_DIR}/examples/demo.tcl ${TS_EXA_DIR}
|
||||
|
||||
.include <bsd.port.mk>
|
5
devel/nagelfar/distinfo
Normal file
5
devel/nagelfar/distinfo
Normal file
@ -0,0 +1,5 @@
|
||||
MD5 (nagelfar1112.tar.gz) = gIU/JyAVbSUbBv4c1fIgvg==
|
||||
RMD160 (nagelfar1112.tar.gz) = uzE0IiTJ38WjLsRQcKMnMm1y8A0=
|
||||
SHA1 (nagelfar1112.tar.gz) = Ti0VHUobWPB8CDhoZdnxGF6hO68=
|
||||
SHA256 (nagelfar1112.tar.gz) = 3wB+yE7bzjlqZo9ej6eas8WGuTJ9oSpZRy8JAuZJ1Fs=
|
||||
SIZE (nagelfar1112.tar.gz) = 98004
|
@ -0,0 +1,15 @@
|
||||
$OpenBSD: patch-lib_textsearch_examples_demo_tcl,v 1.1.1.1 2012/08/09 04:53:10 stu Exp $
|
||||
--- lib/textsearch/examples/demo.tcl.orig Sat Sep 22 13:59:17 2007
|
||||
+++ lib/textsearch/examples/demo.tcl Sun Nov 27 22:22:04 2011
|
||||
@@ -47,10 +47,7 @@ menu .m.f
|
||||
menu .m.s
|
||||
textSearch::searchMenu .m.s
|
||||
|
||||
-foreach dir {. tcl ../tcl} {
|
||||
- if {![catch {set ch [open [file join $dir textsearch.tcl] r]}]} {
|
||||
+ if {![catch {set ch [open ${PREFIX}/share/doc/textsearch/readme.txt r]}]} {
|
||||
$w insert end [read $ch]
|
||||
close $ch
|
||||
- break
|
||||
}
|
||||
-}
|
22
devel/nagelfar/patches/patch-nagelfar_tcl
Normal file
22
devel/nagelfar/patches/patch-nagelfar_tcl
Normal file
@ -0,0 +1,22 @@
|
||||
$OpenBSD: patch-nagelfar_tcl,v 1.1.1.1 2012/08/09 04:53:10 stu Exp $
|
||||
--- nagelfar.tcl.orig Sun Nov 27 20:09:25 2011
|
||||
+++ nagelfar.tcl Sun Nov 27 20:10:54 2011
|
||||
@@ -46,15 +46,15 @@ while {[file type $tmplink] == "link"} {
|
||||
unset tmplink
|
||||
|
||||
# This makes it possible to customize where files are installed
|
||||
-set dbDir $thisDir
|
||||
-set docDir $thisDir/doc
|
||||
+set dbDir ${PREFIX}/libdata/nagelfar
|
||||
+set docDir ${PREFIX}/share/doc/nagelfar
|
||||
set libDir $thisDir/lib
|
||||
|
||||
# Search where the script is to be able to place e.g. ctext there.
|
||||
if {[info exists ::starkit::topdir]} {
|
||||
lappend auto_path [file dirname [file normalize $::starkit::topdir]]
|
||||
} else {
|
||||
- lappend auto_path $libDir
|
||||
+ #lappend auto_path $libDir
|
||||
}
|
||||
#----------------------------------------------------------------------
|
||||
# Nagelfar, a syntax checker for Tcl.
|
7
devel/nagelfar/pkg/DESCR
Normal file
7
devel/nagelfar/pkg/DESCR
Normal file
@ -0,0 +1,7 @@
|
||||
A Tcl application to read a Tcl program and provide static syntax
|
||||
analysis - information regarding Tcl syntax errors like missing braces,
|
||||
incomplete commands, etc. and code coverage analysis. Extensible, using
|
||||
a customizable exposed syntax database.
|
||||
|
||||
Comes with the "textSearch" Tcl extension which provides procedures
|
||||
to add search and incremental search functions to Tk text widgets.
|
21
devel/nagelfar/pkg/PLIST
Normal file
21
devel/nagelfar/pkg/PLIST
Normal file
@ -0,0 +1,21 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2012/08/09 04:53:10 stu Exp $
|
||||
bin/nagelfar
|
||||
lib/tcl/modules/${MODTK_VERSION}/textSearch-0.3.tm
|
||||
libdata/nagelfar/
|
||||
libdata/nagelfar/syntaxbuild.tcl
|
||||
libdata/nagelfar/syntaxdb.tcl
|
||||
libdata/nagelfar/syntaxdb84.tcl
|
||||
libdata/nagelfar/syntaxdb86.tcl
|
||||
share/doc/nagelfar/
|
||||
share/doc/nagelfar/COPYING
|
||||
share/doc/nagelfar/README.txt
|
||||
share/doc/nagelfar/call-by-name.txt
|
||||
share/doc/nagelfar/codecoverage.txt
|
||||
share/doc/nagelfar/inlinecomments.txt
|
||||
share/doc/nagelfar/messages.txt
|
||||
share/doc/nagelfar/syntaxdatabases.txt
|
||||
share/doc/nagelfar/syntaxtokens.txt
|
||||
share/doc/textsearch/
|
||||
share/doc/textsearch/readme.txt
|
||||
share/examples/textsearch/
|
||||
share/examples/textsearch/demo.tcl
|
Loading…
Reference in New Issue
Block a user