1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-25 09:34:11 +00:00

- build from java source

- add README for Port Documentation
- take maintainership
This commit is contained in:
Jason Helfman 2013-01-02 18:16:41 +00:00
parent 56a15bbbdc
commit afd48098ca
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=309827
2 changed files with 17 additions and 6 deletions

View File

@ -3,34 +3,42 @@
PORTNAME= jchessboard
PORTVERSION= 1.5
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= games java
MASTER_SITES= SF
DISTNAME= JChessBoard-${PORTVERSION}
EXTRACT_SUFX= .tgz
MAINTAINER= ports@FreeBSD.org
MAINTAINER= jgh@FreeBSD.org
COMMENT= Chess game and PGN viewer/editor written in Java
LICENSE= GPLv2
USE_JAVA= yes
JAVA_VERSION= 1.6+
USE_ANT= yes
DATADIR= ${JAVASHAREDIR}/${PORTNAME}
PLIST_FILES= bin/${PORTNAME} \
%%DATADIR%%/${JARFILE}
PLIST_DIRS= %%DATADIR%%
SUB_FILES= ${PORTNAME}
SUB_LIST+= JARFILE=${JARFILE} \
PORTNAME=${PORTNAME}
PORTDOCS= *
JARFILE= JChessBoard.jar
do-build:
@(${ECHO_CMD} "#!${SH}"; \
${ECHO_CMD} "${JAVA} -jar ${DATADIR}/${JARFILE}") \
> ${WRKDIR}/${PORTNAME}
.include <bsd.port.options.mk>
do-install:
@${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin
@${MKDIR} ${DATADIR}
@${INSTALL_DATA} ${WRKSRC}/${JARFILE} ${DATADIR}
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
#!/bin/sh
JAVA_VERSION="%%JAVA_VERSION%%" "%%LOCALBASE%%/bin/java" -jar "%%JAVASHAREDIR%%/%%PORTNAME%%/%%JARFILE%%"