summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-devtools/sip
diff options
context:
space:
mode:
authorPhilip Balister <philip@balister.org>2018-10-04 12:43:23 -0400
committerKhem Raj <raj.khem@gmail.com>2018-10-04 16:08:47 -0700
commit7d892a14ef4e03ef916e18ace4505073a36afb1d (patch)
tree90c39c5e19a4c5be2c6ba6542bfcea189fceb455 /meta-oe/recipes-devtools/sip
parent0597b5c0bac2eac2849a0ced741de0b1f1b39b01 (diff)
downloadmeta-openembedded-7d892a14ef4e03ef916e18ace4505073a36afb1d.tar.gz
sip: Add python3 version of the sip recipe.
Signed-off-by: Philip Balister <philip@balister.org> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-devtools/sip')
-rw-r--r--meta-oe/recipes-devtools/sip/sip.inc36
-rw-r--r--meta-oe/recipes-devtools/sip/sip3_4.19.13.bb11
-rw-r--r--meta-oe/recipes-devtools/sip/sip_4.19.13.bb36
3 files changed, 49 insertions, 34 deletions
diff --git a/meta-oe/recipes-devtools/sip/sip.inc b/meta-oe/recipes-devtools/sip/sip.inc
new file mode 100644
index 000000000..d0795454e
--- /dev/null
+++ b/meta-oe/recipes-devtools/sip/sip.inc
@@ -0,0 +1,36 @@
1SUMMARY = "SIP is a C++/Python Wrapper Generator"
2HOMEPAGE = "http://www.riverbankcomputing.co.uk/sip"
3SECTION = "devel"
4LICENSE = "GPLv2+"
5LIC_FILES_CHKSUM = "file://LICENSE-GPL2;md5=e91355d8a6f8bd8f7c699d62863c7303"
6
7SRC_URI = "${SOURCEFORGE_MIRROR}/project/pyqt/sip/sip-${PV}/sip-${PV}.tar.gz \
8 "
9SRC_URI[md5sum] = "9124cb8978742685747a5415179a9890"
10SRC_URI[sha256sum] = "e353a7056599bf5fbd5d3ff9842a6ab2ea3cf4e0304a0f925ec5862907c0d15e"
11
12S = "${WORKDIR}/sip-${PV}"
13
14BBCLASSEXTEND = "native"
15
16do_configure_prepend_class-target() {
17 echo "py_platform = linux" > sip.cfg
18 echo "py_inc_dir = %(sysroot)/${includedir}/python${PYTHON_BASEVERSION}${PYTHON_ABI}" >> sip.cfg
19 echo "sip_bin_dir = ${D}/${bindir}" >> sip.cfg
20 echo "sip_inc_dir = ${D}/${includedir}" >> sip.cfg
21 echo "sip_module_dir = ${D}/${libdir}/python${PYTHON_BASEVERSION}${PYTHON_ABI}/site-packages" >> sip.cfg
22 echo "sip_sip_dir = ${D}/${datadir}/sip" >> sip.cfg
23 ${PYTHON} configure.py --configuration sip.cfg --sip-module PyQt5.sip --sysroot ${STAGING_DIR_HOST} CC="${CC}" CXX="${CXX}" LINK="${CXX}" STRIP="" LINK_SHLIB="${CXX}" CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" LFLAGS="${LDFLAGS}"
24}
25do_configure_prepend_class-native() {
26 echo "py_platform = linux" > sip.cfg
27 echo "py_inc_dir = ${includedir}/python${PYTHON_BASEVERSION}${PYTHON_ABI}" >> sip.cfg
28 echo "sip_bin_dir = ${D}/${bindir}" >> sip.cfg
29 echo "sip_inc_dir = ${D}/${includedir}" >> sip.cfg
30 echo "sip_module_dir = ${D}/${libdir}/python${PYTHON_BASEVERSION}${PYTHON_ABI}/site-packages" >> sip.cfg
31 echo "sip_sip_dir = ${D}/${datadir}/sip" >> sip.cfg
32 ${PYTHON} configure.py --configuration sip.cfg --sip-module PyQt5.sip --sysroot=${STAGING_DIR_NATIVE}
33}
34do_install() {
35 oe_runmake install
36}
diff --git a/meta-oe/recipes-devtools/sip/sip3_4.19.13.bb b/meta-oe/recipes-devtools/sip/sip3_4.19.13.bb
new file mode 100644
index 000000000..dc15bc2e2
--- /dev/null
+++ b/meta-oe/recipes-devtools/sip/sip3_4.19.13.bb
@@ -0,0 +1,11 @@
1require sip.inc
2
3DEPENDS = "python3"
4
5inherit python3-dir python3native
6
7PACKAGES += "python3-sip3"
8
9FILES_python3-sip3 = "${libdir}/${PYTHON_DIR}${PYTHON_ABI}/site-packages/"
10FILES_${PN}-dbg += "${libdir}/${PYTHON_DIR}${PYTHON_ABI}/site-packages/.debug"
11
diff --git a/meta-oe/recipes-devtools/sip/sip_4.19.13.bb b/meta-oe/recipes-devtools/sip/sip_4.19.13.bb
index 09f15d421..3da15b842 100644
--- a/meta-oe/recipes-devtools/sip/sip_4.19.13.bb
+++ b/meta-oe/recipes-devtools/sip/sip_4.19.13.bb
@@ -1,43 +1,11 @@
1SUMMARY = "SIP is a C++/Python Wrapper Generator" 1require sip.inc
2HOMEPAGE = "http://www.riverbankcomputing.co.uk/sip"
3SECTION = "devel"
4LICENSE = "GPLv2+"
5LIC_FILES_CHKSUM = "file://LICENSE-GPL2;md5=e91355d8a6f8bd8f7c699d62863c7303"
6 2
7DEPENDS = "python" 3DEPENDS = "python"
8 4
9inherit python-dir pythonnative 5inherit python-dir pythonnative
10 6
11SRC_URI = "${SOURCEFORGE_MIRROR}/project/pyqt/sip/sip-${PV}/sip-${PV}.tar.gz \
12 "
13SRC_URI[md5sum] = "9124cb8978742685747a5415179a9890"
14SRC_URI[sha256sum] = "e353a7056599bf5fbd5d3ff9842a6ab2ea3cf4e0304a0f925ec5862907c0d15e"
15
16BBCLASSEXTEND = "native"
17
18PACKAGES += "python-sip" 7PACKAGES += "python-sip"
19 8
20do_configure_prepend_class-target() {
21 echo "py_platform = linux" > sip.cfg
22 echo "py_inc_dir = %(sysroot)/${includedir}/python%(py_major).%(py_minor)" >> sip.cfg
23 echo "sip_bin_dir = ${D}/${bindir}" >> sip.cfg
24 echo "sip_inc_dir = ${D}/${includedir}" >> sip.cfg
25 echo "sip_module_dir = ${D}/${libdir}/python%(py_major).%(py_minor)/site-packages" >> sip.cfg
26 echo "sip_sip_dir = ${D}/${datadir}/sip" >> sip.cfg
27 python configure.py --configuration sip.cfg --sip-module PyQt5.sip --sysroot ${STAGING_DIR_HOST} CC="${CC}" CXX="${CXX}" LINK="${CXX}" STRIP="" LINK_SHLIB="${CXX}" CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" LFLAGS="${LDFLAGS}"
28}
29do_configure_prepend_class-native() {
30 echo "py_platform = linux" > sip.cfg
31 echo "py_inc_dir = ${includedir}/python%(py_major).%(py_minor)" >> sip.cfg
32 echo "sip_bin_dir = ${D}/${bindir}" >> sip.cfg
33 echo "sip_inc_dir = ${D}/${includedir}" >> sip.cfg
34 echo "sip_module_dir = ${D}/${libdir}/python%(py_major).%(py_minor)/site-packages" >> sip.cfg
35 echo "sip_sip_dir = ${D}/${datadir}/sip" >> sip.cfg
36 python configure.py --configuration sip.cfg --sip-module PyQt5.sip --sysroot=${STAGING_DIR_NATIVE}
37}
38do_install() {
39 oe_runmake install
40}
41
42FILES_python-sip = "${libdir}/${PYTHON_DIR}/site-packages/" 9FILES_python-sip = "${libdir}/${PYTHON_DIR}/site-packages/"
43FILES_${PN}-dbg += "${libdir}/${PYTHON_DIR}/site-packages/.debug" 10FILES_${PN}-dbg += "${libdir}/${PYTHON_DIR}/site-packages/.debug"
11