aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornemysis <nemysis@FreeBSD.org>2013-10-06 01:58:04 +0800
committernemysis <nemysis@FreeBSD.org>2013-10-06 01:58:04 +0800
commit449cb036f426d6a6938717c54355719c3b21aece (patch)
tree6696a9c27a590d1aecc4aa4142530d5b69058be7
parentf365c197bf1cb9190e46c2190a34967d976cec60 (diff)
downloadfreebsd-ports-gnome-449cb036f426d6a6938717c54355719c3b21aece.tar.gz
freebsd-ports-gnome-449cb036f426d6a6938717c54355719c3b21aece.tar.zst
freebsd-ports-gnome-449cb036f426d6a6938717c54355719c3b21aece.zip
- 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)
-rw-r--r--finance/venice/Makefile78
-rw-r--r--finance/venice/distinfo6
-rw-r--r--finance/venice/files/venice.in9
-rw-r--r--finance/venice/pkg-descr2
-rw-r--r--finance/venice/pkg-plist10
5 files changed, 67 insertions, 38 deletions
diff --git a/finance/venice/Makefile b/finance/venice/Makefile
index 06ff40bee792..dcc2f0029659 100644
--- a/finance/venice/Makefile
+++ b/finance/venice/Makefile
@@ -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
+PORTDOCS= *
-PLIST_FILES= bin/venice \
- %%JAVAJARDIR%%/${JARFILE}
+DOCSRCDIR1= ${WRKSRC}
+DOC_FILES1= changelog.txt readme.txt
-# docs
-DOC_FILES= doc/manual.txt \
- doc/manual.html \
- changelog.txt \
- readme.txt
+DOCSRCDIR2= ${WRKSRC}/doc
+DOCSDIR2= ${DOCSDIR}/doc
+DOC_FILES2= manual.html manual.txt
-.ifndef(NOPORTDOCS)
-PORTDOCS= *
-.endif
+DATADIR= ${JAVASHAREDIR}/${PORTNAME}
-NO_STAGE= yes
-.include <bsd.port.pre.mk>
+SUB_FILES= ${PORTNAME}
-post-patch:
- ${REINPLACE_CMD} -e s,venice.jar,${JAVAJARDIR}/${JARFILE}, ${WRKSRC}/venice
+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}
+ ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
+ @${MKDIR} ${STAGEDIR}${DATADIR}
+ ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.jar ${STAGEDIR}${DATADIR}
+
+.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
-.endif
-# wrapper
- @${INSTALL_SCRIPT} ${WRKSRC}/venice ${PREFIX}/bin/
-# jar
- @${MKDIR} ${JAVAJARDIR}
- @${INSTALL_DATA} ${WRKSRC}/${JARFILE} ${JAVAJARDIR}/
-
-.include <bsd.port.post.mk>
+ ${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>
diff --git a/finance/venice/distinfo b/finance/venice/distinfo
index 739c3a5e3309..b1d051045db6 100644
--- a/finance/venice/distinfo
+++ b/finance/venice/distinfo
@@ -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
diff --git a/finance/venice/files/venice.in b/finance/venice/files/venice.in
new file mode 100644
index 000000000000..7759472641cd
--- /dev/null
+++ b/finance/venice/files/venice.in
@@ -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" "${@}"
diff --git a/finance/venice/pkg-descr b/finance/venice/pkg-descr
index 734c57543099..7a552e41ff50 100644
--- a/finance/venice/pkg-descr
+++ b/finance/venice/pkg-descr
@@ -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
diff --git a/finance/venice/pkg-plist b/finance/venice/pkg-plist
new file mode 100644
index 000000000000..b411d6e3588a
--- /dev/null
+++ b/finance/venice/pkg-plist
@@ -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%%