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 -d developer/mercurial mercurial
17 BUILD_STYLE
= pyproject
19 include ..
/..
/..
/make-rules
/shared-macros.mk
21 COMPONENT_NAME
= mercurial
23 COMPONENT_SUMMARY
= Fast scalable distributed SCM
(revision control
, version control
) system
24 COMPONENT_PROJECT_URL
= https
://mercurial-scm.org
/
25 COMPONENT_ARCHIVE_HASH
= \
26 sha256
:030e8a7a6d590e4eaeb403ee25675615cd80d236f3ab8a0b56dcc84181158b05
27 COMPONENT_LICENSE
= GPL-2.0
-only
28 COMPONENT_LICENSE_FILE
= COPYING
30 COMPONENT_FMRI
= developer
/versioning
/mercurial
31 COMPONENT_CLASSIFICATION
= Development
/Source Code Management
33 # This is a standalone application. Since no other Python project depends on
34 # it we just provide single unversioned package.
35 SINGLE_PYTHON_VERSION
= yes
39 include $(WS_MAKE_RULES
)/common.mk
41 # Build and install documentation
42 COMPONENT_POST_BUILD_ACTION
+= cd
$(@D
) ; $(ENV
) $(COMPONENT_BUILD_ENV
) $(GMAKE
) doc
;
43 COMPONENT_POST_INSTALL_ACTION
+= cd
$(@D
) ; $(ENV
) $(COMPONENT_INSTALL_ENV
) $(GMAKE
) DESTDIR
=$(PROTO_DIR
) PREFIX
=$(USRDIR
) install-doc
;
45 # Use bash in sh mode for the tests; using /bin/sh on Solaris hasn't always
46 # worked, and using /bin/bash doesn't always work, either. Also skip the
47 # tests which try to check all the code in the userland gate. And finally,
48 # test the bits from the proto area, rather than rebuilding. Given the way the
49 # test suite works, the hg executable must be named "hg".
53 test-devel-warnings.t \
57 test-removeemptydirs.t \
60 # https://bz.mercurial-scm.org/show_bug.cgi?id=6402
61 TEST_BLACKLIST
+= test-stdio.py
63 # https://www.mercurial-scm.org/pipermail/mercurial-devel/2017-March/093876.html
66 test-bundle2-exchange.t
68 # https://bz.mercurial-scm.org/show_bug.cgi?id=6915
69 TEST_BLACKLIST
+= test-patchbomb.t
71 # https://bz.mercurial-scm.org/show_bug.cgi?id=6899
72 TEST_BLACKLIST
+= test-revlog-mmapindex.t
74 COMPONENT_PRE_TEST_ACTION
+= \
75 (cd
$(BUILD_DIR
); rm -f sh
; ln
-s
/bin
/bash sh
; \
76 printf
"%s\n" $(TEST_BLACKLIST
) > blacklist
);
79 COMPONENT_TEST_DIR
= $(@D
)/tests
80 COMPONENT_TEST_ENV
+= TERM
=dumb
81 COMPONENT_TEST_ENV
+= HGTEST_JOBS
=$(or
$(HGTEST_JOBS
),1)
82 COMPONENT_TEST_ENV
+= PATH
=$(PATH.gnu
)
83 COMPONENT_TEST_CMD
= $(PYTHON
)
84 COMPONENT_TEST_ARGS
= .
/run-tests.py \
86 --shell $(BUILD_DIR
)/sh \
87 --with-hg
$(PROTOUSRBINDIR
)/hg \
88 --blacklist
$(BUILD_DIR
)/blacklist
89 COMPONENT_TEST_TARGETS
=
91 # Random temporary directory
92 COMPONENT_TEST_TRANSFORMS
+= "-e 's|/tmp/hgtests\.[^ ]\{8\}|\$$(HGTMP)|g'"
93 # Sequential number of test working directory
94 COMPONENT_TEST_TRANSFORMS
+= "-e 's|\(/child\)[0-9]\{1,\}/|\1X/|g'"
96 COMPONENT_TEST_TRANSFORMS
+= "-e 's/\([Dd]aemon process \)[0-9]\{1,\}/\1\$$(PID)/'"
98 # Auto-generated dependencies
99 PYTHON_REQUIRED_PACKAGES
+= library
/python
/setuptools
100 PYTHON_REQUIRED_PACKAGES
+= library
/python
/wheel
101 PYTHON_REQUIRED_PACKAGES
+= runtime
/python
102 REQUIRED_PACKAGES
+= system
/library