diff options
author | 2017-09-21 12:50:45 -0700 | |
---|---|---|
committer | 2017-09-21 12:51:37 -0700 | |
commit | a320ae500c5ce81b923211e01c72105c068958b0 (patch) | |
tree | e5bc747436324e7b48ffd5968093a385841f7251 /net-libs/nfqueue-bindings/nfqueue-bindings-0.5.ebuild | |
parent | dev-db/mongodb: fix building with newer libpcre/glibc. (diff) | |
download | gentoo-a320ae500c5ce81b923211e01c72105c068958b0.tar.gz gentoo-a320ae500c5ce81b923211e01c72105c068958b0.tar.bz2 gentoo-a320ae500c5ce81b923211e01c72105c068958b0.zip |
net-libs/nfqueue-bindings: fix python_export in src_prepare (bug 606528)
Closes: https://bugs.gentoo.org/606528
Package-Manager: Portage-2.3.10, Repoman-2.3.3
Diffstat (limited to 'net-libs/nfqueue-bindings/nfqueue-bindings-0.5.ebuild')
-rw-r--r-- | net-libs/nfqueue-bindings/nfqueue-bindings-0.5.ebuild | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/net-libs/nfqueue-bindings/nfqueue-bindings-0.5.ebuild b/net-libs/nfqueue-bindings/nfqueue-bindings-0.5.ebuild index 9b53a58b9d8d..864546a6d190 100644 --- a/net-libs/nfqueue-bindings/nfqueue-bindings-0.5.ebuild +++ b/net-libs/nfqueue-bindings/nfqueue-bindings-0.5.ebuild @@ -47,13 +47,19 @@ pkg_setup() { } src_prepare() { - # Fix Perl destination directory - perl_set_version - sed -i "s|\${LIB_INSTALL_DIR}/perl\${PERL_VERSION}/|${VENDOR_ARCH}|" perl/CMakeLists.txt || die - sed -i "s|\${LIB_INSTALL_DIR}/python\${PYTHON_VERSION}/dist-packages/|$(python_get_sitedir)|" python/CMakeLists.txt || die - # Disable Perl/Python from USE flags - use perl || sed -i 's|ADD_SUBDIRECTORY(perl)||' CMakeLists.txt || die - use python || sed -i 's|ADD_SUBDIRECTORY(python)||' CMakeLists.txt || die + if use perl; then + # Fix Perl destination directory + perl_set_version + sed -i "s|\${LIB_INSTALL_DIR}/perl\${PERL_VERSION}/|${VENDOR_ARCH}|" perl/CMakeLists.txt || die + else + sed -i 's|ADD_SUBDIRECTORY(perl)||' CMakeLists.txt || die + fi + + if use python; then + sed -i "s|\${LIB_INSTALL_DIR}/python\${PYTHON_VERSION}/dist-packages/|$(python_get_sitedir)|" python/CMakeLists.txt || die + else + sed -i 's|ADD_SUBDIRECTORY(python)||' CMakeLists.txt || die + fi } src_install() { |