omega: * New OmegaScript $unique command. The existing $uniq only removes adjacent entries (like the Unix uniq command) so to fully remove duplicates you need a sorted input. Sometimes it is desirable to remove duplicates from an unsorted list without changing the order of the entries which are left, so add $unique to do that. If the list is sorted already, then $uniq is more efficient. * Fix $map to cleanly reject a single argument. templates: * templates/query: Merge multiple entries in the term frequency information, which came from searching several prefixes by default. Reported by Alistair Buxton on #xapian-discuss. * When multiple words with the same stem are in the query string we now fully eliminate duplicates when showing term frequency information.
42 lines
1.2 KiB
Makefile
42 lines
1.2 KiB
Makefile
# $NetBSD: Makefile,v 1.39 2018/08/26 13:26:12 schmonz Exp $
|
|
|
|
.include "../../textproc/xapian/Makefile.common"
|
|
|
|
DISTNAME= xapian-omega-${VERSION}
|
|
|
|
HOMEPAGE= https://xapian.org/docs/omega/overview.html
|
|
COMMENT= Search engine application for websites using Xapian
|
|
|
|
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
|
|
USE_TOOLS+= perl:run
|
|
|
|
TEST_TARGET= check
|
|
|
|
REPLACE_PERL= dbi2omega htdig2omega mbox2omega
|
|
|
|
SUBST_CLASSES+= files
|
|
SUBST_STAGE.files= do-configure
|
|
SUBST_FILES.files= omega.conf
|
|
SUBST_SED.files= -e "s|@VARBASE@|${VARBASE}|g"
|
|
SUBST_MESSAGE.files= Fixing configuration files.
|
|
|
|
OWN_DIRS+= ${VARBASE}/log/${PKGBASE}
|
|
OWN_DIRS+= ${VARBASE}/${PKGBASE}/cdb
|
|
OWN_DIRS+= ${VARBASE}/${PKGBASE}/data
|
|
OWN_DIRS+= ${VARBASE}/${PKGBASE}/templates
|
|
|
|
EGDIR= ${PREFIX}/share/examples/${PKGBASE}
|
|
|
|
CONF_FILES+= ${EGDIR}/omega.conf ${PKG_SYSCONFDIR}/omega.conf
|
|
|
|
INSTALLATION_DIRS= ${EGDIR}
|
|
|
|
INSTALL_TARGET= install install-dist_sysconfDATA
|
|
INSTALL_MAKE_FLAGS+= ${MAKE_FLAGS} sysconfdir=${EGDIR:Q}
|
|
|
|
BUILD_DEFS+= VARBASE
|
|
|
|
.include "../../devel/pcre/buildlink3.mk"
|
|
.include "../../sysutils/file/buildlink3.mk"
|
|
.include "../../textproc/xapian/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|