20 # |
20 # |
21 |
21 |
22 # |
22 # |
23 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. |
23 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. |
24 # |
24 # |
25 |
25 BUILD_BITS= 32 |
26 include ../../make-rules/shared-macros.mk |
26 include ../../make-rules/shared-macros.mk |
27 |
27 |
28 PATH=/usr/bin:/usr/gnu/bin:/usr/sbin |
28 PATH=$(USRBINDIR):$(GNUBIN):$(USRSBINDIR) |
29 |
29 |
30 COMPONENT_NAME= mercurial |
30 COMPONENT_NAME= mercurial |
31 COMPONENT_VERSION= 3.7.1 |
31 COMPONENT_VERSION= 3.7.1 |
32 COMPONENT_PROJECT_URL= http://mercurial.selenic.com/ |
32 COMPONENT_PROJECT_URL= http://mercurial.selenic.com/ |
33 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
|
34 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
|
35 COMPONENT_ARCHIVE_HASH= \ |
33 COMPONENT_ARCHIVE_HASH= \ |
36 sha256:96d37d1f444a032295e190318b3166e9d05abb55916d2b3adb618a8f16c5cfed |
34 sha256:96d37d1f444a032295e190318b3166e9d05abb55916d2b3adb618a8f16c5cfed |
37 COMPONENT_ARCHIVE_URL= http://www.selenic.com/mercurial/release/$(COMPONENT_ARCHIVE) |
35 COMPONENT_ARCHIVE_URL= http://www.selenic.com/mercurial/release/$(COMPONENT_ARCHIVE) |
38 COMPONENT_SIG_URL= $(COMPONENT_ARCHIVE_URL).asc |
36 COMPONENT_SIG_URL= $(COMPONENT_ARCHIVE_URL).asc |
39 COMPONENT_BUGDB= utility/hg |
37 COMPONENT_BUGDB= utility/hg |
41 TPNO= 26646 |
39 TPNO= 26646 |
42 |
40 |
43 # Mercurial does not yet support Python 3. |
41 # Mercurial does not yet support Python 3. |
44 PYTHON_VERSIONS = $(PYTHON2_VERSIONS) |
42 PYTHON_VERSIONS = $(PYTHON2_VERSIONS) |
45 |
43 |
46 include $(WS_MAKE_RULES)/prep.mk |
44 BUILD_STYLE= setup.py |
47 include $(WS_MAKE_RULES)/setup.py.mk |
45 TEST_TARGET= install $(TEST_32) |
48 include $(WS_MAKE_RULES)/ips.mk |
46 # Add install dependency when system-test target is implemented. |
|
47 include $(WS_MAKE_RULES)/common.mk |
49 |
48 |
50 COMPONENT_POST_INSTALL_ACTION = \ |
49 COMPONENT_POST_INSTALL_ACTION = \ |
51 (cd $(PROTO_DIR)/usr/bin ; $(MV) -f hg hg-$(PYTHON_VERSION)) |
50 (cd $(PROTO_DIR)/usr/bin ; $(MV) -f hg hg-$(PYTHON_VERSION)) |
52 |
51 |
53 PKG_PROTO_DIRS += $(COMPONENT_SRC)/contrib |
52 PKG_PROTO_DIRS += $(COMPONENT_SRC)/contrib |
104 cd $(COMPONENT_SRC)/doc; gmake man || true; cd ../..; \ |
103 cd $(COMPONENT_SRC)/doc; gmake man || true; cd ../..; \ |
105 for f in hg.1 hgignore.5 hgrc.5; do \ |
104 for f in hg.1 hgignore.5 hgrc.5; do \ |
106 diff -u $(COMPONENT_SRC)/doc/$$f.orig $(COMPONENT_SRC)/doc/$$f; \ |
105 diff -u $(COMPONENT_SRC)/doc/$$f.orig $(COMPONENT_SRC)/doc/$$f; \ |
107 done > $@; \ |
106 done > $@; \ |
108 fi || true |
107 fi || true |
109 |
|
110 # common targets |
|
111 build: $(BUILD_32) |
|
112 |
|
113 install: $(INSTALL_32) |
|
114 |
|
115 test: install $(TEST_32) |
|
116 |
|
117 # Add install dependency as above after system-test targets are implemented. |
|
118 system-test: $(SYSTEM_TESTS_NOT_IMPLEMENTED) |
|
119 |
|
120 REQUIRED_PACKAGES += system/library |
|