aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Lo <kevlo@FreeBSD.org>2011-02-15 03:47:22 +0000
committerKevin Lo <kevlo@FreeBSD.org>2011-02-15 03:47:22 +0000
commit53878bc0868ba683c8043614bd50fdee2a298774 (patch)
tree7f7dad144da4db3dc6c1e5a3f1b1e66346e0c58f
parent2317d435f1b21eee173b8c927de08582988c5dd1 (diff)
downloadports-53878bc0868ba683c8043614bd50fdee2a298774.tar.gz
ports-53878bc0868ba683c8043614bd50fdee2a298774.zip
Notes
-rw-r--r--devel/Makefile1
-rw-r--r--devel/umlgraph/Makefile41
-rw-r--r--devel/umlgraph/distinfo2
-rw-r--r--devel/umlgraph/files/patch-umlgraph11
-rw-r--r--devel/umlgraph/pkg-descr5
5 files changed, 60 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index 040e6681995b..495c54c1688a 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -3400,6 +3400,7 @@
SUBDIR += ucpp
SUBDIR += udis86
SUBDIR += umem
+ SUBDIR += umlgraph
SUBDIR += universalindentgui
SUBDIR += upnp
SUBDIR += upp
diff --git a/devel/umlgraph/Makefile b/devel/umlgraph/Makefile
new file mode 100644
index 000000000000..07f4eb8db27e
--- /dev/null
+++ b/devel/umlgraph/Makefile
@@ -0,0 +1,41 @@
+# Ports collection makefile for: umlgraph
+# Date created: 15 February, 2010
+# Whom: Kevin Lo <kevlo@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= umlgraph
+PORTVERSION= 5.4
+CATEGORIES= devel java
+MASTER_SITES= http://www.umlgraph.org/
+DISTNAME= UMLGraph-${PORTVERSION}
+DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
+
+MAINTAINER= kevlo@FreeBSD.org
+COMMENT= An automated drawing of UML diagrams
+
+LICENSE= BSD
+
+WRKSRC= ${WRKDIR}/${DISTNAME}
+USE_ANT= yes
+USE_JAVA= yes
+JAVA_VERSION= 1.5+
+
+BUILD_DEPENDS= dot:${PORTSDIR}/graphics/graphviz \
+ pic2plot:${PORTSDIR}/graphics/plotutils
+RUN_DEPENDS= ${BUILD_DEPENDS}
+
+PLIST_FILES= bin/umlgraph %%JAVAJARDIR%%/UmlGraph.jar
+
+post-configure:
+ ${REINPLACE_CMD} -e 's|%%JAVA_HOME%%|${JAVA_HOME}|; \
+ s|%%JAVAJARDIR%%|${JAVAJARDIR}|' \
+ ${WRKSRC}/bin/umlgraph
+
+do-install:
+ @${MKDIR} ${JAVAJARDIR}
+ @${INSTALL_DATA} ${WRKSRC}/lib/UmlGraph.jar ${JAVAJARDIR}/
+ @${INSTALL_SCRIPT} ${WRKSRC}/bin/umlgraph ${PREFIX}/bin
+
+.include <bsd.port.mk>
diff --git a/devel/umlgraph/distinfo b/devel/umlgraph/distinfo
new file mode 100644
index 000000000000..3ace94b65539
--- /dev/null
+++ b/devel/umlgraph/distinfo
@@ -0,0 +1,2 @@
+SHA256 (UMLGraph-5.4.tar.gz) = 55534a7badc74f662518ccf460948a3068b59e3741e5d95cc38eaa059596cd2e
+SIZE (UMLGraph-5.4.tar.gz) = 4296622
diff --git a/devel/umlgraph/files/patch-umlgraph b/devel/umlgraph/files/patch-umlgraph
new file mode 100644
index 000000000000..0b11a26f8484
--- /dev/null
+++ b/devel/umlgraph/files/patch-umlgraph
@@ -0,0 +1,11 @@
+--- bin/umlgraph.orig 2011-01-09 02:38:50.000000000 +0800
++++ bin/umlgraph 2011-02-14 18:43:16.000000000 +0800
+@@ -19,7 +19,7 @@
+ BASE=$1
+ FILETYPE=$2
+ shift 2
+- java -classpath "$UMLGRAPH_HOME/UmlGraph.jar:$JAVA_HOME/lib/tools.jar" \
++ java -classpath "%%JAVAJARDIR%%/UmlGraph.jar:%%JAVA_HOME%%/lib/tools.jar" \
+ org.umlgraph.doclet.UmlGraph -package $* -output - $BASE.java |
+ dot -T$FILETYPE -o$BASE.$FILETYPE
+ fi
diff --git a/devel/umlgraph/pkg-descr b/devel/umlgraph/pkg-descr
new file mode 100644
index 000000000000..c29dd6ad1d83
--- /dev/null
+++ b/devel/umlgraph/pkg-descr
@@ -0,0 +1,5 @@
+UMLGraph facilitates the declarative specification and drawing
+of UML class and sequence diagrams. One can specify a class design
+using the Java syntax complemented by Javadoc tags.
+
+WWW: http://www.umlgraph.org/