Update textproc/elasticsearch2-plugin-sql to version 2.4.4.0
[dports.git] / textproc / elasticsearch2-plugin-sql / Makefile
1 # $FreeBSD$
2
3 PORTNAME=       sql
4 PORTVERSION=    2.4.4.0
5 CATEGORIES=     textproc
6 MASTER_SITES=   https://github.com/NLPchina/elasticsearch-sql/releases/download/${PORTVERSION}/
7 PKGNAMEPREFIX=  elasticsearch2-plugin-
8 DISTNAME=       elasticsearch-${PORTNAME}-${PORTVERSION}
9
10 MAINTAINER=     olgeni@FreeBSD.org
11 COMMENT=        ElasticSearch SQL plugin
12
13 LICENSE=        APACHE20
14
15 RUN_DEPENDS=    elasticsearch2>=2.4.4:textproc/elasticsearch2
16
17 CONFLICTS=      elasticsearch-plugin-sql-1.*
18
19 USES=           zip
20 NO_BUILD=       yes
21 NO_ARCH=        yes
22 PLIST_SUB+=     VERSION="${PORTVERSION}"
23
24 post-patch:
25         @${FIND} ${WRKSRC} -type d -empty -delete
26         @${RM} ${WRKSRC}/_site/vendor/codemirror/.travis.yml
27
28 do-install:
29         @${MKDIR} ${STAGEDIR}${PREFIX}/lib/elasticsearch/plugins/sql
30         ${INSTALL_DATA} ${WRKSRC}/*.jar ${STAGEDIR}${PREFIX}/lib/elasticsearch/plugins/sql
31         cd ${WRKSRC} && ${COPYTREE_SHARE} _site ${STAGEDIR}${PREFIX}/lib/elasticsearch/plugins/sql
32         ${INSTALL_DATA} ${WRKSRC}/*.properties ${STAGEDIR}${PREFIX}/lib/elasticsearch/plugins/sql
33
34 .include <bsd.port.mk>