1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

. Fixed 'make package' (see recent bento build logs)

. Use ${DATADIR} so no more %%T%% (as %%DATADIR%% is already in PLIST_SUB)
. Use ${ECHO_MSG} instead of ${ECHO_CMD}
. Use ${INSTALL_DATA} for documentation.
. bsd.java.mk 2.0 compliant

PR:		65621
Submitted by:	Herve Quiroz <herve.quiroz@esil.univ-mrs.fr> (maintainer)
This commit is contained in:
Greg Lewis 2004-04-16 15:58:02 +00:00
parent b3a94988db
commit 0238f2a0f4
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=107245
2 changed files with 1002 additions and 1002 deletions

View File

@ -16,17 +16,17 @@ MAINTAINER= herve.quiroz@esil.univ-mrs.fr
COMMENT= A Java-based RPG character generator and maintenance program
USE_ZIP= YES
USE_JAVA= 1.4+
USE_JAVA= YES
JAVA_VERSION= 1.4+
NO_BUILD= YES
WRKSRC= ${WRKDIR}
PORTDESTDIR= ${JAVASHAREDIR}/${PORTNAME}
DATADIR= ${JAVASHAREDIR}/${PORTNAME}
WRKDIRS= characters data lib outputsheets system
WRKDOCSDIR= ${WRKSRC}/docs
WRKSCRIPT= ${WRKSRC}/pcgen.bsd.sh
PLIST_SUB+= T=${PORTDESTDIR:S/^${PREFIX}//}
PLIST_FILES+= ${PORTDESTDIR:S/^${PREFIX}//}/filepaths.ini
PLIST_DIRS+= ${PORTDESTDIR:S/^${PREFIX}//}
PLIST_FILES+= ${DATADIR:S,^${PREFIX}/,,}/filepaths.ini
PLIST_DIRS+= ${DATADIR:S,^${PREFIX}/,,}
.if !defined(NOPORTDOCS)
PORTDOCS= acknowledgments faqpages gmgen greetings.html index.html \
@ -40,28 +40,28 @@ post-extract:
${RM} -rf ${WRKSRC}/lib/CVS
do-install:
@${ECHO_CMD} -n ">> Installing in ${PORTDESTDIR}..."
@${ECHO_MSG} -n ">> Installing in ${DATADIR}..."
.for SOMEDIR in ${WRKDIRS}
@cd ${WRKSRC} && ${FIND} ${SOMEDIR} -type d -exec ${MKDIR} ${PORTDESTDIR}/{} ";"
@cd ${WRKSRC} && ${FIND} ${SOMEDIR} -type f -exec ${INSTALL_DATA} {} ${PORTDESTDIR}/{} ";"
@${ECHO_CMD} -n " ${SOMEDIR}"
@cd ${WRKSRC} && ${FIND} ${SOMEDIR} -type d -exec ${MKDIR} ${DATADIR}/{} ";"
@cd ${WRKSRC} && ${FIND} ${SOMEDIR} -type f -exec ${INSTALL_DATA} {} ${DATADIR}/{} ";"
@${ECHO_MSG} -n " ${SOMEDIR}"
.endfor
@cd ${WRKSRC} && ${INSTALL_DATA} pcgen.jar ${PORTDESTDIR}
@${ECHO_CMD} -n " pcgen.jar"
@cd ${WRKSRC} && ${SED} "s|^java|${JAVA}|" pcgen.sh | ${SED} 's|`dirname $$0`|${PORTDESTDIR}|' > ${WRKSCRIPT}
@cd ${WRKSRC} && ${INSTALL_SCRIPT} ${WRKSCRIPT} ${PORTDESTDIR}/pcgen.sh
@${LN} -fs ${PORTDESTDIR}/pcgen.sh ${PREFIX}/bin/pcgen.sh
@${ECHO_CMD} -n " pcgen.sh"
@${ECHO_CMD} " [DONE]"
@${ECHO_CMD} -n ">> Configuring..."
@${ECHO_CMD} "pcgen.filepaths=user" > ${PORTDESTDIR}/filepaths.ini
@${ECHO_CMD} " [DONE]"
@cd ${WRKSRC} && ${INSTALL_DATA} pcgen.jar ${DATADIR}
@${ECHO_MSG} -n " pcgen.jar"
@cd ${WRKSRC} && ${SED} "s|^java|${JAVA}|" pcgen.sh | ${SED} 's|`dirname $$0`|${DATADIR}|' > ${WRKSCRIPT}
@cd ${WRKSRC} && ${INSTALL_SCRIPT} ${WRKSCRIPT} ${DATADIR}/pcgen.sh
@${LN} -fs ${DATADIR}/pcgen.sh ${PREFIX}/bin/pcgen.sh
@${ECHO_MSG} -n " pcgen.sh"
@${ECHO_MSG} " [DONE]"
@${ECHO_MSG} -n ">> Configuring..."
@${ECHO_MSG} "pcgen.filepaths=user" > ${DATADIR}/filepaths.ini
@${ECHO_MSG} " [DONE]"
.if !defined(NOPORTDOCS)
@${ECHO_CMD} -n ">> Installing documentation in ${DOCSDIR}..."
@${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}..."
@cd ${WRKDOCSDIR} && ${FIND} . -type d -exec ${MKDIR} ${DOCSDIR}/{} ";"
@cd ${WRKDOCSDIR} && ${FIND} . -type f -exec ${INSTALL_MAN} {} ${DOCSDIR}/{} ";"
@${ECHO_CMD} " [DONE]"
@cd ${WRKDOCSDIR} && ${FIND} . -type f -exec ${INSTALL_DATA} {} ${DOCSDIR}/{} ";"
@${ECHO_MSG} " [DONE]"
.endif
.include <bsd.port.mk>

File diff suppressed because it is too large Load Diff