Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Dec 2015 07:03:27 +0000 (UTC)
From:      "Vanilla I. Shu" <vanilla@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r403362 - in head/net/jakarta-commons-net: . files
Message-ID:  <201512090703.tB973R8K069008@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: vanilla
Date: Wed Dec  9 07:03:26 2015
New Revision: 403362
URL: https://svnweb.freebsd.org/changeset/ports/403362

Log:
  Upgrade to 3.4, switch to binary package.

Deleted:
  head/net/jakarta-commons-net/files/
Modified:
  head/net/jakarta-commons-net/Makefile
  head/net/jakarta-commons-net/distinfo

Modified: head/net/jakarta-commons-net/Makefile
==============================================================================
--- head/net/jakarta-commons-net/Makefile	Wed Dec  9 06:57:30 2015	(r403361)
+++ head/net/jakarta-commons-net/Makefile	Wed Dec  9 07:03:26 2015	(r403362)
@@ -2,59 +2,34 @@
 # $FreeBSD$
 
 PORTNAME=	commons-net
-PORTVERSION=	1.4.1
-PORTREVISION=	3
+PORTVERSION=	3.4
 CATEGORIES=	net java
-MASTER_SITES=	APACHE_COMMONS_SOURCE
+MASTER_SITES=	APACHE_COMMONS_BINARIES
 PKGNAMEPREFIX=	jakarta-
-DISTNAME=	${PORTNAME}-${PORTVERSION}-src
+DISTNAME=	${PORTNAME}-${PORTVERSION}-bin
 
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Collection of network protocol implementations for Java
 
-BUILD_DEPENDS=	${JAVALIBDIR}/junit.jar:${PORTSDIR}/java/junit \
-		${JAVAJARDIR}/jakarta-oro.jar:${PORTSDIR}/java/jakarta-oro
-RUN_DEPENDS=	${JAVAJARDIR}/jakarta-oro.jar:${PORTSDIR}/java/jakarta-oro
-
 USE_JAVA=	yes
 JAVA_VERSION=	1.6+
-USE_ANT=	yes
+NO_BUILD=	yes
 
 OPTIONS_DEFINE=	DOCS
 
 WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
-MAKE_ARGS=	-cp ${JAVALIBDIR}/junit.jar -Dlibdir=${JAVALIBDIR} -Dnoget=""
-MAKE_ENV+=	LANG=C
-PLIST_FILES=	%%JAVAJARDIR%%/${PORTNAME}.jar
-.if defined(PACKAGE_BUILDING)
-ALL_TARGET=	dist
-.else
-ALL_TARGET=	compile test jar dist
-.endif
-
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MDOCS}
-PORTDOCS=	LICENSE.txt NOTICE.txt api
-ALL_TARGET+=	javadoc
-.endif
+
+JARFILE=	${PORTNAME}-${PORTVERSION}.jar
+DESTJARFILE=	${PORTNAME}.jar
+PLIST_FILES=	%%JAVAJARDIR%%/${DESTJARFILE}
+PORTDOCS=	*
 
 do-install:
-	@${ECHO_MSG} -n ">> Installing JAR as ${JAVAJARDIR}/${PORTNAME}.jar..."
-	@${INSTALL_DATA} ${WRKSRC}/target/${PORTNAME}-${PORTVERSION}.jar \
-		${STAGEDIR}${JAVAJARDIR}/${PORTNAME}.jar
-
-	@${ECHO_MSG} " [DONE]"
-.if ${PORT_OPTIONS:MDOCS}
-	@${ECHO_MSG} -n ">> Installing documentation..."
+	${INSTALL_DATA} ${WRKSRC}/${JARFILE} \
+		${STAGEDIR}${JAVAJARDIR}/${DESTJARFILE}
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
-	@cd ${WRKSRC}/dist/docs && ${FIND} api \
-	  | ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${STAGEDIR}${DOCSDIR} > /dev/null 2>&1
-	@${INSTALL_DATA} ${WRKSRC}/LICENSE.txt \
-		${STAGEDIR}${DOCSDIR}/
-	@${INSTALL_DATA} ${WRKSRC}/NOTICE.txt \
-		${STAGEDIR}${DOCSDIR}/
-	@${ECHO_MSG} " [DONE]"
-.endif
+	(cd ${WRKSRC} && ${COPYTREE_SHARE} apidocs ${STAGEDIR}${DOCSDIR})
+	(cd ${WRKSRC} && ${INSTALL_DATA} LICENSE.txt NOTICE.txt \
+		RELEASE-NOTES.txt ${STAGEDIR}${DOCSDIR})
 
 .include <bsd.port.mk>

Modified: head/net/jakarta-commons-net/distinfo
==============================================================================
--- head/net/jakarta-commons-net/distinfo	Wed Dec  9 06:57:30 2015	(r403361)
+++ head/net/jakarta-commons-net/distinfo	Wed Dec  9 07:03:26 2015	(r403362)
@@ -1,2 +1,2 @@
-SHA256 (commons-net-1.4.1-src.tar.gz) = fdea779f261f70b9bbec40121c830b11e3e63b6188f662f95505045ff8d44add
-SIZE (commons-net-1.4.1-src.tar.gz) = 229198
+SHA256 (commons-net-3.4-bin.tar.gz) = 4c7c20ce39d4d78a05e78d76adf65c68d76e8a50fbd19d196b70d62298088c5a
+SIZE (commons-net-3.4-bin.tar.gz) = 1388203



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201512090703.tB973R8K069008>