1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00

- Use SF macro in MASTER_SITES.

- Clean up.
- Don't define unneeded (automatically set) Java variables.
- Use SUB_FILES and SUB_LIST instead of custom target.

PR:		ports/112398
Submitted by:	alepulver (myself)
Approved by:	Robert Noland <rnoland@2hip.net> (maintainer)
This commit is contained in:
Alejandro Pulver 2007-05-26 00:56:11 +00:00
parent 9e9ed6bcb1
commit dbf766ac28
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=191876
6 changed files with 78 additions and 168 deletions

View File

@ -9,36 +9,26 @@ PORTNAME= azureus
PORTVERSION= 3.0.1.2
PORTREVISION= 1
CATEGORIES= net-p2p java
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
MASTER_SITES= SF
DISTNAME= Azureus_${PORTVERSION}_source
MAINTAINER= rnoland@2hip.net
COMMENT= A BitTorrent client written in Java
BUILD_DEPENDS= \
${JAVALIBDIR}/log4j.jar:${PORTSDIR}/devel/log4j \
BUILD_DEPENDS= ${JAVALIBDIR}/log4j.jar:${PORTSDIR}/devel/log4j \
${JAVALIBDIR}/commons-cli.jar:${PORTSDIR}/java/jakarta-commons-cli \
${JAVALIBDIR}/junit.jar:${PORTSDIR}/java/junit
ONLY_FOR_ARCHS= i386 amd64
${JAVALIBDIR}/junit.jar:${PORTSDIR}/java/junit \
${JAVALIBDIR}/${SWT}.jar:${PORTSDIR}/x11-toolkits/${SWT}
RUN_DEPENDS= ${JAVALIBDIR}/${SWT}.jar:${PORTSDIR}/x11-toolkits/${SWT}
USE_JAVA= yes
JAVA_BUILD= jdk
JAVA_RUN= jdk
JAVA_VERSION= 1.4+
JAVA_OS= native
USE_ANT= yes
USE_JIKES= no
USE_ZIP= yes
USE_DOS2UNIX= org/gudy/azureus2/ui/swt/test/PrintTransferTypes.java \
org/gudy/azureus2/ui/swt/Messages.java \
org/gudy/azureus2/ui/swt/views/configsections/ConfigSectionPlugins.java \
org/gudy/azureus2/ui/swt/shells/MessageSlideShell.java \
org/gudy/azureus2/ui/swt/Utils.java \
org/gudy/azureus2/platform/macosx/access/jnilib/OSXAccess.java \
com/aelitis/azureus/core/networkmanager/impl/TransportHelperFilterStream.java
org/gudy/azureus2/platform/macosx/access/jnilib/OSXAccess.java
NO_WRKSUBDIR= yes
@ -50,42 +40,19 @@ OPTIONS= SWTDEVEL "Use SWT Development port" on
MAKE_ENV= LANG=C
CLASSPATH_JARS= ${BUILD_DEPENDS:C/:.+$//:M*.jar}
PLIST_FILES= %%JAVAJARDIR%%/${JARFILE} bin/${PORTNAME}
PLIST_FILES= %%JAVAJARDIR%%/${JARFILE} \
bin/${PORTNAME}
do-configure:
${SED} -e "s+%%PREFIX%%+${PREFIX}+" -e "s+%%LOCALBASE%%+${LOCALBASE}+" \
-e "s|%%LIBDIR%%|${LOCALBASE}/lib|" \
-e "s|%%JAVAJARDIR%%|${JAVAJARDIR}|" \
-e "s|%%JAVA%%|${LOCALBASE}/bin/java|" \
-e "s|%%JAVA_VERSION%%|${JAVA_VERSION}|" \
-e "s|%%JAVA_OS%%|${JAVA_OS}|" \
-e "s|%%JARFILE%%|${JARFILE}|" \
-e "s|%%SWTJAR%%|${JAVALIBDIR}/${SWT_JAR}|" \
${FILESDIR}/${PORTNAME} > ${WRKDIR}/${PORTNAME}
do-install:
${MKDIR} ${JAVAJARDIR}
${INSTALL_DATA} ${WRKSRC}/dist/lib/${JARFILE} \
${JAVAJARDIR}/
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin/${PORTNAME}
post-install:
@${CAT} ${PKGMESSAGE}
SUB_FILES= ${PORTNAME}
SUB_LIST= LIBDIR="${LOCALBASE}/lib" JARFILE="${JARFILE}" \
SWTJAR="${JAVALIBDIR}/${SWT}.jar" JAVA="${LOCALBASE}/bin/java"
.include <bsd.port.pre.mk>
.if defined(WITH_SWTDEVEL)
BUILD_DEPENDS+= \
${JAVALIBDIR}/swt-devel.jar:${PORTSDIR}/x11-toolkits/swt-devel
RUN_DEPENDS+= \
${JAVALIBDIR}/swt-devel.jar:${PORTSDIR}/x11-toolkits/swt-devel
SWT_JAR= swt-devel.jar
SWT= swt-devel
.else
BUILD_DEPENDS+= \
${JAVALIBDIR}/swt.jar:${PORTSDIR}/x11-toolkits/swt
RUN_DEPENDS+= \
${JAVALIBDIR}/swt.jar:${PORTSDIR}/x11-toolkits/swt
SWT_JAR= swt.jar
SWT= swt
.endif
CLASSPATH=.
@ -94,12 +61,18 @@ CLASSPATH:=${CLASSPATH}:${jar}
.endfor
post-patch:
@${SED} -E \
-e 's|%%CLASSPATH%%|${CLASSPATH}|' \
@${SED} -E -e 's|%%CLASSPATH%%|${CLASSPATH}|' \
${FILESDIR}/build.xml > ${WRKSRC}/build.xml
# bash -> sh
@${REINPLACE_CMD} -E \
-e 's|/bin/bash|${SH}|' \
@${REINPLACE_CMD} -E -e 's|/bin/bash|${SH}|' \
${WRKSRC}/com/aelitis/azureus/core/update/impl/AzureusRestarterImpl.java
do-install:
${MKDIR} ${JAVAJARDIR}
${INSTALL_DATA} ${WRKSRC}/dist/lib/${JARFILE} ${JAVAJARDIR}
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin/${PORTNAME}
post-install:
@${ECHO_CMD}; ${CAT} ${PKGMESSAGE}; ${ECHO_CMD}
.include <bsd.port.post.mk>

View File

@ -1,13 +1,10 @@
#!/bin/sh
#
# $FreeBSD$
export JAVA_VERSION
export JAVA_OS
# $FreeBSD: /tmp/pcvs/ports/net-p2p/azureus/files/Attic/azureus.in,v 1.1 2007-05-26 00:56:11 alepulver Exp $
# java
JAVA_VERSION="%%JAVA_VERSION%%"
JAVA_OS="%%JAVA_OS%%"
export JAVA_VERSION="%%JAVA_VERSION%%"
export JAVA_OS="%%JAVA_OS%%"
ECLIPSE_BASE=%%LOCALBASE%%/eclipse
ECLIPSE_SWT_JAR=%%SWTJAR%%

View File

@ -9,36 +9,26 @@ PORTNAME= azureus
PORTVERSION= 3.0.1.2
PORTREVISION= 1
CATEGORIES= net-p2p java
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
MASTER_SITES= SF
DISTNAME= Azureus_${PORTVERSION}_source
MAINTAINER= rnoland@2hip.net
COMMENT= A BitTorrent client written in Java
BUILD_DEPENDS= \
${JAVALIBDIR}/log4j.jar:${PORTSDIR}/devel/log4j \
BUILD_DEPENDS= ${JAVALIBDIR}/log4j.jar:${PORTSDIR}/devel/log4j \
${JAVALIBDIR}/commons-cli.jar:${PORTSDIR}/java/jakarta-commons-cli \
${JAVALIBDIR}/junit.jar:${PORTSDIR}/java/junit
ONLY_FOR_ARCHS= i386 amd64
${JAVALIBDIR}/junit.jar:${PORTSDIR}/java/junit \
${JAVALIBDIR}/${SWT}.jar:${PORTSDIR}/x11-toolkits/${SWT}
RUN_DEPENDS= ${JAVALIBDIR}/${SWT}.jar:${PORTSDIR}/x11-toolkits/${SWT}
USE_JAVA= yes
JAVA_BUILD= jdk
JAVA_RUN= jdk
JAVA_VERSION= 1.4+
JAVA_OS= native
USE_ANT= yes
USE_JIKES= no
USE_ZIP= yes
USE_DOS2UNIX= org/gudy/azureus2/ui/swt/test/PrintTransferTypes.java \
org/gudy/azureus2/ui/swt/Messages.java \
org/gudy/azureus2/ui/swt/views/configsections/ConfigSectionPlugins.java \
org/gudy/azureus2/ui/swt/shells/MessageSlideShell.java \
org/gudy/azureus2/ui/swt/Utils.java \
org/gudy/azureus2/platform/macosx/access/jnilib/OSXAccess.java \
com/aelitis/azureus/core/networkmanager/impl/TransportHelperFilterStream.java
org/gudy/azureus2/platform/macosx/access/jnilib/OSXAccess.java
NO_WRKSUBDIR= yes
@ -50,42 +40,19 @@ OPTIONS= SWTDEVEL "Use SWT Development port" on
MAKE_ENV= LANG=C
CLASSPATH_JARS= ${BUILD_DEPENDS:C/:.+$//:M*.jar}
PLIST_FILES= %%JAVAJARDIR%%/${JARFILE} bin/${PORTNAME}
PLIST_FILES= %%JAVAJARDIR%%/${JARFILE} \
bin/${PORTNAME}
do-configure:
${SED} -e "s+%%PREFIX%%+${PREFIX}+" -e "s+%%LOCALBASE%%+${LOCALBASE}+" \
-e "s|%%LIBDIR%%|${LOCALBASE}/lib|" \
-e "s|%%JAVAJARDIR%%|${JAVAJARDIR}|" \
-e "s|%%JAVA%%|${LOCALBASE}/bin/java|" \
-e "s|%%JAVA_VERSION%%|${JAVA_VERSION}|" \
-e "s|%%JAVA_OS%%|${JAVA_OS}|" \
-e "s|%%JARFILE%%|${JARFILE}|" \
-e "s|%%SWTJAR%%|${JAVALIBDIR}/${SWT_JAR}|" \
${FILESDIR}/${PORTNAME} > ${WRKDIR}/${PORTNAME}
do-install:
${MKDIR} ${JAVAJARDIR}
${INSTALL_DATA} ${WRKSRC}/dist/lib/${JARFILE} \
${JAVAJARDIR}/
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin/${PORTNAME}
post-install:
@${CAT} ${PKGMESSAGE}
SUB_FILES= ${PORTNAME}
SUB_LIST= LIBDIR="${LOCALBASE}/lib" JARFILE="${JARFILE}" \
SWTJAR="${JAVALIBDIR}/${SWT}.jar" JAVA="${LOCALBASE}/bin/java"
.include <bsd.port.pre.mk>
.if defined(WITH_SWTDEVEL)
BUILD_DEPENDS+= \
${JAVALIBDIR}/swt-devel.jar:${PORTSDIR}/x11-toolkits/swt-devel
RUN_DEPENDS+= \
${JAVALIBDIR}/swt-devel.jar:${PORTSDIR}/x11-toolkits/swt-devel
SWT_JAR= swt-devel.jar
SWT= swt-devel
.else
BUILD_DEPENDS+= \
${JAVALIBDIR}/swt.jar:${PORTSDIR}/x11-toolkits/swt
RUN_DEPENDS+= \
${JAVALIBDIR}/swt.jar:${PORTSDIR}/x11-toolkits/swt
SWT_JAR= swt.jar
SWT= swt
.endif
CLASSPATH=.
@ -94,12 +61,18 @@ CLASSPATH:=${CLASSPATH}:${jar}
.endfor
post-patch:
@${SED} -E \
-e 's|%%CLASSPATH%%|${CLASSPATH}|' \
@${SED} -E -e 's|%%CLASSPATH%%|${CLASSPATH}|' \
${FILESDIR}/build.xml > ${WRKSRC}/build.xml
# bash -> sh
@${REINPLACE_CMD} -E \
-e 's|/bin/bash|${SH}|' \
@${REINPLACE_CMD} -E -e 's|/bin/bash|${SH}|' \
${WRKSRC}/com/aelitis/azureus/core/update/impl/AzureusRestarterImpl.java
do-install:
${MKDIR} ${JAVAJARDIR}
${INSTALL_DATA} ${WRKSRC}/dist/lib/${JARFILE} ${JAVAJARDIR}
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin/${PORTNAME}
post-install:
@${ECHO_CMD}; ${CAT} ${PKGMESSAGE}; ${ECHO_CMD}
.include <bsd.port.post.mk>

View File

@ -1,13 +1,10 @@
#!/bin/sh
#
# $FreeBSD$
export JAVA_VERSION
export JAVA_OS
# $FreeBSD: /tmp/pcvs/ports/net-p2p/azureus2/files/Attic/azureus.in,v 1.1 2007-05-26 00:56:11 alepulver Exp $
# java
JAVA_VERSION="%%JAVA_VERSION%%"
JAVA_OS="%%JAVA_OS%%"
export JAVA_VERSION="%%JAVA_VERSION%%"
export JAVA_OS="%%JAVA_OS%%"
ECLIPSE_BASE=%%LOCALBASE%%/eclipse
ECLIPSE_SWT_JAR=%%SWTJAR%%

View File

@ -9,36 +9,26 @@ PORTNAME= azureus
PORTVERSION= 3.0.1.2
PORTREVISION= 1
CATEGORIES= net-p2p java
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
MASTER_SITES= SF
DISTNAME= Azureus_${PORTVERSION}_source
MAINTAINER= rnoland@2hip.net
COMMENT= A BitTorrent client written in Java
BUILD_DEPENDS= \
${JAVALIBDIR}/log4j.jar:${PORTSDIR}/devel/log4j \
BUILD_DEPENDS= ${JAVALIBDIR}/log4j.jar:${PORTSDIR}/devel/log4j \
${JAVALIBDIR}/commons-cli.jar:${PORTSDIR}/java/jakarta-commons-cli \
${JAVALIBDIR}/junit.jar:${PORTSDIR}/java/junit
ONLY_FOR_ARCHS= i386 amd64
${JAVALIBDIR}/junit.jar:${PORTSDIR}/java/junit \
${JAVALIBDIR}/${SWT}.jar:${PORTSDIR}/x11-toolkits/${SWT}
RUN_DEPENDS= ${JAVALIBDIR}/${SWT}.jar:${PORTSDIR}/x11-toolkits/${SWT}
USE_JAVA= yes
JAVA_BUILD= jdk
JAVA_RUN= jdk
JAVA_VERSION= 1.4+
JAVA_OS= native
USE_ANT= yes
USE_JIKES= no
USE_ZIP= yes
USE_DOS2UNIX= org/gudy/azureus2/ui/swt/test/PrintTransferTypes.java \
org/gudy/azureus2/ui/swt/Messages.java \
org/gudy/azureus2/ui/swt/views/configsections/ConfigSectionPlugins.java \
org/gudy/azureus2/ui/swt/shells/MessageSlideShell.java \
org/gudy/azureus2/ui/swt/Utils.java \
org/gudy/azureus2/platform/macosx/access/jnilib/OSXAccess.java \
com/aelitis/azureus/core/networkmanager/impl/TransportHelperFilterStream.java
org/gudy/azureus2/platform/macosx/access/jnilib/OSXAccess.java
NO_WRKSUBDIR= yes
@ -50,42 +40,19 @@ OPTIONS= SWTDEVEL "Use SWT Development port" on
MAKE_ENV= LANG=C
CLASSPATH_JARS= ${BUILD_DEPENDS:C/:.+$//:M*.jar}
PLIST_FILES= %%JAVAJARDIR%%/${JARFILE} bin/${PORTNAME}
PLIST_FILES= %%JAVAJARDIR%%/${JARFILE} \
bin/${PORTNAME}
do-configure:
${SED} -e "s+%%PREFIX%%+${PREFIX}+" -e "s+%%LOCALBASE%%+${LOCALBASE}+" \
-e "s|%%LIBDIR%%|${LOCALBASE}/lib|" \
-e "s|%%JAVAJARDIR%%|${JAVAJARDIR}|" \
-e "s|%%JAVA%%|${LOCALBASE}/bin/java|" \
-e "s|%%JAVA_VERSION%%|${JAVA_VERSION}|" \
-e "s|%%JAVA_OS%%|${JAVA_OS}|" \
-e "s|%%JARFILE%%|${JARFILE}|" \
-e "s|%%SWTJAR%%|${JAVALIBDIR}/${SWT_JAR}|" \
${FILESDIR}/${PORTNAME} > ${WRKDIR}/${PORTNAME}
do-install:
${MKDIR} ${JAVAJARDIR}
${INSTALL_DATA} ${WRKSRC}/dist/lib/${JARFILE} \
${JAVAJARDIR}/
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin/${PORTNAME}
post-install:
@${CAT} ${PKGMESSAGE}
SUB_FILES= ${PORTNAME}
SUB_LIST= LIBDIR="${LOCALBASE}/lib" JARFILE="${JARFILE}" \
SWTJAR="${JAVALIBDIR}/${SWT}.jar" JAVA="${LOCALBASE}/bin/java"
.include <bsd.port.pre.mk>
.if defined(WITH_SWTDEVEL)
BUILD_DEPENDS+= \
${JAVALIBDIR}/swt-devel.jar:${PORTSDIR}/x11-toolkits/swt-devel
RUN_DEPENDS+= \
${JAVALIBDIR}/swt-devel.jar:${PORTSDIR}/x11-toolkits/swt-devel
SWT_JAR= swt-devel.jar
SWT= swt-devel
.else
BUILD_DEPENDS+= \
${JAVALIBDIR}/swt.jar:${PORTSDIR}/x11-toolkits/swt
RUN_DEPENDS+= \
${JAVALIBDIR}/swt.jar:${PORTSDIR}/x11-toolkits/swt
SWT_JAR= swt.jar
SWT= swt
.endif
CLASSPATH=.
@ -94,12 +61,18 @@ CLASSPATH:=${CLASSPATH}:${jar}
.endfor
post-patch:
@${SED} -E \
-e 's|%%CLASSPATH%%|${CLASSPATH}|' \
@${SED} -E -e 's|%%CLASSPATH%%|${CLASSPATH}|' \
${FILESDIR}/build.xml > ${WRKSRC}/build.xml
# bash -> sh
@${REINPLACE_CMD} -E \
-e 's|/bin/bash|${SH}|' \
@${REINPLACE_CMD} -E -e 's|/bin/bash|${SH}|' \
${WRKSRC}/com/aelitis/azureus/core/update/impl/AzureusRestarterImpl.java
do-install:
${MKDIR} ${JAVAJARDIR}
${INSTALL_DATA} ${WRKSRC}/dist/lib/${JARFILE} ${JAVAJARDIR}
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin/${PORTNAME}
post-install:
@${ECHO_CMD}; ${CAT} ${PKGMESSAGE}; ${ECHO_CMD}
.include <bsd.port.post.mk>

View File

@ -1,13 +1,10 @@
#!/bin/sh
#
# $FreeBSD$
export JAVA_VERSION
export JAVA_OS
# $FreeBSD: /tmp/pcvs/ports/net-p2p/vuze/files/Attic/azureus.in,v 1.1 2007-05-26 00:56:11 alepulver Exp $
# java
JAVA_VERSION="%%JAVA_VERSION%%"
JAVA_OS="%%JAVA_OS%%"
export JAVA_VERSION="%%JAVA_VERSION%%"
export JAVA_OS="%%JAVA_OS%%"
ECLIPSE_BASE=%%LOCALBASE%%/eclipse
ECLIPSE_SWT_JAR=%%SWTJAR%%