mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-18 08:02:48 +00:00
- Update to 0.751beta
- Add master sites and icons - Pass maintainership to submitter - Add license (GPLv2) - Use pkg-plist instead of PLIST_FILES - Change docs and add DOCS Option - Add Desktop entry file Approved by: wg/pawel (mentors)
This commit is contained in:
parent
7c59d28f6c
commit
4ed44ba015
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=329485
@ -2,52 +2,62 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= venice
|
||||
DISTVERSION= 0.71beta
|
||||
DISTVERSION= 0.751beta
|
||||
CATEGORIES= finance java
|
||||
MASTER_SITES= SF/mov/${PORTNAME}/0.71%20beta
|
||||
DISTNAME= ${PORTNAME}-${DISTVERSION}
|
||||
MASTER_SITES= SF/mov/${PORTNAME}/0.751%20beta/ \
|
||||
SF/nemysisfreebsdp/:icons
|
||||
DISTFILES= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} \
|
||||
${PORTNAME}_icons${EXTRACT_SUFX}:icons
|
||||
DIST_SUBDIR= java
|
||||
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
MAINTAINER= nemysis@FreeBSD.org
|
||||
COMMENT= Merchant Of Venice, a stock market trading program
|
||||
|
||||
NO_BUILD= yes
|
||||
LICENSE= GPLv2
|
||||
|
||||
USE_JAVA= yes
|
||||
JAVA_RUN= yes
|
||||
JAVA_VERSION= 1.6+
|
||||
NO_BUILD= yes
|
||||
|
||||
JARFILE= ${PORTNAME}.jar
|
||||
|
||||
PLIST_FILES= bin/venice \
|
||||
%%JAVAJARDIR%%/${JARFILE}
|
||||
|
||||
# docs
|
||||
DOC_FILES= doc/manual.txt \
|
||||
doc/manual.html \
|
||||
changelog.txt \
|
||||
readme.txt
|
||||
|
||||
.ifndef(NOPORTDOCS)
|
||||
PORTDOCS= *
|
||||
.endif
|
||||
|
||||
NO_STAGE= yes
|
||||
.include <bsd.port.pre.mk>
|
||||
DOCSRCDIR1= ${WRKSRC}
|
||||
DOC_FILES1= changelog.txt readme.txt
|
||||
|
||||
post-patch:
|
||||
${REINPLACE_CMD} -e s,venice.jar,${JAVAJARDIR}/${JARFILE}, ${WRKSRC}/venice
|
||||
DOCSRCDIR2= ${WRKSRC}/doc
|
||||
DOCSDIR2= ${DOCSDIR}/doc
|
||||
DOC_FILES2= manual.html manual.txt
|
||||
|
||||
DATADIR= ${JAVASHAREDIR}/${PORTNAME}
|
||||
|
||||
SUB_FILES= ${PORTNAME}
|
||||
|
||||
INSTALLS_ICONS= yes
|
||||
ICON_SIZES= 32x32 48x48 64x64 72x72 96x96 128x128
|
||||
|
||||
DESKTOP_ENTRIES="Venice" "${COMMENT}" "${PORTNAME}" \
|
||||
"${PORTNAME}" "Office;Finance;" false
|
||||
|
||||
OPTIONS_DEFINE= DOCS
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
do-install:
|
||||
# docs
|
||||
.ifndef(NOPORTDOCS)
|
||||
@${MKDIR} ${DOCSDIR}
|
||||
.for doc in ${DOC_FILES}
|
||||
@${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
|
||||
.endfor
|
||||
.endif
|
||||
# wrapper
|
||||
@${INSTALL_SCRIPT} ${WRKSRC}/venice ${PREFIX}/bin/
|
||||
# jar
|
||||
@${MKDIR} ${JAVAJARDIR}
|
||||
@${INSTALL_DATA} ${WRKSRC}/${JARFILE} ${JAVAJARDIR}/
|
||||
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
|
||||
@${MKDIR} ${STAGEDIR}${DATADIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.jar ${STAGEDIR}${DATADIR}
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
.for s in ${ICON_SIZES}
|
||||
@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}/apps/
|
||||
${INSTALL_DATA} ${WRKDIR}/${PORTNAME}_${s}.png \
|
||||
${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}/apps/${PORTNAME}.png
|
||||
.endfor
|
||||
${LN} -sf ${PREFIX}/share/icons/hicolor/48x48/apps/${PORTNAME}.png \
|
||||
${STAGEDIR}${PREFIX}/share/pixmaps/
|
||||
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
${INSTALL_DATA} ${DOC_FILES1:S|^|${DOCSRCDIR1}/|} ${STAGEDIR}${DOCSDIR}
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR2}
|
||||
${INSTALL_DATA} ${DOC_FILES2:S|^|${DOCSRCDIR2}/|} ${STAGEDIR}${DOCSDIR2}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,2 +1,4 @@
|
||||
SHA256 (venice-0.71beta.tar.gz) = fd5e1dfc069d194b27c9566c3fd3a627a4f839589390b7426ad5255341d40ca5
|
||||
SIZE (venice-0.71beta.tar.gz) = 3553122
|
||||
SHA256 (java/venice-0.751beta.tar.gz) = 47005ab8dd013f24828f969f086a7249876f50c10445c4229431f721a26379d0
|
||||
SIZE (java/venice-0.751beta.tar.gz) = 4187889
|
||||
SHA256 (java/venice_icons.tar.gz) = 88d377528717a6a1a98a705f3e46fd0f818dd5f3aa3ad25122361127ee9b9858
|
||||
SIZE (java/venice_icons.tar.gz) = 92672
|
||||
|
9
finance/venice/files/venice.in
Normal file
9
finance/venice/files/venice.in
Normal file
@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
export JAVA_VERSION="%%JAVA_VERSION%%"
|
||||
|
||||
cd "%%DATADIR%%" && exec "%%LOCALBASE%%/bin/java" \
|
||||
-Djava.ext.dirs="%%DATADIR%%" -jar "%%DATADIR%%/venice.jar" "${@}"
|
@ -1,5 +1,3 @@
|
||||
[ excerpt taken from developer's web site ]
|
||||
|
||||
Venice is a stock market trading program that supports portfolio
|
||||
management, charting, technical analysis, paper trading and
|
||||
experimental methods like genetic programming. Venice runs in a
|
||||
|
10
finance/venice/pkg-plist
Normal file
10
finance/venice/pkg-plist
Normal file
@ -0,0 +1,10 @@
|
||||
bin/venice
|
||||
share/icons/hicolor/128x128/apps/venice.png
|
||||
share/icons/hicolor/32x32/apps/venice.png
|
||||
share/icons/hicolor/48x48/apps/venice.png
|
||||
share/icons/hicolor/64x64/apps/venice.png
|
||||
share/icons/hicolor/72x72/apps/venice.png
|
||||
share/icons/hicolor/96x96/apps/venice.png
|
||||
%%DATADIR%%/venice.jar
|
||||
share/pixmaps/venice.png
|
||||
@dirrm %%DATADIR%%
|
Loading…
Reference in New Issue
Block a user