2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"). You may
4 # only use this file in accordance with the terms of the CDDL.
6 # A full copy of the text of the CDDL should have accompanied this
7 # source. A copy of the CDDL is also available via the Internet at
8 # http://www.illumos.org/license/CDDL.
12 # Copyright 2018 Harry Liebel
13 # Copyright 2019 Michal Nowak
14 # Copyright 2021, 2022 Nona Hansel
17 include ..
/..
/..
/make-rules
/shared-macros.mk
20 COMPONENT_VERSION
= 2.5.11
21 COMPONENT_SUMMARY
= Text-mode interface for git
22 COMPONENT_DESCRIPTION
= Tig is an ncurses-based text-mode interface for git. It functions mainly
as a Git repository browser
, but can also assist in staging changes for commit at chunk level and act
as a pager for output from various Git commands.
23 COMPONENT_PROJECT_URL
= https
://jonas.github.io
/$(COMPONENT_NAME
)
24 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
25 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.gz
26 COMPONENT_ARCHIVE_HASH
= sha256
:b36ef52b1a19d87257adfa9047cc3e21d6bd528bbd28458fe49003eb3e374aa7
27 COMPONENT_ARCHIVE_URL
= https
://github.com
/jonas
/$(COMPONENT_NAME
)/releases
/download
/$(COMPONENT_SRC
)/$(COMPONENT_ARCHIVE
)
28 COMPONENT_FMRI
= developer
/versioning
/tig
29 COMPONENT_CLASSIFICATION
= Development
/Source Code Management
30 COMPONENT_LICENSE
= GPLv2
31 COMPONENT_LICENSE_FILE
= COPYING
33 include $(WS_MAKE_RULES
)/common.mk
35 # This runs configure but configure doesn't generate a Makefile.
36 # Instead a Makefile comes with tig.
37 # Use cloney to copy a set of files to build.
38 # Same behaviour as the 'git' package
39 COMPONENT_PRE_CONFIGURE_ACTION
= \
40 ($(CLONEY
) $(SOURCE_DIR
) $(@D
))
42 CFLAGS
+= -I
/usr
/include/ncurses
44 COMPONENT_INSTALL_TARGETS
= install install-doc
46 # GNU grep is expected
47 COMPONENT_TEST_ENV
+= PATH
=$(PATH.gnu
)
48 COMPONENT_TEST_TARGETS
= test
50 # Manually added build dependencies
51 REQUIRED_PACKAGES
+= text
/asciidoc
53 # Auto-generated dependencies
54 REQUIRED_PACKAGES
+= $(READLINE_PKG
)
55 REQUIRED_PACKAGES
+= library
/ncurses
56 REQUIRED_PACKAGES
+= system
/library