diff options
Diffstat (limited to 'sci-electronics/kicad/kicad-4.0.5-r1.ebuild')
-rw-r--r-- | sci-electronics/kicad/kicad-4.0.5-r1.ebuild | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sci-electronics/kicad/kicad-4.0.5-r1.ebuild b/sci-electronics/kicad/kicad-4.0.5-r1.ebuild index 3e7cb453e509..85d80609cb07 100644 --- a/sci-electronics/kicad/kicad-4.0.5-r1.ebuild +++ b/sci-electronics/kicad/kicad-4.0.5-r1.ebuild @@ -125,10 +125,6 @@ src_prepare() { src_configure() { local mycmakeargs=( - -DPYTHON_DEST="$(python_get_sitedir)" - -DPYTHON_EXECUTABLE="${PYTHON}" - -DPYTHON_INCLUDE_DIR="$(python_get_includedir)" - -DPYTHON_LIBRARY="$(python_get_library_path)" -DKICAD_DOCS="/usr/share/doc/${PF}" -DKICAD_HELP="/usr/share/doc/${PF}/help" -DwxUSE_UNICODE=ON @@ -140,6 +136,12 @@ src_configure() { -DKICAD_I18N_UNIX_STRICT_PATH="$(usex i18n)" -DCMAKE_CXX_FLAGS="-std=c++11" ) + use python && mycmakeargs+=( + -DPYTHON_DEST="$(python_get_sitedir)" + -DPYTHON_EXECUTABLE="${PYTHON}" + -DPYTHON_INCLUDE_DIR="$(python_get_includedir)" + -DPYTHON_LIBRARY="$(python_get_library_path)" + ) if use debug; then append-cxxflags "-DDEBUG" append-cflags "-DDEBUG" |