freebsd-ports/textproc/openfts/Makefile
Gerald Pfeifer ea8c8ec7da Bump PORTREVISION for ports depending on the canonical version of GCC
as defined in Mk/bsd.default-versions.mk which has moved from GCC 8.3
to GCC 9.1 under most circumstances now after revision 507371.

This includes ports
 - with USE_GCC=yes or USE_GCC=any,
 - with USES=fortran,
 - using Mk/bsd.octave.mk which in turn features USES=fortran, and
 - with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang,
   c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib
plus, everything INDEX-11 shows with a dependency on lang/gcc9 now.

PR:		238330
2019-07-26 20:46:53 +00:00

43 lines
1.1 KiB
Makefile

# $FreeBSD$
PORTNAME= openfts
PORTVERSION= 0.40
PORTREVISION= 5
CATEGORIES= textproc perl5
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/OpenFTS-perl%2C%20v${PORTVERSION}
DISTNAME= Search-OpenFTS-${PORTVERSION}
MAINTAINER= kuriyama@FreeBSD.org
COMMENT= Open Source Full Text Search engine
RUN_DEPENDS= p5-DBD-Pg>=0:databases/p5-DBD-Pg
USES+= perl5 pgsql shebangfix
SHEBANG_FILES= examples/*.pl examples/parser/*.pl
USE_PERL5= configure
WANT_PGSQL= contrib
OPTIONS_DEFINE= DOCS EXAMPLES
PORTDOCS= Changes INSTALL README primer.html
post-install:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
@${CP} -R ${WRKSRC}/examples/* ${STAGEDIR}${EXAMPLESDIR}
@${ECHO_MSG} "===> Examples installed in ${STAGEDIR}${EXAMPLESDIR}."
@${CP} -p ${WRKSRC}/doc/primer.html ${WRKSRC}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
@${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
@${ECHO_MSG} "===> Documentation installed in ${STAGEDIR}${DOCSDIR}."
# Sample DB initialization.
DBNAME?= openfts
create-database:
createdb ${DBNAME}
cd ${LOCALBASE}/share/postgresql/contrib && \
psql ${DBNAME} < tsearch2.sql && \
psql ${DBNAME} < openfts.sql
.include <bsd.port.mk>