diff options
author | lioux <lioux@FreeBSD.org> | 2005-01-20 19:22:16 +0800 |
---|---|---|
committer | lioux <lioux@FreeBSD.org> | 2005-01-20 19:22:16 +0800 |
commit | da73a18d772d261a87a19e41165b0d0dfaa2d1a1 (patch) | |
tree | cf1c750ff8ab6509ad40eba247a174de23ffcda3 /finance/venice | |
parent | d2a3151265ce8d742ea20a257d9785d8cd768bc8 (diff) | |
download | freebsd-ports-gnome-da73a18d772d261a87a19e41165b0d0dfaa2d1a1.tar.gz freebsd-ports-gnome-da73a18d772d261a87a19e41165b0d0dfaa2d1a1.tar.zst freebsd-ports-gnome-da73a18d772d261a87a19e41165b0d0dfaa2d1a1.zip |
New port venice version 0.4alpha: Merchant Of Venice, a stock market
trading program
Diffstat (limited to 'finance/venice')
-rw-r--r-- | finance/venice/Makefile | 76 | ||||
-rw-r--r-- | finance/venice/distinfo | 2 | ||||
-rw-r--r-- | finance/venice/files/wrapper.sh | 16 | ||||
-rw-r--r-- | finance/venice/pkg-descr | 10 |
4 files changed, 104 insertions, 0 deletions
diff --git a/finance/venice/Makefile b/finance/venice/Makefile new file mode 100644 index 000000000000..c3cbf19fbbb3 --- /dev/null +++ b/finance/venice/Makefile @@ -0,0 +1,76 @@ +# New ports collection makefile for: Merchant Of Venice +# Date created: Thu Jan 20 03:24:01 UTC 2005 +# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= venice +DISTVERSION= 0.4alpha +CATEGORIES= finance java +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= mov +DISTNAME= ${PORTNAME}-${DISTVERSION} + +MAINTAINER= lioux@FreeBSD.org +COMMENT= Merchant Of Venice, a stock market trading program + +USE_JAVA= yes +JAVA_VERSION= 1.4+ +USE_ANT= yes +ALL_TARGET= build jar + +USE_REINPLACE= yes + +BUILD_WRKSRC= ${WRKDIR}/${DISTNAME}/build + +JARFILE= ${PORTNAME}.jar + +PLIST_FILES= \ + bin/${PKGNAMEPREFIX}${PORTNAME} \ + %%JAVAJARDIR%%/${JARFILE} + +# docs +DOC_FILES= \ + changelog.txt \ + readme.txt + +.ifndef(NOPORTDOCS) +PORTDOCS= \ + * +.endif + +post-extract: +# extract docs + @cd ${BUILD_WRKSRC}/src && ${JAR} -xf ${WRKSRC}/venice.jar org/mov/help/doc + @cd ${BUILD_WRKSRC}/src && ${JAR} -xf ${WRKSRC}/venice.jar org/mov/quote/samples + @cd ${BUILD_WRKSRC} && ${JAR} -xf ${WRKSRC}/venice.jar META-INF + @${MV} ${BUILD_WRKSRC}/META-INF/MANIFEST.MF ${BUILD_WRKSRC}/src + +post-patch: + @${REINPLACE_CMD} -E \ + -e 's|(build),[[:space:]]*doc|\1|' \ + ${BUILD_WRKSRC}/build.xml + @${SED} -E \ + -e "s|%%JAVAVM%%|${LOCALBASE}/bin/java|" \ + -e "s|%%JAVA_VERSION%%|${JAVA_VERSION}|" \ + -e "s|%%JAVAJARDIR%%|${JAVAJARDIR}|" \ + -e "s|%%JARFILE%%|${JARFILE}|" \ + ${FILESDIR}/wrapper.sh > ${WRKDIR}/wrapper.sh + +do-install: +# docs +.ifndef(NOPORTDOCS) + @${MKDIR} ${DOCSDIR} +.for doc in ${DOC_FILES} + @${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR} +.endfor +.endif +# wrapper + @${INSTALL_SCRIPT} ${WRKDIR}/wrapper.sh \ + ${PREFIX}/bin/${PORTNAME} +# jar + @${MKDIR} ${JAVAJARDIR} + @${INSTALL_DATA} ${BUILD_WRKSRC}/${JARFILE} ${JAVAJARDIR}/${JARFILE} + +.include <bsd.port.mk> diff --git a/finance/venice/distinfo b/finance/venice/distinfo new file mode 100644 index 000000000000..66fa648e02e5 --- /dev/null +++ b/finance/venice/distinfo @@ -0,0 +1,2 @@ +MD5 (venice-0.4alpha.tar.gz) = 290edc362800cbf02486c5d88b2e1ef0 +SIZE (venice-0.4alpha.tar.gz) = 1117879 diff --git a/finance/venice/files/wrapper.sh b/finance/venice/files/wrapper.sh new file mode 100644 index 000000000000..6424008ae15f --- /dev/null +++ b/finance/venice/files/wrapper.sh @@ -0,0 +1,16 @@ +#!/bin/sh +# +# Under a BSDL license. Copyright by Mario S F Ferreira <lioux@FreeBSD.org> +# $FreeBSD$ + +export JAVA_VERSION + +# java +JAVAVM="%%JAVAVM%%" +JAVA_VERSION="%%JAVA_VERSION%%" +JAVAJARDIR="%%JAVAJARDIR%%" +JARFILE="%%JARFILE%%" + +exec ${JAVAVM} \ + -jar ${JAVAJARDIR}/${JARFILE} \ + "${@}" diff --git a/finance/venice/pkg-descr b/finance/venice/pkg-descr new file mode 100644 index 000000000000..d120dd566dad --- /dev/null +++ b/finance/venice/pkg-descr @@ -0,0 +1,10 @@ +[ 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 +graphical user interface with online help and has full documentation. + +WWW: http://mov.sourceforge.net/ + +-- lioux@FreeBSD.org |