Date: Fri, 16 Feb 2007 15:36:40 GMT From: Nemo Liu<nemoliu@gmail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/109234: Update jaf to 1.1 Message-ID: <200702161536.l1GFaej2009435@www.freebsd.org> Resent-Message-ID: <200702161540.l1GFe7rC039993@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 109234 >Category: ports >Synopsis: Update jaf to 1.1 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Fri Feb 16 15:40:06 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Nemo Liu >Release: 6.2 >Organization: >Environment: FreeBSD historydb.internal.sina.com.cn 6.2-STORM-r2 FreeBSD 6.2-STORM-r2 #0: Mon Jan 22 15:36:05 CST 2007 liutong@historydb.internal.sina.com.cn:/usr/obj/usr/src/sys/SINAMAIL i386 >Description: Update jaf to 1.1 . The JavaBeans Activation Framework 1.1 contains a few small enhancements and bugs fixes. The enhancements are described here and have been approved by the JCP as JSR-925. The primary enhancements are: * Provide a list of all MIME types known to a MailcapCommandMap. * Provide access to the native commands known to a MailcapCommandMap. * Support for fallback entries in mailcap file. The JavaBeans Activation Framework 1.1 requires J2SE 1.4 or greater. >How-To-Repeat: >Fix: Patch attached with submission follows: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # /usr/ports/java/jaf # /usr/ports/java/jaf/Makefile # /usr/ports/java/jaf/distinfo # /usr/ports/java/jaf/pkg-descr # echo c - /usr/ports/java/jaf mkdir -p /usr/ports/java/jaf > /dev/null 2>&1 echo x - /usr/ports/java/jaf/Makefile sed 's/^X//' >/usr/ports/java/jaf/Makefile << 'END-of-/usr/ports/java/jaf/Makefile' X# New ports collection makefile for: JavaBeans Activation Framework (JAF) X# Date created: 16 Feb 2007 X# Whom: Nemo Liu X# X# $FreeBSD$ X# X XPORTNAME= jaf XPORTVERSION= 1.1 XCATEGORIES= java devel XMASTER_SITES= # XDISTNAME= ${PORTNAME}-${PORTVERSION:S,.,_,g}-fr X XMAINTAINER= Nemoliu@gmail.com XCOMMENT= JavaBeansTM Activation Framework X XUSE_ZIP= YES XUSE_JAVA= YES XJAVA_VERSION= 1.4+ X XWRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} XNO_BUILD= yes XNO_CDROM= See the license XDOWNLOAD_URL= http://javashoplm.sun.com/ECom/docs/Welcome.jsp?StoreId=22&PartDetailId=jaf-1.1-fr-oth-JPR&SiteId=JSC&TransactionId=noreg X X.if !defined(NOPORTDOCS) XDOCFILES1= JAF-1.1.pdf JAF-1.1.ps JAF-1.1-changes.txt javadocs XDOCFILES2= LICENSE.txt README.txt RELNOTES.txt XPORTDOCS= ${DOCFILES1} ${DOCFILES2} X.endif X XPLIST_FILES= %%JAVAJARDIR%%/activation.jar X X.include <bsd.port.pre.mk> X.if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}) && !defined(PACKAGE_BUILDING) XIGNORE= you must manually fetch the distribution from ${DOWNLOAD_URL} and place it in ${DISTDIR} then run make again X.endif X Xdo-install: X @${ECHO_MSG} -n ">> Installing demo files in ${EXAMPLESDIR}..." X @${MKDIR} ${EXAMPLESDIR} X @cd ${WRKSRC} && ${FIND} demo \ X | ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${EXAMPLESDIR} > /dev/null 2>&1 X @${ECHO_MSG} " [ DONE ]" X @${ECHO_MSG} -n ">> Installing JAR file as ${JAVAJARDIR}/activation.jar..." X @${INSTALL_DATA} ${WRKSRC}/activation.jar ${JAVAJARDIR}/ X @${ECHO_MSG} " [ DONE ]" X.if !defined(NOPORTDOCS) X @${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}..." X @${MKDIR} ${DOCSDIR} X @cd ${WRKSRC}/docs && ${FIND} ${DOCFILES1} \ X | ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR} > /dev/null 2>&1 X @cd ${WRKSRC} && ${FIND} ${DOCFILES2} \ X | ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR} > /dev/null 2>&1 X @${ECHO_MSG} " [ DONE ]" X.endif X Xpost-install: X @${FIND} -s ${WRKSRC}/demo -not -type d 2>/dev/null \ X | ${SED} -ne 's,^${WRKSRC},${EXAMPLESDIR:S,^${PREFIX}/,,},p' >> ${TMPPLIST} X @${FIND} -s -d ${WRKSRC}/demo -type d 2>/dev/null \ X | ${SED} -ne 's,^${WRKSRC},@dirrm ${EXAMPLESDIR:S,^${PREFIX}/,,},p' >> ${TMPPLIST} X @${ECHO_CMD} '@dirrm ${EXAMPLESDIR:S,^${PREFIX}/,,}' >> ${TMPPLIST} X X.include <bsd.port.post.mk> END-of-/usr/ports/java/jaf/Makefile echo x - /usr/ports/java/jaf/distinfo sed 's/^X//' >/usr/ports/java/jaf/distinfo << 'END-of-/usr/ports/java/jaf/distinfo' XMD5 (jaf-1_1-fr.zip) = 7423eb6831ba82e7d1f10956eb2bd0d3 XSHA256 (jaf-1_1-fr.zip) = 3230f1b3ec676fdaeebcfae2c2f0dfeb9b0c543f43312cae5c2b9396a1198813 XSIZE (jaf-1_1-fr.zip) = 380084 END-of-/usr/ports/java/jaf/distinfo echo x - /usr/ports/java/jaf/pkg-descr sed 's/^X//' >/usr/ports/java/jaf/pkg-descr << 'END-of-/usr/ports/java/jaf/pkg-descr' XWith the JavaBeansTM Activation Framework standard extension, developers Xwho use JavaTM technology can take advantage of standard services to Xdetermine the type of an arbitrary piece of data, encapsulate access to Xit, discover the operations available on it, and to instantiate the Xappropriate bean to perform said operation(s). For example, if a browser Xobtained a JPEG image, this framework would enable the browser to identify Xthat stream of data as an JPEG image, and from that type, the browser Xcould locate and instantiate an object that could manipulate, or view that Ximage. X XWWW: http://java.sun.com/products/javabeans/jaf/ END-of-/usr/ports/java/jaf/pkg-descr exit >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200702161536.l1GFaej2009435>