# New ports collection makefile for:	eclipse-clay-core
# Date created:				January 13, 2004
# Whom:					mitsuru@riken.jp
#
# $FreeBSD: ports/java/eclipse-clay-core/Makefile,v 1.20 2010/09/07 09:35:38 ale Exp $
#

PORTNAME=	clay
PORTVERSION=	1.4.2
PORTREVISION=	2
CATEGORIES=	java devel
MASTER_SITES=
PKGNAMEPREFIX=	eclipse-
PKGNAMESUFFIX=	-core
DISTNAME=	jp.azzurri.clay.core_${PORTVERSION}.bin.dist.${DISTVERSION}
DIST_SUBDIR=	eclipse

MAINTAINER=	mitsuru@riken.jp
COMMENT=	A database design tool for the Eclipse development environment

RUN_DEPENDS+=	${LOCALBASE}/share/eclipse/dropins/gef:${PORTSDIR}/java/eclipse-gef

RESTRICTED=	License agreement is required to download.

NO_BUILD=	yes
NO_WRKSUBDIR=	yes
USE_ZIP=	yes
DISABLE_SIZE?=	yes
PLIST_SUB=	RELEASEVERSION=${PORTVERSION}

DISTVERSION=	20080709

.include <bsd.port.pre.mk>

.if !exists(${DISTDIR}/${DIST_SUBDIR}/jp.azzurri.clay.core_${PORTVERSION}.bin.dist.${DISTVERSION}.zip) && !defined(PACKAGE_BUILDING)
IGNORE='You must manually fetch the tarball from http://www.azzurri.jp/en/clay/download.html and place it in ${DISTDIR}/${DIST_SUBDIR} then run make again.'
.endif

do-install:
		@${MKDIR} ${PREFIX}/lib/eclipse
		@${CP} -r ${WRKSRC}/plugins ${PREFIX}/lib/eclipse
		@${CP} -r ${WRKSRC}/features ${PREFIX}/lib/eclipse

.include <bsd.port.post.mk>
