solr: Update pysolr, add requests dependency

This commit is contained in:
Ossi Salmi 2013-11-27 08:22:46 +02:00
parent bda0cb174a
commit e952bc4920
2 changed files with 31 additions and 9 deletions

View file

@ -5,12 +5,16 @@ VERSION = 4.5.0
TARGET = solr-$(VERSION).tgz
SOURCE = http://ftp.funet.fi/pub/mirrors/apache.org/lucene/solr/$(VERSION)/solr-$(VERSION).tgz
PYSOLRVERSION = 2.0.15
PYSOLRVERSION = 3.1.0
PYSOLRSOURCE = https://pypi.python.org/packages/source/p/pysolr/pysolr-$(PYSOLRVERSION).tar.gz
PYSOLRTARGET = pysolr-$(PYSOLRVERSION).tar.gz
REQUESTSVERSION = 2.0.1
REQUESTSSOURCE = https://pypi.python.org/packages/source/r/requests/requests-$(REQUESTSVERSION).tar.gz
REQUESTSTARGET = requests-$(REQUESTSVERSION).tar.gz
all: download manifest
download: $(PACKAGES)/$(TARGET) $(PACKAGES)/$(PYSOLRTARGET)
download: $(PACKAGES)/$(TARGET) $(PACKAGES)/$(PYSOLRTARGET) $(PACKAGES)/$(REQUESTSTARGET)
manifest: $(MANIFESTS)/solr.pp
$(PACKAGES)/$(TARGET):
@ -21,7 +25,12 @@ $(PACKAGES)/$(PYSOLRTARGET):
@umask 022; echo $@; \
test -f $@ || curl -f -o $@ $(PYSOLRSOURCE)
$(MANIFESTS)/solr.pp: $(PACKAGES)/$(TARGET) $(PACKAGES)/$(PYSOLRTARGET)
$(PACKAGES)/$(REQUESTSTARGET):
@umask 022; echo $@; \
test -f $@ || curl -f -o $@ $(REQUESTSSOURCE)
$(MANIFESTS)/solr.pp: $(PACKAGES)/$(TARGET) $(PACKAGES)/$(PYSOLRTARGET) $(PACKAGES)/$(REQUESTSTARGET)
@umask 022; echo $@; \
echo '$$solr_package_latest = "$(TARGET)"' > $@ && \
echo '$$pysolr_package_latest = "$(PYSOLRTARGET)"' >> $@
echo '$$solr_pysolr_package_latest = "$(PYSOLRTARGET)"' >> $@ && \
echo '$$solr_requests_package_latest = "$(REQUESTSTARGET)"' >> $@