Add buildroot 2018-02

This commit is contained in:
Pascal Vizeli
2018-03-17 23:47:00 +00:00
parent 3776c47f83
commit 67742041ad
10007 changed files with 405098 additions and 0 deletions

View File

@@ -0,0 +1,40 @@
From 3bc4b9c0d60a735b1d63e52f74492ace39f02824 Mon Sep 17 00:00:00 2001
From: Yegor Yefremov <yegorslists@googlemail.com>
Date: Thu, 27 Jul 2017 09:46:07 +0200
Subject: [PATCH] Determine boost_python name depending on current Python
version
Python2 requires boost_python and Python3 requires boost_python3.
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
---
setup.py | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/setup.py b/setup.py
index fdf5c27..4b38569 100644
--- a/setup.py
+++ b/setup.py
@@ -3,6 +3,10 @@
from setuptools import setup, find_packages, Extension
import sys, os
+boostlib = "boost_python3"
+if sys.version_info < (3, 0):
+ boostlib = "boost_python"
+
setup(
name = 'pylibconfig',
description = "libconfig bindings for Python",
@@ -19,7 +23,7 @@ setup(
Extension(
"pylibconfig",
["src/pylibconfig.cc"],
- libraries=["boost_python", "config++"]
+ libraries=[boostlib, "config++"]
#include_dirs=includes,
#extra_link_args=lflags
)
--
2.11.0

View File

@@ -0,0 +1,23 @@
comment "python-libconfig needs a glibc or uClibc toolchain w/ C++, threads"
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS || \
BR2_TOOLCHAIN_USES_MUSL
config BR2_PACKAGE_PYTHON_LIBCONFIG
bool "python-libconfig"
depends on BR2_INSTALL_LIBSTDCPP
depends on BR2_TOOLCHAIN_HAS_THREADS
# error: invalid use of incomplete type 'struct _IO_FILE'
depends on !BR2_TOOLCHAIN_USES_MUSL
select BR2_PACKAGE_BOOST
select BR2_PACKAGE_BOOST_PYTHON
select BR2_PACKAGE_LIBCONFIG
help
Python bindings to the C++ library libconfig
Libconfig is a simple library for manipulating structured
configuration files. The file format is more compact and more
readable than XML. And unlike XML, it is type-aware, so it is
not necessary to do string parsing in application code.
http://www.hyperrealm.com/libconfig/
https://github.com/cnangel/python-libconfig

View File

@@ -0,0 +1,2 @@
# locally computed
sha256 f4cfb7e60b8fcee32ca3392c99932c579038db0852c1c2c42d7c4b859eea3c5c python-libconfig-b271c3d9dac938ad5cd29b67bd08cc5536a5a391.tar.gz

View File

@@ -0,0 +1,17 @@
################################################################################
#
# python-libconfig
#
################################################################################
PYTHON_LIBCONFIG_VERSION = b271c3d9dac938ad5cd29b67bd08cc5536a5a391
PYTHON_LIBCONFIG_SITE = $(call github,cnangel,python-libconfig,$(PYTHON_LIBCONFIG_VERSION))
PYTHON_LIBCONFIG_LICENSE = BSD
PYTHON_LIBCONFIG_LICENSE_FILES = README
PYTHON_LIBCONFIG_SETUP_TYPE = setuptools
PYTHON_LIBCONFIG_DEPENDENCIES = libconfig boost
$(eval $(python-package))