mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 21:30:08 +02:00
51 lines
1.2 KiB
Bash
51 lines
1.2 KiB
Bash
SUMMARY="A tool to create Python bindings for C and C++ libraries"
|
|
DESCRIPTION="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."
|
|
HOMEPAGE="https://www.riverbankcomputing.com/software/sip/"
|
|
COPYRIGHT="2015 Riverbank Computing Limited"
|
|
LICENSE="GNU GPL v3"
|
|
REVISION="1"
|
|
SOURCE_URI="http://sourceforge.net/projects/pyqt/files/sip/sip-$portVersion/sip-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="f1dc5c81c07a9ad97edcd4a0af964a41e420024ba7ca165afd2b351efd249cb6"
|
|
SOURCE_DIR="sip-$portVersion"
|
|
PATCHES="sip-$portVersion.patch"
|
|
|
|
ARCHITECTURES="x86 x86_gcc2 x86_64"
|
|
|
|
PROVIDES="
|
|
python_sip = $portVersion
|
|
cmd:sip = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku
|
|
cmd:python2
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku_devel
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:python2
|
|
cmd:gcc
|
|
cmd:make
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
$portPackageLinksDir/cmd~python2/bin/python2 configure.py \
|
|
--platform=haiku-g++ \
|
|
--bindir=$binDir \
|
|
--incdir=$includeDir/python2.7 \
|
|
--destdir=$libDir/python2.7/vendor-packages \
|
|
#--sipdir= \
|
|
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
}
|