diff options
-rw-r--r-- | x11/polybar/Makefile | 3 | ||||
-rw-r--r-- | x11/polybar/files/patch-lib_xpp_CMakeLists.txt | 20 |
2 files changed, 22 insertions, 1 deletions
diff --git a/x11/polybar/Makefile b/x11/polybar/Makefile index 1ba9e412ee5b..03867aec1b82 100644 --- a/x11/polybar/Makefile +++ b/x11/polybar/Makefile @@ -20,7 +20,8 @@ LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \ libxcb-util.so:x11/xcb-util \ libxcb-xrm.so:x11/xcb-util-xrm -USES= cmake compiler:c++11-lang localbase:ldflags \ +# compiler:c++11-lang is needed for powerpc64 +USES= cmake compiler:c++11-lang gnome localbase:ldflags \ pkgconfig python:2.7,build USE_GITHUB= yes GH_ACCOUNT= jaagr diff --git a/x11/polybar/files/patch-lib_xpp_CMakeLists.txt b/x11/polybar/files/patch-lib_xpp_CMakeLists.txt new file mode 100644 index 000000000000..ac69a6617af1 --- /dev/null +++ b/x11/polybar/files/patch-lib_xpp_CMakeLists.txt @@ -0,0 +1,20 @@ +--- lib/xpp/CMakeLists.txt.orig 2019-01-12 15:06:55 UTC ++++ lib/xpp/CMakeLists.txt +@@ -48,7 +48,7 @@ set(XPP_LIBRARIES + # + # Loop through a hardcoded list of python executables to locate the python module "xcbgen" + # +-foreach(CURRENT_EXECUTABLE python2 python2.7 python3 python) ++foreach(CURRENT_EXECUTABLE python2 python2.7 python3 python3.5 python3.6 python3.7 python) + message(STATUS "Searching for xcbgen with " ${CURRENT_EXECUTABLE}) + + execute_process(COMMAND "${CURRENT_EXECUTABLE}" "-c" +@@ -161,7 +161,7 @@ foreach(PROTO ${PROTO_LIST}) + set(OUTPUT_FILE ${PROJECT_SOURCE_DIR}/include/xpp/proto/${PROTO_OUTPUT}.hpp) + add_custom_command( + OUTPUT ${OUTPUT_FILE} +- COMMAND ${PYTHON_EXECUTABLE} ${PROJECT_SOURCE_DIR}/generators/cpp_client.py -p "${PYTHON_XCBGEN}" ++ COMMAND ${PYTHON_EXECUTABLE} -B ${PROJECT_SOURCE_DIR}/generators/cpp_client.py -p "${PYTHON_XCBGEN}" + ${XCBPROTO_XCBINCLUDEDIR}/${PROTO}.xml > ${OUTPUT_FILE}) + list(APPEND PROTO_HEADER_FILES ${OUTPUT_FILE}) + endforeach(PROTO) |