source: packages/lang/jsonpath/Makefile @ 27415

Last change on this file since 27415 was 27415, checked in by blogic, 5 years ago

New package jsonpath

This patch adds a new python package called jsonpath.

JSONPath allows you to run XPATH-like queries over json data structures.

Changes since v1:

  • removed unrelated changes
  • fix copyright

Signed-off-by: Roberto Riggio <roberto.riggio@…>

File size: 1.0 KB
Line 
1#
2# Copyright (C) 2011 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=jsonpath
11PKG_VERSION:=0.52.1
12PKG_RELEASE:=1
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=http://www.ultimate.com/phil/python/download/
16PKG_MD5SUM:=4cd0c3a70acbc67d2915d64f132cdb4f
17PKG_BUILD_DEPENDS:=python
18
19include $(INCLUDE_DIR)/package.mk
20$(call include_mk, python-package.mk)
21
22define Package/jsonpath
23  SUBMENU:=Python
24  SECTION:=lang
25  CATEGORY:=Languages
26  TITLE:=JsonPath - XPath implementation
27  URL:=http://goessner.net/articles/JsonPath/
28  DEPENDS:=+python
29endef
30
31define Package/jsonpath/description
32  An XPath implementation for JSON
33endef
34
35define Build/Compile
36        $(call Build/Compile/PyMod,,install --prefix="$(PKG_INSTALL_DIR)/usr")
37endef
38
39define Package/jsonpath/install
40        $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
41        $(CP) \
42            $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
43            $(1)$(PYTHON_PKG_DIR)
44endef
45
46$(eval $(call BuildPackage,jsonpath))
Note: See TracBrowser for help on using the repository browser.