Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Feb 2002 02:19:10 +0800 (CST)
From:      Leland Wang <llwang@infor.org>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/35165: New port: textproc/smart an information retrieval tool of the vector-space model proposed by Salton
Message-ID:  <200202201819.g1KIJA613061@leland.infor.org>

next in thread | raw e-mail | index | archive | help

>Number:         35165
>Category:       ports
>Synopsis:       New port: textproc/smart an information retrieval tool of the vector-space model proposed by Salton
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Feb 20 19:30:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Leland Wang
>Release:        FreeBSD 4.5-STABLE i386
>Organization:
National Taiwan University
>Environment:
System: FreeBSD leland.infor.org 4.5-STABLE FreeBSD 4.5-STABLE #1: Wed Jan 30 17:25:42 CST 2002 llwang@leland.infor.org:/home/mp3/obj/usr/src/sys/LELAND i386


	
>Description:
SMART is an implementation of the vector-space model of
information retrieval proposed by Salton back in the 60's.  The
primary purpose of SMART is to provide a framework in which to
conduct information retrieval research.

Note: I am not sure whether this kind of information retrieval tool should
be put into textproc or to something like science.
	
>How-To-Repeat:
	
>Fix:
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	smart
#	smart/Makefile
#	smart/distinfo
#	smart/files
#	smart/files/patch-Install::makefile
#	smart/files/patch-Install::makefile.top
#	smart/files/patch-src::h::param.h
#	smart/files/patch-src::h::sysfunc.h
#	smart/files/patch-src::libgeneral::copy.c
#	smart/files/patch-src::libgeneral::error_msgs.c
#	smart/files/patch-src::libgeneral::global.c
#	smart/pkg-descr
#	smart/pkg-comment
#	smart/pkg-plist
#
echo c - smart
mkdir -p smart > /dev/null 2>&1
echo x - smart/Makefile
sed 's/^X//' >smart/Makefile << 'END-of-smart/Makefile'
X# New ports collection makefile for:   smart
X# Date created:			20 Feb 2002
X# Whom:				Leland Wang <llwang@infor.org>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	smart
XPORTVERSION=	11.0
XCATEGORIES=	textproc
XMASTER_SITES=	ftp://ftp.cs.cornell.edu/pub/smart/
XDISTNAME=	smart.11.0
XEXTRACT_SUFX=	.tar.Z
X
XMAINTAINER=	llwang@infor.org
X
XNO_BUILD=	yes
XMAKEFILE=	makefile
XINSTALL_WRKSRC=	${WRKSRC}/Install
XMAKE_ENV=	WRKSRC="${WRKSRC}"
X
Xpost-install:
X	@${STRIP_CMD} ${PREFIX}/bin/make_trie ${PREFIX}/bin/smart
X	@${MKDIR} ${PREFIX}/share/smart.11.0/indexed_colls
X.if !defined(NOPORTDOCS)
X	@${MKDIR} ${PREFIX}/share/doc/smart.11.0
X	@${CP} -R ${WRKSRC}/Doc/* ${PREFIX}/share/doc/smart.11.0
X.endif
X.include <bsd.port.mk>
END-of-smart/Makefile
echo x - smart/distinfo
sed 's/^X//' >smart/distinfo << 'END-of-smart/distinfo'
XMD5 (smart.11.0.tar.Z) = be4c9d42c0619edbd897a750b44303a1
END-of-smart/distinfo
echo c - smart/files
mkdir -p smart/files > /dev/null 2>&1
echo x - smart/files/patch-Install::makefile
sed 's/^X//' >smart/files/patch-Install::makefile << 'END-of-smart/files/patch-Install::makefile'
X--- Install/makefile.orig	Wed Jul 22 03:40:18 1992
X+++ Install/makefile	Thu Feb 21 01:25:49 2002
X@@ -17,10 +17,10 @@
X # Note: none of these pathnames will occur within the SMART executable.
X # The pathnames are used by shell-scripts (see src/scripts) and by
X # makefiles to construct smart itself.
X-SMART   = /home/smart/smart.11.0
X+SMART=	/usr/local/share/smart.11.0
X 
X # SRCDIR gives the directory for the smart source code
X-SRCDIR  = $(SMART)/src
X+SRCDIR  = $(WRKSRC)/src
X 
X # TLIBDIR gives the directory for the smart text libraries (files here give
X # things like default specifications and lists of common stopwords)
X@@ -32,12 +32,11 @@
X 
X # PREFIX gives the location for the compiled object code, binaries, scripts
X # (object libraries will appear in PREFIX/lib, executatables in PREFIX/bin)
X-PREFIX  = $(SRCDIR)
X 
X # INSTALLBIN gives the directory in which to install the top-level shell 
X # script that a user (as opposed to database administrator) will invoke.
X # INSTALLBIN = /usr/local/bin
X-INSTALLBIN = $(SRCDIR)/bin
X+INSTALLBIN = $(PREFIX)/bin
X 
X # INDEXED gives the default location for indexed versions of collections
X INDEXED = $(SMART)/indexed_colls
X@@ -49,7 +48,7 @@
X # appropriate compiler flags in makefile.dist, makebin.templ, and 
X # makelib.templ.  You may change other options in those files directly.  
X # If you are using a different compiler, set COMPILER to 'unknown'
X-COMPILER = cc
X+COMPILER = gcc
X 
X # If your version of make understands Sun style library specifications, eg
X #       libname.a: libname.a(a.o b.o c.o)
X@@ -90,7 +89,7 @@
X             -e '/#$(COMPILER) /s?#$(COMPILER) ??' \
X             -e '/#$(LIBSTYLE) /s?#$(LIBSTYLE) ??' \
X             makelib.templ > $(SRCDIR)/makelib.templ
X-	-mkdir $(TLIBDIR)
X+	-mkdir -p $(TLIBDIR)
X 	-mv $(TLIBDIR)/spec.default $(TLIBDIR)/spec.default.d
X 	sed -e '/TLIBDIR/s?TLIBDIR?$(TLIBDIR)?' \
X             spec.default > $(TLIBDIR)/spec.default
END-of-smart/files/patch-Install::makefile
echo x - smart/files/patch-Install::makefile.top
sed 's/^X//' >smart/files/patch-Install::makefile.top << 'END-of-smart/files/patch-Install::makefile.top'
X--- Install/makefile.top.orig	Wed Jul 22 03:02:53 1992
X+++ Install/makefile.top	Wed Feb 20 23:55:05 2002
X@@ -54,16 +54,16 @@
X 	-mkdir $(PREFIX)
X 	-mkdir $(PREFIX)/bin
X 	-mkdir $(PREFIX)/lib
X-	make  ACTION=all "CFLAGS=$(CFLAGS) -g" lib_action program_action
X+	make  ACTION=all 'CFLAGS=$(CFLAGS) -g' lib_action program_action
X 
X everything: default optimize profile
X 
X install: 
X 	make clean
X-	make  ACTION=install "BIN=$(INSTALL_BIN)" lib_action program_action
X+	make  ACTION=install 'BIN=$(INSTALL_BIN)' lib_action program_action
X 
X bfly:
X-	make ACTION=bfly "PREFIX=$(PREFIX)/bfly" lib_action program_action
X+	make ACTION=bfly 'PREFIX=$(PREFIX)/bfly' lib_action program_action
X 
X clean:
X 	make  ACTION=clean h_action lib_action program_action
X@@ -177,8 +177,8 @@
X lib_action:
X 	for dir in $(UTILIST) $(LIBLIST) $(LOCALHIER);\
X                 do cd $$dir ;\
X-                make -k "$(ACTION)" "CFLAGS=$(CFLAGS)" PREFIX=$(PREFIX) \
X-                        "BIN=$(BIN)" ;\
X+                make -k '$(ACTION)' 'CFLAGS=$(CFLAGS)' PREFIX=$(PREFIX) \
X+                        'BIN=$(BIN)' ;\
X                 cd ..;\
X         done
X 
X@@ -190,8 +190,8 @@
X program_action: 
X 	for dir in $(BINLIST) $(SHLIST);\
X                 do cd $$dir ;\
X-                make -k "$(ACTION)" "CFLAGS=$(CFLAGS)" PREFIX=$(PREFIX) \
X-                        "BIN=$(BIN)" ;\
X+                make -k '$(ACTION)' 'CFLAGS=$(CFLAGS)' PREFIX=$(PREFIX) \
X+                        'BIN=$(BIN)' ;\
X                 cd ..;\
X         done
X 
END-of-smart/files/patch-Install::makefile.top
echo x - smart/files/patch-src::h::param.h
sed 's/^X//' >smart/files/patch-src::h::param.h << 'END-of-smart/files/patch-src::h::param.h'
X--- src/h/param.h.orig	Wed Jul 22 03:03:14 1992
X+++ src/h/param.h	Wed Feb 20 23:55:05 2002
X@@ -6,8 +6,8 @@
X 
X /* Default pagination and editor which can be invoked when */
X /*  displaying documents ( see src/libtop/inter.c ) */
X-#define DEF_PAGE    "/usr/ucb/more -s"
X-#define DEF_EDITOR  "/usr/ucb/vi"
X+#define DEF_PAGE    "/usr/bin/more -s"
X+#define DEF_EDITOR  "/usr/bin/vi"
X 
X /* Maximum full pathname allowed by SMART (and BSD 4.2) */
X #define PATH_LEN        1024
END-of-smart/files/patch-src::h::param.h
echo x - smart/files/patch-src::h::sysfunc.h
sed 's/^X//' >smart/files/patch-src::h::sysfunc.h << 'END-of-smart/files/patch-src::h::sysfunc.h'
X--- src/h/sysfunc.h.orig	Wed Jul 22 03:03:19 1992
X+++ src/h/sysfunc.h	Wed Feb 20 23:55:05 2002
X@@ -12,9 +12,9 @@
X #include <math.h>
X #else
X 
X-int open(), close(), write(), read(), link(), stat(), unlink();
X+int open(const char *path, int flags, ...), close(), write(), read(), link(), stat(), unlink();
X int chdir(), mkdir();
X-long lseek();
X+long long lseek();
X 
X #ifdef AIX
X #define vfork fork
X@@ -30,7 +30,7 @@
X void exit();
X 
X 
X-#ifdef AIX
X+#if defined(AIX) || defined(__FreeBSD__)
X int sprintf();
X #else
X char *sprintf();
X@@ -41,15 +41,19 @@
X #else
X char *malloc(), *realloc(), *calloc(), *valloc();
X #endif /* AIX */
X-int bcopy(), bzero();
X+void bcopy(), bzero();
X int free();
X #ifndef AIX
X int qsort();
X #endif AIX
X int getopt();
X #ifndef mips
X+#ifdef __FreeBSD__
X+size_t fwrite(), fread();
X+#else
X int fwrite(), fread();
X-#ifdef AIX
X+#endif __FreeBSD__
X+#if defined(AIX) || defined(__FreeBSD__)
X void perror();
X #else
X int perror();
END-of-smart/files/patch-src::h::sysfunc.h
echo x - smart/files/patch-src::libgeneral::copy.c
sed 's/^X//' >smart/files/patch-src::libgeneral::copy.c << 'END-of-smart/files/patch-src::libgeneral::copy.c'
X--- src/libgeneral/copy.c.orig	Wed Jul 22 03:04:30 1992
X+++ src/libgeneral/copy.c	Wed Feb 20 23:55:05 2002
X@@ -95,7 +95,7 @@
X 
X     char buf[BUF_SIZE];
X     register int n;
X-    long lseek();
X+    long long lseek();
X 
X     (void) lseek (fd_out, 0L, 0);
X     (void) lseek (fd_in,  0L, 0);
END-of-smart/files/patch-src::libgeneral::copy.c
echo x - smart/files/patch-src::libgeneral::error_msgs.c
sed 's/^X//' >smart/files/patch-src::libgeneral::error_msgs.c << 'END-of-smart/files/patch-src::libgeneral::error_msgs.c'
X--- src/libgeneral/error_msgs.c.orig	Wed Jul 22 03:04:32 1992
X+++ src/libgeneral/error_msgs.c	Wed Feb 20 23:55:05 2002
X@@ -33,7 +33,7 @@
X 
X extern int  errno;
X extern int  sys_nerr;
X-extern char *sys_errlist[];
X+extern const char *const sys_errlist[];
X 
X char *smart_errlist[] = {
X     "Inconsistency check",
END-of-smart/files/patch-src::libgeneral::error_msgs.c
echo x - smart/files/patch-src::libgeneral::global.c
sed 's/^X//' >smart/files/patch-src::libgeneral::global.c << 'END-of-smart/files/patch-src::libgeneral::global.c'
X--- src/libgeneral/global.c.orig	Wed Jul 22 03:04:31 1992
X+++ src/libgeneral/global.c	Wed Feb 20 23:55:05 2002
X@@ -81,7 +81,9 @@
X long global_trace = 1;
X long global_trace_start;
X long global_trace_end;
X-FILE *global_trace_fd = stdout;
X+FILE *global_trace_fd;
X+static void global_trace_fd_construct(void) __attribute__((constructor));
X+static void global_trace_fd_construct(void) { global_trace_fd = stdout; }
X SM_BUF global_trace_buf = {0, 0, (char *) NULL};
X 
X /* global variable indicating if accounting is turned on.  See trace.h
END-of-smart/files/patch-src::libgeneral::global.c
echo x - smart/pkg-descr
sed 's/^X//' >smart/pkg-descr << 'END-of-smart/pkg-descr'
XSMART is an implementation of the vector-space model of
Xinformation retrieval proposed by Salton back in the 60's.  The
Xprimary purpose of SMART is to provide a framework in which to
Xconduct information retrieval research.  Standard versions of
Xindexing, retrieval, and evaluation are provided.
END-of-smart/pkg-descr
echo x - smart/pkg-comment
sed 's/^X//' >smart/pkg-comment << 'END-of-smart/pkg-comment'
XA vector-space model of information retrieval tool proposed by Salton
END-of-smart/pkg-comment
echo x - smart/pkg-plist
sed 's/^X//' >smart/pkg-plist << 'END-of-smart/pkg-plist'
Xbin/baserun
Xbin/docsmart
Xbin/fdbkrun
Xbin/ismart
Xbin/make_docsmart
Xbin/make_trie
Xbin/smart
Xbin/smprint
Xlib/libconvert.a
Xlib/libevaluate.a
Xlib/libexp.a
Xlib/libfeedback.a
Xlib/libfile.a
Xlib/libgeneral.a
Xlib/libindexing.a
Xlib/libinter.a
Xlib/liblconvert.a
Xlib/liblfile.a
Xlib/liblindexing.a
Xlib/liblinter.a
Xlib/liblprint.a
Xlib/liblproc.a
Xlib/liblretrieve.a
Xlib/libobsolete.a
Xlib/libprint.a
Xlib/libproc.a
Xlib/libretrieve.a
Xshare/smart.11.0/lib/common_words
Xshare/smart.11.0/lib/spec.default
Xshare/smart.11.0/lib/spec.expcoll
X@dirrm share/smart.11.0/lib
X@dirrm share/smart.11.0/indexed_colls
X@dirrm share/smart.11.0
X%%PORTDOCS%%share/doc/smart.11.0/howto/install.10
X%%PORTDOCS%%share/doc/smart.11.0/howto/modify
X%%PORTDOCS%%share/doc/smart.11.0/howto/examine
X%%PORTDOCS%%share/doc/smart.11.0/howto/admin
X%%PORTDOCS%%share/doc/smart.11.0/howto/debug
X%%PORTDOCS%%share/doc/smart.11.0/howto/defaults
X%%PORTDOCS%%share/doc/smart.11.0/howto/retrieve
X%%PORTDOCS%%share/doc/smart.11.0/howto/README
X%%PORTDOCS%%share/doc/smart.11.0/howto/install.11.0
X%%PORTDOCS%%share/doc/smart.11.0/howto/install.10.1
X%%PORTDOCS%%share/doc/smart.11.0/future/locking
X%%PORTDOCS%%share/doc/smart.11.0/future/TODO
X%%PORTDOCS%%share/doc/smart.11.0/future/PLANS
X%%PORTDOCS%%share/doc/smart.11.0/future/gc
X%%PORTDOCS%%share/doc/smart.11.0/overview/README
X%%PORTDOCS%%share/doc/smart.11.0/overview/app.eval
X%%PORTDOCS%%share/doc/smart.11.0/overview/app.spec
X%%PORTDOCS%%share/doc/smart.11.0/overview/overview
X%%PORTDOCS%%share/doc/smart.11.0/overview/app.procs
X%%PORTDOCS%%share/doc/smart.11.0/overview/app.rel_objs
X%%PORTDOCS%%share/doc/smart.11.0/overview/app.file_acc
X%%PORTDOCS%%share/doc/smart.11.0/announce.11
X%%PORTDOCS%%share/doc/smart.11.0/README
X%%PORTDOCS%%share/doc/smart.11.0/Changes.10-11
X%%PORTDOCS%%share/doc/smart.11.0/announce.10
X%%PORTDOCS%%@dirrm share/doc/smart.11.0/overview
X%%PORTDOCS%%@dirrm share/doc/smart.11.0/man
X%%PORTDOCS%%@dirrm share/doc/smart.11.0/howto
X%%PORTDOCS%%@dirrm share/doc/smart.11.0/future
X%%PORTDOCS%%@dirrm share/doc/smart.11.0
END-of-smart/pkg-plist
exit


	


>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200202201819.g1KIJA613061>