aboutsummaryrefslogtreecommitdiffstats
path: root/databases
diff options
context:
space:
mode:
authorhq <hq@FreeBSD.org>2005-07-07 00:10:23 +0800
committerhq <hq@FreeBSD.org>2005-07-07 00:10:23 +0800
commit21370274bb489a7112076ce163030ddb3d06e8f3 (patch)
treedfaf59fc7d4b3fb5b1609019f61142d42512af85 /databases
parent350ef4c1826dd8d0880425263f9ce88170ec1868 (diff)
downloadfreebsd-ports-gnome-21370274bb489a7112076ce163030ddb3d06e8f3.tar.gz
freebsd-ports-gnome-21370274bb489a7112076ce163030ddb3d06e8f3.tar.zst
freebsd-ports-gnome-21370274bb489a7112076ce163030ddb3d06e8f3.zip
- Update to 3.1.10 [1]
- Don't try to mkdir ${JAVAJARDIR} as it has been part of mtree for more than 3 years now PR: 83059 [1] Submitted by: maintainer [1]
Diffstat (limited to 'databases')
-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
-rw-r--r--databases/mysql-connector-java50/Makefile31
-rw-r--r--databases/mysql-connector-java50/distinfo4
-rw-r--r--databases/mysql-connector-java50/files/patch-build.xml28
6 files changed, 80 insertions, 46 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">
diff --git a/databases/mysql-connector-java50/Makefile b/databases/mysql-connector-java50/Makefile
index ad2e1cf7ab4c..b08afee342bf 100644
--- a/databases/mysql-connector-java50/Makefile
+++ b/databases/mysql-connector-java50/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-java50/distinfo b/databases/mysql-connector-java50/distinfo
index 30a5ff117eb7..e72ff679ed63 100644
--- a/databases/mysql-connector-java50/distinfo
+++ b/databases/mysql-connector-java50/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-java50/files/patch-build.xml b/databases/mysql-connector-java50/files/patch-build.xml
index 51cac6676245..1d840e51502e 100644
--- a/databases/mysql-connector-java50/files/patch-build.xml
+++ b/databases/mysql-connector-java50/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">