Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 31 Mar 2014 10:50:15 +0000 (UTC)
From:      Pawel Pekala <pawel@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r349721 - head/devel/fujaba
Message-ID:  <201403311050.s2VAoFhC029522@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pawel
Date: Mon Mar 31 10:50:14 2014
New Revision: 349721
URL: http://svnweb.freebsd.org/changeset/ports/349721
QAT: https://qat.redports.org/buildarchive/r349721/

Log:
  - Add staging support
  - Remove run dependency on javavmwrapper, it's pulled in by openjdk
  - Use PORTDATA instead of TMPPLIST hacks for plist creation
  - Define DOCS option

Modified:
  head/devel/fujaba/Makefile

Modified: head/devel/fujaba/Makefile
==============================================================================
--- head/devel/fujaba/Makefile	Mon Mar 31 10:36:02 2014	(r349720)
+++ head/devel/fujaba/Makefile	Mon Mar 31 10:50:14 2014	(r349721)
@@ -11,49 +11,36 @@ DISTNAME=	FujabaToolSuite_Developer${POR
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Another UML CASE tool
 
-RUN_DEPENDS=	java:${PORTSDIR}/java/javavmwrapper
-
 USES=		zip
 USE_JAVA=	yes
 JAVA_VERSION=	1.6+
 NO_BUILD=	yes
 WRKSRC=		${WRKDIR}/Fujaba\ Tool\ Suite\ ${PORTVERSION}
 
-DATAFILES=	DTDs Templates libs plugins stylesheets\
-		GNULesserGeneralPublicLicense.txt api.zip fujaba.jar src.jar
-
-PLIST_FILES=	bin/fujaba %%DATADIR%%/bin/fujaba.sh
+DATADIRS=	DTDs Templates libs plugins stylesheets
+DATAFILES=	GNULesserGeneralPublicLicense.txt api.zip fujaba.jar src.jar
 
-.if !defined(NOPORTDOCS)
+PLIST_FILES=	bin/fujaba
+PORTDATA=	*
 PORTDOCS=	*
-PLIST_FILES+=	%%DATADIR%%/doc
-.endif
 
 SUB_FILES=	fujaba.sh
 SUB_LIST=	LOCALBASE="${LOCALBASE}" DATADIR="${DATADIR}"
 
-NO_STAGE=	yes
+OPTIONS_DEFINE=	DOCS
+
+.include <bsd.port.options.mk>
+
 do-install:
-	${MKDIR} ${DATADIR}/bin
-	${INSTALL_SCRIPT} ${WRKDIR}/fujaba.sh ${DATADIR}/bin/
-	${LN} -s ${DATADIR}/bin/fujaba.sh ${PREFIX}/bin/fujaba
-	cd ${WRKSRC}/ \
-	  && ${FIND} ${DATAFILES} -type d -exec ${MKDIR} ${DATADIR}/{} \; \
-	  && ${FIND} ${DATAFILES} -type f -exec ${INSTALL_DATA} {} ${DATADIR}/{} \;
-.if !defined(NOPORTDOCS)
-	${MKDIR} ${DOCSDIR}
-	${LN} -s ${DOCSDIR} ${DATADIR}/doc
-	cd ${WRKSRC}/doc/ \
-	  && ${FIND} . -type d -exec ${MKDIR} ${DOCSDIR}/{} \; \
-	  && ${FIND} . -type f -exec ${INSTALL_DATA} {} ${DOCSDIR}/{} \;
+	@${MKDIR} ${STAGEDIR}${DATADIR}/bin
+	${INSTALL_SCRIPT} ${WRKDIR}/fujaba.sh ${STAGEDIR}${DATADIR}/bin
+	${LN} -s ${DATADIR}/bin/fujaba.sh ${STAGEDIR}${PREFIX}/bin/fujaba
+	(cd ${WRKSRC} && ${COPYTREE_SHARE} "${DATADIRS}" ${STAGEDIR}${DATADIR})
+	(cd ${WRKSRC} && ${INSTALL_DATA} ${DATAFILES} ${STAGEDIR}${DATADIR})
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
+.if ${PORT_OPTIONS:MDOCS}
+	${LN} -s ${DOCSDIR} ${STAGEDIR}${DATADIR}/doc
 .endif
 
-post-install:
-	@${FIND} -s ${DATAFILES:S,^,${WRKSRC}/,} -not -type d \
-	  | ${SED} -ne 's,^${WRKSRC},${DATADIR:S,^${PREFIX}/,,},p' >> ${TMPPLIST}
-	@${FIND} -s -d ${DATAFILES:S,^,${WRKSRC}/,} -type d \
-	  | ${SED} -ne 's,^${WRKSRC},@dirrm ${DATADIR:S,^${PREFIX}/,,},p' >> ${TMPPLIST}
-	@${ECHO_CMD} "@dirrm ${DATADIR:S,^${PREFIX}/,,}/bin" >> ${TMPPLIST}
-	@${ECHO_CMD} "@dirrm ${DATADIR:S,^${PREFIX}/,,}" >> ${TMPPLIST}
-
 .include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201403311050.s2VAoFhC029522>