2007-09-06 02:52:35 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2007 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
# $Id$
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=pysqlite
|
|
|
|
PKG_VERSION:=2.3.5
|
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=http://initd.org/pub/software/pysqlite/releases/2.3/2.3.5/
|
|
|
|
PKG_MD5SUM:=b4a185e936848370fcc1a5b17755b641
|
2007-10-21 10:20:01 +00:00
|
|
|
PKG_BUILD_DEPENDS:=python
|
2007-09-06 02:52:35 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2007-10-21 10:20:01 +00:00
|
|
|
-include $(if $(DUMP),,$(STAGING_DIR)/mk/python-package.mk)
|
|
|
|
ifeq ($(DUMP)$(Build/Compile/PyMod),)
|
|
|
|
$(error Python packaging code not found.)
|
|
|
|
endif
|
2007-09-06 02:52:35 +00:00
|
|
|
|
2007-10-21 10:20:01 +00:00
|
|
|
define Package/python-sqlite
|
2007-10-09 01:22:26 +00:00
|
|
|
TITLE:=SQLite database adapter for Python
|
2007-10-14 03:46:31 +00:00
|
|
|
URL:=http://www.initd.org/tracker/pysqlite/wiki/pysqlite
|
2007-10-21 10:20:01 +00:00
|
|
|
DEPENDS:= +libsqlite3
|
2007-09-06 02:52:35 +00:00
|
|
|
endef
|
|
|
|
|
2007-10-21 10:20:01 +00:00
|
|
|
define Package/python-sqlite/description
|
2007-09-06 02:52:35 +00:00
|
|
|
This package contains an SQLite database adapter for the Python
|
|
|
|
programming language.
|
|
|
|
endef
|
|
|
|
|
2007-10-09 01:22:26 +00:00
|
|
|
define PyPackage/python-sqlite/filespec
|
2007-09-06 02:52:35 +00:00
|
|
|
+|$(PYTHON_PKG_DIR)/pysqlite2
|
|
|
|
-|$(PYTHON_PKG_DIR)/pysqlite2/test
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
$(call Build/Compile/PyMod,., \
|
|
|
|
install --prefix="$(PKG_INSTALL_DIR)/usr", \
|
|
|
|
)
|
|
|
|
endef
|
|
|
|
|
2007-10-09 01:22:26 +00:00
|
|
|
$(eval $(call PyPackage,python-sqlite))
|
2007-10-21 10:20:01 +00:00
|
|
|
$(eval $(call BuildPackage,python-sqlite))
|