aboutsummaryrefslogtreecommitdiffstats
path: root/java/eclipse-drjava/Makefile
blob: a8c436e501cdf187c07b4368f88ccbfe1f529c57 (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
39
40
41
42
# New ports collection makefile for:    eclipse-drjava
# Date created:     2006-04-14
# Whom:         Nicola Vitale   <nivit@email.it>
#
# $FreeBSD$
#

PORTNAME=   drjava
PORTVERSION=    0.9.5
CATEGORIES= java devel
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= drjava
PKGNAMEPREFIX=  eclipse-
DISTNAME=   drjava-eclipse-${PORTVERSION}

MAINTAINER= nivit@email.it
COMMENT=    DrJava plugin for Eclipse

RUN_DEPENDS=    ${LOCALBASE}/bin/eclipse:${PORTSDIR}/java/eclipse

NO_BUILD=   yes
NO_WRKSUBDIR=   yes
USE_JAVA=   yes
USE_ZIP=    yes

JAVA_VERSION=   1.4+
JAVA_OS=    native

DATADIR=    ${PREFIX}/eclipse/plugins

EPLUGIN_ID= edu.rice.cs.drjava
EPLUGIN_VER=    ${PORTVERSION}

FIND_HERE=  ${EPLUGIN_ID}_${EPLUGIN_VER}
FIND_DIRS=  -type d
FIND_DATA=  -type f -not \( -name "README" -or -name "LICENSE" \)

do-install:
    cd ${WRKDIR} && ${FIND} ${FIND_HERE} ${FIND_DIRS} -exec ${MKDIR} ${DATADIR}/{} \;
    cd ${WRKDIR} && ${FIND} ${FIND_HERE} ${FIND_DATA} -exec ${INSTALL_DATA} {} ${DATADIR}/{} \;

.include <bsd.port.mk>