--- qtwebengine-5.7.0.ebuild +++ qtwebengine-5.7.0.ebuild @@ -4,7 +4,8 @@ EAPI=6 PYTHON_COMPAT=( python2_7 ) -inherit python-any-r1 qt5-build +QT5_TARGET_SUBDIRS=( . src/core ) +inherit python-any-r1 qt5-build pax-utils DESCRIPTION="Library for rendering dynamic web content in Qt5 C++ and QML applications" @@ -90,3 +91,14 @@ ) qt5-build_src_configure } + +src_compile() { + # Build mksnapshot and pax-mark it. + emake -C src/core sub-gyp_run-pro-qmake_all + ${NINJA_PATH} ${NINJAFLAGS} -C src/core/Release mksnapshot || die + pax-mark m src/core/Release/mksnapshot + + qt5-build_src_compile + pax-mark m libexec/QtWebEngineProcess +} +