e929aea23c
This round is @FreeBSD.org residents except teams.
33 lines
895 B
Makefile
33 lines
895 B
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= sql
|
|
PORTVERSION= 1.7.6
|
|
CATEGORIES= textproc
|
|
MASTER_SITES= https://github.com/NLPchina/elasticsearch-sql/releases/download/${PORTVERSION}/
|
|
PKGNAMEPREFIX= elasticsearch-plugin-
|
|
DISTNAME= elasticsearch-${PORTNAME}-${PORTVERSION}
|
|
|
|
MAINTAINER= olgeni@FreeBSD.org
|
|
COMMENT= ElasticSearch SQL plugin
|
|
|
|
LICENSE= APACHE20
|
|
|
|
RUN_DEPENDS= elasticsearch>=1.7.0:textproc/elasticsearch
|
|
|
|
CONFLICTS= elasticsearch2-plugin-sql-2.*
|
|
|
|
USES= zip
|
|
NO_BUILD= yes
|
|
NO_ARCH= yes
|
|
PLIST_SUB+= VERSION="${PORTVERSION}"
|
|
|
|
post-patch:
|
|
@${FIND} ${WRKSRC} -type d -empty -delete
|
|
@${RM} ${WRKSRC}/_site/vendor/codemirror/.travis.yml
|
|
|
|
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>
|