Features of Dia2code: -* Reads UML diagrams. -* Can handle DESCR Makefile PLIST distinfo UML - Generalization DESCR Makefile PLIST distinfo UML - Realization DESCR Makefile PLIST distinfo UML - Implements DESCR Makefile PLIST distinfo UML - Association DESCR Makefile PLIST distinfo UML - Dependency -* Selective code generation -* User-defined output directory -* Stereotype handling: interfaces, abstract classes -* Import and include based on the parent classes, the type of attributes and return type of methods iff they're declared in the same diagram -* Support for JavaBeans(tm): will create automagically methods to access and modify each attribute -* Template and Package handling -* Custom code generator modules that are loaded on-the-fly -* Generates code for: Ada, C, C++, Java, PHP, Python, shapefile, SQL and C#
This commit is contained in:
parent
c994220ff6
commit
99a56be891
4 changed files with 72 additions and 0 deletions
19
dia2code/DESCR
Normal file
19
dia2code/DESCR
Normal file
|
@ -0,0 +1,19 @@
|
|||
Features of Dia2code:
|
||||
-* Reads UML diagrams.
|
||||
-* Can handle
|
||||
* UML - Generalization
|
||||
* UML - Realization
|
||||
* UML - Implements
|
||||
* UML - Association
|
||||
* UML - Dependency
|
||||
-* Selective code generation
|
||||
-* User-defined output directory
|
||||
-* Stereotype handling: interfaces, abstract classes
|
||||
-* "Import" and "include" based on the parent classes, the type of
|
||||
attributes and return type of methods iff they're declared in the
|
||||
same diagram
|
||||
-* Support for JavaBeans(tm): will create automagically methods to
|
||||
access and modify each attribute
|
||||
-* Template and Package handling
|
||||
-* Custom code generator modules that are loaded on-the-fly
|
||||
-* Generates code for: Ada, C, C++, Java, PHP, Python, shapefile, SQL and C#
|
44
dia2code/Makefile
Normal file
44
dia2code/Makefile
Normal file
|
@ -0,0 +1,44 @@
|
|||
# $NetBSD: Makefile,v 1.1.1.1 2004/11/26 19:00:03 daprice Exp $
|
||||
#
|
||||
|
||||
DISTNAME= dia2code-0.8.1
|
||||
WRKSRC= ${WRKDIR}/dia2code-0.8.1
|
||||
CATEGORIES= devel
|
||||
MASTER_SITES= http://easynews.dl.sourceforge.net/sourceforge/dia2code/
|
||||
|
||||
MAINTAINER= dprice@cs.nmsu.edu
|
||||
HOMEPAGE= http://dia2code.sourceforge.net/
|
||||
COMMENT= small utility used to generate code from a Dia diagram
|
||||
|
||||
USE_BUILDLINK3= yes
|
||||
GNU_CONFIGURE= yes
|
||||
|
||||
pre-build:
|
||||
${SED} -e 's:INCLUDES =:INCLUDES = -I${PREFIX}/include/libxml2/libxml :' \
|
||||
${WRKSRC}/Makefile > ${WRKSRC}/Makefile.temp
|
||||
${MV} ${WRKSRC}/Makefile.temp ${WRKSRC}/Makefile
|
||||
|
||||
${SED} -e 's:INCLUDES =:INCLUDES = -I${PREFIX}/include/libxml2/libxml :' \
|
||||
${WRKSRC}/dia2code/Makefile > ${WRKSRC}/dia2code/Makefile.temp
|
||||
${MV} ${WRKSRC}/dia2code/Makefile.temp ${WRKSRC}/dia2code/Makefile
|
||||
|
||||
${SED} -e 's:INCLUDES =:XML_INCLUDES = -I${PREFIX}/include/libxml2/libxml :' \
|
||||
${WRKSRC}/dia2code/docs/Makefile > ${WRKSRC}/dia2code/docs/Makefile.temp
|
||||
${MV} ${WRKSRC}/dia2code/docs/Makefile.temp ${WRKSRC}/dia2code/docs/Makefile
|
||||
|
||||
${SED} -e 's:INCLUDES =:XML_INCLUDES = -I${PREFIX}/include/libxml2/libxml :' \
|
||||
${WRKSRC}/dia2code/docs/en/Makefile > ${WRKSRC}/dia2code/docs/en/Makefile.temp
|
||||
${MV} ${WRKSRC}/dia2code/docs/en/Makefile.temp ${WRKSRC}/dia2code/docs/en/Makefile
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/dia2code/dia2code ${PREFIX}/bin
|
||||
${INSTALL_MAN} ${WRKSRC}/dia2code.1 ${PREFIX}/man/man1/dia2code.1
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/docs/dia2code
|
||||
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/docs/dia2code
|
||||
|
||||
.include "../../textproc/libxml2/buildlink3.mk"
|
||||
.include "../../converters/libiconv/buildlink3.mk"
|
||||
.include "../../devel/zlib/buildlink3.mk"
|
||||
.include "../../mk/pthread.buildlink3.mk"
|
||||
.include "../../mk/bsd.pkg.mk"
|
||||
|
5
dia2code/PLIST
Normal file
5
dia2code/PLIST
Normal file
|
@ -0,0 +1,5 @@
|
|||
@comment $NetBSD: PLIST,v 1.1.1.1 2004/11/26 19:00:03 daprice Exp $
|
||||
bin/dia2code
|
||||
man/man1/dia2code.1.gz
|
||||
docs/dia2code/README
|
||||
@dirrm docs/dia2code
|
4
dia2code/distinfo
Normal file
4
dia2code/distinfo
Normal file
|
@ -0,0 +1,4 @@
|
|||
$NetBSD: distinfo,v 1.1.1.1 2004/11/26 19:00:03 daprice Exp $
|
||||
|
||||
SHA1 (dia2code-0.8.1.tar.gz) = 5d72a23e82208e789ef1ecceee80edfb8813025b
|
||||
Size (dia2code-0.8.1.tar.gz) = 71453 bytes
|
Loading…
Reference in a new issue