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 2013 Adam Stevko. All rights reserved.
13 # Copyright 2014 Alexander Pyhalov. All rights reserved.
16 include ..
/..
/..
/make-rules
/shared-macros.mk
18 COMPONENT_NAME
= time-slider
19 COMPONENT_SRC
= $(COMPONENT_NAME
)
20 COMPONENT_VERSION
= 0.2.101
21 COMPONENT_LICENSE
= CDDL
22 COMPONENT_LICENSE_FILE
= $(COMPONENT_NAME
).license
24 COMPONENT_REVISION
=$(shell cd
$(COMPONENT_SRC
); git rev-list HEAD
--count
)
26 COMPONENT_SUMMARY
= Time Slider ZFS snapshot management for GNOME
29 GIT_REPO
=https
://github.com
/OpenIndiana
/time-slider
33 SINGLE_PYTHON_VERSION
= yes
35 PATH
=/usr
/gnu
/bin
:/usr
/bin
38 include $(WS_TOP
)/make-rules
/prep.mk
39 include $(WS_TOP
)/make-rules
/justmake.mk
41 # The ugly hack with update-publish target is necessary to update
42 # source from git repository on each "gmake publish".
43 # publish: target should appear before inclusion of ips.mk
44 publish
: update-publish
46 include $(WS_TOP
)/make-rules
/ips.mk
48 $(SOURCE_DIR
)/.downloaded
: $(ARCHIVES
:%=$(USERLAND_ARCHIVES
)%)
49 @
[ -d
$(SOURCE_DIR
) ] || \
50 $(GIT
) clone
-b
$(GIT_BRANCH
) $(GIT_REPO
) $(SOURCE_DIR
)
51 @cd
$(SOURCE_DIR
) ; $(GIT
) checkout
$(GIT_BRANCH
) ; $(GIT
) pull \
52 $(GIT_REPO
) ; $(GIT
) log
-1 --format
=%H
> .downloaded
55 @
[ -d
$(SOURCE_DIR
) ] || \
56 $(GIT
) clone
-b
$(GIT_BRANCH
) $(GIT_REPO
) $(SOURCE_DIR
)
57 cd
$(SOURCE_DIR
) ; $(GIT
) pull
$(GIT_REPO
) ; \
58 [ "$$($(GIT) log -1 --format=%H)" == "$$(cat .downloaded)" ] || \
59 ( $(GIT
) log
-1 --format
=%H
> .downloaded
&& $(MAKE
) -C
$$OLDPWD publish
)
61 COMPONENT_BUILD_TARGETS
= all
63 $(SOURCE_DIR
)/.prep
: $(SOURCE_DIR
)/.downloaded Makefile
67 install: $(INSTALL_32
)
69 download
:: $(SOURCE_DIR
)/.downloaded
71 # Auto-generated dependencies
72 PYTHON_REQUIRED_PACKAGES
+= runtime
/python
73 REQUIRED_PACKAGES
+= SUNWcs
74 REQUIRED_PACKAGES
+= library
/glib2
75 REQUIRED_PACKAGES
+= shell/ksh93