aboutsummaryrefslogtreecommitdiffstats
path: root/devel/hive/Makefile
blob: f014fe61d938f82220cef1dd95a5d9c85637eef6 (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
35
36
37
38
# Created by: Dmitry Sivachenko <demon@FreeBSD.org>
# $FreeBSD$

PORTNAME=   hive
PORTVERSION=    1.0.0
CATEGORIES= devel java
MASTER_SITES=   ${MASTER_SITE_APACHE} \
        LOCAL/demon/:maven \
        http://people.freebsd.org/~demon/:maven
MASTER_SITE_SUBDIR=${PORTNAME}/stable
DISTFILES=  apache-${PORTNAME}-${PORTVERSION}-src${EXTRACT_SUFX} FreeBSD-${PORTNAME}-${PORTVERSION}-maven-repository.tar.gz:maven
DIST_SUBDIR=    hadoop

MAINTAINER= demon@FreeBSD.org
COMMENT=    Framework for data warehousing on top of Hadoop

LICENSE=    APACHE20

BUILD_DEPENDS=  ${LOCALBASE}/share/java/maven3/bin/mvn:${PORTSDIR}/devel/maven3 \
        bash:${PORTSDIR}/shells/bash
RUN_DEPENDS=    bash:${PORTSDIR}/shells/bash \
        yarn:${PORTSDIR}/devel/hadoop2

USE_JAVA=   yes
JAVA_VERSION=   1.7+
WRKSRC=     ${WRKDIR}/apache-${PORTNAME}-${PORTVERSION}-src

HIVE_DIST=  ${WRKSRC}/packaging/target/apache-hive-${PORTVERSION}-bin/apache-hive-${PORTVERSION}-bin

do-build:
    cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${LOCALBASE}/share/java/maven3/bin/mvn -Dmaven.repo.local=${WRKDIR}/m2 --offline clean install -Phadoop-2,dist -DskipTests

do-install:
    ${MKDIR} ${STAGEDIR}${DATADIR}
    cd ${HIVE_DIST} && ${COPYTREE_BIN} bin ${STAGEDIR}${DATADIR}
    cd ${HIVE_DIST} && ${COPYTREE_SHARE} "conf examples hcatalog lib scripts" ${STAGEDIR}${DATADIR}

.include <bsd.port.mk>