summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIsmael Luceno2011-06-01 00:17:17 -0300
committerIsmael Luceno2011-06-01 00:17:17 -0300
commit18250c7436922b7a2f8994bb825a4a4dda05a309 (patch)
treeee17defe98cc286a0ded8a0460a5afdeb228f095
parent46bbcbf55036ddddabeb7bc0cf7e2114dbd0eb66 (diff)
scrapy: add scm version
-rwxr-xr-xpython-pypi/scrapy/DETAILS12
-rw-r--r--python-pypi/scrapy/DOWNLOAD5
-rw-r--r--python-pypi/scrapy/HISTORY1
-rwxr-xr-xpython-pypi/scrapy/PREPARE6
4 files changed, 24 insertions, 0 deletions
diff --git a/python-pypi/scrapy/DETAILS b/python-pypi/scrapy/DETAILS
index 322ecf65a3..cf6b611a2b 100755
--- a/python-pypi/scrapy/DETAILS
+++ b/python-pypi/scrapy/DETAILS
@@ -1,10 +1,22 @@
SPELL=scrapy
SPELLX=Scrapy
+if [[ $SCRAPY_SCM == y ]]; then
+ if [[ "$SCRAPY_SCM_AUTOUPDATE" == "y" ]]; then
+ VERSION=$(date +%Y%m%d)
+ else
+ VERSION=scm
+ fi
+ SOURCE_IGNORE=volatile
+ SOURCE_URL[0]=hg_http://hg.scrapy.org/scrapy:$SPELL-scm
+ SOURCE=$SPELL-scm.tar.bz2
+SOURCE_DIRECTORY="$BUILD_DIRECTORY/$SPELL-scm"
+else
VERSION=0.12.0.2542
SOURCE_HASH=sha512:b9346a3f723e241df5a6164d5f938f4c39e83fff7c275d450f6bea0de9686ccf6be26ce6b27e0ae9e7917495010ecb29c12f49091e26c858e51883cd4cab1507
SOURCE=$SPELLX-$VERSION.tar.gz
SOURCE_URL[0]=http://pypi.python.org/packages/source/S/$SPELLX/$SOURCE
SOURCE_DIRECTORY="$BUILD_DIRECTORY/$SPELLX-$VERSION"
+fi
WEB_SITE=http://scrapy.org/
LICENSE[0]=BSD
UPDATED=20110531
diff --git a/python-pypi/scrapy/DOWNLOAD b/python-pypi/scrapy/DOWNLOAD
new file mode 100644
index 0000000000..a11b9dced2
--- /dev/null
+++ b/python-pypi/scrapy/DOWNLOAD
@@ -0,0 +1,5 @@
+if [[ "$SCRAPY_SCM" == "y" ]]; then
+ hg_download
+else
+ default_download
+fi
diff --git a/python-pypi/scrapy/HISTORY b/python-pypi/scrapy/HISTORY
index 6b244bfa43..3bbba7c846 100644
--- a/python-pypi/scrapy/HISTORY
+++ b/python-pypi/scrapy/HISTORY
@@ -1,2 +1,3 @@
2011-05-31 Ismael Luceno <ismael@sourcemage.org>
* DEPENDS, DETAILS: spell created
+ * DETAILS, DOWNLOAD, PREPARE: add scm version
diff --git a/python-pypi/scrapy/PREPARE b/python-pypi/scrapy/PREPARE
new file mode 100755
index 0000000000..bde33815ff
--- /dev/null
+++ b/python-pypi/scrapy/PREPARE
@@ -0,0 +1,6 @@
+config_query SCRAPY_SCM "Do you want to use SCM version?" n
+if [[ "$SCRAPY_SCM" == "y" ]]; then
+ config_query SCRAPY_SCM_AUTOUPDATE \
+ "Automaticaly update the spell on sorcery queue/system-update?" \
+ "n"
+fi