21 # Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved. |
21 # Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved. |
22 # |
22 # |
23 include ../../make-rules/shared-macros.mk |
23 include ../../make-rules/shared-macros.mk |
24 |
24 |
25 COMPONENT_NAME= junit |
25 COMPONENT_NAME= junit |
26 COMPONENT_VERSION= 4.10 |
26 COMPONENT_VERSION= 4.11 |
27 COMPONENT_PROJECT_URL= http://sourceforge.net/projects/junit/ |
27 COMPONENT_PROJECT_URL= https://github.com/junit-team/junit/archive |
28 COMPONENT_SRC= $(COMPONENT_NAME)$(COMPONENT_VERSION) |
28 COMPONENT_SRC= $(COMPONENT_NAME)-r$(COMPONENT_VERSION) |
29 COMPONENT_ARCHIVE= $(COMPONENT_SRC).zip |
29 COMPONENT_ARCHIVE= r$(COMPONENT_VERSION).zip |
30 COMPONENT_ARCHIVE_HASH= \ |
30 COMPONENT_ARCHIVE_HASH= \ |
31 sha256:df92699adbdf0716c19e9daf30118c65b82229d644594308b2a040dafe06a1f5 |
31 sha256:3048cb3f2b07fada9d85b2c042bbedb93892ef70c1dcfe0594124850418f9ffb |
32 COMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)files/junit/4.10/$(COMPONENT_ARCHIVE) |
32 COMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)/$(COMPONENT_ARCHIVE) |
33 COMPONENT_BUGDB= utility/junit |
33 COMPONENT_BUGDB= utility/junit |
34 |
34 |
35 include ../../make-rules/prep.mk |
35 include ../../make-rules/prep.mk |
36 include ../../make-rules/ant.mk |
36 include ../../make-rules/ant.mk |
37 include ../../make-rules/ips.mk |
37 include ../../make-rules/ips.mk |
38 |
38 |
39 JAVA_HOME=$(JAVA6_HOME) |
39 # These ARGS override what is set in build.xml |
40 COMPONENT_BUILD_ARGS += -Ddist=${PROTO_DIR} |
40 COMPONENT_BUILD_ARGS += -Ddist=${PROTO_DIR} |
41 COMPONENT_BUILD_ARGS += -Djavadocdir=${PROTO_DIR} |
41 COMPONENT_BUILD_ARGS += -Djavadocdir=${PROTO_DIR} |
|
42 COMPONENT_BUILD_ARGS += -Dversion-status="" |
42 COMPONENT_BUILD_TARGETS += dist |
43 COMPONENT_BUILD_TARGETS += dist |
43 |
44 |
44 # common targets |
45 # common targets |
45 build: $(BUILD_32) |
46 build: $(BUILD_32) |
46 |
47 |
47 install: build |
48 install: build |
48 |
49 |
|
50 # Testing is run as part of the build. |
|
51 # To really test AFTER you have installed the resulting package do: |
|
52 # $ java -cp /usr/share/lib/java/junit.jar:/usr/share/doc/junit/samples/org \ |
|
53 # junit/samples/money/MoneyTest |
|
54 # ...................... |
|
55 # Time: 0.003 |
|
56 # |
|
57 # OK (22 tests) |
49 test: $(NO_TESTS) |
58 test: $(NO_TESTS) |
50 |
59 |
51 BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) |
60 BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) |
52 |
61 |
53 include ../../make-rules/depend.mk |
62 include ../../make-rules/depend.mk |