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 powerline
17 BUILD_STYLE
= setup.py
19 include ..
/..
/..
/make-rules
/shared-macros.mk
21 COMPONENT_NAME
= powerline
23 COMPONENT_SUMMARY
= powerline
- The ultimate statusline
/prompt utility
24 COMPONENT_PROJECT_URL
= https
://github.com
/powerline
/powerline
/
25 COMPONENT_ARCHIVE_URL
= \
26 https
://github.com
/powerline
/powerline
/archive
/refs
/tags/$(HUMAN_VERSION
).
tar.gz
27 COMPONENT_ARCHIVE_HASH
= \
28 sha256
:45d838dbac94a1363942899708b6ce7c71c1cad9e1b9d048affab4f630c4cb98
29 COMPONENT_LICENSE
= MIT
30 COMPONENT_LICENSE_FILE
= LICENSE
34 COMPONENT_FMRI
= python
/powerline
36 # Manifest options for python/powerline-vim package
37 COMPONENT_FMRI.powerline-vim
= $(COMPONENT_FMRI
)-vim
38 COMPONENT_SUMMARY.powerline-vim
= $(COMPONENT_SUMMARY
) - Vim editor binding
39 COMPONENT_CLASSIFICATION.powerline-vim
= System
/Text Tools
41 # This is a standalone application. Since no other Python project depends on
42 # it we just provide single unversioned package.
43 SINGLE_PYTHON_VERSION
= yes
45 include $(WS_MAKE_RULES
)/common.mk
47 # Needed for connect() and socket()
48 CFLAGS
+= -lsocket
-lnsl
50 # Make sure compiled binaries are installed at proper location
51 PYTHON_DATA
= $(USRDIR
)
53 # Adjust powerline configuration for our location of bindings
54 COMPONENT_PREP_ACTION
= \
55 $(GSED
) -i
-e
"/TMUX_CONFIG_DIRECTORY/ s@BINDINGS_DIRECTORY@'/usr/share/powerline'@" $(SOURCE_DIR
)/powerline
/config.py
57 # Move bindings where we want them
58 PROTOUSRLIBPOWERLINE
= $(PROTOUSRLIBDIR
)/python
$(PYTHON_VERSION
)/vendor-packages
/powerline
59 PROTOUSRSHAREPOWERLINEDIR
= $(PROTOUSRSHAREDIR
)/powerline
/
60 PROTOUSRSHAREVIM
= $(PROTOUSRSHAREDIR
)/vim
/vimfiles
/powerline
/
61 COMPONENT_POST_INSTALL_ACTION
+= \
62 $(MKDIR
) $(PROTOUSRSHAREPOWERLINEDIR
){,awesome
,bash
,fish
,shell,tcsh
,tmux
,zsh
} ; \
63 for file in awesome
/powerline.lua \
65 fish
/powerline-setup.fish \
68 tmux
/powerline-base.conf \
70 tmux
/powerline_tmux_1.7_plus.conf \
71 tmux
/powerline_tmux_1.8.conf \
72 tmux
/powerline_tmux_1.8_minus.conf \
73 tmux
/powerline_tmux_1.8_plus.conf \
74 tmux
/powerline_tmux_1.9_plus.conf \
75 tmux
/powerline_tmux_2.1_plus.conf \
78 $(MV
) $(PROTOUSRLIBPOWERLINE
)/bindings
/$$file $(PROTOUSRSHAREPOWERLINEDIR
)/$$file; \
80 $(MKDIR
) $(PROTOUSRSHAREVIM
) ; \
81 $(MV
) $(PROTOUSRLIBPOWERLINE
)/bindings
/vim
/autoload
/powerline
/debug.vim
$(PROTOUSRSHAREVIM
) ; \
82 $(MV
) $(PROTOUSRLIBPOWERLINE
)/bindings
/vim
/plugin
/powerline.vim
$(PROTOUSRSHAREVIM
) ;
84 # Remove files we do not need
85 COMPONENT_POST_INSTALL_ACTION
+= \
86 ( cd
$(PROTOUSRLIBPOWERLINE
) ; $(RM
) \
87 bindings
/bar
/powerline-bar.py \
88 bindings
/lemonbar
/powerline-lemonbar.py \
89 commands
/lemonbar.py \
90 dist/systemd
/powerline-daemon.service \
92 renderers
/lemonbar.py \
95 # Testing needs TEST_ROOT and HOME environment variables (the directory does
97 COMPONENT_TEST_ENV
+= TEST_ROOT
="$(@D)/.test_home"
98 COMPONENT_TEST_ENV
+= HOME
="$(@D)/.test_home"
100 # Auto-generated dependencies
101 PYTHON_REQUIRED_PACKAGES
+= runtime
/python
102 REQUIRED_PACKAGES
+= system
/library