aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
Diffstat (limited to 'devel')
-rw-r--r--devel/Makefile1
-rw-r--r--devel/jakarta-commons-chain/Makefile62
-rw-r--r--devel/jakarta-commons-chain/distinfo2
-rw-r--r--devel/jakarta-commons-chain/pkg-descr20
4 files changed, 85 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index 86e4826f4da4..9267fdff6dd9 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -394,6 +394,7 @@
SUBDIR += ireport
SUBDIR += itext
SUBDIR += ixlib
+ SUBDIR += jakarta-commons-chain
SUBDIR += jakelib2
SUBDIR += jam
SUBDIR += java-util-concurrent
diff --git a/devel/jakarta-commons-chain/Makefile b/devel/jakarta-commons-chain/Makefile
new file mode 100644
index 000000000000..b48fdb944650
--- /dev/null
+++ b/devel/jakarta-commons-chain/Makefile
@@ -0,0 +1,62 @@
+# New ports collection makefile for: Jakarta Commons Chain
+# Date created: October 3, 2005
+# Whom: Adam VanderHook <acidos@bandwidth-junkies.net>
+#
+# $FreeBSD$
+#
+
+PORTNAME= commons-chain
+PORTVERSION= 1.0
+CATEGORIES= devel java
+MASTER_SITES= ${MASTER_SITE_APACHE_JAKARTA}
+MASTER_SITE_SUBDIR= ${PORTNAME:S,-,/,}/source
+PKGNAMEPREFIX= jakarta-
+DISTNAME= ${PORTNAME}-${PORTVERSION}-src
+
+MAINTAINER= acidos@bandwidth-junkies.net
+COMMENT= API implementing Chain of Responsiblity design pattern
+
+BUILD_DEPENDS= ${JAR_DEPENDS}
+RUN_DEPENDS= ${JAR_DEPENDS}
+
+JAR_DEPENDS= ${JAVALIBDIR}/commons-beanutils.jar:${PORTSDIR}/java/jakarta-commons-beanutils \
+ ${JAVALIBDIR}/commons-digester.jar:${PORTSDIR}/textproc/jakarta-commons-digester \
+ ${JAVALIBDIR}/commons-logging.jar:${PORTSDIR}/java/jakarta-commons-logging \
+ ${JAVALIBDIR}/myfaces.jar:${PORTSDIR}/www/myfaces \
+ ${JAVALIBDIR}/portlet-api.jar:${PORTSDIR}/devel/portlet-api \
+ ${JAVALIBDIR}/servlet-api.jar:${PORTSDIR}/www/servlet-api
+
+USE_JAVA= yes
+USE_ANT= yes
+MAKE_ENV= CLASSPATH=${MAKE_CLASSPATH}
+MAKE_ARGS= -Dnoget=yes
+
+.include <bsd.port.pre.mk>
+
+MAKE_CLASSPATH!= ${ECHO_CMD} ${JAR_DEPENDS:C|:.*$||} | ${SED} 's| |:|g'
+
+ALL_TARGET= compile
+.if !defined(NOPORTDOCS)
+ALL_TARGET+= javadoc
+OTHERDOCS= LICENSE.txt NOTICE.txt
+PORTDOCS= api ${OTHERDOCS}
+.endif
+PLIST_FILES= %%JAVAJARDIR%%/${PORTNAME}.jar
+
+WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
+
+do-install:
+ @${ECHO_MSG} -n ">> Installing JAR as ${JAVAJARDIR}/${PORTNAME}.jar..."
+ @${INSTALL_DATA} ${WRKSRC}/${PORTNAME}-${PORTVERSION}.jar ${JAVAJARDIR}/${PORTNAME}.jar
+ @${ECHO_MSG} " [ DONE ]"
+
+.if !defined(NOPORTDOCS)
+ @${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}/..."
+ @cd ${WRKSRC}/dist/docs \
+ && ${FIND} api -type d -exec ${MKDIR} ${DOCSDIR}/{} \; \
+ && ${FIND} api -type f -exec ${INSTALL_DATA} {} ${DOCSDIR}/{} \;
+ @${INSTALL_DATA} ${OTHERDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}/
+ @${ECHO_MSG} " ${PORTDOCS} [ DONE ]"
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/jakarta-commons-chain/distinfo b/devel/jakarta-commons-chain/distinfo
new file mode 100644
index 000000000000..1d061c0cb63b
--- /dev/null
+++ b/devel/jakarta-commons-chain/distinfo
@@ -0,0 +1,2 @@
+MD5 (commons-chain-1.0-src.tar.gz) = 4c0382d53efed19ac0aff29a0662e2b0
+SIZE (commons-chain-1.0-src.tar.gz) = 175485
diff --git a/devel/jakarta-commons-chain/pkg-descr b/devel/jakarta-commons-chain/pkg-descr
new file mode 100644
index 000000000000..0f4ac8ecb3a5
--- /dev/null
+++ b/devel/jakarta-commons-chain/pkg-descr
@@ -0,0 +1,20 @@
+Jakarta Commons Chain of Responsiblity library.
+
+The Chain API models a computation as a series of "commands" that can be
+combined into a "chain". The API for a command consists of a single method
+(execute()), which is passed a "context" parameter containing the dynamic state
+of the computation, and whose return value is a boolean that determines whether
+or not processing for the current chain has been completed (true), or whether
+processing should be delegated to the next command in the chain (false).
+
+Given that command implementations are designed to conform with these
+recommendations, it should be feasible to utilize the Chain of Responsibility
+APIs in the "front controller" of a web application framework (such as Struts),
+but also be able to use it in the business logic and persistence tiers to model
+complex computational requirements via composition. In addition, separation of a
+computation into discrete commands that operate on a general purpose context
+allows easier creation of commands that are unit testable, because the impact of
+executing a command can be directly measured by observing the corresponding
+state changes in the context that is supplied.
+
+WWW: http://jakarta.apache.org/commons/chain/