Commit b7c5625e authored by Matt Weber's avatar Matt Weber Committed by Peter Korsgaard
Browse files

python-ipy: new package

parent dd7981bf
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -390,6 +390,7 @@ source "package/python-bottle/Config.in"
source "package/python-crc16/Config.in"
source "package/python-dpkt/Config.in"
source "package/python-id3/Config.in"
source "package/python-ipy/Config.in"
source "package/python-mad/Config.in"
source "package/python-meld3/Config.in"
source "package/python-netifaces/Config.in"
+8 −0
Original line number Diff line number Diff line
config BR2_PACKAGE_PYTHON_IPY
	bool "python-ipy"
	depends on BR2_PACKAGE_PYTHON
	help
	  IPy - class and tools for handling of IPv4 and
	  IPv6 addresses and networks.

	  https://github.com/haypo/python-ipy/
+27 −0
Original line number Diff line number Diff line
################################################################################
#
# python-ipy
#
################################################################################

PYTHON_IPY_VERSION = 0.75-0-g58006fb
PYTHON_IPY_SOURCE  = haypo-python-ipy-IPy-$(PYTHON_IPY_VERSION).tar.gz
PYTHON_IPY_SITE    = https://github.com/haypo/python-ipy/tarball/IPy-0.75
PYTHON_IPY_DEPENDENCIES = host-python python
PYTHON_IPY_LICENSE = BSD-3c
PYTHON_IPY_LICENSE_FILES = COPYING

define PYTHON_IPY_BUILD_CMDS
	(cd $(@D); \
		$(TARGET_CONFIGURE_OPTS) \
		$(HOST_DIR)/usr/bin/python setup.py build_ext \
		--include-dirs=$(STAGING_DIR)/usr/include/python$(PYTHON_VERSION_MAJOR) \
	)
	(cd $(@D); $(HOST_DIR)/usr/bin/python setup.py build)
endef

define PYTHON_IPY_INSTALL_TARGET_CMDS
	(cd $(@D); $(HOST_DIR)/usr/bin/python setup.py install --prefix=$(TARGET_DIR)/usr)
endef

$(eval $(generic-package))