Initial version of phantomjs module
This commit is contained in:
parent
61589e3877
commit
5070a0d6f3
2 changed files with 68 additions and 0 deletions
25
phantomjs/Makefile
Normal file
25
phantomjs/Makefile
Normal file
|
@ -0,0 +1,25 @@
|
|||
include $(CURDIR)/../Makefile.inc
|
||||
|
||||
VERSION = 1.9.0
|
||||
|
||||
TARGET32 = phantomjs-$(VERSION)-linux-i686.tar.bz2
|
||||
SOURCE32 = https://phantomjs.googlecode.com/files/phantomjs-$(VERSION)-linux-i686.tar.bz2
|
||||
TARGET64 = phantomjs-$(VERSION)-linux-x86_64.tar.bz2
|
||||
SOURCE64 = https://phantomjs.googlecode.com/files/phantomjs-$(VERSION)-linux-x86_64.tar.bz2
|
||||
|
||||
all: download manifest
|
||||
download: $(PACKAGES)/$(TARGET32) $(PACKAGES)/$(TARGET64)
|
||||
manifest: $(MANIFESTS)/phantomjs.pp
|
||||
|
||||
$(PACKAGES)/$(TARGET32):
|
||||
@umask 022; echo $@; \
|
||||
test -f $@ || curl -o $@ $(SOURCE32)
|
||||
|
||||
$(PACKAGES)/$(TARGET64):
|
||||
@umask 022; echo $@; \
|
||||
test -f $@ || curl -o $@ $(SOURCE64)
|
||||
|
||||
$(MANIFESTS)/phantomjs.pp: $(PACKAGES)/$(TARGET32) $(PACKAGES)/$(TARGET64)
|
||||
@umask 022; echo $@; \
|
||||
echo '$$phantomjs32_package_latest = "$(TARGET32)"' > $@ && \
|
||||
echo '$$phantomjs64_package_latest = "$(TARGET64)"' >> $@
|
Loading…
Add table
Add a link
Reference in a new issue