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
18 include ..
/..
/..
/make-rules
/shared-macros.mk
21 COMPONENT_VERSION
= 2.5.10
22 COMPONENT_SUMMARY
= Text-mode interface for git
23 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.
24 COMPONENT_PROJECT_URL
= https
://jonas.github.io
/$(COMPONENT_NAME
)
25 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
26 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.gz
27 COMPONENT_ARCHIVE_HASH
= sha256
:f655cc1366fc10058a2bd505bb88ca78e653ff7526c1b81774c44b9d841210e3
28 COMPONENT_ARCHIVE_URL
= https
://github.com
/jonas
/$(COMPONENT_NAME
)/releases
/download
/$(COMPONENT_SRC
)/$(COMPONENT_ARCHIVE
)
29 COMPONENT_FMRI
= developer
/versioning
/tig
30 COMPONENT_CLASSIFICATION
= Development
/Source Code Management
31 COMPONENT_LICENSE
= GPLv2
32 COMPONENT_LICENSE_FILE
= COPYING
34 include $(WS_MAKE_RULES
)/common.mk
36 # This runs configure but configure doesn't generate a Makefile.
37 # Instead a Makefile comes with tig.
38 # Use cloney to copy a set of files to build.
39 # Same behaviour as the 'git' package
40 COMPONENT_PRE_CONFIGURE_ACTION
= \
41 ($(CLONEY
) $(SOURCE_DIR
) $(@D
))
43 # Place the config file in /etc
44 CONFIGURE_OPTIONS
+= --sysconfdir
=$(ETCDIR
)
46 CFLAGS
+= -I
/usr
/include/ncurses
48 COMPONENT_INSTALL_TARGETS
= install install-doc
50 # GNU grep is expected
51 COMPONENT_TEST_ENV
+= PATH
=$(PATH.gnu
)
52 COMPONENT_TEST_TARGETS
= test
54 # Manually added build dependencies
55 REQUIRED_PACKAGES
+= text
/asciidoc
57 # Auto-generated dependencies
58 REQUIRED_PACKAGES
+= library
/ncurses
59 REQUIRED_PACKAGES
+= library
/readline
60 REQUIRED_PACKAGES
+= system
/library