Date: Tue, 1 Dec 2009 13:40:12 GMT From: Pavel Argentov <argentoff@gmail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/141055: new version of net-p2p/vuze and x11-toolkits/swt-devel Message-ID: <200912011340.nB1DeCBc001105@www.freebsd.org> Resent-Message-ID: <200912011350.nB1Do1Zi067803@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 141055 >Category: ports >Synopsis: new version of net-p2p/vuze and x11-toolkits/swt-devel >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Dec 01 13:50:00 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Pavel Argentov >Release: 7.2-RELEASE >Organization: Ratmir-TeleKom, Ltd. >Environment: FreeBSD paul.rtelekom.ru 7.2-RELEASE FreeBSD 7.2-RELEASE #0: Tue May 12 18:36:34 MSD 2009 root@paul.rtelekom.ru:/usr/obj/usr/src/sys/PAUL_SMP i386 >Description: I'm a vuze user and I'm interested to have it up-to-date in my beloved FreeBSD, too. Since a new version of vuze is available at its site, I made a small and simple hack to have my own vuze 4.3 port. Here I attach an archive with my handcrafted version of the port so the maintainer would check and update the real thing. Excuse my dirty hack, colleague! Also I'd like the SWT-devel port to be updated. As far as I know the maintainer of it is the same person. Sincerely yours, Pavel Argentov. >How-To-Repeat: >Fix: See the file attached 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: # # vuze43 # vuze43/files # vuze43/files/patch-org__gudy__azureus2__ui__swt__test__PrintTransferTypes.java # vuze43/files/extra-patch-com__aelitis__azureus__core__networkmanager__impl__TransportHelperFilterStream.java # vuze43/files/extra-patch-com__aelitis__azureus__core__networkmanager__impl__TransportHelperFilterTransparent.java # vuze43/files/patch-org__gudy__azureus2__platform__PlatformManagerFactory.java # vuze43/files/patch-org__gudy__azureus2__platform__macosx__access__jnilib__OSXAccess.java # vuze43/files/vuze.in # vuze43/files/build.xml # vuze43/files/patch-org__gudy__azureus2__platform__unix__ScriptBeforeStartup.java # vuze43/Makefile # vuze43/distinfo # vuze43/pkg-descr # vuze43/pkg-message # echo c - vuze43 mkdir -p vuze43 > /dev/null 2>&1 echo c - vuze43/files mkdir -p vuze43/files > /dev/null 2>&1 echo x - vuze43/files/patch-org__gudy__azureus2__ui__swt__test__PrintTransferTypes.java sed 's/^X//' >vuze43/files/patch-org__gudy__azureus2__ui__swt__test__PrintTransferTypes.java << 'c6c2fdc7d46a481ee0291c26495c5083' X--- org/gudy/azureus2/ui/swt/test/PrintTransferTypes.java.orig 2009-01-18 01:23:44.000000000 -0500 X+++ org/gudy/azureus2/ui/swt/test/PrintTransferTypes.java 2009-01-18 01:24:54.000000000 -0500 X@@ -40,7 +40,7 @@ X X TransferData[] data = event.dataTypes; X for (int i = 0; i < data.length; i++) { X- int id = data[i].type; X+ int id = (int)data[i].type; X String name = getNameFromId(id); X System.out.println("Data type is " + id + " " + name); X } X@@ -50,7 +50,7 @@ X } X public void drop(DropTargetEvent event) { X System.out.println("URL dropped: " + event.data); X- System.out.println("Data type is " + event.currentDataType.type + " " + getNameFromId(event.currentDataType.type)); X+ System.out.println("Data type is " + event.currentDataType.type + " " + getNameFromId((int)event.currentDataType.type)); X } X }); X c6c2fdc7d46a481ee0291c26495c5083 echo x - vuze43/files/extra-patch-com__aelitis__azureus__core__networkmanager__impl__TransportHelperFilterStream.java sed 's/^X//' >vuze43/files/extra-patch-com__aelitis__azureus__core__networkmanager__impl__TransportHelperFilterStream.java << '673595fd2d140e944c96e72d0ee6e41d' X--- com/aelitis/azureus/core/networkmanager/impl/TransportHelperFilterStream.java.orig 2007-03-01 23:39:40.000000000 -0500 X+++ com/aelitis/azureus/core/networkmanager/impl/TransportHelperFilterStream.java 2008-05-29 13:45:17.000000000 -0400 X@@ -57,7 +57,7 @@ X public boolean X hasBufferedRead() X { X- return false; X+ return true; X } X X public TransportHelper 673595fd2d140e944c96e72d0ee6e41d echo x - vuze43/files/extra-patch-com__aelitis__azureus__core__networkmanager__impl__TransportHelperFilterTransparent.java sed 's/^X//' >vuze43/files/extra-patch-com__aelitis__azureus__core__networkmanager__impl__TransportHelperFilterTransparent.java << '6de0d571483d48bf2f82dcc1c65d3b28' X--- com/aelitis/azureus/core/networkmanager/impl/TransportHelperFilterTransparent.java.orig 2008-05-29 14:05:20.000000000 -0400 X+++ com/aelitis/azureus/core/networkmanager/impl/TransportHelperFilterTransparent.java 2008-05-29 14:08:25.000000000 -0400 X@@ -60,7 +60,7 @@ X public boolean X hasBufferedRead() X { X- return( read_insert != null && read_insert.remaining() > 0 ); X+ return( true ); X } X X public long 6de0d571483d48bf2f82dcc1c65d3b28 echo x - vuze43/files/patch-org__gudy__azureus2__platform__PlatformManagerFactory.java sed 's/^X//' >vuze43/files/patch-org__gudy__azureus2__platform__PlatformManagerFactory.java << '6b2592ea19a6dbd0be134c9a89161ead' X--- org/gudy/azureus2/platform/PlatformManagerFactory.java.orig 2008-10-22 19:53:40.000000000 -0400 X+++ org/gudy/azureus2/platform/PlatformManagerFactory.java 2008-10-22 19:53:58.000000000 -0400 X@@ -48,21 +48,17 @@ X try{ X if ( getPlatformType() == PlatformManager.PT_WINDOWS ){ X X- platform_manager = org.gudy.azureus2.platform.win32.PlatformManagerImpl.getSingleton(); X+ platform_manager = null; X X }else if( getPlatformType() == PlatformManager.PT_MACOSX ){ X X- platform_manager = org.gudy.azureus2.platform.macosx.PlatformManagerImpl.getSingleton(); X+ platform_manager = null; X X }else if( getPlatformType() == PlatformManager.PT_UNIX ){ X X platform_manager = org.gudy.azureus2.platform.unix.PlatformManagerImpl.getSingleton(); X X } X- }catch( PlatformManagerException e ){ X- X- // exception will already have been logged X- X }catch( Throwable e ){ X X Debug.printStackTrace(e); 6b2592ea19a6dbd0be134c9a89161ead echo x - vuze43/files/patch-org__gudy__azureus2__platform__macosx__access__jnilib__OSXAccess.java sed 's/^X//' >vuze43/files/patch-org__gudy__azureus2__platform__macosx__access__jnilib__OSXAccess.java << 'ba8c9381f1e456603f573b0cd415e909' X--- org/gudy/azureus2/platform/macosx/access/jnilib/OSXAccess.java.orig 2009-11-30 23:17:46.000000000 +0300 X+++ org/gudy/azureus2/platform/macosx/access/jnilib/OSXAccess.java 2009-11-30 23:27:12.000000000 +0300 X@@ -108,8 +108,8 @@ X } X } X X- public static final native int AEGetParamDesc(int theAppleEvent, X- int theAEKeyword, int desiredType, Object result); //AEDesc result X+ //public static final native int AEGetParamDesc(int theAppleEvent, X+ // int theAEKeyword, int desiredType, Object result); //AEDesc result X X public static final native String getVersion(); X ba8c9381f1e456603f573b0cd415e909 echo x - vuze43/files/vuze.in sed 's/^X//' >vuze43/files/vuze.in << 'a0232a94cedc460d632aed7df0822d6e' X#!/bin/sh X# X# $FreeBSD: ports/net-p2p/vuze/files/vuze.in,v 1.1 2008/12/22 18:27:01 rnoland Exp $ X X# java Xexport JAVA_VERSION="%%JAVA_VERSION%%" Xexport JAVA_OS="%%JAVA_OS%%" X XECLIPSE_BASE=%%LOCALBASE%%/eclipse XECLIPSE_SWT_JAR=%%SWTJAR%% XLIB_PATH=%%LIBDIR%% X XCLASS_PATH=:%%JAVAJARDIR%%/%%JARFILE%%:${ECLIPSE_SWT_JAR} X XBROWSERS="firefox xulrunner seamonkey mozilla" X Xif [ ! "${MOZILLA_FIVE_HOME}" ]; then X for browser in ${BROWSERS}; do X if [ -d "%%LOCALBASE%%/lib/${browser}" ]; then X MOZILLA_FIVE_HOME="%%LOCALBASE%%/lib/${browser}" X break; X fi X done Xfi X Xif [ "${MOZILLA_FIVE_HOME}" ];then X LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${MOZILLA_FIVE_HOME}" X export MOZILLA_FIVE_HOME LD_LIBRARY_PATH X echo "MOZILLA_FIVE_HOME=${MOZILLA_FIVE_HOME}" Xfi X Xif [ "${DEBUG}" ] Xthen X echo "ECLIPSE_BASE = ${ECLIPSE_BASE}" X echo "ECLIPSE_WS = ${ECLIPSE_WS}" X echo "ECLIPSE_SWT = ${ECLIPSE_SWT}" X echo "ECLIPSE_SWT_JAR = ${ECLIPSE_SWT_JAR}" X echo "CLASS_PATH = ${CLASS_PATH}" X echo "LIB_PATH = ${LIB_PATH}" Xfi X Xexec "%%JAVA%%" -cp "${CLASS_PATH}" "-Djava.library.path=${LIB_PATH}" "-Dos.name=linux" "-Dazureus.config.path=${HOME}/.Azureus" "-Duser.dir=${HOME}/.Azureus" org.gudy.azureus2.ui.swt.Main "${@}" a0232a94cedc460d632aed7df0822d6e echo x - vuze43/files/build.xml sed 's/^X//' >vuze43/files/build.xml << 'deac906d5d424f9bfb04a5003549735a' X<!-- Under a BSDL license. Copyright by Mario S F Ferreira <lioux@FreeBSD.org> 2005- --> X<!-- Under a BSDL license. Copyright by jrandom 2005- --> X<!-- $FreeBSD: ports/net-p2p/vuze/files/build.xml,v 1.8 2008/12/22 18:27:00 rnoland Exp $ --> X<project basedir="." default="dist" name="azureus"> X <description> X Builds Azureus X </description> X <!-- set global properties for this build --> X <property name="src" location="src"/> X <property name="build" location="build"/> X <property name="dist" location="dist"/> X X <target name="init"> X <!-- Create the time stamp --> X <tstamp/> X <!-- Create the build directory structure used by compile --> X <mkdir dir="${build}"/> X </target> X X <target name="compile" depends="init" description="compile the source " > X <!-- Compile the java code from ${src} into ${build} --> X <javac srcdir="." destdir="${build}" fork="yes" memoryMaximumSize="512m"> X <include name="**/*.java"/> X <exclude name="**/Win32*.java"/> X <exclude name="**/swt/osx/**"/> X <exclude name="**/macosx/**"/> X <classpath path="%%CLASSPATH%%"/> X </javac> X </target> X X <target name="dist" depends="compile" description="generate the distribution" > X <!-- Create the distribution directory --> X <mkdir dir="${dist}/lib"/> X X <copy todir="${build}"> X <fileset dir="." includes="**/*.gif **/*.jpg, **/*.png **/*.properties" /> X <fileset dir="." includes="**/*.dat **/*.stf **/*.xsd" /> X <fileset dir="." includes="**/*.css **/*.html **/*.js **/*.php **/*.tmpl **/*.txt" /> X <fileset dir="." includes="**/*.ico **/*.wav" /> X </copy> X <!-- Put everything in ${build} into the azureus.jar file --> X <jar jarfile="${dist}/lib/vuze.jar" basedir="${build}"/> X </target> X X <target name="clean" description="clean up" > X <!-- Delete the ${build} and ${dist} directory trees --> X <delete dir="${build}"/> X <delete dir="${dist}"/> X </target> X</project> deac906d5d424f9bfb04a5003549735a echo x - vuze43/files/patch-org__gudy__azureus2__platform__unix__ScriptBeforeStartup.java sed 's/^X//' >vuze43/files/patch-org__gudy__azureus2__platform__unix__ScriptBeforeStartup.java << 'ab1eac4bfecfa140af9a2d310b4ecfdc' X--- org/gudy/azureus2/platform/unix/ScriptBeforeStartup.java.orig 2008-06-03 11:25:03.000000000 -0400 X+++ org/gudy/azureus2/platform/unix/ScriptBeforeStartup.java 2008-06-03 11:27:27.000000000 -0400 X@@ -139,6 +139,7 @@ X return false; X } X }); X+ possibleDirs.add(new File("/usr/local/lib")); X possibleDirs.add(new File("/usr/local")); X possibleDirs.add(new File("/opt")); X ab1eac4bfecfa140af9a2d310b4ecfdc echo x - vuze43/Makefile sed 's/^X//' >vuze43/Makefile << 'e02049a6a3491fd812ce2b6d0373161f' X# New ports collection makefile for: Azureus X# Date created: October 6, 2004 X# Whom: Jeremy Faulkner <gldisater@gldis.ca> X# X# $FreeBSD: ports/net-p2p/vuze/Makefile,v 1.64 2009/08/22 00:32:18 amdmi3 Exp $ X# X XPORTNAME= vuze XPORTVERSION= 4.3.0.4 XPORTREVISION= 1 XCATEGORIES= net-p2p java XMASTER_SITES= SF/azureus/${PORTNAME}/${PORTNAME}-${PORTVERSION} XDISTNAME= Vuze_${PORTVERSION}_source X XMAINTAINER= rnoland@FreeBSD.org XCOMMENT= A BitTorrent client written in Java X XBUILD_DEPENDS= ${JAVALIBDIR}/log4j.jar:${PORTSDIR}/devel/log4j \ X ${JAVALIBDIR}/commons-cli.jar:${PORTSDIR}/java/jakarta-commons-cli \ X ${JAVALIBDIR}/junit.jar:${PORTSDIR}/java/junit X XUSE_JAVA= yes XJAVA_VERSION= 1.4+ XJAVA_OS= native XUSE_ANT= yes X XUSE_ZIP= yes X XUSE_DOS2UNIX= \ Xorg/gudy/azureus2/platform/macosx/access/jnilib/OSXAccess.java \ Xorg/gudy/azureus2/platform/unix/ScriptBeforeStartup.java \ Xorg/gudy/azureus2/platform/PlatformManagerFactory.java \ Xorg/gudy/azureus2/ui/swt/test/PrintTransferTypes.java \ Xorg/gudy/azureus2/ui/swt/views/table/impl/TableViewSWTImpl.java \ Xcom/aelitis/azureus/core/networkmanager/impl/TransportHelperFilterStream.java \ Xcom/aelitis/azureus/core/networkmanager/impl/TransportHelperFilterTransparent.java X XNO_WRKSUBDIR= yes X XJARFILE= ${PORTNAME}.jar X XOPTIONS= SWTDEVEL "Use SWT Development port" on \ X EXTRAHACK "Apply extra performance hack" off X X# build classpath from BUILD_DEPENDS XMAKE_ENV= LANG=C XCLASSPATH_JARS= ${BUILD_DEPENDS:C/:.+$//:M*.jar} X XPLIST_FILES= %%JAVAJARDIR%%/${JARFILE} \ X bin/${PORTNAME} \ X share/icons/hicolor/16x16/apps/${PORTNAME}.png \ X share/icons/hicolor/32x32/apps/${PORTNAME}.png \ X share/icons/hicolor/64x64/apps/${PORTNAME}.png X XSUB_FILES= ${PORTNAME} XSUB_LIST= LIBDIR="${LOCALBASE}/lib" JARFILE="${JARFILE}" \ X SWTJAR="${JAVALIBDIR}/${SWT}.jar" JAVA="${LOCALBASE}/bin/java" X XDESKTOP_ENTRIES= "Vuze" \ X "A full feature BitTorrent client" \ X "${PORTNAME}.png" \ X "${PORTNAME}" \ X "Application;Network;P2P;" \ X true X XINSTALLS_ICONS= yes X X.include <bsd.port.pre.mk> X X.if defined(WITH_SWTDEVEL) XSWT= swt-devel XBUILD_DEPENDS+= ${JAVALIBDIR}/swt-devel.jar:${PORTSDIR}/x11-toolkits/swt-devel XRUN_DEPENDS+= ${JAVALIBDIR}/swt-devel.jar:${PORTSDIR}/x11-toolkits/swt-devel X.else XSWT= swt XBUILD_DEPENDS+= ${JAVALIBDIR}/swt.jar:${PORTSDIR}/x11-toolkits/swt XRUN_DEPENDS+= ${JAVALIBDIR}/swt.jar:${PORTSDIR}/x11-toolkits/swt X.endif X X# Ok, I'm not quite sure why this works, or if it is in any way a proper fix. X# Use at your own risk, I've just had it around and decided to share. X.if defined(WITH_EXTRAHACK) XEXTRA_PATCHES+= \ X ${PATCHDIR}/extra-patch-com__aelitis__azureus__core__networkmanager__impl__TransportHelperFilterStream.java \ X ${PATCHDIR}/extra-patch-com__aelitis__azureus__core__networkmanager__impl__TransportHelperFilterTransparent.java X.endif X XCLASSPATH=. X.for jar in ${CLASSPATH_JARS} XCLASSPATH:=${CLASSPATH}:${jar} X.endfor X Xpost-patch: X @${SED} -E -e 's|%%CLASSPATH%%|${CLASSPATH}|' \ X ${FILESDIR}/build.xml > ${WRKSRC}/build.xml X# bash -> sh X @${REINPLACE_CMD} -E -e 's|/bin/bash|${SH}|' \ X ${WRKSRC}/com/aelitis/azureus/core/update/impl/AzureusRestarterImpl.java X Xdo-install: X ${MKDIR} ${JAVAJARDIR} X ${INSTALL_DATA} ${WRKSRC}/dist/lib/${JARFILE} ${JAVAJARDIR} X ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin/${PORTNAME} X ${MKDIR} ${PREFIX}/share/icons/hicolor/16x16/apps X ${INSTALL_DATA} ${WRKDIR}/org/gudy/azureus2/ui/icons/a16.png \ X ${PREFIX}/share/icons/hicolor/16x16/apps/${PORTNAME}.png X ${MKDIR} ${PREFIX}/share/icons/hicolor/32x32/apps X ${INSTALL_DATA} ${WRKDIR}/org/gudy/azureus2/ui/icons/a32.png \ X ${PREFIX}/share/icons/hicolor/32x32/apps/${PORTNAME}.png X ${MKDIR} ${PREFIX}/share/icons/hicolor/64x64/apps X ${INSTALL_DATA} ${WRKDIR}/org/gudy/azureus2/ui/icons/a64.png \ X ${PREFIX}/share/icons/hicolor/64x64/apps/${PORTNAME}.png X Xpost-install: X @${ECHO_CMD}; ${CAT} ${PKGMESSAGE}; ${ECHO_CMD} X X.include <bsd.port.post.mk> e02049a6a3491fd812ce2b6d0373161f echo x - vuze43/distinfo sed 's/^X//' >vuze43/distinfo << 'ad53e3407edb5759f03f6bc0434b7084' XMD5 (Vuze_4.3.0.4_source.zip) = b5de3ffbcd16d1c69281de21c2550fc8 XSHA256 (Vuze_4.3.0.4_source.zip) = adc7662762b2b05ea09fa0ee455ec7d6101ac0f332851d763bf8b24af29f8b15 XSIZE (Vuze_4.3.0.4_source.zip) = 8828818 ad53e3407edb5759f03f6bc0434b7084 echo x - vuze43/pkg-descr sed 's/^X//' >vuze43/pkg-descr << '2e6edb0dd1dea788073e2de97cb94a2b' XVuze is a java bittorrent client. Vuze (formerly Azureus) offers Xmultiple torrent downloads, queuing/priority systems (on torrents and Xfiles), start/stop seeding options and instant access to Xnumerous pieces of information about your torrents. Azureus Xnow features an embedded tracker easily setup and ready to use. X XWWW: http://azureus.sourceforge.net/ 2e6edb0dd1dea788073e2de97cb94a2b echo x - vuze43/pkg-message sed 's/^X//' >vuze43/pkg-message << '018d6464c900d122bf14f7a2295e98bd' X==================================== X============ ATTENTION ============= X==================================== X XIf you have problems running XVuze, make sure you have the Xlatest version of all your installed Xpackages. X XFor instance, make sure the swt Xpackage is of version 3.4 or Xlater. X X==================================== 018d6464c900d122bf14f7a2295e98bd exit >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200912011340.nB1DeCBc001105>