blob: c0897b94fc583026cad113ec57281f5d6f0c0d2a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
# Created by: Stefan Schmidt <stefan.schmidt@stadtbuch.de>
# $FreeBSD$
PORTNAME= isql-viewer
PORTVERSION= 2.1.8
PORTREVISION= 4
CATEGORIES= databases java
MASTER_SITES= SF/isql/Stand%20Alone%20Jars/Version%20${PORTVERSION}:isql \
APACHE/ws/soap/version-2.2:bsf
DISTFILES= ${ISQL_JAR}:isql \
${BSF_JAR}:bsf
EXTRACT_ONLY= # none
MAINTAINER= ports@FreeBSD.org
COMMENT= JDBC 2.x compliant database front end
RUN_DEPENDS= ${JYTHON_PREFIX}/${JYTHON_JAR}:lang/jython \
${JAVALIBDIR}/postgresql.jar:databases/postgresql-jdbc \
${JAVALIBDIR}/mysql-connector-java.jar:databases/mysql-connector-java
USE_JAVA= yes
JAVA_VERSION= 1.6+
NO_BUILD= yes
ISQL= iSQL-Viewer
ISQL_JAR= ${ISQL}-${PORTVERSION}.jar
DEST_ISQL_JAR= ${ISQL}.jar
BSF_JAR= bsf.jar
DEST_BSF_JAR= ibm-${BSF_JAR}
JYTHON_PREFIX= ${LOCALBASE}/lib/jython
JYTHON_JAR= jython.jar
JARFILES= ${DEST_ISQL_JAR} \
${DEST_BSF_JAR}
PLIST_FILES= bin/iSQL-Viewer \
${JARFILES:S,^,%%JAVAJARDIR%%/,}
JAR_DEPENDS= mysql-connector-java.jar \
postgresql.jar
CLASSPATH= "${JARFILES:S,^,${JAVAJARDIR}/,}:${JYTHON_PREFIX}/${JYTHON_JAR}:${JAR_DEPENDS:S,^,${JAVALIBDIR}/,:S| |:|g}"
do-configure:
@${SED} -e 's|%%CLASSPATH%%|${CLASSPATH:C,[[:space:]],:,g}|g' \
-e 's|%%JAVA_VERSION%%|${JAVA_VERSION}|g' \
${FILESDIR}/iSQL-Viewer.sh > ${WRKDIR}/iSQL-Viewer.sh
do-install:
${INSTALL_DATA} ${_DISTDIR}${ISQL_JAR} ${STAGEDIR}${JAVAJARDIR}/${DEST_ISQL_JAR}
${INSTALL_DATA} ${_DISTDIR}${BSF_JAR} ${STAGEDIR}${JAVAJARDIR}/${DEST_BSF_JAR}
${INSTALL_SCRIPT} ${WRKDIR}/iSQL-Viewer.sh ${STAGEDIR}${PREFIX}/bin/iSQL-Viewer
.include <bsd.port.mk>
|