aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/elasticsearch2-plugin-sql/Makefile
blob: 59631e9158568b65188aab6f546371ad688c7a0f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# $FreeBSD$

PORTNAME=   sql
PORTVERSION=    2.4.1.0
CATEGORIES= textproc
MASTER_SITES=   https://github.com/NLPchina/elasticsearch-sql/releases/download/${PORTVERSION}/
PKGNAMEPREFIX=  elasticsearch2-plugin-
DISTNAME=   elasticsearch-${PORTNAME}-${PORTVERSION}

MAINTAINER= olgeni@FreeBSD.org
COMMENT=    ElasticSearch SQL plugin

LICENSE=    APACHE20

RUN_DEPENDS=    elasticsearch2>=2.4.0:textproc/elasticsearch2

CONFLICTS=      elasticsearch-plugin-sql-1.*

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
    ${INSTALL_DATA} ${WRKSRC}/*.properties ${STAGEDIR}${PREFIX}/lib/elasticsearch/plugins/sql

.include <bsd.port.mk>