From 0d1fb7b011e4a263a1b9b0f41f6ffee538568a07 Mon Sep 17 00:00:00 2001 From: ajacoutot Date: Mon, 14 Jan 2008 14:44:11 +0000 Subject: [PATCH] Import py-sip-4.7.3 SIP is a tool for automatically generating Python bindings for C and C++ libraries. SIP comprises a code generator and a Python module. The code generator processes a set of specification files and generates C or C++ code which is then compiled to create the bindings extension module. The SIP Python module provides support functions to the automatically generated code. from Lars Hansson via simon@ with some tweaks by me ok simon@ --- devel/py-sip/Makefile | 42 ++++++++++++++++++++++++++++++++++++++++++ devel/py-sip/distinfo | 5 +++++ devel/py-sip/pkg/DESCR | 7 +++++++ devel/py-sip/pkg/PLIST | 8 ++++++++ 4 files changed, 62 insertions(+) create mode 100644 devel/py-sip/Makefile create mode 100644 devel/py-sip/distinfo create mode 100644 devel/py-sip/pkg/DESCR create mode 100644 devel/py-sip/pkg/PLIST diff --git a/devel/py-sip/Makefile b/devel/py-sip/Makefile new file mode 100644 index 00000000000..d6d2e92ea5f --- /dev/null +++ b/devel/py-sip/Makefile @@ -0,0 +1,42 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2008/01/14 14:44:11 ajacoutot Exp $ + +SHARED_ONLY= Yes + +COMMENT= automatically generate Python bindings for C and C++ libs + +DISTNAME= sip-4.7.3 +PKGNAME= py-${DISTNAME} +CATEGORIES= devel + +HOMEPAGE= http://www.riverbankcomputing.co.uk/sip/ + +MAINTAINER= Lars Hansson + +# SIP license (Python like) +PERMIT_PACKAGE_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes + +WANTLIB= m c stdc++ + +MASTER_SITES= http://www.riverbankcomputing.com/Downloads/sip4/ + +MODULES= lang/python + +CONFIGURE_STYLE=simple +CONFIGURE_SCRIPT=${MODPY_BIN} configure.py +CONFIGURE_ARGS= INCDIR=${LOCALBASE}/include \ + LIBDIR=${LOCALBASE}/lib \ + CC=${CC} CXX=${CXX} \ + CFLAGS="${CFLAGS}" \ + CXXFLAGS="${CXXFLAGS}" + +NO_REGRESS= Yes + +post-install: + ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/py-sip + ${INSTALL_DATA} ${WRKSRC}/doc/sipref.txt \ + ${PREFIX}/share/doc/py-sip + +.include diff --git a/devel/py-sip/distinfo b/devel/py-sip/distinfo new file mode 100644 index 00000000000..18a2e548f9d --- /dev/null +++ b/devel/py-sip/distinfo @@ -0,0 +1,5 @@ +MD5 (sip-4.7.3.tar.gz) = p5LFjU0hHGWUnaxgBetlKw== +RMD160 (sip-4.7.3.tar.gz) = d0PeZ7qUfvRzDPbJAtEEf7J0GHI= +SHA1 (sip-4.7.3.tar.gz) = 394iuig7d02+VOf0lK4hf25D83A= +SHA256 (sip-4.7.3.tar.gz) = i8Cp0qtWWrswf/1X4H2BPFsuFKRF1e4W2W4TLgAjrBM= +SIZE (sip-4.7.3.tar.gz) = 446375 diff --git a/devel/py-sip/pkg/DESCR b/devel/py-sip/pkg/DESCR new file mode 100644 index 00000000000..0df242429a8 --- /dev/null +++ b/devel/py-sip/pkg/DESCR @@ -0,0 +1,7 @@ +SIP is a tool for automatically generating Python bindings for C and C++ +libraries. +SIP comprises a code generator and a Python module. The code generator +processes a set of specification files and generates C or C++ code which +is then compiled to create the bindings extension module. The SIP +Python module provides support functions to the automatically generated +code. diff --git a/devel/py-sip/pkg/PLIST b/devel/py-sip/pkg/PLIST new file mode 100644 index 00000000000..c77284710d1 --- /dev/null +++ b/devel/py-sip/pkg/PLIST @@ -0,0 +1,8 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2008/01/14 14:44:11 ajacoutot Exp $ +bin/sip +include/python${MODPY_VERSION}/sip.h +lib/python${MODPY_VERSION}/site-packages/sip.so +lib/python${MODPY_VERSION}/site-packages/sipconfig.py +lib/python${MODPY_VERSION}/site-packages/sipdistutils.py +share/doc/py-sip/ +share/doc/py-sip/sipref.txt