@ -8,59 +8,68 @@
i n c l u d e $( TOPDIR ) / r u l e s . m k
PKG_NAME := PyYAML
PKG_VERSION := 3.13
PKG_VERSION := 5.1
PKG_RELEASE := 1
PKG_SOURCE := $( PKG_NAME) -$( PKG_VERSION) .tar.gz
PKG_SOURCE_URL := https://pypi.python .org/packages/source/P/PyYAML
PKG_HASH := 3ef3092145e9b70e3ddd2c7ad59bdd0252a94dfe3949721633e41344de00a6bf
PKG_SOURCE_URL := https://files.pythonhosted .org/packages/source/P/PyYAML
PKG_HASH := 436bc774ecf7c103814098159fbb84c2715d25980175292c648f2da143909f95
PKG_MAINTAINER := Josef Schlehofer <josef.schlehofer@nic.cz>
PKG_LICENSE := MIT
PKG_LICENSE_FILES := COPYING
PKG_MAINTAINER := Nicolas Thill <nico@openwrt.org>
PKG_LICENSE_FILES := LICENSE
PKG_CPE_ID := cpe:/a:pyyaml_project:pyyaml
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)
i n c l u d e $( INCLUDE_DIR ) / p a c k a g e . m k
i n c l u d e . . / p y t h o n - p a c k a g e . m k
i n c l u d e . . / p y t h o n 3 - p a c k a g e . m k
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 - y a m l / D e f a u l t
SUBMENU:= Python
SECTION:= lang
SUBMENU:= Python
CATEGORY:= Languages
URL:= https://pyyaml.org/wiki/PyYAML
TITLE:= YAML parser and emitter for Python
URL:= https://github.com/yaml/pyyaml
DEPENDS:= +libyaml
e n d e f
d e f i n e P a c k a g e / p y t h o n - y a m l
$( call Package /python -yaml /Default )
TITLE:= YAML parser and emitter for Python
DEPENDS += +PACKAGE_python-yaml:python-light +PACKAGE_python-yaml:python-codecs
DEPENDS += \
+PACKAGE_python-yaml:python-light \
+PACKAGE_python-yaml:python-codecs
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 - y a m l
$( call Package /python -yaml /Default )
TITLE:= YAML parser and emitter for Python3
DEPENDS += +PACKAGE_python3-yaml:python3-light
VARIANT:= python3
e n d e f
d e f i n e P y B u i l d / C o m p i l e
$( call Build/Compile/PyMod,,\
--with-libyaml install --prefix= " $( PKG_INSTALL_DIR) /usr " \
)
d e f i n e P a c k a g e / p y t h o n - y a m l / d e s c r i p t i o n
P y Y A M L i s a Y A M L p a r s e r a n d e m i t t e r f o r t h e P y t h o n p r o g r a m m i n g l a n g u a g e .
e n d e f
d e f i n e P y 3 B u i l d / C o m p i l e
$( call Build/Compile/Py3Mod,,\
--with-libyaml install --prefix= " $( PKG_INSTALL_DIR) /usr " \
)
d e f i n e P a c k a g e / p y t h o n 3 - y a m l / d e s c r i p t i o n
$( call Package /python -yaml /description )
.
( V a r i a n t f o r P y t h o n 3 )
e n d e f
PYTHON_PKG_SETUP_GLOBAL_ARGS := --with-libyaml
PYTHON_PKG_SETUP_ARGS :=
PYTHON3_PKG_SETUP_GLOBAL_ARGS := --with-libyaml
PYTHON3_PKG_SETUP_ARGS :=
$( eval $ ( call PyPackage ,python -yaml ) )
$( eval $ ( call BuildPackage ,python -yaml ) )
$( eval $ ( call BuildPackage ,python -yaml -src ) )
$( eval $ ( call Py 3Package ,python 3-yaml ) )
$( eval $ ( call BuildPackage ,python 3-yaml ) )
$( eval $ ( call BuildPackage ,python 3-yaml -src ) )