summaryrefslogtreecommitdiff
path: root/lang/python/files
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2015-03-06 15:29:22 +0100
committerSteven Barth <steven@midlink.org>2015-03-06 15:29:22 +0100
commit05dbcba3d7e31dc606d484fd454404ae7d81595a (patch)
tree464cc48214a90b11b549d2130e71515beb5b7cbf /lang/python/files
parent86c614e69df3da1bcb5a45b77f3af79445093b48 (diff)
parent0d072f2b42bf1191c42f3e44a4ae77883728ae66 (diff)
Merge pull request #988 from commodo/python-modularization
python: packetize some python modules
Diffstat (limited to 'lang/python/files')
-rw-r--r--lang/python/files/python-package-bsddb.mk17
-rw-r--r--lang/python/files/python-package-codecs.mk22
-rw-r--r--lang/python/files/python-package-dbm.mk16
-rw-r--r--lang/python/files/python-package-gdbm.mk16
-rw-r--r--lang/python/files/python-package-ncurses.mk17
-rw-r--r--lang/python/files/python-package-openssl.mk17
-rw-r--r--lang/python/files/python-package-pydoc.mk17
-rw-r--r--lang/python/files/python-package-sqlite3.mk17
-rw-r--r--lang/python/files/python-package.mk2
9 files changed, 140 insertions, 1 deletions
diff --git a/lang/python/files/python-package-bsddb.mk b/lang/python/files/python-package-bsddb.mk
new file mode 100644
index 000000000..601ac5436
--- /dev/null
+++ b/lang/python/files/python-package-bsddb.mk
@@ -0,0 +1,17 @@
+#
+# Copyright (C) 2006-2015 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+define Package/python-bsddb
+$(call Package/python/Default)
+ TITLE:=Python $(PYTHON_VERSION) bsddb module
+ DEPENDS:=+python-light +libdb47
+endef
+
+$(eval $(call PyBasePackage,python-bsddb, \
+ /usr/lib/python$(PYTHON_VERSION)/bsddb \
+ /usr/lib/python$(PYTHON_VERSION)/lib-dynload/_bsddb.so \
+))
diff --git a/lang/python/files/python-package-codecs.mk b/lang/python/files/python-package-codecs.mk
new file mode 100644
index 000000000..c84c5fc39
--- /dev/null
+++ b/lang/python/files/python-package-codecs.mk
@@ -0,0 +1,22 @@
+#
+# Copyright (C) 2006-2015 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+define Package/python-codecs
+$(call Package/python/Default)
+ TITLE:=Python $(PYTHON_VERSION) codecs + unicode support
+ DEPENDS:=+python-light
+endef
+
+$(eval $(call PyBasePackage,python-codecs, \
+ /usr/lib/python$(PYTHON_VERSION)/lib-dynload/_codecs_cn.so \
+ /usr/lib/python$(PYTHON_VERSION)/lib-dynload/_codecs_hk.so \
+ /usr/lib/python$(PYTHON_VERSION)/lib-dynload/_codecs_iso2022.so \
+ /usr/lib/python$(PYTHON_VERSION)/lib-dynload/_codecs_jp.so \
+ /usr/lib/python$(PYTHON_VERSION)/lib-dynload/_codecs_kr.so \
+ /usr/lib/python$(PYTHON_VERSION)/lib-dynload/_codecs_tw.so \
+ /usr/lib/python$(PYTHON_VERSION)/lib-dynload/unicodedata.so \
+))
diff --git a/lang/python/files/python-package-dbm.mk b/lang/python/files/python-package-dbm.mk
new file mode 100644
index 000000000..f72c54818
--- /dev/null
+++ b/lang/python/files/python-package-dbm.mk
@@ -0,0 +1,16 @@
+#
+# Copyright (C) 2006-2015 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+define Package/python-dbm
+$(call Package/python/Default)
+ TITLE:=Python $(PYTHON_VERSION) dbm module
+ DEPENDS:=+python-light +libdb47
+endef
+
+$(eval $(call PyBasePackage,python-dbm, \
+ /usr/lib/python$(PYTHON_VERSION)/lib-dynload/dbm.so \
+))
diff --git a/lang/python/files/python-package-gdbm.mk b/lang/python/files/python-package-gdbm.mk
new file mode 100644
index 000000000..8e0b16f9c
--- /dev/null
+++ b/lang/python/files/python-package-gdbm.mk
@@ -0,0 +1,16 @@
+#
+# Copyright (C) 2006-2015 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+define Package/python-gdbm
+$(call Package/python/Default)
+ TITLE:=Python $(PYTHON_VERSION) gdbm module
+ DEPENDS:=+python-light +libgdbm
+endef
+
+$(eval $(call PyBasePackage,python-gdbm, \
+ /usr/lib/python$(PYTHON_VERSION)/lib-dynload/gdbm.so \
+))
diff --git a/lang/python/files/python-package-ncurses.mk b/lang/python/files/python-package-ncurses.mk
new file mode 100644
index 000000000..a5ff20040
--- /dev/null
+++ b/lang/python/files/python-package-ncurses.mk
@@ -0,0 +1,17 @@
+#
+# Copyright (C) 2006-2015 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+define Package/python-ncurses
+$(call Package/python/Default)
+ TITLE:=Python $(PYTHON_VERSION) ncurses module
+ DEPENDS:=+python-light +libncursesw
+endef
+
+$(eval $(call PyBasePackage,python-ncurses, \
+ /usr/lib/python$(PYTHON_VERSION)/lib-dynload/_curses.so \
+ /usr/lib/python$(PYTHON_VERSION)/lib-dynload/_curses_panel.so \
+))
diff --git a/lang/python/files/python-package-openssl.mk b/lang/python/files/python-package-openssl.mk
new file mode 100644
index 000000000..4d897eb81
--- /dev/null
+++ b/lang/python/files/python-package-openssl.mk
@@ -0,0 +1,17 @@
+#
+# Copyright (C) 2006-2015 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+define Package/python-openssl
+$(call Package/python/Default)
+ TITLE:=Python $(PYTHON_VERSION) SSL module
+ DEPENDS:=+python-light +libopenssl
+endef
+
+$(eval $(call PyBasePackage,python-openssl, \
+ /usr/lib/python$(PYTHON_VERSION)/lib-dynload/_hashlib.so \
+ /usr/lib/python$(PYTHON_VERSION)/lib-dynload/_ssl.so \
+))
diff --git a/lang/python/files/python-package-pydoc.mk b/lang/python/files/python-package-pydoc.mk
new file mode 100644
index 000000000..0df3cfd16
--- /dev/null
+++ b/lang/python/files/python-package-pydoc.mk
@@ -0,0 +1,17 @@
+#
+# Copyright (C) 2006-2015 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+define Package/python-pydoc
+$(call Package/python/Default)
+ TITLE:=Python $(PYTHON_VERSION) pydoc module
+ DEPENDS:=+python-light
+endef
+
+$(eval $(call PyBasePackage,python-pydoc, \
+ /usr/lib/python$(PYTHON_VERSION)/pydoc.py \
+ /usr/lib/python$(PYTHON_VERSION)/pydoc_data \
+))
diff --git a/lang/python/files/python-package-sqlite3.mk b/lang/python/files/python-package-sqlite3.mk
new file mode 100644
index 000000000..c5abb122e
--- /dev/null
+++ b/lang/python/files/python-package-sqlite3.mk
@@ -0,0 +1,17 @@
+#
+# Copyright (C) 2006-2015 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+define Package/python-sqlite3
+$(call Package/python/Default)
+ TITLE:=Python $(PYTHON_VERSION) sqlite3 module
+ DEPENDS:=+python-light +libsqlite3
+endef
+
+$(eval $(call PyBasePackage,python-sqlite3, \
+ /usr/lib/python$(PYTHON_VERSION)/lib-dynload/_sqlite3.so \
+ /usr/lib/python$(PYTHON_VERSION)/sqlite3 \
+))
diff --git a/lang/python/files/python-package.mk b/lang/python/files/python-package.mk
index c8cbcda57..ba692ccf2 100644
--- a/lang/python/files/python-package.mk
+++ b/lang/python/files/python-package.mk
@@ -1,5 +1,5 @@
#
-# Copyright (C) 2007-2014 OpenWrt.org
+# Copyright (C) 2006-2015 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.