pkgsrc/textproc/xapian-omega/Makefile
schmonz 08865c622f Update to 1.4.14. From the changelog:
documentation:

* Improve omindex --help docs for --duplicates.
* Document that $log will start to return an error message in 1.5.0, and that
  one can wrap it using a $if with no action now to be future-proof.

indexers:

* Add built-in support for iso-8859-15 so we can handle it without iconv.
  This charset is a variant of iso-8859-1 with 8 characters changed, most
  notably including the euro currency symbol.  It's the most commonly seen
  charset we didn't have built-in support for.
* Optimise converting us-ascii to UTF-8 to do nothing, like we already do when
  converting UTF-8 to UTF-8.
* scriptindex:
  + Add new 'gap' action which provides a way to leave a gap in the term
    positions between fields to prevent phrases and positional operators from
    matching across fields.

omega:

* Fix error handling in $lookup.  We now check for errors from cdb_init()
  and cdb_get().  We've never checked for errors from cdb_init(), while
  for cdb_get() this bug was introduced by a warning fix in 1.2.20.

templates:

* Future-proof use of $log against changes in 1.5.0.
2019-12-17 03:54:17 +00:00

42 lines
1.1 KiB
Makefile

# $NetBSD: Makefile,v 1.42 2019/12/17 03:54:17 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_VARS.files= VARBASE
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"