diff options
author | Koen Kooi <koen@openembedded.org> | 2008-10-03 08:56:06 +0000 |
---|---|---|
committer | Koen Kooi <koen@openembedded.org> | 2008-10-03 08:56:06 +0000 |
commit | e36d903760a90389bbc46a89fdf5556c38f4966d (patch) | |
tree | 2c9d0537ee3273031a9fbe81dd80a729f46a69c3 | |
parent | f876463527bd9ae92a09159fdb4899b4a4d19121 (diff) | |
parent | 0b4e030c8ead47ccbbefd57a96b7f78157d12f39 (diff) |
merge of '1427a8ede5b7d37a89b207e3552cbe6a842fcc22'
and 'c9705f706a05f04be17dd411ebb566e068b9dc83'
-rw-r--r-- | packages/libyaml/.mtn2git_empty | 0 | ||||
-rw-r--r-- | packages/libyaml/libyaml_0.1.1.bb | 13 | ||||
-rw-r--r-- | packages/python/python-pyyaml/.mtn2git_empty | 0 | ||||
-rw-r--r-- | packages/python/python-pyyaml/setup.py | 64 | ||||
-rw-r--r-- | packages/python/python-pyyaml_3.05.bb | 10 | ||||
-rw-r--r-- | packages/python/python-pyyaml_svn.bb | 20 |
6 files changed, 97 insertions, 10 deletions
diff --git a/packages/libyaml/.mtn2git_empty b/packages/libyaml/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/packages/libyaml/.mtn2git_empty diff --git a/packages/libyaml/libyaml_0.1.1.bb b/packages/libyaml/libyaml_0.1.1.bb new file mode 100644 index 0000000000..4279f50b94 --- /dev/null +++ b/packages/libyaml/libyaml_0.1.1.bb @@ -0,0 +1,13 @@ +DESCRIPTION = "LibYAML is a YAML 1.1 parser and emitter written in C." +HOMEPAGE = "http://pyyaml.org/wiki/LibYAML" +SECTION = "libs/devel" +LICENSE = "MIT" + +SRC_URI = "http://pyyaml.org/download/libyaml/yaml-${PV}.tar.gz" +S = "${WORKDIR}/yaml-${PV}" + +inherit autotools + +do_stage() { + autotools_stage_all +} diff --git a/packages/python/python-pyyaml/.mtn2git_empty b/packages/python/python-pyyaml/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/packages/python/python-pyyaml/.mtn2git_empty diff --git a/packages/python/python-pyyaml/setup.py b/packages/python/python-pyyaml/setup.py new file mode 100644 index 0000000000..fb64983419 --- /dev/null +++ b/packages/python/python-pyyaml/setup.py @@ -0,0 +1,64 @@ +NAME = 'PyYAML' +VERSION = '3.06' +DESCRIPTION = "YAML parser and emitter for Python" +LONG_DESCRIPTION = """\ +YAML is a data serialization format designed for human readability and +interaction with scripting languages. PyYAML is a YAML parser and +emitter for Python. + +PyYAML features a complete YAML 1.1 parser, Unicode support, pickle +support, capable extension API, and sensible error messages. PyYAML +supports standard YAML tags and provides Python-specific tags that allow +to represent an arbitrary Python object. + +PyYAML is applicable for a broad range of tasks from complex +configuration files to object serialization and persistance.""" +AUTHOR = "Kirill Simonov" +AUTHOR_EMAIL = 'xi@resolvent.net' +LICENSE = "MIT" +PLATFORMS = "Any" +URL = "http://pyyaml.org/wiki/PyYAML" +DOWNLOAD_URL = "http://pyyaml.org/download/pyyaml/%s-%s.tar.gz" % (NAME, VERSION) +CLASSIFIERS = [ + "Development Status :: 5 - Production/Stable", + "Intended Audience :: Developers", + "License :: OSI Approved :: MIT License", + "Operating System :: OS Independent", + "Programming Language :: Python", + "Topic :: Software Development :: Libraries :: Python Modules", + "Topic :: Text Processing :: Markup", +] + +from distutils.core import setup +from distutils.extension import Extension +from Cython.Distutils import build_ext + +import sys, os.path + + +if __name__ == '__main__': + + setup( + name=NAME, + version=VERSION, + description=DESCRIPTION, + long_description=LONG_DESCRIPTION, + author=AUTHOR, + author_email=AUTHOR_EMAIL, + license=LICENSE, + platforms=PLATFORMS, + url=URL, + download_url=DOWNLOAD_URL, + classifiers=CLASSIFIERS, + + package_dir={'': 'lib'}, + packages=['yaml'], + + ext_modules = [ + Extension( "_yaml", ["ext/_yaml.pyx"], libraries = ["yaml"] ) + ], + + cmdclass={ + 'build_ext': build_ext, + }, + ) diff --git a/packages/python/python-pyyaml_3.05.bb b/packages/python/python-pyyaml_3.05.bb deleted file mode 100644 index 7f86bbadf7..0000000000 --- a/packages/python/python-pyyaml_3.05.bb +++ /dev/null @@ -1,10 +0,0 @@ -DESCRIPTION = "Python support for YAML" -HOMEPAGE = "http://www.pyyaml.org" -SECTION = "devel/python" -LICENSE = "MIT" -PR = "ml0" - -SRC_URI = "http://pyyaml.org/download/pyyaml/PyYAML-3.05.tar.gz" -S = "${WORKDIR}/PyYAML-${PV}" - -inherit distutils diff --git a/packages/python/python-pyyaml_svn.bb b/packages/python/python-pyyaml_svn.bb new file mode 100644 index 0000000000..3f316cff82 --- /dev/null +++ b/packages/python/python-pyyaml_svn.bb @@ -0,0 +1,20 @@ +DESCRIPTION = "Python support for YAML" +HOMEPAGE = "http://www.pyyaml.org" +SECTION = "devel/python" +LICENSE = "MIT" +DEPENDS = "libyaml python-cython-native" +PV = "3.05+svnr${SRCREV}" +PR = "ml0" + +SRC_URI = "\ + svn://svn.pyyaml.org/pyyaml;module=trunk;proto=http \ + file://setup.py \ +" +S = "${WORKDIR}/trunk" + +inherit distutils + +do_configure_prepend() { + # upstream setup.py overcomplicated, use ours + install -m 0644 ${WORKDIR}/setup.py ${S} +} |