[packages/phantomjs/dev-2.1: 2/9] add system_qt bcond, disable it

glen glen at pld-linux.org
Wed Mar 23 07:05:43 CET 2016


commit b829403066e9ebed52aa6b2f66daf043d522fb66
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Tue Mar 22 20:33:55 2016 +0200

    add system_qt bcond, disable it

 phantomjs.spec | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/phantomjs.spec b/phantomjs.spec
index bb3eb36..caccfa6 100644
--- a/phantomjs.spec
+++ b/phantomjs.spec
@@ -3,6 +3,7 @@
 #
 # Conditional build:
 %bcond_with	system_qcommandline
+%bcond_with	system_qt
 
 Summary:	Headless WebKit with a JavaScript API
 Name:		phantomjs
@@ -42,14 +43,14 @@ testing. It includes an implementation of the WebDriver API.
 
 # remove bundled sources
 rm -r src/mongoose
-rm -r src/qt
+%{?with_system_qt:rm -r src/qt}
 rm -r src/linenoise
 %{?with_system_qcommandline:rm -r src/qcommandline}
 
 #%patch0 -p1
 %patch1 -p1
 %patch3 -p1
-%patch5 -p1
+%{?with_system_qt:%patch5 -p1}
 %patch6 -p1
 %{?with_system_qcommandline:%patch7 -p1}
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/phantomjs.git/commitdiff/a82c74c1bebc21f1e68a4deede33d5d9c92de44c



More information about the pld-cvs-commit mailing list