Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Sep 2007 16:57:39 +0200 (CEST)
From:      Mathias Monnerville <mathias@monnerville.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        mathias@monnerville.com
Subject:   ports/116259: New port: textproc/xaira - XML Aware Indexing and Retrieval Architecture
Message-ID:  <200709101457.l8AEvdbP066609@sritux.univ-paris4.fr>
Resent-Message-ID: <200709101500.l8AF0BiK034129@freefall.freebsd.org>

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

>Number:         116259
>Category:       ports
>Synopsis:       New port: textproc/xaira - XML Aware Indexing and Retrieval Architecture
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Sep 10 15:00:10 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Mathias Monnerville
>Release:        FreeBSD 6.1-RELEASE-p19 i386
>Organization:
>Environment:
System: FreeBSD sritux.univ-paris4.fr 6.1-RELEASE-p19 FreeBSD 6.1-RELEASE-p19 #0: Mon Sep 10 11:21:36 CEST 2007 mathias@sritux.univ-paris4.fr:/usr/obj/usr/src/sys/GENERIC i386


	
>Description:
Xaira is an XML Aware Indexing and Retrieval Application
designed to allow fast access to large corpora marked up
in XML.

Xaira is the current name for a new version of SARA, the text
searching software originally developed at OUCS for use with
the British National Corpus.

This new version has been entirely re-written as a general
purpose XML search engine, which will operate on any corpus
of well-formed XML documents. It is however best used with
TEI-conformant documents.

Xaira has full Unicode support. This means you can use it to
search and display text in any language, provided you have a
suitable Unicode font installed on your system.

WWW: http://www.xaira.org
	
>How-To-Repeat:
	
>Fix:

	

