aboutsummaryrefslogtreecommitdiff
path: root/databases/mysql-connector-java
diff options
context:
space:
mode:
authorHerve Quiroz <hq@FreeBSD.org>2005-07-06 16:10:23 +0000
committerHerve Quiroz <hq@FreeBSD.org>2005-07-06 16:10:23 +0000
commit2f524a5c53e6c37bce7e8a9e4f007378a3420594 (patch)
treef80f252e422444af179a906656e37cb732453c66 /databases/mysql-connector-java
parent7a3f855baaf58c670b017948c3b8c079be4dfadb (diff)
downloadports-2f524a5c53e6c37bce7e8a9e4f007378a3420594.tar.gz
ports-2f524a5c53e6c37bce7e8a9e4f007378a3420594.zip
Notes
Diffstat (limited to 'databases/mysql-connector-java')
-rw-r--r--databases/mysql-connector-java/Makefile31
-rw-r--r--databases/mysql-connector-java/distinfo4
-rw-r--r--databases/mysql-connector-java/files/patch-build.xml28
3 files changed, 40 insertions, 23 deletions
diff --git a/databases/mysql-connector-java/Makefile b/databases/mysql-connector-java/Makefile
index ad2e1cf7ab4c..b08afee342bf 100644
--- a/databases/mysql-connector-java/Makefile
+++ b/databases/mysql-connector-java/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= mysql-connector-java
-PORTVERSION= 3.1.8
+PORTVERSION= 3.1.10
CATEGORIES= databases java
MASTER_SITES= ${MASTER_SITE_MYSQL}
MASTER_SITE_SUBDIR= Connector-J
@@ -24,9 +24,9 @@ BUILD_DEPENDS= ${JAVALIBDIR}/junit.jar:${PORTSDIR}/java/junit \
USE_JAVA= yes
USE_ANT= yes
JAVA_VERSION= 1.4+
-ALL_TARGET= clean compile-driver
+ALL_TARGET= clean dist
MAKE_ARGS= -Djavalibdir=${JAVALIBDIR}
-BUILDDIR= ${WRKDIR}/build-mysql-jdbc/${DISTNAME}
+BUILDDIR= ${WRKDIR}/${DISTNAME}/build/${DISTNAME}
.else
@@ -37,14 +37,16 @@ BUILDDIR= ${WRKDIR}/${DISTNAME}
.endif
APIDOCSDIR= ${DOCSDIR}/javadoc
+SRCDIR= ${WRKDIR}/${DISTNAME}/src
+JAVADOCDIR= ${WRKDIR}/${DISTNAME}/javadoc
DESTJARFILE= ${PORTNAME}.jar
EXTRAJARS= jdbc2_0-stdext.jar jta-spec1_0_1.jar
-EXTRADOCS= README CHANGES
+EXTRADOCS= README CHANGES docs/index.html docs/connector-j-en.pdf
JARFILE= ${DISTNAME}-bin.jar
-JDCLASSPATH= ${WRKSRC}:${WRKSRC}/lib/jdbc2_0-stdext.jar:${WRKSRC}/lib/jta-spec1_0_1.jar:${CLASSPATH}
+JDCLASSPATH= ${SRCDIR}:${SRCDIR}/lib/jdbc2_0-stdext.jar:${SRCDIR}/lib/jta-spec1_0_1.jar:${CLASSPATH}
PLIST_FILES= %%JAVAJARDIR%%/jdbc2_0-stdext.jar \
- %%JAVAJARDIR%%/jta-spec1_0_1.jar \
+ %%JAVAJARDIR%%/jta-spec1_0_1.jar \
%%JAVAJARDIR%%/mysql-connector-java.jar
.if !defined(NOPORTDOCS)
@@ -67,9 +69,9 @@ post-build:
do-build:
.endif
.if !defined(NOPORTDOCS)
- @${MKDIR} ${BUILDDIR}/doc && (cd ${BUILD_WRKSRC}; \
- ${JAVADOC} -d ${BUILDDIR}/doc -package \
- -classpath ${JDCLASSPATH} \
+ @${MKDIR} ${JAVADOCDIR} && (cd ${SRCDIR}; \
+ ${JAVADOC} -d ${JAVADOCDIR} -package \
+ -classpath ${JDCLASSPATH} \
com.mysql.jdbc org.gjt.mm.mysql)
.endif
@@ -77,10 +79,9 @@ do-install: do-install-jar do-install-apidocs
do-install-jar:
@${ECHO_MSG} -n ">> Installing .jar files..."
- @${MKDIR} ${JAVAJARDIR}
@${INSTALL_DATA} ${BUILDDIR}/${JARFILE} ${JAVAJARDIR}/${DESTJARFILE}
- @for extrajar in ${EXTRAJARS} ; do \
- ${INSTALL_DATA} ${INSTALL_WRKSRC}/lib/$$extrajar ${JAVAJARDIR} ; \
+ @for extrajar in ${EXTRAJARS} ; do \
+ ${INSTALL_DATA} ${INSTALL_WRKSRC}/src/lib/$$extrajar ${JAVAJARDIR} ; \
done
@${ECHO_MSG} " [ DONE ]"
@@ -88,9 +89,9 @@ do-install-apidocs:
.if !defined(NOPORTDOCS)
@${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}..."
@${MKDIR} ${APIDOCSDIR}
- @${CP} -r ${BUILDDIR}/doc/* ${APIDOCSDIR}
- @for extradoc in ${EXTRADOCS} ; do \
- ${INSTALL_DATA} ${BUILDDIR}/$$extradoc ${DOCSDIR} ; \
+ @${CP} -r ${JAVADOCDIR}/* ${APIDOCSDIR}
+ @for extradoc in ${EXTRADOCS} ; do \
+ ${INSTALL_DATA} ${INSTALL_WRKSRC}/$$extradoc ${DOCSDIR} ; \
done
@${ECHO_MSG} " [ DONE ]"
.endif
diff --git a/databases/mysql-connector-java/distinfo b/databases/mysql-connector-java/distinfo
index 30a5ff117eb7..e72ff679ed63 100644
--- a/databases/mysql-connector-java/distinfo
+++ b/databases/mysql-connector-java/distinfo
@@ -1,2 +1,2 @@
-MD5 (mysql-connector-java-3.1.8.tar.gz) = d1c2b08184290e34c2c9a82945e257b2
-SIZE (mysql-connector-java-3.1.8.tar.gz) = 7490467
+MD5 (mysql-connector-java-3.1.10.tar.gz) = 337f7f31e726fb615d3f4f062030d1b5
+SIZE (mysql-connector-java-3.1.10.tar.gz) = 6892037
diff --git a/databases/mysql-connector-java/files/patch-build.xml b/databases/mysql-connector-java/files/patch-build.xml
index 51cac6676245..1d840e51502e 100644
--- a/databases/mysql-connector-java/files/patch-build.xml
+++ b/databases/mysql-connector-java/files/patch-build.xml
@@ -1,14 +1,30 @@
---- build.xml~ Thu Dec 23 19:37:39 2004
-+++ build.xml Wed Jan 12 12:59:16 2005
-@@ -60,6 +60,11 @@
+$FreeBSD$
+
+--- build.xml.orig Thu Jun 23 00:29:13 2005
++++ build.xml Tue Jul 5 23:08:11 2005
+@@ -57,12 +57,13 @@
+ </path>
+
+ <path id="project.build.classpath">
+- <fileset dir="${buildDir}/${fullProdName}/lib-nodist">
++ <fileset dir="${buildDir}/${fullProdName}/lib">
<include name="**/*.jar"/>
</fileset>
+- <fileset dir="${buildDir}/${fullProdName}/lib">
+- <include name="**/*.jar"/>
+ <fileset dir="${javalibdir}">
+ <include name="junit.jar"/>
+ <include name="log4j.jar"/>
-+ </fileset>
-+
+ </fileset>
+
<pathelement location="${buildDir}/${fullProdName}" />
- </path>
+@@ -253,7 +254,7 @@
+ includes="**/*.class,**/*.properties*,COPYING,README"
+ excludes="testsuite/**"
+ index="true"
+- manifest="${buildDir}/MANIFEST.MF"/>
++ manifest="${buildDir}/META-INF/MANIFEST.MF"/>
+ </target>
+ <target name="dist-trace" depends="init, compile-driver-trace">