aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/weka/Makefile
blob: 3b70bfc56a0e5e91966c19ecc80d9f0c8be41c97 (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
# Created by: Simon Olofsson <simon@olofsson.de>
# $FreeBSD$

PORTNAME=   weka
DISTVERSION=    3-8-0
PORTREVISION=   1
CATEGORIES= textproc java
MASTER_SITES=   SF/${PORTNAME}/${PORTNAME}-3-8/${PORTVERSION}

MAINTAINER= danilo@FreeBSD.org
COMMENT=    Data Mining Software in Java

LICENSE=    GPLv2

PORTSCOUT=  limitw:1,even   # Second component is even for stable versions.

USES=       zip
USE_JAVA=   yes
JAVA_VERSION=   1.6+
NO_BUILD=   yes

DATADIR=    ${JAVASHAREDIR}/${PORTNAME}

OPTIONS_DEFINE= EXAMPLES

SUB_FILES=  ${PORTNAME}.sh
SUB_LIST=   JARNAME=${PORTNAME}.jar

do-install:
    ${MKDIR} ${STAGEDIR}${DATADIR}
    ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.jar \
        ${STAGEDIR}${DATADIR}/${PORTNAME}.jar
    ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
    cd ${WRKSRC}/data && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}
    ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.sh ${STAGEDIR}${PREFIX}/bin/${PORTNAME}

.include <bsd.port.mk>