2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 # You may only use this file in accordance with the terms of version
7 # A full copy of the text of the CDDL should have accompanied this
8 # source. A copy of the CDDL is also available via the Internet at
9 # http://www.illumos.org/license/CDDL.
13 # This file was automatically generated using the following command:
14 # $WS_TOOLS/python-integrate-project pyperclip
17 BUILD_STYLE
= setup.py
19 include ..
/..
/..
/make-rules
/shared-macros.mk
21 COMPONENT_NAME
= pyperclip
23 COMPONENT_SUMMARY
= A cross-platform clipboard module for Python.
(Only handles plain text for now.
)
24 COMPONENT_PROJECT_URL
= https
://github.com
/asweigart
/pyperclip
25 COMPONENT_ARCHIVE_HASH
= \
26 sha256
:b7de0142ddc81bfc5c7507eea19da920b92252b548b96186caf94a5e2527d310
27 COMPONENT_LICENSE
= BSD-3-Clause
28 COMPONENT_LICENSE_FILE
= LICENSE.txt
30 include $(WS_MAKE_RULES
)/common.mk
32 # Testing needs an X server
33 TEST_REQUIRED_PACKAGES
+= x11
/server
/xvfb
34 COMPONENT_PRE_TEST_ACTION
+= /usr
/bin
/Xvfb
:0 >/dev
/null
2>&1 &
35 COMPONENT_TEST_ENV
+= DISPLAY
=:0
36 COMPONENT_POST_TEST_ACTION
+= /usr
/bin
/pkill
-x Xvfb
;
38 # Testing needs the XDG_RUNTIME_DIR variable pointing to own runtime directory
39 # with permissions 0700
40 COMPONENT_PRE_TEST_ACTION
+= $(MKDIR
) $(COMPONENT_TEST_BUILD_DIR
)/runtime
;
41 COMPONENT_PRE_TEST_ACTION
+= $(CHMOD
) 0700 $(COMPONENT_TEST_BUILD_DIR
)/runtime
;
42 COMPONENT_TEST_ENV
+= XDG_RUNTIME_DIR
=$(COMPONENT_TEST_BUILD_DIR
)/runtime
43 COMPONENT_POST_TEST_ACTION
+= $(RM
) -r
$(COMPONENT_TEST_BUILD_DIR
)/runtime
;
45 # https://github.com/asweigart/pyperclip/issues/246
46 COMPONENT_TEST_TRANSFORMS
+= "-e 's/TEST//g'"
48 # Auto-generated dependencies
49 PYTHON_REQUIRED_PACKAGES
+= runtime
/python