aboutsummaryrefslogtreecommitdiffstats
path: root/net-p2p
diff options
context:
space:
mode:
authorlioux <lioux@FreeBSD.org>2005-01-15 14:44:05 +0800
committerlioux <lioux@FreeBSD.org>2005-01-15 14:44:05 +0800
commit854110624f6c8a948acd35c97d5e817efeadf444 (patch)
treede8dc5360ed66286c4cd9af588a5cef0cbc8dfe0 /net-p2p
parent7a1397533aed7133ba7371736e422771ea2e1388 (diff)
downloadfreebsd-ports-gnome-854110624f6c8a948acd35c97d5e817efeadf444.tar.gz
freebsd-ports-gnome-854110624f6c8a948acd35c97d5e817efeadf444.tar.zst
freebsd-ports-gnome-854110624f6c8a948acd35c97d5e817efeadf444.zip
New port mldonkey-sancho version 0.9.4-23: A Java GUI for the MLDonkey core
Diffstat (limited to 'net-p2p')
-rw-r--r--net-p2p/mldonkey-sancho/Makefile100
-rw-r--r--net-p2p/mldonkey-sancho/distinfo2
-rw-r--r--net-p2p/mldonkey-sancho/files/build.xml44
-rw-r--r--net-p2p/mldonkey-sancho/files/wrapper.sh21
-rw-r--r--net-p2p/mldonkey-sancho/pkg-descr18
5 files changed, 185 insertions, 0 deletions
diff --git a/net-p2p/mldonkey-sancho/Makefile b/net-p2p/mldonkey-sancho/Makefile
new file mode 100644
index 000000000000..d848caa55abe
--- /dev/null
+++ b/net-p2p/mldonkey-sancho/Makefile
@@ -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>
diff --git a/net-p2p/mldonkey-sancho/distinfo b/net-p2p/mldonkey-sancho/distinfo
new file mode 100644
index 000000000000..567f64b68a72
--- /dev/null
+++ b/net-p2p/mldonkey-sancho/distinfo
@@ -0,0 +1,2 @@
+MD5 (sancho-src.tar.bz2) = e36b8a8fccde32f8da599f795f3defe1
+SIZE (sancho-src.tar.bz2) = 411892
diff --git a/net-p2p/mldonkey-sancho/files/build.xml b/net-p2p/mldonkey-sancho/files/build.xml
new file mode 100644
index 000000000000..b3ca99145fa8
--- /dev/null
+++ b/net-p2p/mldonkey-sancho/files/build.xml
@@ -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>
diff --git a/net-p2p/mldonkey-sancho/files/wrapper.sh b/net-p2p/mldonkey-sancho/files/wrapper.sh
new file mode 100644
index 000000000000..25973e5252e4
--- /dev/null
+++ b/net-p2p/mldonkey-sancho/files/wrapper.sh
@@ -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 "${@}"
diff --git a/net-p2p/mldonkey-sancho/pkg-descr b/net-p2p/mldonkey-sancho/pkg-descr
new file mode 100644
index 000000000000..7e35ff07c5d9
--- /dev/null
+++ b/net-p2p/mldonkey-sancho/pkg-descr
@@ -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