--- shar begins here ---
# 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:
#
#	xaira
#	xaira/pkg-plist
#	xaira/pkg-descr
#	xaira/distinfo
#	xaira/Makefile
#	xaira/files
#	xaira/files/patch-configure.in
#	xaira/files/pkg-message.in
#	xaira/files/xaira-server.in
#
echo c - xaira
mkdir -p xaira > /dev/null 2>&1
echo x - xaira/pkg-plist
sed 's/^X//' >xaira/pkg-plist << 'END-of-xaira/pkg-plist'
Xbin/indexer
Xbin/solve
Xbin/xaira_test
Xinclude/XairoHeader.h
Xlib/libSaraServer.a
Xlib/libSaraServer.la
Xlib/libSaraServer.so
Xlib/libSaraServer.so.0
Xlib/libXaira.a
Xlib/libXaira.la
Xlib/libXaira.so
Xlib/libXaira.so.0
Xlib/libXairaProxy.a
Xlib/libXairaProxy.la
Xlib/libXairaProxy.so
Xlib/libXairaProxy.so.0
Xsbin/xaira_daemon
X%%DATADIR%%/cql.xsd
X%%DATADIR%%/xgrammar.xsd
X@dirrm %%DATADIR%%
X@dirrmtry share/nls/en_US.US-ASCII
X@dirrmtry share/nls/POSIX
END-of-xaira/pkg-plist
echo x - xaira/pkg-descr
sed 's/^X//' >xaira/pkg-descr << 'END-of-xaira/pkg-descr'
XXaira is an XML Aware Indexing and Retrieval Application 
Xdesigned to allow fast access to large corpora marked up 
Xin XML.
X
XXaira is the current name for a new version of SARA, the text 
Xsearching software originally developed at OUCS for use with 
Xthe British National Corpus. 
X
XThis new version has been entirely re-written as a general 
Xpurpose XML search engine, which will operate on any corpus 
Xof well-formed XML documents. It is however best used with 
XTEI-conformant documents.
X
XXaira has full Unicode support. This means you can use it to 
Xsearch and display text in any language, provided you have a 
Xsuitable Unicode font installed on your system.
X
XWWW: http://www.xaira.org
END-of-xaira/pkg-descr
echo x - xaira/distinfo
sed 's/^X//' >xaira/distinfo << 'END-of-xaira/distinfo'
XMD5 (xaira-1.23.tar.gz) = 40b0b5f1b7b07586d8d590543c2c5a39
XSHA256 (xaira-1.23.tar.gz) = 57a65b4b23e6d7c7914a76856d337f4477f0bd3c6e20458630b13edecfaf4c7c
XSIZE (xaira-1.23.tar.gz) = 946753
END-of-xaira/distinfo
echo x - xaira/Makefile
sed 's/^X//' >xaira/Makefile << 'END-of-xaira/Makefile'
X# New ports collection makefile for:	xaira
X# Date created:		10 September 2007
X# Whom:				Mathias Monnerville <mathias@monnerville.com>
X#
X# $FreeBSD$
X#
X
XPORTNAME=		xaira
XPORTVERSION=	1.23
XCATEGORIES=		textproc
XMASTER_SITES=		${MASTER_SITE_SOURCEFORGE}
XMASTER_SITE_SUBDIR=	${PORTNAME}
X
XMAINTAINER=	mathias@monnerville.com
XCOMMENT=	XML Aware Indexing and Retrieval Architecture
X
XLIB_DEPENDS=	xerces-c:${PORTSDIR}/textproc/xerces-c2 \
X				icuio:${PORTSDIR}/devel/icu
XBUILD_DEPENDS=	${LIBTOOL}:${PORTSDIR}/devel/libtool15
X
XGNU_CONFIGURE=	yes
XUSE_AUTOTOOLS=	aclocal:19 autoconf:259 libtool:15
XUSE_GMAKE=		yes
XUSE_LDCONFIG=	yes
X
XUSE_RC_SUBR=	xaira-server
XSUB_FILES+=		pkg-message
XPKGMESSAGE=		${WRKDIR}/pkg-message
X
XOPTIONS=	PHP5 "Build PHP5 extension" no
X
X.include <bsd.port.pre.mk>
X
X.if defined(WITH_PHP5)
XBUILD_DEPENDS+=		php5>=5:${PORTSDIR}/lang/php5
XCONFIGURE_ARGS+=	--with-php5=`${LOCALBASE}/bin/php-config --include-dir`
XPLIST_FILES+=	lib/libphpXaira.a \
X	lib/libphpXaira.la \
X	lib/libphpXaira.so \
X	lib/libphpXaira.so.0
X.endif
X
Xpost-patch:
X	@${FIND} ${WRKSRC} -name Makefile.am -exec \
X		${REINPLACE_CMD} -e 's,^AM_CPPFLAGS.*$$,& $${icu_cppflags},' {} \;
X
Xpre-configure:
X	@${CP} ${LIBTOOL_SHAREDIR}/libltdl/acinclude.m4 ${WRKSRC}/
X
Xpost-install:
X	@${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.post.mk>
END-of-xaira/Makefile
echo c - xaira/files
mkdir -p xaira/files > /dev/null 2>&1
echo x - xaira/files/patch-configure.in
sed 's/^X//' >xaira/files/patch-configure.in << 'END-of-xaira/files/patch-configure.in'
X--- configure.in	Wed Dec 20 21:53:46 2006
X+++ configure.in.new	Thu Feb  8 13:08:41 2007
X@@ -3,8 +3,8 @@
X AC_PROG_CXX
X AC_PROG_LIBTOOL
X AC_CHECK_HEADERS(asm/byteorder.h netinet/in.h errno.h crypt.h)
X-AC_CHECK_HEADERS(unicode/uversion.h,,[AC_MSG_ERROR(cannot find ICU headers)])
X-AC_CHECK_HEADERS(xercesc/util/XercesVersion.hpp,,[AC_MSG_ERROR(cannot find xercesc headers)])
X+#AC_CHECK_HEADERS(unicode/uversion.h,,[AC_MSG_ERROR(cannot find ICU headers)])
X+#AC_CHECK_HEADERS(xercesc/util/XercesVersion.hpp,,[AC_MSG_ERROR(cannot find xercesc headers)])
X AC_CHECK_HEADERS(zlib.h,,[AC_MSG_ERROR(cannot find zlib.h)])
X AC_CHECK_TYPES(socklen_t,,,[
X #include <sys/types.h>
X@@ -16,13 +16,22 @@
X AC_CHECK_FUNC(gethostbyname, ,[AC_CHECK_LIB(nsl, gethostbyname)])
X AC_CHECK_LIB(crypt,crypt)
X 
X-dnl Platform-specific Makefile setup
X-case "${host}" in
X-        *-*-cygwin*)    ICU="-lsicuin -lsicuuc -lsicudt"  ;ICUS=" -DU_STATIC_IMPLEMENTATION";;
X-        *)              ICU="-licui18n -licuuc -licudata";ICUS="";;
X-esac
X 
X-			      
X+dnl ICU checks
X+AC_CHECK_PROG(ICU_CONFIG, icu-config, yes)
X+
X+if test x$ICU_CONFIG = xyes; then
X+	dnl Platform-specific Makefile setup
X+	icu_ldflags=`icu-config --ldflags`
X+	icu_cppflags=`icu-config --cppflags`
X+	case "${host}" in
X+			*-*-cygwin*)    ICU="-lsicuin -lsicuuc -lsicudt"  ;ICUS=" -DU_STATIC_IMPLEMENTATION";;
X+			*)              ICU="${icu_ldflags}";ICUS="";;
X+	esac
X+else
X+    AC_MSG_ERROR([ICU is required but is not installed on your system])
X+fi
X+		
X AC_MSG_CHECKING([whether to install Axis CPP support])
X if test "x$AXISCPP_DEPLOY" != "x" && test -d $AXISCPP_DEPLOY;
X then
X@@ -51,6 +60,8 @@
X AC_SUBST(ACCESSLOG)
X AC_SUBST(PHPPATH)
X AC_SUBST(PHPEXT)
X+AC_SUBST(icu_ldflags)
X+AC_SUBST(icu_cppflags)
X 
X AC_OUTPUT(Makefile indexer/Makefile server/Makefile oldserver/Makefile xaira_daemon/Makefile xaira_proxy/Makefile samples/Makefile xaira_soap/Makefile xaira_test/Makefile xaira_php/Makefile)
X 
END-of-xaira/files/patch-configure.in
echo x - xaira/files/pkg-message.in
sed 's/^X//' >xaira/files/pkg-message.in << 'END-of-xaira/files/pkg-message.in'
X*********************************************************************
XInstallation notes:
X
XTo start xaira server from startup, add xaira_enable="YES"
Xin /etc/rc.conf. 
X
XAlso, you have to specify the path to the corpus parameter file:
X
Xxaira_flags="-p /path/to/your/corpus_parameter_file"
X
X*********************************************************************
END-of-xaira/files/pkg-message.in
echo x - xaira/files/xaira-server.in
sed 's/^X//' >xaira/files/xaira-server.in << 'END-of-xaira/files/xaira-server.in'
X#!/bin/sh
X#
X
X# Add the following line to /etc/rc.conf to enable xaira:
X#
X# xaira_enable="YES"
X
X# PROVIDE: sarad
X
X. %%RC_SUBR%%
X
Xname="xaira"
Xrcvar=`set_rcvar`
X
Xcommand=%%PREFIX%%/sbin/xaira_daemon
X
Xload_rc_config $name
Xrun_rc_command "$1"
END-of-xaira/files/xaira-server.in
exit
--- shar ends here ---


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



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