2015-06-01 11:58:42 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= sql
|
2017-10-14 12:38:06 +02:00
|
|
|
PORTVERSION= 1.7.6
|
2015-06-01 11:58:42 +02:00
|
|
|
CATEGORIES= textproc
|
2016-12-02 10:21:58 +01:00
|
|
|
MASTER_SITES= https://github.com/NLPchina/elasticsearch-sql/releases/download/${PORTVERSION}/
|
2015-06-01 11:58:42 +02:00
|
|
|
PKGNAMEPREFIX= elasticsearch-plugin-
|
|
|
|
DISTNAME= elasticsearch-${PORTNAME}-${PORTVERSION}
|
|
|
|
|
|
|
|
MAINTAINER= olgeni@FreeBSD.org
|
|
|
|
COMMENT= ElasticSearch SQL plugin
|
|
|
|
|
|
|
|
LICENSE= APACHE20
|
|
|
|
|
2016-04-01 16:25:16 +02:00
|
|
|
RUN_DEPENDS= elasticsearch>=1.7.0:textproc/elasticsearch
|
2016-01-10 22:09:57 +01:00
|
|
|
|
2017-11-02 22:41:47 +01:00
|
|
|
CONFLICTS= elasticsearch2-plugin-sql-2.*
|
2015-06-01 11:58:42 +02:00
|
|
|
|
|
|
|
USES= zip
|
|
|
|
NO_BUILD= yes
|
2015-09-28 11:37:50 +02:00
|
|
|
NO_ARCH= yes
|
2015-08-18 16:40:57 +02:00
|
|
|
PLIST_SUB+= VERSION="${PORTVERSION}"
|
2015-06-01 11:58:42 +02:00
|
|
|
|
2015-09-28 11:37:50 +02:00
|
|
|
post-patch:
|
2015-10-31 13:29:19 +01:00
|
|
|
@${FIND} ${WRKSRC} -type d -empty -delete
|
2015-09-28 11:37:50 +02:00
|
|
|
@${RM} ${WRKSRC}/_site/vendor/codemirror/.travis.yml
|
|
|
|
|
2015-06-01 11:58:42 +02:00
|
|
|
do-install:
|
|
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/elasticsearch/plugins/sql
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/*.jar ${STAGEDIR}${PREFIX}/lib/elasticsearch/plugins/sql
|
|
|
|
cd ${WRKSRC} && ${COPYTREE_SHARE} _site ${STAGEDIR}${PREFIX}/lib/elasticsearch/plugins/sql
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|