Skip to content

Commit

Permalink
sci-electronics/kicad: Fix configure issue w/ USE='-python', #620130
Browse files Browse the repository at this point in the history
Make sure only to set python library and executable paths, when python
scripting is requested

Package-Manager: Portage-2.3.6, Repoman-2.3.2
  • Loading branch information
zpuskas authored and mgorny committed Jul 11, 2017
1 parent 6f62f0f commit 80850af
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
10 changes: 6 additions & 4 deletions sci-electronics/kicad/kicad-4.0.5-r1.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"
Expand Down
10 changes: 6 additions & 4 deletions sci-electronics/kicad/kicad-4.0.6.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"
Expand Down

0 comments on commit 80850af

Please sign in to comment.