eb96de0656
prevent massive PORTREVISION bumps. Bump dependent ports that have not been bumped since.
87 lines
2.6 KiB
Makefile
87 lines
2.6 KiB
Makefile
# Created by: Yoshihiko Sarumaru <mistral@imasy.or.jp>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= astah
|
|
PORTVERSION= 6.9.0
|
|
PORTREVISION= 1
|
|
CATEGORIES= devel java
|
|
MASTER_SITES= #
|
|
PKGNAMESUFFIX= -community
|
|
DISTNAME= ${PORTNAME}${PKGNAMESUFFIX}-${PORTVERSION:S!.!_!g}-${REVISION}
|
|
|
|
MAINTAINER= tota@FreeBSD.org
|
|
COMMENT= Java/UML Object-Oriented Design Tool
|
|
|
|
LICENSE= EULA
|
|
LICENSE_NAME= End User License Agreement
|
|
LICENSE_TEXT= ${RESTRICTED}
|
|
LICENSE_PERMS= no-dist-mirror no-dist-sell no-pkg-mirror no-pkg-sell no-auto-accept
|
|
|
|
RESTRICTED= License restrictions -- See http://astah.net/faq/community/enduser-license-agreement
|
|
|
|
USES= zip
|
|
USE_JAVA= yes
|
|
JAVA_VERSION= 1.7+
|
|
REVISION= b4c6e9
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}${PKGNAMESUFFIX:S!-!_!}
|
|
|
|
PORTDOCS= API_sample_program_license_agreement.txt \
|
|
API_sample_program_license_agreement_ja.txt \
|
|
CommandRunner.html CommandRunner_ja.html \
|
|
ProductInformation.txt \
|
|
api
|
|
PORTEXAMPLES= astah-key.properties_org Sample.asta
|
|
PORTDATA= astah-community.jar astah-api.jar astah-gui_en.properties_org \
|
|
astah.ico astah-doc.ico \
|
|
lib template
|
|
|
|
NO_BUILD= yes
|
|
|
|
PLIST_FILES= bin/astah bin/astah-command.sh
|
|
|
|
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}${PKGNAMESUFFIX}
|
|
EXAMPLESDIR= ${PREFIX}/share/examples/${PORTNAME}${PKGNAMESUFFIX}
|
|
DATADIR= ${JAVASHAREDIR}/${PORTNAME}${PKGNAMESUFFIX}
|
|
|
|
REINPLACE_ARGS= -i ""
|
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX})
|
|
DOWNLOAD_URL= http://members.change-vision.com/files/${PORTNAME}${PKGNAMESUFFIX:S!-!_!}/${PORTVERSION:S!.!_!g}/${DISTFILES}
|
|
IGNORE= needs you to fetch manually the distribution file\
|
|
from ${DOWNLOAD_URL}, \
|
|
then place it in ${DISTDIR} and run make again
|
|
.endif
|
|
|
|
post-patch:
|
|
.for script in ${PLIST_FILES:S!bin/!!}
|
|
@${REINPLACE_CMD} -e "s!%%JAVA_HOME%%!${JAVA_HOME}!g; \
|
|
s!%%DATADIR%%!${DATADIR}!" \
|
|
${WRKSRC}/${script}
|
|
.endfor
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
@${REINPLACE_CMD} 's/png\\/png\//' ${WRKSRC}/api/en/doc/astahAPI_reference.html
|
|
.endif
|
|
|
|
do-install:
|
|
.for script in ${PLIST_FILES:S!bin/!!}
|
|
${INSTALL_SCRIPT} ${WRKSRC}/${script} ${STAGEDIR}${PREFIX}/bin
|
|
.endfor
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}
|
|
(cd ${WRKSRC} && ${COPYTREE_SHARE} "${PORTDATA}" ${STAGEDIR}${DATADIR})
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
.for docfile in ${PORTDOCS:Napi}
|
|
${INSTALL_DATA} ${WRKSRC}/${docfile} ${STAGEDIR}${DOCSDIR}
|
|
.endfor
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}/api
|
|
(cd ${WRKSRC}/api && ${COPYTREE_SHARE} \* ${STAGEDIR}${DOCSDIR}/api)
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
.for examplefile in ${PORTEXAMPLES}
|
|
${INSTALL_DATA} ${WRKSRC}/${examplefile} ${STAGEDIR}${EXAMPLESDIR}
|
|
.endfor
|
|
|
|
.include <bsd.port.post.mk>
|