aboutsummaryrefslogtreecommitdiffstats
path: root/misc/pauker/Makefile
blob: 0be42ce8bd4192e48c5c1958b950adde0718b0b4 (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
# New ports collection makefile for:    pauker
# Date created:             11 November 2007
# Whom:                 Alex Stangl <alex@stangl.us>
#
# $FreeBSD$
#

PORTNAME=   pauker
DISTVERSION=    1.8RC2
PORTREVISION=   1
CATEGORIES= misc java
MASTER_SITES=   SF
EXTRACT_SUFX=   .jar
EXTRACT_ONLY=

MAINTAINER= alex@stangl.us
COMMENT=    Java-based flashcard learning using the Leitner system

USE_JAVA=   yes
JAVA_VERSION=   1.4+
NO_BUILD=   yes

PLIST_FILES=    %%JAVAJARDIR%%/${PORTNAME}.jar bin/${PORTNAME}

do-install:
    @${INSTALL_DATA} ${DISTDIR}/${DISTNAME}.jar ${JAVAJARDIR}/${PORTNAME}.jar
    @${SED} -e "s:%%LOCALBASE%%:${LOCALBASE}:" \
        -e "s:%%JAVAJARDIR%%:${JAVAJARDIR}:" \
        -e "s:%%PORTNAME%%:${PORTNAME}:" \
        ${FILESDIR}/pauker.sh > ${PREFIX}/bin/${PORTNAME}
    @${CHOWN} ${BINOWN}:${BINGRP} ${PREFIX}/bin/${PORTNAME}
    @${CHMOD} a+rx ${PREFIX}/bin/${PORTNAME}

.include <bsd.port.mk>