aboutsummaryrefslogtreecommitdiffstats
path: root/java/eclipse-hibernatetools/Makefile
blob: 2708d348a2f86fbef09aa21457031d5c1ae2072c (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
43
44
45
46
47
48
49
50
# Created by: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
# $FreeBSD$

PORTNAME=   hibernatetools
DISTVERSION=    3.2.3.GA
PORTREVISION=   3
CATEGORIES= java devel databases
MASTER_SITES=   SF/jboss/JBossTools/JBossTools%202.1.2.GA
PKGNAMEPREFIX=  eclipse-
DISTNAME=   HibernateTools-${DISTVERSION}
DIST_SUBDIR=    eclipse

MAINTAINER= ports@FreeBSD.org
COMMENT=    Hibernate3 Tools for the Eclipse IDE

LICENSE=    EPL LGPL3
LICENSE_COMB=   multi

## XXX - Notify the maintainer if the dependencies on either
## java/eclipse-gef of java/eclipse-webtools change
RUN_DEPENDS=    eclipse:${PORTSDIR}/java/eclipse \
        ${LOCALBASE}/share/eclipse/dropins/gef:${PORTSDIR}/java/eclipse-gef \
        ${LOCALBASE}/share/eclipse/dropins/webtools:${PORTSDIR}/java/eclipse-webtools

USES=       zip
NO_BUILD=   yes
NO_WRKSUBDIR=   yes
USE_JAVA=   yes
JAVA_VERSION=   1.6+
JAVA_OS=    native

post-extract:
# avoid empty dirs since they break the automated PLIST generation
    @${FIND} ${WRKSRC} -type d -empty \
        -exec ${TOUCH} "{}/.keep_me" \;

do-install:
    @(cd ${WRKSRC} && ${COPYTREE_SHARE} "features plugins" ${STAGEDIR}${PREFIX}/lib/eclipse)

# used to manually generate the plist files
generate-plist-locally: build
# annotate installation files
    @(cd ${WRKSRC} && ${FIND} -s features plugins -not -type d) \
        | ${SED} -ne 's,^,lib/eclipse/,p' > ${PLIST}
# annotate installation directories
    @(cd ${WRKSRC} && ${FIND} -s -d features plugins -type d -empty) \
        | ${GREP} -vE '^plugins$$|^features$$' \
        | ${SED} -ne 's,^,@dir lib/eclipse/,p' >> ${PLIST}

.include <bsd.port.mk>