pkgsrc/textproc/groonga/options.mk
fhajny 54657a5660 Update textproc/groonga to 7.0.5. Add bl3.
Based on a PR by @siepkes (https://github.com/joyent/pkgsrc/pull/7).

Groonga 7.0.5
- [dump] --sort_hash_table option has been supported
- math_abs() function has been supported
- Ubuntu 16.10 (Yakkety Yak) support has been dropped

Groonga 7.0.4
- Supported Debian 9 (stretch)
- Added grndb log options
- Improved query performance

Groonga 7.0.3
- [select] Add document about Full text search with specific index name
- [load][dump] Supported Apache Arrow

Groonga 7.0.2
- Fixed a bug that data is lost by reindex
- Supported Ubuntu 17.04 (Zesty Zapus)
- Supported persistent cache
- Added function to use an existing table as condition patterns.

Groonga 7.0.1
- Dropped CentOS 5 support
- Fixed a problem about dynamically updated index size
- [experimental] Supported GRN_ORDER_BY_ESTIMATED_SIZE_ENABLE

Groonga 7.0.0
- Removed needless metadata updates on DB. It reduces the case that
  database lock remains even though select command is executed.
- lock_clear Changed to clear metadata lock by lock_clear against DB.
- Supported groonga-token-filter-stem package which provides stemming
  feature by TokenFilterStem token filter on CentOS 7.
- load Supported --output_errors yes option. If you specify "yes", you
  can get errors for each load failed record.

Groonga 6.1.5
- This release fixes an index search bug that index search may not
  return records that should be matched.

Groonga 6.1.4
- This release fixes an index search bug that index search may not
  return records that should be matched.

Groonga 6.1.3
- Reverted "Improved performance of updating inverted indexes in the
  worst case".

Groonga 6.1.2
- [load] Supported to show {"n_loaded_records": N} in response
- [load] Supported --output_ids yes parameter

Groonga 6.1.1
- Supported column value compression with Zstandard
- Changed to stop compressing small data

Groonga 6.1.0
- Supported to sort load table names by key instead of ID to make output
  stable
- Added document about index columns

Groonga 6.0.9
- Fixed index search bug
- Supported regular expression in location directive for groonga-httpd
2017-08-29 12:54:47 +00:00

102 lines
3.2 KiB
Makefile

# $NetBSD: options.mk,v 1.18 2017/08/29 12:54:47 fhajny Exp $
#
PKG_OPTIONS_VAR= PKG_OPTIONS.groonga
PKG_SUPPORTED_OPTIONS= mecab tests zlib lz4
PKG_SUPPORTED_OPTIONS+= groonga-suggest-learner groonga-httpd
PKG_SUGGESTED_OPTIONS= mecab groonga-suggest-learner groonga-httpd
.include "../../mk/bsd.options.mk"
PLIST_VARS+= mecab learner httpd
.if !empty(PKG_OPTIONS:Mmecab)
CONFIGURE_ARGS+= --with-mecab
CONFIGURE_ARGS+= --with-mecab-config=${BUILDLINK_PREFIX.mecab}/bin/mecab-config
.include "../../textproc/mecab/buildlink3.mk"
PLIST.mecab= yes
.else
CONFIGURE_ARGS+= --without-mecab
.endif
.if !empty(PKG_OPTIONS:Mtests)
CONFIGURE_ARGS+= --with-cutter
TEST_TARGET= check
BUILDLINK_API_DEPENDS.cutter+= cutter>=1.1.6
.include "../../devel/cutter/buildlink3.mk"
.else
CONFIGURE_ARGS+= --without-cutter
.endif
.if !empty(PKG_OPTIONS:Mzlib)
CONFIGURE_ARGS+= --with-zlib
.include "../../devel/zlib/buildlink3.mk"
.else
CONFIGURE_ARGS+= --without-zlib
.endif
.if !empty(PKG_OPTIONS:Mlz4)
CONFIGURE_ARGS+= --with-lz4
.include "../../archivers/lz4/buildlink3.mk"
.else
CONFIGURE_ARGS+= --without-lz4
.endif
.if !empty(PKG_OPTIONS:Mgroonga-suggest-learner)
.include "../../devel/libevent/buildlink3.mk"
.include "../../devel/msgpack/buildlink3.mk"
.include "../../net/zeromq/buildlink3.mk"
CONFIGURE_ARGS+= --with-libevent=${BUILDLINK_PREFIX.libevent}
CONFIGURE_ARGS+= --with-message-pack=${BUILDLINK_PREFIX.msgpack}
CONFIGURE_ARGS+= --enable-zeromq
PLIST.learner= yes
.else
CONFIGURE_ARGS+= --without-libevent
CONFIGURE_ARGS+= --without-message-pack
CONFIGURE_ARGS+= --disable-zeromq
.endif
.if !empty(PKG_OPTIONS:Mgroonga-httpd)
.include "../../devel/pcre/buildlink3.mk"
CONFIGURE_ARGS+= --enable-groonga-httpd
PLIST.httpd= yes
OWN_DIRS+= ${PKG_SYSCONFDIR}/httpd/html
OWN_DIRS+= ${PKG_SYSCONFDIR}/httpd
OWN_DIRS+= ${VARBASE}/run/${PKGBASE}
OWN_DIRS+= ${VARBASE}/log/${PKGBASE}/httpd
BUILD_DEFS+= VARBASE
CONF_FILES+= ${EXAMPLE_CONF_DIR}/httpd/fastcgi.conf \
${PKG_SYSCONFDIR}/httpd/fastcgi.conf
CONF_FILES+= ${EXAMPLE_CONF_DIR}/httpd/fastcgi_params \
${PKG_SYSCONFDIR}/httpd/fastcgi_params
CONF_FILES+= ${EXAMPLE_CONF_DIR}/httpd/groonga-httpd.conf \
${PKG_SYSCONFDIR}/httpd/groonga-httpd.conf
CONF_FILES+= ${EXAMPLE_CONF_DIR}/httpd/html/50x.html \
${PKG_SYSCONFDIR}/httpd/html/50x.html
CONF_FILES+= ${EXAMPLE_CONF_DIR}/httpd/html/index.html \
${PKG_SYSCONFDIR}/httpd/html/index.html
CONF_FILES+= ${EXAMPLE_CONF_DIR}/httpd/koi-utf \
${PKG_SYSCONFDIR}/httpd/koi-utf
CONF_FILES+= ${EXAMPLE_CONF_DIR}/httpd/koi-win \
${PKG_SYSCONFDIR}/httpd/koi-win
CONF_FILES+= ${EXAMPLE_CONF_DIR}/httpd/mime.types \
${PKG_SYSCONFDIR}/httpd/mime.types
CONF_FILES+= ${EXAMPLE_CONF_DIR}/httpd/scgi_params \
${PKG_SYSCONFDIR}/httpd/scgi_params
CONF_FILES+= ${EXAMPLE_CONF_DIR}/httpd/uwsgi_params \
${PKG_SYSCONFDIR}/httpd/uwsgi_params
CONF_FILES+= ${EXAMPLE_CONF_DIR}/httpd/win-utf \
${PKG_SYSCONFDIR}/httpd/win-utf
SUBST_CLASSES+= confpath
SUBST_STAGE.confpath= pre-build
SUBST_FILES.confpath= vendor/nginx-*/objs/Makefile
SUBST_SED.confpath= -e 's,\$$(DESTDIR)${PKG_SYSCONFDIR}/httpd,\$$(DESTDIR)${PREFIX}/share/examples/${PKGBASE}/httpd,g'
post-install:
${RM} -f ${DESTDIR}${PREFIX}/share/examples/groonga/httpd/*.default
.else
CONFIGURE_ARGS+= --disable-groonga-httpd
.endif