aboutsummaryrefslogtreecommitdiffstats
path: root/finance/jgnash/Makefile
blob: 211e4014bca925808132659544167e4c1b1389f6 (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
# Created by: Bernhard Froehlich <decke@bluelife.at>
# $FreeBSD$

PORTNAME=   jgnash
PORTVERSION=    2.15.2
CATEGORIES= finance java
MASTER_SITES=   SF/jgnash/Active%20Stable%202.x
DISTNAME=   jgnash-${PORTVERSION}-bin

MAINTAINER= decke@FreeBSD.org
COMMENT=    Free personal finance manager

LICENSE=    GPLv3

WRKSRC=     ${WRKDIR}/jgnash-${PORTVERSION}
DATADIR=    ${JAVASHAREDIR}/${PORTNAME}
SUB_FILES=  jgnash.desktop
SUB_LIST=   JAVA="${JAVA}"
PLIST_SUB+= DESKTOPDIR=${DESKTOPDIR:S|^${PREFIX}/||}

USES=       zip
USE_JAVA=   yes
JAVA_VERSION=   1.6+
JAVA_VENDOR=    openjdk

NO_BUILD=   yes

do-install:
    @${MKDIR} ${STAGEDIR}${DATADIR}
    @${CP} ${WRKSRC}/jgnash2.jar ${STAGEDIR}${DATADIR}
    @${CP} -R ${WRKSRC}/lib ${STAGEDIR}${DATADIR}
    @${MKDIR} ${STAGEDIR}${DESKTOPDIR}
    @${CP} ${WRKDIR}/jgnash.desktop ${STAGEDIR}${DESKTOPDIR}

.include <bsd.port.mk>