Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
package/python-pyparsing: new package
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Reviewed-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
- Loading branch information
1 parent
a13fd5f
commit df07240
Showing
3 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,11 @@ | |||
config BR2_PACKAGE_PYTHON_PYPARSING | |||
bool "pyparsing" | |||
depends on BR2_PACKAGE_PYTHON | |||
help | |||
The pyparsing module is an alternative approach to creating and | |||
executing simple grammars, vs. the traditional lex/yacc approach, | |||
or the use of regular expressions. The pyparsing module provides | |||
a library of classes that client code uses to construct the grammar | |||
directly in Python code. | |||
|
|||
http://pyparsing.wikispaces.com/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,38 @@ | |||
############################################################# | |||
# | |||
# python-pyparsing | |||
# | |||
############################################################# | |||
|
|||
PYTHON_PYPARSING_VERSION = 1.5.6 | |||
PYTHON_PYPARSING_SOURCE = pyparsing-$(PYTHON_PYPARSING_VERSION).tar.gz | |||
PYTHON_PYPARSING_SITE = http://downloads.sourceforge.net/project/pyparsing/pyparsing/pyparsing-$(PYTHON_PYPARSING_VERSION) | |||
PYTHON_PYPARSING_LICENSE = MIT | |||
PYTHON_PYPARSING_LICENSE_FILES = LICENSE | |||
PYTHON_PYPARSING_INSTALL_STAGING = YES | |||
PYTHON_PYPARSING_DEPENDENCIES = python | |||
|
|||
# Shamelessly vampirised from python-pygame ;-) | |||
define PYTHON_PYPARSING_BUILD_CMDS | |||
(cd $(@D); \ | |||
CC="$(TARGET_CC)" \ | |||
CFLAGS="$(TARGET_CFLAGS)" \ | |||
LDSHARED="$(TARGET_CROSS)gcc -shared" \ | |||
CROSS_COMPILING=yes \ | |||
_python_sysroot=$(STAGING_DIR) \ | |||
_python_srcdir=$(BUILD_DIR)/python$(PYTHON_VERSION) \ | |||
_python_prefix=/usr \ | |||
_python_exec_prefix=/usr \ | |||
$(HOST_DIR)/usr/bin/python setup.py build \ | |||
) | |||
endef | |||
|
|||
# Shamelessly vampirised from python-pygame ;-) | |||
define PYTHON_PYPARSING_INSTALL_TARGET_CMDS | |||
(cd $(@D); \ | |||
$(HOST_DIR)/usr/bin/python setup.py install \ | |||
--prefix=$(TARGET_DIR)/usr \ | |||
) | |||
endef | |||
|
|||
$(eval $(generic-package)) |