mirror of
http://git.openwrt.org/packages.git
synced 2025-01-09 04:19:54 +08:00
85049d7ba0
re-submit upstream patch for pyrrd. this time it should not be mangled. Signed-of-by: Roberto Riggio <roberto.riggio@create-net.org git-svn-id: svn://svn.openwrt.org/openwrt/packages@30992 3c298f89-4303-0410-b956-a3cf2f4a3e73
51 lines
1.1 KiB
Makefile
51 lines
1.1 KiB
Makefile
#
|
|
# Copyright (C) 2011 OpenWrt.org
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=pyrrd
|
|
PKG_VERSION:=0.1.0
|
|
PKG_RELEASE:=2
|
|
|
|
PKG_SOURCE:=PyRRD-$(PKG_VERSION).tar.gz
|
|
PKG_SOURCE_URL:=http://pypi.python.org/packages/source/P/PyRRD/
|
|
PKG_MD5SUM:=c33a0760b42a23e45e423b8b9f2cd0b0
|
|
|
|
PKG_BUILD_DEPENDS:=python
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/PyRRD-$(PKG_VERSION)
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
$(call include_mk, python-package.mk)
|
|
|
|
define Package/pyrrd
|
|
SUBMENU:=Python
|
|
SECTION:=lang
|
|
CATEGORY:=Languages
|
|
TITLE:=PyRRD - An Object-Oriented Python Interface for RRDTool
|
|
URL:=http://code.google.com/p/pyrrd/
|
|
DEPENDS:=+python +distribute +rrdtool
|
|
endef
|
|
|
|
define Package/pyrrd/description
|
|
An Object-Oriented Python Interface for RRDTool
|
|
endef
|
|
|
|
define Build/Compile
|
|
$(call Build/Compile/PyMod,., \
|
|
install --prefix="/usr" --root="$(PKG_INSTALL_DIR)" \
|
|
)
|
|
endef
|
|
|
|
define Package/pyrrd/install
|
|
$(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
|
|
$(CP) \
|
|
$(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
|
|
$(1)$(PYTHON_PKG_DIR)/
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,pyrrd))
|