@ -7,34 +7,26 @@
i n c l u d e $( TOPDIR ) / r u l e s . m k
PKG_NAME := cffi
PKG_VERSION := 1.8.3
PKG_RELEASE := 2
PKG_NAME := python- cffi
PKG_VERSION := 1.10.0
PKG_RELEASE := 1
PKG_SOURCE := $( PKG_NAME) -$( PKG_VERSION) .tar.gz
PKG_SOURCE_URL := https://pypi.python.org/packages/0a/f3/686af8873b70028fccf67b15c78fd4e4667a3da995007afc71e786d61b0a
PKG_HASH := c321bd46faa7847261b89c0469569530cad5a41976bb6dba8202c0159f476568
PKG_SOURCE := cffi -$( PKG_VERSION) .tar.gz
PKG_SOURCE_URL := https://pypi.python.org/packages/5b/b9/790f8eafcdab455bcd3bd908161f802c9ce5adbf702a83aa7712fcc345b7
PKG_HASH := b3b02911eb1f6ada203b0763ba924234629b51586f72a21faacc638269f4ced5
PKG_BUILD_DIR := $( BUILD_DIR) /$( BUILD_VARIANT) -$( PKG_NAME) -$( PKG_VERSION)
PKG_UNPACK = $( HOST_TAR) -C $( PKG_BUILD_DIR) --strip-components= 1 -xzf $( DL_DIR) /$( PKG_SOURCE)
HOST_BUILD_DEPENDS := libffi/host python-pycparser/host
i f d e f C O N F I G _ P A C K A G E _ p y t h o n - c f f i
HOST_BUILD_DEPENDS += python/host
e n d i f
i f d e f C O N F I G _ P A C K A G E _ p y t h o n 3 - c f f i
HOST_BUILD_DEPENDS += python3/host
e n d i f
PKG_BUILD_DIR := $( BUILD_DIR) /$( BUILD_VARIANT) -cffi-$( PKG_VERSION)
PKG_LICENSE := MIT
PKG_LICENSE_FILES := LICENSE
PKG_MAINTAINER := Jeffery To <jeffery.to@gmail.com>
i n c l u d e $( INCLUDE_DIR ) / h o s t - b u i l d . m k
i n c l u d e $( INCLUDE_DIR ) / p a c k a g e . m k
$( call include_mk , python -package .mk )
$( call include_mk , python 3-package .mk )
PKG_UNPACK := $( HOST_TAR) -C $( PKG_BUILD_DIR) --strip-components= 1 -xzf $( DL_DIR) /$( PKG_SOURCE)
d e f i n e P a c k a g e / p y t h o n - c f f i / D e f a u l t
SECTION:= lang
CATEGORY:= Languages
@ -46,14 +38,14 @@ endef
d e f i n e P a c k a g e / p y t h o n - c f f i
$( call Package /python -cffi /Default )
TITLE:= python-cffi
DEPENDS += +python-light +python-pycparser
DEPENDS += +PACKAGE_python-cffi: python-light +PACKAGE_python-cffi: python-pycparser
VARIANT:= python
e n d e f
d e f i n e P a c k a g e / p y t h o n 3 - c f f i
$( call Package /python -cffi /Default )
TITLE:= python3-cffi
DEPENDS += +python3-light +python3-pycparser
DEPENDS += +PACKAGE_python3-cffi: python3-light +PACKAGE_python3-cffi: python3-pycparser
VARIANT:= python3
e n d e f
@ -67,28 +59,6 @@ $(call Package/python-cffi/description)
( V a r i a n t f o r P y t h o n 3 )
e n d e f
i f d e f C O N F I G _ P A C K A G E _ p y t h o n - c f f i
d e f i n e H o s t / C o m p i l e / p y t h o n - c f f i
$( call Build/Compile/HostPyMod,,install --prefix= "" --root= " $( STAGING_DIR_HOSTPKG) " )
e n d e f
e n d i f
i f d e f C O N F I G _ P A C K A G E _ p y t h o n 3 - c f f i
d e f i n e H o s t / C o m p i l e / p y t h o n 3 - c f f i
$( call Build/Compile/HostPy3Mod,,install --prefix= "" --root= " $( STAGING_DIR_HOSTPKG) " )
e n d e f
e n d i f
d e f i n e H o s t / C o m p i l e
$( call Host /Compile /python -cffi )
$( call Host /Compile /python 3-cffi )
e n d e f
d e f i n e H o s t / I n s t a l l
e n d e f
$( eval $ ( call HostBuild ) )
$( eval $ ( call PyPackage ,python -cffi ) )
$( eval $ ( call BuildPackage ,python -cffi ) )