1: Upgrade to 1.6.

2: Install binary version. (maven fetch issue)
This commit is contained in:
Vanilla I. Shu 2015-01-13 14:01:57 +00:00
parent 263946d047
commit 05f0f7a4fa
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=376933
3 changed files with 13 additions and 60 deletions

View file

@ -2,44 +2,40 @@
# $FreeBSD$ # $FreeBSD$
PORTNAME= commons-dbutils PORTNAME= commons-dbutils
PORTVERSION= 1.1 PORTVERSION= 1.6
PORTREVISION= 2
CATEGORIES= databases java CATEGORIES= databases java
MASTER_SITES= ${MASTER_SITE_APACHE_COMMONS_SOURCE} MASTER_SITES= ${MASTER_SITE_APACHE_COMMONS_BINARIES}
MASTER_SITE_SUBDIR= ${PORTNAME:S,commons-,,} MASTER_SITE_SUBDIR= ${PORTNAME:S,commons-,,}
PKGNAMEPREFIX= jakarta- PKGNAMEPREFIX= jakarta-
DISTNAME= ${PORTNAME}-${PORTVERSION}-src DISTNAME= ${PORTNAME}-${PORTVERSION}-bin
MAINTAINER= ports@FreeBSD.org MAINTAINER= ports@FreeBSD.org
COMMENT= JDBC helper library COMMENT= JDBC helper library
BUILD_DEPENDS= ${JAVALIBDIR}/junit.jar:${PORTSDIR}/java/junit LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
USE_JAVA= yes USE_JAVA= yes
JAVA_VERSION= 1.6+ JAVA_VERSION= 1.6+
USE_ANT= yes NO_BUILD= yes
ALL_TARGET= dist WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}-src
PLIST_FILES= %%JAVAJARDIR%%/${PORTNAME}.jar PLIST_FILES= %%JAVAJARDIR%%/${PORTNAME}.jar
OPTIONS_DEFINE= DOCS OPTIONS_DEFINE= DOCS
PORTDOCS= LICENSE.txt api PORTDOCS= *
post-patch:
${REINPLACE_CMD} -e 's|%%JAVALIBDIR%%|${JAVALIBDIR}|' ${WRKSRC}/build.xml
do-install: do-install:
@${ECHO_MSG} -n ">> Installing JAR as ${JAVAJARDIR}/${PORTNAME}.jar..." @${ECHO_MSG} -n ">> Installing JAR as ${JAVAJARDIR}/${PORTNAME}.jar..."
@${INSTALL_DATA} ${WRKSRC}/dist/commons-dbutils-1.1.jar \ ${INSTALL_DATA} ${WRKSRC}/commons-dbutils-1.6.jar \
${STAGEDIR}${JAVAJARDIR}/${PORTNAME}.jar ${STAGEDIR}${JAVAJARDIR}/${PORTNAME}.jar
@${ECHO_MSG} " [DONE]" @${ECHO_MSG} " [DONE]"
@${ECHO_MSG} -n ">> Installing documentation..." @${ECHO_MSG} -n ">> Installing documentation..."
@${MKDIR} ${STAGEDIR}${DOCSDIR} @${MKDIR} ${STAGEDIR}${DOCSDIR}
@cd ${WRKSRC}/dist/docs && ${FIND} api \ @cd ${WRKSRC}/apidocs && ${FIND} . \
| ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${STAGEDIR}${DOCSDIR} > /dev/null 2>&1 | ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${STAGEDIR}${DOCSDIR} > /dev/null 2>&1
@${INSTALL_DATA} ${WRKSRC}/dist/LICENSE.txt \ ${INSTALL_DATA} ${WRKSRC}/LICENSE.txt \
${STAGEDIR}${DOCSDIR}/ ${STAGEDIR}${DOCSDIR}/
@${ECHO_MSG} " [DONE]" @${ECHO_MSG} " [DONE]"

View file

@ -1,2 +1,2 @@
SHA256 (commons-dbutils-1.1-src.tar.gz) = 645f79936bb90c5ed02fd4d1ddbc15b23e22a468ab0df22771f2b78fe8d49a59 SHA256 (commons-dbutils-1.6-bin.tar.gz) = 9050f29ca14a8967f34360d06919a55e7a151e38502131fae492709d0bb93580
SIZE (commons-dbutils-1.1-src.tar.gz) = 60062 SIZE (commons-dbutils-1.6-bin.tar.gz) = 567770

View file

@ -1,43 +0,0 @@
--- build.xml.orig 2008-09-10 14:27:27.000000000 +0200
+++ build.xml 2008-09-10 14:28:28.000000000 +0200
@@ -24,7 +24,7 @@
<project default="jar" name="commons-dbutils" basedir=".">
<property name="defaulttargetdir" value="target">
</property>
- <property name="libdir" value="target/lib">
+ <property name="libdir" value="%%JAVALIBDIR%%">
</property>
<property name="classesdir" value="target/classes">
</property>
@@ -39,14 +39,12 @@
<property name="final.name" value="commons-dbutils-1.1">
</property>
<target name="init" description="o Initializes some properties">
- <mkdir dir="${libdir}">
- </mkdir>
<condition property="noget">
<equals arg2="only" arg1="${build.sysclasspath}">
</equals>
</condition>
</target>
- <target name="compile" description="o Compile the code" depends="get-deps">
+ <target name="compile" description="o Compile the code">
<mkdir dir="${classesdir}">
</mkdir>
<javac destdir="${classesdir}" deprecation="true" debug="true" optimize="false" excludes="**/package.html">
@@ -152,15 +150,4 @@
</classpath>
</javadoc>
</target>
- <target name="get-deps" unless="noget" depends="init">
- <get dest="${libdir}/junit-3.8.1.jar" usetimestamp="true" ignoreerrors="true" src="http://www.ibiblio.org/maven/junit/jars/junit-3.8.1.jar">
- </get>
- <get dest="${libdir}/ant-1.5.jar" usetimestamp="true" ignoreerrors="true" src="http://www.ibiblio.org/maven/ant/jars/ant-1.5.jar">
- </get>
- <get dest="${libdir}/ant-optional-1.5.jar" usetimestamp="true" ignoreerrors="true" src="http://www.ibiblio.org/maven/ant/jars/ant-optional-1.5.jar">
- </get>
- <echo message="Pay no attention if there is a subsequent warning if building under JDK 1.4+"/>
- <copy file="lib/jdbc2_0-stdext.jar" todir="${libdir}" failonerror="false">
- </copy>
- </target>
</project>