aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authornivit <nivit@FreeBSD.org>2011-12-19 05:59:39 +0800
committernivit <nivit@FreeBSD.org>2011-12-19 05:59:39 +0800
commit8ff3c831db99afe374396aec0bbe3eb20ea5c78c (patch)
tree15463d20581e79f7b9f240bff245882b7f0b7346 /devel
parente4db42df8c54995977030256588819e3d2585db5 (diff)
downloadfreebsd-ports-graphics-8ff3c831db99afe374396aec0bbe3eb20ea5c78c.tar.gz
freebsd-ports-graphics-8ff3c831db99afe374396aec0bbe3eb20ea5c78c.tar.zst
freebsd-ports-graphics-8ff3c831db99afe374396aec0bbe3eb20ea5c78c.zip
GeneratorRunner is a tool that eases the development of binding generators
for C++ and Qt-based libraries by providing a framework to help automating most of the process. It uses the ApiExtractor library to parse the header files and manipulate the classes information while generating the binding code using front-end modules provided by the user. GeneratorRunner is based on the QtScriptGenerator project WWW: http://www.pyside.org/docs/generatorrunner/
Diffstat (limited to 'devel')
-rw-r--r--devel/Makefile1
-rw-r--r--devel/generatorrunner/Makefile38
-rw-r--r--devel/generatorrunner/distinfo2
-rw-r--r--devel/generatorrunner/files/patch-CMakeLists.txt11
-rw-r--r--devel/generatorrunner/files/patch-data__CMakeLists.txt21
-rw-r--r--devel/generatorrunner/pkg-descr9
-rw-r--r--devel/generatorrunner/pkg-plist14
7 files changed, 96 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index babbce2bad2..dad61613fd0 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -460,6 +460,7 @@
SUBDIR += gearmand
SUBDIR += gecode
SUBDIR += generate
+ SUBDIR += generatorrunner
SUBDIR += gengetopt
SUBDIR += genproto
SUBDIR += gettext
diff --git a/devel/generatorrunner/Makefile b/devel/generatorrunner/Makefile
new file mode 100644
index 00000000000..816e43c0e8e
--- /dev/null
+++ b/devel/generatorrunner/Makefile
@@ -0,0 +1,38 @@
+# New ports collection makefile for: generatorrunner
+# Date created: 2011-03-21
+# Whom: Nicola Vitale <nivit@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= generatorrunner
+PORTVERSION= 0.6.15
+#PORTREVISION= 0
+CATEGORIES= devel
+MASTER_SITES= http://www.pyside.org/files/ \
+ http://nivi.interfree.it/distfiles/${PORTNAME}/
+
+MAINTAINER= nivit@FreeBSD.org
+COMMENT= Tool to create binding generators for C++ and Qt libraries
+
+LICENSE= GPLv2
+
+BUILD_DEPENDS= sphinx-build:${PORTSDIR}/textproc/py-sphinx
+LIB_DEPENDS= apiextractor.0:${PORTSDIR}/devel/apiextractor
+
+.if !defined(NO_INSTALL_MANPAGES)
+MAN1= docgenerator.1 generatorrunner.1
+.else
+CMAKE_ARGS= -DNO_INSTALL_MANPAGES:BOOL=ON
+.endif
+
+PLIST_SUB= PORTVERSION=${PORTVERSION}
+
+QT_COMPONENTS= gui qmake_build qtestlib moc_build rcc_build uic_build xml
+
+USE_BZIP2= yes
+USE_CMAKE= yes
+USE_LDCONFIG= yes
+USE_QT_VER= 4
+
+.include <bsd.port.mk>
diff --git a/devel/generatorrunner/distinfo b/devel/generatorrunner/distinfo
new file mode 100644
index 00000000000..7b8ad706827
--- /dev/null
+++ b/devel/generatorrunner/distinfo
@@ -0,0 +1,2 @@
+SHA256 (generatorrunner-0.6.15.tar.bz2) = a2e10fd90a99a070ae80b2d4d7c6654ac60a8eaa8af7fe152d441dac69da5e71
+SIZE (generatorrunner-0.6.15.tar.bz2) = 282551
diff --git a/devel/generatorrunner/files/patch-CMakeLists.txt b/devel/generatorrunner/files/patch-CMakeLists.txt
new file mode 100644
index 00000000000..adff1a26821
--- /dev/null
+++ b/devel/generatorrunner/files/patch-CMakeLists.txt
@@ -0,0 +1,11 @@
+--- ./CMakeLists.txt.orig 2011-11-18 21:38:22.000000000 +0100
++++ ./CMakeLists.txt 2011-12-18 18:34:11.000000000 +0100
+@@ -41,7 +41,7 @@
+ set(generator_MINOR_VERSION "6")
+ set(generator_MICRO_VERSION "15")
+ set(generator_VERSION "${generator_MAJOR_VERSION}.${generator_MINOR_VERSION}.${generator_MICRO_VERSION}")
+-set(generator_SOVERSION "${generator_MAJOR_VERSION}.${generator_MINOR_VERSION}")
++set(generator_SOVERSION "${generator_MAJOR_VERSION}")
+ set(USE_GENERATOR_VERSION_SUFFIX FALSE CACHE BOOL "This suffix allow to have various generator version installed simultaneous.")
+ if (ENABLE_VERSION_SUFFIX)
+ set(generator_SUFFIX "-${generator_MAJOR_VERSION}.${generator_MINOR_VERSION}")
diff --git a/devel/generatorrunner/files/patch-data__CMakeLists.txt b/devel/generatorrunner/files/patch-data__CMakeLists.txt
new file mode 100644
index 00000000000..0b2a5d52e19
--- /dev/null
+++ b/devel/generatorrunner/files/patch-data__CMakeLists.txt
@@ -0,0 +1,21 @@
+--- ./data/CMakeLists.txt.orig 2011-11-18 21:38:22.000000000 +0100
++++ ./data/CMakeLists.txt 2011-12-18 18:34:31.000000000 +0100
+@@ -7,7 +7,7 @@
+ "${CMAKE_CURRENT_BINARY_DIR}/GeneratorRunnerConfigVersion.cmake" @ONLY)
+
+ install(FILES "${CMAKE_CURRENT_BINARY_DIR}/generatorrunner${generator_SUFFIX}.pc" DESTINATION
+- "${LIB_INSTALL_DIR}/pkgconfig")
++ "${LIB_INSTALL_DIR}data/pkgconfig")
+ install(FILES "${CMAKE_CURRENT_BINARY_DIR}/GeneratorRunnerConfig.cmake"
+ DESTINATION "${LIB_INSTALL_DIR}/cmake/GeneratorRunner-${generator_VERSION}")
+ install(FILES "${CMAKE_CURRENT_BINARY_DIR}/GeneratorRunnerConfigVersion.cmake"
+@@ -20,6 +20,7 @@
+ "${CMAKE_CURRENT_BINARY_DIR}/generatorrunner${generator_SUFFIX}.1")
+ configure_file("${CMAKE_CURRENT_SOURCE_DIR}/generatorrunner.pc.in"
+ "${CMAKE_CURRENT_BINARY_DIR}/generatorrunner${generator_SUFFIX}.pc" @ONLY)
+-
++if(NOT NO_INSTALL_MANPAGES)
+ file(GLOB manpages "${CMAKE_CURRENT_BINARY_DIR}/*${generator_SUFFIX}.1")
+-install(FILES ${manpages} DESTINATION share/man/man1)
++install(FILES ${manpages} DESTINATION man/man1)
++endif()
diff --git a/devel/generatorrunner/pkg-descr b/devel/generatorrunner/pkg-descr
new file mode 100644
index 00000000000..2b16af68d08
--- /dev/null
+++ b/devel/generatorrunner/pkg-descr
@@ -0,0 +1,9 @@
+GeneratorRunner is a tool that eases the development of binding generators
+for C++ and Qt-based libraries by providing a framework to help automating
+most of the process. It uses the ApiExtractor library to parse the header
+files and manipulate the classes information while generating the binding
+code using front-end modules provided by the user.
+
+GeneratorRunner is based on the QtScriptGenerator project
+
+WWW: http://www.pyside.org/docs/generatorrunner/
diff --git a/devel/generatorrunner/pkg-plist b/devel/generatorrunner/pkg-plist
new file mode 100644
index 00000000000..a39f135aef7
--- /dev/null
+++ b/devel/generatorrunner/pkg-plist
@@ -0,0 +1,14 @@
+bin/docgenerator
+bin/generatorrunner
+include/generatorrunner/generator.h
+include/generatorrunner/generatorrunnermacros.h
+lib/cmake/GeneratorRunner-%%PORTVERSION%%/GeneratorRunnerConfig.cmake
+lib/cmake/GeneratorRunner-%%PORTVERSION%%/GeneratorRunnerConfigVersion.cmake
+lib/generatorrunner/qtdoc_generator.so
+lib/libgenrunner.so
+lib/libgenrunner.so.0
+lib/libgenrunner.so.%%PORTVERSION%%
+libdata/pkgconfig/generatorrunner.pc
+@dirrm lib/generatorrunner
+@dirrm lib/cmake/GeneratorRunner-%%PORTVERSION%%
+@dirrm include/generatorrunner