]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
python-bottle: new package
authorArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Tue, 18 Dec 2012 15:14:44 +0000 (16:14 +0100)
committerPeter Korsgaard <jacmet@sunsite.dk>
Tue, 18 Dec 2012 21:12:54 +0000 (22:12 +0100)
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/Config.in
package/python-bottle/Config.in [new file with mode: 0644]
package/python-bottle/python-bottle.mk [new file with mode: 0644]

index d6af55d83a05f8d9b36971a0b10f6a72ff2fe73a..66445ff9b89350c0b8eadcd3353eabc14730291c 100644 (file)
@@ -302,6 +302,7 @@ source "package/python/Config.in"
 source "package/python3/Config.in"
 if BR2_PACKAGE_PYTHON
 menu "external python modules"
+source "package/python-bottle/Config.in"
 source "package/python-dpkt/Config.in"
 source "package/python-id3/Config.in"
 source "package/python-mad/Config.in"
diff --git a/package/python-bottle/Config.in b/package/python-bottle/Config.in
new file mode 100644 (file)
index 0000000..f9b60ca
--- /dev/null
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_PYTHON_BOTTLE
+       bool "python-bottle"
+       help
+         Bottle is a fast, simple and lightweight WSGI micro web-framework
+         for Python. It is distributed as a single file module and has no
+         dependencies other than the Python Standard Library.
+
+         http://bottlepy.org
diff --git a/package/python-bottle/python-bottle.mk b/package/python-bottle/python-bottle.mk
new file mode 100644 (file)
index 0000000..370b31b
--- /dev/null
@@ -0,0 +1,22 @@
+#############################################################
+#
+# python-bottle
+#
+#############################################################
+
+PYTHON_BOTTLE_VERSION = 0.11.4
+PYTHON_BOTTLE_SOURCE = bottle-$(PYTHON_BOTTLE_VERSION).tar.gz
+PYTHON_BOTTLE_SITE = http://pypi.python.org/packages/source/b/bottle
+PYTHON_BOTTLE_DEPENDENCIES = python
+PYTHON_BOTTLE_LICENSE = MIT
+# README.rst refers to the file "LICENSE" but it's not included
+
+define PYTHON_BOTTLE_BUILD_CMDS
+       (cd $(@D); $(HOST_DIR)/usr/bin/python setup.py build)
+endef
+
+define PYTHON_BOTTLE_INSTALL_TARGET_CMDS
+       (cd $(@D); $(HOST_DIR)/usr/bin/python setup.py install --prefix=$(TARGET_DIR)/usr)
+endef
+
+$(eval $(generic-package))