New port mldonkey-sancho version 0.9.4-23: A Java GUI for the MLDonkey core
This commit is contained in:
parent
cbd88b8611
commit
8188ae7c54
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=126484
11 changed files with 371 additions and 0 deletions
100
net-p2p/mldonkey-sancho/Makefile
Normal file
100
net-p2p/mldonkey-sancho/Makefile
Normal file
|
@ -0,0 +1,100 @@
|
|||
# New ports collection makefile for: mldonkey sancho gui
|
||||
# Date created: Thu Dec 30 15:55:50 UTC 2004
|
||||
# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= sancho
|
||||
DISTVERSION= 0.9.4-23
|
||||
CATEGORIES= net java
|
||||
MASTER_SITES= http://sancho-gui.sourceforge.net/%SUBDIR%/
|
||||
MASTER_SITE_SUBDIR= dl/tmp94
|
||||
PKGNAMEPREFIX= mldonkey-
|
||||
DISTNAME= ${PORTNAME}-src
|
||||
|
||||
MAINTAINER= lioux@FreeBSD.org
|
||||
COMMENT= A Java GUI for the MLDonkey core
|
||||
|
||||
BUILD_DEPENDS= \
|
||||
${LOCALBASE}/eclipse/plugins/org.eclipse.jface_3.0.0/jface.jar:${PORTSDIR}/java/eclipse \
|
||||
${LOCALBASE}/eclipse/plugins/org.eclipse.swt.gtk_${ECLIPSE_VERSION}/ws/gtk/swt.jar:${PORTSDIR}/java/eclipse \
|
||||
${JAVAJARDIR:S!^${PREFIX}/!${LOCALBASE}/!}/gnu-regexp.jar:${PORTSDIR}/java/gnu-regexp \
|
||||
${JAVAJARDIR:S!^${PREFIX}/!${LOCALBASE}/!}/trove.jar:${PORTSDIR}/java/trove4j \
|
||||
${JAVAJARDIR:S!^${PREFIX}/!${LOCALBASE}/!}/jsch.jar:${PORTSDIR}/net/jsch
|
||||
RUN_DEPENDS= \
|
||||
${LOCALBASE}/eclipse/plugins/org.eclipse.core.runtime_${ECLIPSE_VERSION}/runtime.jar:${PORTSDIR}/java/eclipse \
|
||||
${LOCALBASE}/eclipse/plugins/org.eclipse.jface_3.0.0/jface.jar:${PORTSDIR}/java/eclipse \
|
||||
${LOCALBASE}/eclipse/plugins/org.eclipse.osgi_${ECLIPSE_VERSION}/osgi.jar:${PORTSDIR}/java/eclipse \
|
||||
${LOCALBASE}/eclipse/plugins/org.eclipse.swt.gtk_${ECLIPSE_VERSION}/ws/gtk/swt-pi.jar:${PORTSDIR}/java/eclipse \
|
||||
${LOCALBASE}/eclipse/plugins/org.eclipse.swt.gtk_${ECLIPSE_VERSION}/ws/gtk/swt.jar:${PORTSDIR}/java/eclipse \
|
||||
${LOCALBASE}/eclipse/startup.jar:${PORTSDIR}/java/eclipse \
|
||||
${JAVAJARDIR:S!^${PREFIX}/!${LOCALBASE}/!}/gnu-regexp.jar:${PORTSDIR}/java/gnu-regexp \
|
||||
${JAVAJARDIR:S!^${PREFIX}/!${LOCALBASE}/!}/trove.jar:${PORTSDIR}/java/trove4j \
|
||||
${JAVAJARDIR:S!^${PREFIX}/!${LOCALBASE}/!}/jsch.jar:${PORTSDIR}/net/jsch
|
||||
|
||||
ONLY_FOR_ARCHS= i386
|
||||
|
||||
USE_JAVA= yes
|
||||
JAVA_VERSION= 1.4+
|
||||
JAVA_OS= native
|
||||
USE_ANT= yes
|
||||
|
||||
USE_BZIP2= yes
|
||||
NO_WRKSUBDIR= yes
|
||||
|
||||
JARFILE= ${PORTNAME}.jar
|
||||
|
||||
# build classpath from {BUILD,RUN}_DEPENDS
|
||||
BUILD_CLASSPATH_JARS= ${BUILD_DEPENDS:C/:.+$//:M*.jar}
|
||||
RUN_CLASSPATH_JARS= ${RUN_DEPENDS:C/:.+$//:M*.jar}
|
||||
|
||||
# eclipse libs
|
||||
JAVALIBPATH= ${LOCALBASE}/eclipse/plugins/org.eclipse.swt.gtk_${ECLIPSE_VERSION}/os/freebsd/x86
|
||||
|
||||
PLIST_FILES= \
|
||||
bin/${PKGNAMEPREFIX}${PORTNAME} \
|
||||
%%JAVAJARDIR%%/${JARFILE}
|
||||
|
||||
do-install:
|
||||
# wrapper
|
||||
@${INSTALL_SCRIPT} ${WRKDIR}/wrapper.sh \
|
||||
${PREFIX}/bin/${PKGNAMEPREFIX}${PORTNAME}
|
||||
# jar
|
||||
@${MKDIR} ${JAVAJARDIR}
|
||||
@${INSTALL_DATA} ${WRKSRC}/dist/${JARFILE} ${JAVAJARDIR}/${JARFILE}
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
ECLIPSE_PORT= ${PORTSDIR}/java/eclipse
|
||||
ECLIPSE_VERSION!= cd ${ECLIPSE_PORT} && ${MAKE} -V PORTVERSION
|
||||
|
||||
# build classpath
|
||||
BUILD_CLASSPATH=.
|
||||
|
||||
.for jar in ${BUILD_CLASSPATH_JARS}
|
||||
BUILD_CLASSPATH:=${BUILD_CLASSPATH}:${jar}
|
||||
.endfor
|
||||
|
||||
# run classpath
|
||||
RUN_CLASSPATH=${JAVAJARDIR}/${JARFILE}
|
||||
|
||||
.for jar in ${RUN_CLASSPATH_JARS}
|
||||
RUN_CLASSPATH:=${RUN_CLASSPATH}:${jar}
|
||||
.endfor
|
||||
|
||||
post-patch:
|
||||
@${SED} -E \
|
||||
-e 's|%%CLASSPATH%%|${BUILD_CLASSPATH}|' \
|
||||
${FILESDIR}/build.xml > ${WRKSRC}/build.xml
|
||||
@${SED} -E \
|
||||
-e "s|%%PREFIX%%|${PREFIX}|" \
|
||||
-e "s|%%JAVAVM%%|${LOCALBASE}/bin/java|" \
|
||||
-e "s|%%JAVA_VERSION%%|${JAVA_VERSION}|" \
|
||||
-e "s|%%JAVA_OS%%|${JAVA_OS}|" \
|
||||
-e "s|%%JAVAJARDIR%%|${JAVAJARDIR:S,^${PREFIX}/,,}|" \
|
||||
-e "s|%%CLASSPATH%%|${RUN_CLASSPATH}|" \
|
||||
-e "s|%%JAVALIBPATH%%|${JAVALIBPATH}|" \
|
||||
${FILESDIR}/wrapper.sh > ${WRKDIR}/wrapper.sh
|
||||
|
||||
.include <bsd.port.post.mk>
|
2
net-p2p/mldonkey-sancho/distinfo
Normal file
2
net-p2p/mldonkey-sancho/distinfo
Normal file
|
@ -0,0 +1,2 @@
|
|||
MD5 (sancho-src.tar.bz2) = e36b8a8fccde32f8da599f795f3defe1
|
||||
SIZE (sancho-src.tar.bz2) = 411892
|
44
net-p2p/mldonkey-sancho/files/build.xml
Normal file
44
net-p2p/mldonkey-sancho/files/build.xml
Normal file
|
@ -0,0 +1,44 @@
|
|||
<!-- Under a BSDL license. Copyright by Mario S F Ferreira <lioux@FreeBSD.org> -->
|
||||
<!-- $FreeBSD$ -->
|
||||
<project basedir="." default="dist" name="sancho">
|
||||
<description>
|
||||
Builds Sancho
|
||||
</description>
|
||||
<!-- set global properties for this build -->
|
||||
<property name="src" location="src"/>
|
||||
<property name="build" location="build"/>
|
||||
<property name="dist" location="dist"/>
|
||||
|
||||
<target name="init">
|
||||
<!-- Create the time stamp -->
|
||||
<tstamp/>
|
||||
<!-- Create the build directory structure used by compile -->
|
||||
<mkdir dir="${build}"/>
|
||||
</target>
|
||||
|
||||
<target name="compile" depends="init" description="compile the source">
|
||||
<!-- Compile the java code from ${src} into ${build} -->
|
||||
<javac srcdir="${src}" destdir="${build}">
|
||||
<include name="**/*.java"/>
|
||||
<classpath path="%%CLASSPATH%%"/>
|
||||
</javac>
|
||||
</target>
|
||||
|
||||
<target name="dist" depends="compile" description="generate the distribution">
|
||||
<!-- Create the distribution directory -->
|
||||
<mkdir dir="${dist}"/>
|
||||
|
||||
<copy todir="${build}">
|
||||
<fileset dir="${src}" includes="**/*.gif **/*.png **/*.properties"/>
|
||||
</copy>
|
||||
|
||||
<!-- Put everything in ${build} into the azureus.jar file -->
|
||||
<jar jarfile="${dist}/sancho.jar" basedir="${build}"/>
|
||||
</target>
|
||||
|
||||
<target name="clean" description="clean up" >
|
||||
<!-- Delete the ${build} and ${dist} directory trees -->
|
||||
<delete dir="${build}"/>
|
||||
<delete dir="${dist}"/>
|
||||
</target>
|
||||
</project>
|
21
net-p2p/mldonkey-sancho/files/wrapper.sh
Normal file
21
net-p2p/mldonkey-sancho/files/wrapper.sh
Normal file
|
@ -0,0 +1,21 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# Under a BSDL license. Copyright by Mario S F Ferreira <lioux@FreeBSD.org>
|
||||
# $FreeBSD$
|
||||
|
||||
export JAVA_VERSION
|
||||
export JAVA_OS
|
||||
|
||||
PREFIX="%%PREFIX%%"
|
||||
# java
|
||||
JAVAVM="%%JAVAVM%%"
|
||||
JAVA_VERSION="%%JAVA_VERSION%%"
|
||||
JAVA_OS="%%JAVA_OS%%"
|
||||
JAVAJARDIR="%%JAVAJARDIR%%"
|
||||
# classpath
|
||||
CLASSPATH="%%CLASSPATH%%"
|
||||
# eclipse libs
|
||||
JAVALIBPATH="%%JAVALIBPATH%%"
|
||||
|
||||
exec ${JAVAVM} "-Djava.library.path=${JAVALIBPATH}" -cp "${CLASSPATH}" \
|
||||
sancho.core.Sancho "${@}"
|
18
net-p2p/mldonkey-sancho/pkg-descr
Normal file
18
net-p2p/mldonkey-sancho/pkg-descr
Normal file
|
@ -0,0 +1,18 @@
|
|||
[ excerpt taken from developer's web site ]
|
||||
|
||||
sancho is a gui that connects to a p2p core application. Power users
|
||||
that use p2p applications usually choose one that has core/gui
|
||||
separation. sancho provides an easy to use, powerful, and configurable
|
||||
gui, currently supporting the gui protocol of the popular mldonkey
|
||||
core.
|
||||
|
||||
The sancho project is written for fun, but also to test some new
|
||||
and exciting technologies. It is written in Java using the SWT
|
||||
widget toolkit and can be compiled on multiple platforms with the
|
||||
gcj compiler to native machine code (java=slow and bulky? not
|
||||
anymore! no external java runtime required!). Windows, Linux, OSX
|
||||
and other popular operating systems are supported.
|
||||
|
||||
WWW: http://sancho-gui.sourceforge.net/
|
||||
|
||||
-- lioux@FreeBSD.org
|
|
@ -353,6 +353,7 @@
|
|||
SUBDIR += mldonkey-gui
|
||||
SUBDIR += mldonkey-gui-devel
|
||||
SUBDIR += mldonkey-perlreactor
|
||||
SUBDIR += mldonkey-sancho
|
||||
SUBDIR += mldonkey-serverspy
|
||||
SUBDIR += mldonkey-urlslave
|
||||
SUBDIR += mmucl
|
||||
|
|
100
net/mldonkey-sancho/Makefile
Normal file
100
net/mldonkey-sancho/Makefile
Normal file
|
@ -0,0 +1,100 @@
|
|||
# New ports collection makefile for: mldonkey sancho gui
|
||||
# Date created: Thu Dec 30 15:55:50 UTC 2004
|
||||
# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= sancho
|
||||
DISTVERSION= 0.9.4-23
|
||||
CATEGORIES= net java
|
||||
MASTER_SITES= http://sancho-gui.sourceforge.net/%SUBDIR%/
|
||||
MASTER_SITE_SUBDIR= dl/tmp94
|
||||
PKGNAMEPREFIX= mldonkey-
|
||||
DISTNAME= ${PORTNAME}-src
|
||||
|
||||
MAINTAINER= lioux@FreeBSD.org
|
||||
COMMENT= A Java GUI for the MLDonkey core
|
||||
|
||||
BUILD_DEPENDS= \
|
||||
${LOCALBASE}/eclipse/plugins/org.eclipse.jface_3.0.0/jface.jar:${PORTSDIR}/java/eclipse \
|
||||
${LOCALBASE}/eclipse/plugins/org.eclipse.swt.gtk_${ECLIPSE_VERSION}/ws/gtk/swt.jar:${PORTSDIR}/java/eclipse \
|
||||
${JAVAJARDIR:S!^${PREFIX}/!${LOCALBASE}/!}/gnu-regexp.jar:${PORTSDIR}/java/gnu-regexp \
|
||||
${JAVAJARDIR:S!^${PREFIX}/!${LOCALBASE}/!}/trove.jar:${PORTSDIR}/java/trove4j \
|
||||
${JAVAJARDIR:S!^${PREFIX}/!${LOCALBASE}/!}/jsch.jar:${PORTSDIR}/net/jsch
|
||||
RUN_DEPENDS= \
|
||||
${LOCALBASE}/eclipse/plugins/org.eclipse.core.runtime_${ECLIPSE_VERSION}/runtime.jar:${PORTSDIR}/java/eclipse \
|
||||
${LOCALBASE}/eclipse/plugins/org.eclipse.jface_3.0.0/jface.jar:${PORTSDIR}/java/eclipse \
|
||||
${LOCALBASE}/eclipse/plugins/org.eclipse.osgi_${ECLIPSE_VERSION}/osgi.jar:${PORTSDIR}/java/eclipse \
|
||||
${LOCALBASE}/eclipse/plugins/org.eclipse.swt.gtk_${ECLIPSE_VERSION}/ws/gtk/swt-pi.jar:${PORTSDIR}/java/eclipse \
|
||||
${LOCALBASE}/eclipse/plugins/org.eclipse.swt.gtk_${ECLIPSE_VERSION}/ws/gtk/swt.jar:${PORTSDIR}/java/eclipse \
|
||||
${LOCALBASE}/eclipse/startup.jar:${PORTSDIR}/java/eclipse \
|
||||
${JAVAJARDIR:S!^${PREFIX}/!${LOCALBASE}/!}/gnu-regexp.jar:${PORTSDIR}/java/gnu-regexp \
|
||||
${JAVAJARDIR:S!^${PREFIX}/!${LOCALBASE}/!}/trove.jar:${PORTSDIR}/java/trove4j \
|
||||
${JAVAJARDIR:S!^${PREFIX}/!${LOCALBASE}/!}/jsch.jar:${PORTSDIR}/net/jsch
|
||||
|
||||
ONLY_FOR_ARCHS= i386
|
||||
|
||||
USE_JAVA= yes
|
||||
JAVA_VERSION= 1.4+
|
||||
JAVA_OS= native
|
||||
USE_ANT= yes
|
||||
|
||||
USE_BZIP2= yes
|
||||
NO_WRKSUBDIR= yes
|
||||
|
||||
JARFILE= ${PORTNAME}.jar
|
||||
|
||||
# build classpath from {BUILD,RUN}_DEPENDS
|
||||
BUILD_CLASSPATH_JARS= ${BUILD_DEPENDS:C/:.+$//:M*.jar}
|
||||
RUN_CLASSPATH_JARS= ${RUN_DEPENDS:C/:.+$//:M*.jar}
|
||||
|
||||
# eclipse libs
|
||||
JAVALIBPATH= ${LOCALBASE}/eclipse/plugins/org.eclipse.swt.gtk_${ECLIPSE_VERSION}/os/freebsd/x86
|
||||
|
||||
PLIST_FILES= \
|
||||
bin/${PKGNAMEPREFIX}${PORTNAME} \
|
||||
%%JAVAJARDIR%%/${JARFILE}
|
||||
|
||||
do-install:
|
||||
# wrapper
|
||||
@${INSTALL_SCRIPT} ${WRKDIR}/wrapper.sh \
|
||||
${PREFIX}/bin/${PKGNAMEPREFIX}${PORTNAME}
|
||||
# jar
|
||||
@${MKDIR} ${JAVAJARDIR}
|
||||
@${INSTALL_DATA} ${WRKSRC}/dist/${JARFILE} ${JAVAJARDIR}/${JARFILE}
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
ECLIPSE_PORT= ${PORTSDIR}/java/eclipse
|
||||
ECLIPSE_VERSION!= cd ${ECLIPSE_PORT} && ${MAKE} -V PORTVERSION
|
||||
|
||||
# build classpath
|
||||
BUILD_CLASSPATH=.
|
||||
|
||||
.for jar in ${BUILD_CLASSPATH_JARS}
|
||||
BUILD_CLASSPATH:=${BUILD_CLASSPATH}:${jar}
|
||||
.endfor
|
||||
|
||||
# run classpath
|
||||
RUN_CLASSPATH=${JAVAJARDIR}/${JARFILE}
|
||||
|
||||
.for jar in ${RUN_CLASSPATH_JARS}
|
||||
RUN_CLASSPATH:=${RUN_CLASSPATH}:${jar}
|
||||
.endfor
|
||||
|
||||
post-patch:
|
||||
@${SED} -E \
|
||||
-e 's|%%CLASSPATH%%|${BUILD_CLASSPATH}|' \
|
||||
${FILESDIR}/build.xml > ${WRKSRC}/build.xml
|
||||
@${SED} -E \
|
||||
-e "s|%%PREFIX%%|${PREFIX}|" \
|
||||
-e "s|%%JAVAVM%%|${LOCALBASE}/bin/java|" \
|
||||
-e "s|%%JAVA_VERSION%%|${JAVA_VERSION}|" \
|
||||
-e "s|%%JAVA_OS%%|${JAVA_OS}|" \
|
||||
-e "s|%%JAVAJARDIR%%|${JAVAJARDIR:S,^${PREFIX}/,,}|" \
|
||||
-e "s|%%CLASSPATH%%|${RUN_CLASSPATH}|" \
|
||||
-e "s|%%JAVALIBPATH%%|${JAVALIBPATH}|" \
|
||||
${FILESDIR}/wrapper.sh > ${WRKDIR}/wrapper.sh
|
||||
|
||||
.include <bsd.port.post.mk>
|
2
net/mldonkey-sancho/distinfo
Normal file
2
net/mldonkey-sancho/distinfo
Normal file
|
@ -0,0 +1,2 @@
|
|||
MD5 (sancho-src.tar.bz2) = e36b8a8fccde32f8da599f795f3defe1
|
||||
SIZE (sancho-src.tar.bz2) = 411892
|
44
net/mldonkey-sancho/files/build.xml
Normal file
44
net/mldonkey-sancho/files/build.xml
Normal file
|
@ -0,0 +1,44 @@
|
|||
<!-- Under a BSDL license. Copyright by Mario S F Ferreira <lioux@FreeBSD.org> -->
|
||||
<!-- $FreeBSD$ -->
|
||||
<project basedir="." default="dist" name="sancho">
|
||||
<description>
|
||||
Builds Sancho
|
||||
</description>
|
||||
<!-- set global properties for this build -->
|
||||
<property name="src" location="src"/>
|
||||
<property name="build" location="build"/>
|
||||
<property name="dist" location="dist"/>
|
||||
|
||||
<target name="init">
|
||||
<!-- Create the time stamp -->
|
||||
<tstamp/>
|
||||
<!-- Create the build directory structure used by compile -->
|
||||
<mkdir dir="${build}"/>
|
||||
</target>
|
||||
|
||||
<target name="compile" depends="init" description="compile the source">
|
||||
<!-- Compile the java code from ${src} into ${build} -->
|
||||
<javac srcdir="${src}" destdir="${build}">
|
||||
<include name="**/*.java"/>
|
||||
<classpath path="%%CLASSPATH%%"/>
|
||||
</javac>
|
||||
</target>
|
||||
|
||||
<target name="dist" depends="compile" description="generate the distribution">
|
||||
<!-- Create the distribution directory -->
|
||||
<mkdir dir="${dist}"/>
|
||||
|
||||
<copy todir="${build}">
|
||||
<fileset dir="${src}" includes="**/*.gif **/*.png **/*.properties"/>
|
||||
</copy>
|
||||
|
||||
<!-- Put everything in ${build} into the azureus.jar file -->
|
||||
<jar jarfile="${dist}/sancho.jar" basedir="${build}"/>
|
||||
</target>
|
||||
|
||||
<target name="clean" description="clean up" >
|
||||
<!-- Delete the ${build} and ${dist} directory trees -->
|
||||
<delete dir="${build}"/>
|
||||
<delete dir="${dist}"/>
|
||||
</target>
|
||||
</project>
|
21
net/mldonkey-sancho/files/wrapper.sh
Normal file
21
net/mldonkey-sancho/files/wrapper.sh
Normal file
|
@ -0,0 +1,21 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# Under a BSDL license. Copyright by Mario S F Ferreira <lioux@FreeBSD.org>
|
||||
# $FreeBSD$
|
||||
|
||||
export JAVA_VERSION
|
||||
export JAVA_OS
|
||||
|
||||
PREFIX="%%PREFIX%%"
|
||||
# java
|
||||
JAVAVM="%%JAVAVM%%"
|
||||
JAVA_VERSION="%%JAVA_VERSION%%"
|
||||
JAVA_OS="%%JAVA_OS%%"
|
||||
JAVAJARDIR="%%JAVAJARDIR%%"
|
||||
# classpath
|
||||
CLASSPATH="%%CLASSPATH%%"
|
||||
# eclipse libs
|
||||
JAVALIBPATH="%%JAVALIBPATH%%"
|
||||
|
||||
exec ${JAVAVM} "-Djava.library.path=${JAVALIBPATH}" -cp "${CLASSPATH}" \
|
||||
sancho.core.Sancho "${@}"
|
18
net/mldonkey-sancho/pkg-descr
Normal file
18
net/mldonkey-sancho/pkg-descr
Normal file
|
@ -0,0 +1,18 @@
|
|||
[ excerpt taken from developer's web site ]
|
||||
|
||||
sancho is a gui that connects to a p2p core application. Power users
|
||||
that use p2p applications usually choose one that has core/gui
|
||||
separation. sancho provides an easy to use, powerful, and configurable
|
||||
gui, currently supporting the gui protocol of the popular mldonkey
|
||||
core.
|
||||
|
||||
The sancho project is written for fun, but also to test some new
|
||||
and exciting technologies. It is written in Java using the SWT
|
||||
widget toolkit and can be compiled on multiple platforms with the
|
||||
gcj compiler to native machine code (java=slow and bulky? not
|
||||
anymore! no external java runtime required!). Windows, Linux, OSX
|
||||
and other popular operating systems are supported.
|
||||
|
||||
WWW: http://sancho-gui.sourceforge.net/
|
||||
|
||||
-- lioux@FreeBSD.org
|
Loading…
Reference in a new issue