API Extractor library to build PySide

The API Extractor library is used by the binding generator to parse headers
of a given library and merge this data with information provided by
typesystem (XML) files, resulting in a representation of how the API should be
exported to the chosen target language. The generation of source code for the
bindings is performed by specific generators using the API Extractor library.

The API Extractor is based on QtScriptGenerator

WWW:	http://www.pyside.org/docs/apiextractor/
This commit is contained in:
Nicola Vitale 2011-12-18 21:58:21 +00:00
parent 29930ba0c5
commit 03d5abef50
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=287621
7 changed files with 94 additions and 0 deletions

View file

@ -43,6 +43,7 @@
SUBDIR += antlrworks SUBDIR += antlrworks
SUBDIR += apache-ant SUBDIR += apache-ant
SUBDIR += api-sanity-autotest SUBDIR += api-sanity-autotest
SUBDIR += apiextractor
SUBDIR += apr0 SUBDIR += apr0
SUBDIR += apr1 SUBDIR += apr1
SUBDIR += apr2 SUBDIR += apr2

View file

@ -0,0 +1,34 @@
# New ports collection makefile for: apiextractor
# Date created: 2011-03-21
# Whom: Nicola Vitale <nivit@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= apiextractor
PORTVERSION= 0.10.9
#PORTREVISION= 0
CATEGORIES= devel
MASTER_SITES= http://www.pyside.org/files/ \
http://nivi.interfree.it/distfiles/${PORTNAME}/
MAINTAINER= nivit@FreeBSD.org
COMMENT= API Extractor library to build PySide
LICENSE= GPLv2
BUILD_DEPENDS= sphinx-build:${PORTSDIR}/textproc/py-sphinx
LIB_DEPENDS= xml2.5:${PORTSDIR}/textproc/libxml2 \
xslt.2:${PORTSDIR}/textproc/libxslt
PLIST_SUB= PORTVERSION=${PORTVERSION}
QT_COMPONENTS= gui moc_build qmake_build qtestlib_build \
rcc_build uic_build xml xmlpatterns
USE_BZIP2= yes
USE_CMAKE= yes
USE_LDCONFIG= yes
USE_QT_VER= 4
.include <bsd.port.mk>

View file

@ -0,0 +1,2 @@
SHA256 (apiextractor-0.10.9.tar.bz2) = 2d9fe46e4240ca4e6ba941835950284c5996f1b9c22cad94d95e823429b04659
SIZE (apiextractor-0.10.9.tar.bz2) = 272694

View file

@ -0,0 +1,12 @@
$FreeBSD$
--- ./CMakeLists.txt.orig 2011-12-15 22:30:24.000000000 +0100
+++ ./CMakeLists.txt 2011-12-15 22:35:29.000000000 +0100
@@ -53,7 +53,7 @@
set(apiextractor_MICRO_VERSION 9)
set(apiextractor_VERSION "${apiextractor_MAJOR_VERSION}.${apiextractor_MINOR_VERSION}.${apiextractor_MICRO_VERSION}")
configure_file(apiextractorversion.h.in ${CMAKE_CURRENT_BINARY_DIR}/apiextractorversion.h @ONLY)
-set(apiextractor_SOVERSION ${apiextractor_MAJOR_VERSION}.${apiextractor_MINOR_VERSION})
+set(apiextractor_SOVERSION ${apiextractor_MAJOR_VERSION})
set(QT_USE_QTCORE 1)
set(QT_USE_QTXML 1)
include(${QT_USE_FILE})

View file

@ -0,0 +1,12 @@
$FreeBSD$
--- ./data/CMakeLists.txt.orig 2011-11-18 19:10:10.000000000 +0100
+++ ./data/CMakeLists.txt 2011-12-15 22:29:55.000000000 +0100
@@ -11,7 +11,7 @@
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/ApiExtractorConfig.cmake.in" "${CMAKE_CURRENT_BINARY_DIR}/ApiExtractorConfig.cmake" @ONLY)
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/ApiExtractorConfigVersion.cmake.in" "${CMAKE_CURRENT_BINARY_DIR}/ApiExtractorConfigVersion.cmake" @ONLY)
-install(FILES "${CMAKE_CURRENT_BINARY_DIR}/apiextractor${apiextractor_SUFFIX}.pc" DESTINATION "${LIB_INSTALL_DIR}/pkgconfig")
+install(FILES "${CMAKE_CURRENT_BINARY_DIR}/apiextractor${apiextractor_SUFFIX}.pc" DESTINATION "${LIB_INSTALL_DIR}data/pkgconfig")
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/ApiExtractorConfig.cmake"
DESTINATION "${LIB_INSTALL_DIR}/cmake/ApiExtractor-${apiextractor_VERSION}")
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/ApiExtractorConfigVersion.cmake"

View file

@ -0,0 +1,11 @@
API Extractor library to build PySide
The API Extractor library is used by the binding generator to parse headers
of a given library and merge this data with information provided by
typesystem (XML) files, resulting in a representation of how the API should be
exported to the chosen target language. The generation of source code for the
bindings is performed by specific generators using the API Extractor library.
The API Extractor is based on QtScriptGenerator
WWW: http://www.pyside.org/docs/apiextractor/

View file

@ -0,0 +1,22 @@
@comment $FreeBSD$
include/apiextractor/abstractmetalang.h
include/apiextractor/apiextractor.h
include/apiextractor/apiextractormacros.h
include/apiextractor/docparser.h
include/apiextractor/doxygenparser.h
include/apiextractor/fileout.h
include/apiextractor/graph.h
include/apiextractor/include.h
include/apiextractor/qtdocparser.h
include/apiextractor/reporthandler.h
include/apiextractor/typedatabase.h
include/apiextractor/typesystem.h
lib/cmake/ApiExtractor-%%PORTVERSION%%/ApiExtractorConfig.cmake
lib/cmake/ApiExtractor-%%PORTVERSION%%/ApiExtractorConfigVersion.cmake
lib/libapiextractor.so
lib/libapiextractor.so.0
lib/libapiextractor.so.%%PORTVERSION%%
libdata/pkgconfig/apiextractor.pc
@dirrm lib/cmake/ApiExtractor-%%PORTVERSION%%
@dirrmtry lib/cmake
@dirrm include/apiextractor