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 # Copyright 2024 Geoff Weiss
17 USE_DEFAULT_TEST_TRANSFORMS
= yes
19 include ..
/..
/..
/make-rules
/shared-macros.mk
21 COMPONENT_NAME
= blueprint-compiler
22 COMPONENT_VERSION
= 0.16.0
23 COMPONENT_SUMMARY
= A markup language for GTK user interface files.
24 COMPONENT_SRC
= $(COMPONENT_NAME
)-v
$(COMPONENT_VERSION
)
25 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.bz2
26 COMPONENT_ARCHIVE_HASH
= sha256
:77a5d593f433c8ca70a05390532cd186c60944cfa6bcd39296c1c2597a7a50fc
27 COMPONENT_ARCHIVE_URL
= https
://gitlab.gnome.org
/jwestman
/$(COMPONENT_NAME
)/-/archive
/v
$(COMPONENT_VERSION
)/$(COMPONENT_ARCHIVE
)
28 COMPONENT_PROJECT_URL
= https
://jwestman.pages.gitlab.gnome.org
/blueprint-compiler
/
29 COMPONENT_LICENSE
= LGPLv3
30 COMPONENT_LICENSE_FILE
= COPYING
31 COMPONENT_CLASSIFICATION
= Development
/GNOME and GTK
+
32 COMPONENT_FMRI
= developer
/$(COMPONENT_NAME
)
34 include $(WS_MAKE_RULES
)/common.mk
36 # Move all modules from default site-packages directory to vendor-packages
37 # directory where we place modules shipped by the OS but not included in the
38 # core Python distribution.
39 COMPONENT_POST_INSTALL_ACTION
+= \
40 if
[ -d
$(PROTO_DIR
)/$(PYTHON_DIR
)/site-packages
] ; then \
41 $(RM
) -r
$(PROTO_DIR
)/$(PYTHON_LIB
) ; \
42 $(MV
) $(PROTO_DIR
)/$(PYTHON_DIR
)/site-packages
$(PROTO_DIR
)/$(PYTHON_LIB
) ; \
45 # Testing needs an X server
46 TEST_REQUIRED_PACKAGES
+= x11
/server
/xvfb
47 COMPONENT_PRE_TEST_ACTION
+= /usr
/bin
/Xvfb
:0 >/dev
/null
2>&1 &
48 COMPONENT_TEST_ENV
+= DISPLAY
=:0
49 COMPONENT_POST_TEST_ACTION
+= /usr
/bin
/pkill
-x Xvfb
;
51 PYTHON_SCRIPTS
+= usr
/bin
/blueprint-compiler
53 # Auto-generated dependencies
54 PYTHON_REQUIRED_PACKAGES
+= runtime
/python