<commit_before>DESCRIPTION = "A full fledged pluggable content management system with integrated web server and much more."
SECTION = "console/network"
PRIORITY = "optional"
DEPENDS = "python"
RDEPENDS = "python-core python-shell"
LICENSE = "ZPL"
PR = "r7"

SRC_URI = "http://www.zope.org/Products/Zope3/${PV}/Zope-${PV}.tgz"
S = "${WORKDIR}/Zope-${PV}"

inherit distutils-base

do_configure() {
	./configure --with-python=${STAGING_BINDIR_NATIVE}/python --prefix=${prefix} --force
}

do_compile() {
	oe_runmake HOST_SYS=${HOST_SYS} BUILD_SYS=${BUILD_SYS} STAGING_INCDIR=${STAGING_INCDIR}
}

do_install() {
	install -d ${D}${libdir}/${PYTHON_DIR}
	oe_runmake install prefix=${D}${prefix} HOST_SYS=${HOST_SYS} BUILD_SYS=${BUILD_SYS}
	mv ${D}${libdir}/python/* ${D}${libdir}/${PYTHON_DIR} 
	rm -rf ${D}${libdir}/${PYTHON_DIR}/twisted
	rm -rf ${D}${libdir}/${PYTHON_DIR}/zope/app/twisted
}

PACKAGES =+ "python-zopeinterface python-zopeinterface-dbg"

FILES_${PN} = "${prefix}"
FILES_${PN}_doc = "${prefix}/doc"
FILES_${PN}-dbg += "\
${libdir}/${PYTHON_DIR}/BTrees/.debug \
${libdir}/${PYTHON_DIR}/persistent/.debug \
${libdir}/${PYTHON_DIR}/zope/proxy/.debug \
${libdir}/${PYTHON_DIR}/zope/thread/.debug \
${libdir}/${PYTHON_DIR}/zope/security/.debug \
${libdir}/${PYTHON_DIR}/zope/hookable/.debug \
${libdir}/${PYTHON_DIR}/zope/app/container/.debug \
${libdir}/${PYTHON_DIR}/zope/i18nmessageid/.debug \
${libdir}/${PYTHON_DIR}/ZODB/.debug"
FILES_python-zopeinterface-dbg += "${libdir}/${PYTHON_DIR}/zope/interface/.debug "

FILES_python-zopeinterface = "${libdir}/${PYTHON_DIR}/zope/interface/*.* ${libdir}/${PYTHON_DIR}/zope/interface/common"
<commit_msg>zope: added __init__.py* files to python-zopeinterface, otherwie the package does not work!<commit_after>DESCRIPTION = "A full fledged pluggable content management system with integrated web server and much more."
SECTION = "console/network"
PRIORITY = "optional"
DEPENDS = "python"
RDEPENDS = "python-core python-shell"
LICENSE = "ZPL"
PR = "r8"

SRC_URI = "http://www.zope.org/Products/Zope3/${PV}/Zope-${PV}.tgz"
S = "${WORKDIR}/Zope-${PV}"

inherit distutils-base

do_configure() {
	./configure --with-python=${STAGING_BINDIR_NATIVE}/python --prefix=${prefix} --force
}

do_compile() {
	oe_runmake HOST_SYS=${HOST_SYS} BUILD_SYS=${BUILD_SYS} STAGING_INCDIR=${STAGING_INCDIR}
}

do_install() {
	install -d ${D}${libdir}/${PYTHON_DIR}
	oe_runmake install prefix=${D}${prefix} HOST_SYS=${HOST_SYS} BUILD_SYS=${BUILD_SYS}
	mv ${D}${libdir}/python/* ${D}${libdir}/${PYTHON_DIR} 
	rm -rf ${D}${libdir}/${PYTHON_DIR}/twisted
	rm -rf ${D}${libdir}/${PYTHON_DIR}/zope/app/twisted
}

PACKAGES =+ "python-zopeinterface python-zopeinterface-dbg"

FILES_${PN} = "${prefix}"
FILES_${PN}_doc = "${prefix}/doc"
FILES_${PN}-dbg += "\
${libdir}/${PYTHON_DIR}/BTrees/.debug \
${libdir}/${PYTHON_DIR}/persistent/.debug \
${libdir}/${PYTHON_DIR}/zope/proxy/.debug \
${libdir}/${PYTHON_DIR}/zope/thread/.debug \
${libdir}/${PYTHON_DIR}/zope/security/.debug \
${libdir}/${PYTHON_DIR}/zope/hookable/.debug \
${libdir}/${PYTHON_DIR}/zope/app/container/.debug \
${libdir}/${PYTHON_DIR}/zope/i18nmessageid/.debug \
${libdir}/${PYTHON_DIR}/ZODB/.debug"
FILES_python-zopeinterface-dbg += "${libdir}/${PYTHON_DIR}/zope/interface/.debug "

FILES_python-zopeinterface = " ${libdir}/${PYTHON_DIR}/zope/__init__.py* \
	${libdir}/${PYTHON_DIR}/zope/interface/*.* \
	${libdir}/${PYTHON_DIR}/zope/interface/common"

{'fraction_non_alphanumeric': 0.21326738434681408, 'fraction_numerical': 0.0023276112889147513, 'mean_word_length': 5.662790697674419, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '636068', 'n_tokens_mistral': 1387, 'n_tokens_neox': 1363, 'n_words': 180}