components/python/jsonpath-rw/Makefile
author Rich Burridge <rich.burridge@oracle.com>
Thu, 23 Feb 2017 13:46:52 -0800
changeset 7687 1093e2a9adbd
parent 6754 4594a504fd64
permissions -rw-r--r--
25590368 Userland components should include "upstream" release tracking information
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
6754
4594a504fd64 PSARC 2016/342 jsonpath-rw - a Python implementation of JSONPath
Laszlo Peter <laszlo.peter@oracle.com>
parents:
diff changeset
     1
#
4594a504fd64 PSARC 2016/342 jsonpath-rw - a Python implementation of JSONPath
Laszlo Peter <laszlo.peter@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
4594a504fd64 PSARC 2016/342 jsonpath-rw - a Python implementation of JSONPath
Laszlo Peter <laszlo.peter@oracle.com>
parents:
diff changeset
     3
#
4594a504fd64 PSARC 2016/342 jsonpath-rw - a Python implementation of JSONPath
Laszlo Peter <laszlo.peter@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
4594a504fd64 PSARC 2016/342 jsonpath-rw - a Python implementation of JSONPath
Laszlo Peter <laszlo.peter@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
4594a504fd64 PSARC 2016/342 jsonpath-rw - a Python implementation of JSONPath
Laszlo Peter <laszlo.peter@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
4594a504fd64 PSARC 2016/342 jsonpath-rw - a Python implementation of JSONPath
Laszlo Peter <laszlo.peter@oracle.com>
parents:
diff changeset
     7
#
4594a504fd64 PSARC 2016/342 jsonpath-rw - a Python implementation of JSONPath
Laszlo Peter <laszlo.peter@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
4594a504fd64 PSARC 2016/342 jsonpath-rw - a Python implementation of JSONPath
Laszlo Peter <laszlo.peter@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
4594a504fd64 PSARC 2016/342 jsonpath-rw - a Python implementation of JSONPath
Laszlo Peter <laszlo.peter@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
4594a504fd64 PSARC 2016/342 jsonpath-rw - a Python implementation of JSONPath
Laszlo Peter <laszlo.peter@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
4594a504fd64 PSARC 2016/342 jsonpath-rw - a Python implementation of JSONPath
Laszlo Peter <laszlo.peter@oracle.com>
parents:
diff changeset
    12
#
4594a504fd64 PSARC 2016/342 jsonpath-rw - a Python implementation of JSONPath
Laszlo Peter <laszlo.peter@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
4594a504fd64 PSARC 2016/342 jsonpath-rw - a Python implementation of JSONPath
Laszlo Peter <laszlo.peter@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
4594a504fd64 PSARC 2016/342 jsonpath-rw - a Python implementation of JSONPath
Laszlo Peter <laszlo.peter@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
4594a504fd64 PSARC 2016/342 jsonpath-rw - a Python implementation of JSONPath
Laszlo Peter <laszlo.peter@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
4594a504fd64 PSARC 2016/342 jsonpath-rw - a Python implementation of JSONPath
Laszlo Peter <laszlo.peter@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
4594a504fd64 PSARC 2016/342 jsonpath-rw - a Python implementation of JSONPath
Laszlo Peter <laszlo.peter@oracle.com>
parents:
diff changeset
    18
#
4594a504fd64 PSARC 2016/342 jsonpath-rw - a Python implementation of JSONPath
Laszlo Peter <laszlo.peter@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
4594a504fd64 PSARC 2016/342 jsonpath-rw - a Python implementation of JSONPath
Laszlo Peter <laszlo.peter@oracle.com>
parents:
diff changeset
    20
#
4594a504fd64 PSARC 2016/342 jsonpath-rw - a Python implementation of JSONPath
Laszlo Peter <laszlo.peter@oracle.com>
parents:
diff changeset
    21
4594a504fd64 PSARC 2016/342 jsonpath-rw - a Python implementation of JSONPath
Laszlo Peter <laszlo.peter@oracle.com>
parents:
diff changeset
    22
#
7687
1093e2a9adbd 25590368 Userland components should include "upstream" release tracking information
Rich Burridge <rich.burridge@oracle.com>
parents: 6754
diff changeset
    23
# Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
6754
4594a504fd64 PSARC 2016/342 jsonpath-rw - a Python implementation of JSONPath
Laszlo Peter <laszlo.peter@oracle.com>
parents:
diff changeset
    24
#
4594a504fd64 PSARC 2016/342 jsonpath-rw - a Python implementation of JSONPath
Laszlo Peter <laszlo.peter@oracle.com>
parents:
diff changeset
    25
4594a504fd64 PSARC 2016/342 jsonpath-rw - a Python implementation of JSONPath
Laszlo Peter <laszlo.peter@oracle.com>
parents:
diff changeset
    26
include ../../../make-rules/shared-macros.mk
4594a504fd64 PSARC 2016/342 jsonpath-rw - a Python implementation of JSONPath
Laszlo Peter <laszlo.peter@oracle.com>
parents:
diff changeset
    27
4594a504fd64 PSARC 2016/342 jsonpath-rw - a Python implementation of JSONPath
Laszlo Peter <laszlo.peter@oracle.com>
parents:
diff changeset
    28
COMPONENT_NAME=		jsonpath-rw
4594a504fd64 PSARC 2016/342 jsonpath-rw - a Python implementation of JSONPath
Laszlo Peter <laszlo.peter@oracle.com>
parents:
diff changeset
    29
COMPONENT_VERSION=	1.4.0
4594a504fd64 PSARC 2016/342 jsonpath-rw - a Python implementation of JSONPath
Laszlo Peter <laszlo.peter@oracle.com>
parents:
diff changeset
    30
COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
4594a504fd64 PSARC 2016/342 jsonpath-rw - a Python implementation of JSONPath
Laszlo Peter <laszlo.peter@oracle.com>
parents:
diff changeset
    31
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
4594a504fd64 PSARC 2016/342 jsonpath-rw - a Python implementation of JSONPath
Laszlo Peter <laszlo.peter@oracle.com>
parents:
diff changeset
    32
COMPONENT_ARCHIVE_HASH=	\
4594a504fd64 PSARC 2016/342 jsonpath-rw - a Python implementation of JSONPath
Laszlo Peter <laszlo.peter@oracle.com>
parents:
diff changeset
    33
    sha256:05c471281c45ae113f6103d1268ec7a4831a2e96aa80de45edc89b11fac4fbec
4594a504fd64 PSARC 2016/342 jsonpath-rw - a Python implementation of JSONPath
Laszlo Peter <laszlo.peter@oracle.com>
parents:
diff changeset
    34
COMPONENT_ARCHIVE_URL=	$(call pypi_url)
4594a504fd64 PSARC 2016/342 jsonpath-rw - a Python implementation of JSONPath
Laszlo Peter <laszlo.peter@oracle.com>
parents:
diff changeset
    35
COMPONENT_PROJECT_URL=	https://github.com/kennknowles/python-jsonpath-rw
4594a504fd64 PSARC 2016/342 jsonpath-rw - a Python implementation of JSONPath
Laszlo Peter <laszlo.peter@oracle.com>
parents:
diff changeset
    36
COMPONENT_BUGDB=	python-mod/jsonpathrw
7687
1093e2a9adbd 25590368 Userland components should include "upstream" release tracking information
Rich Burridge <rich.burridge@oracle.com>
parents: 6754
diff changeset
    37
COMPONENT_ANITYA_ID=	13197
6754
4594a504fd64 PSARC 2016/342 jsonpath-rw - a Python implementation of JSONPath
Laszlo Peter <laszlo.peter@oracle.com>
parents:
diff changeset
    38
4594a504fd64 PSARC 2016/342 jsonpath-rw - a Python implementation of JSONPath
Laszlo Peter <laszlo.peter@oracle.com>
parents:
diff changeset
    39
TPNO=			24545
4594a504fd64 PSARC 2016/342 jsonpath-rw - a Python implementation of JSONPath
Laszlo Peter <laszlo.peter@oracle.com>
parents:
diff changeset
    40
4594a504fd64 PSARC 2016/342 jsonpath-rw - a Python implementation of JSONPath
Laszlo Peter <laszlo.peter@oracle.com>
parents:
diff changeset
    41
include $(WS_MAKE_RULES)/prep.mk
4594a504fd64 PSARC 2016/342 jsonpath-rw - a Python implementation of JSONPath
Laszlo Peter <laszlo.peter@oracle.com>
parents:
diff changeset
    42
include $(WS_MAKE_RULES)/setup.py.mk
4594a504fd64 PSARC 2016/342 jsonpath-rw - a Python implementation of JSONPath
Laszlo Peter <laszlo.peter@oracle.com>
parents:
diff changeset
    43
include $(WS_MAKE_RULES)/ips.mk
4594a504fd64 PSARC 2016/342 jsonpath-rw - a Python implementation of JSONPath
Laszlo Peter <laszlo.peter@oracle.com>
parents:
diff changeset
    44
4594a504fd64 PSARC 2016/342 jsonpath-rw - a Python implementation of JSONPath
Laszlo Peter <laszlo.peter@oracle.com>
parents:
diff changeset
    45
ASLR_MODE = $(ASLR_NOT_APPLICABLE)
4594a504fd64 PSARC 2016/342 jsonpath-rw - a Python implementation of JSONPath
Laszlo Peter <laszlo.peter@oracle.com>
parents:
diff changeset
    46
4594a504fd64 PSARC 2016/342 jsonpath-rw - a Python implementation of JSONPath
Laszlo Peter <laszlo.peter@oracle.com>
parents:
diff changeset
    47
# Allow pkg to create the mediated link.  We drop the .py extension, too, since
4594a504fd64 PSARC 2016/342 jsonpath-rw - a Python implementation of JSONPath
Laszlo Peter <laszlo.peter@oracle.com>
parents:
diff changeset
    48
# a) it's the right thing, and b) it matches Ubuntu.
4594a504fd64 PSARC 2016/342 jsonpath-rw - a Python implementation of JSONPath
Laszlo Peter <laszlo.peter@oracle.com>
parents:
diff changeset
    49
COMPONENT_POST_INSTALL_ACTION = \
4594a504fd64 PSARC 2016/342 jsonpath-rw - a Python implementation of JSONPath
Laszlo Peter <laszlo.peter@oracle.com>
parents:
diff changeset
    50
    (cd $(PROTO_DIR)/usr/bin; $(MV) jsonpath.py jsonpath-$(PYTHON_VERSION))
4594a504fd64 PSARC 2016/342 jsonpath-rw - a Python implementation of JSONPath
Laszlo Peter <laszlo.peter@oracle.com>
parents:
diff changeset
    51
4594a504fd64 PSARC 2016/342 jsonpath-rw - a Python implementation of JSONPath
Laszlo Peter <laszlo.peter@oracle.com>
parents:
diff changeset
    52
# There's a non-ASCII UTF-8 character in the source which upsets pkgdepend when
4594a504fd64 PSARC 2016/342 jsonpath-rw - a Python implementation of JSONPath
Laszlo Peter <laszlo.peter@oracle.com>
parents:
diff changeset
    53
# run in the C locale, so explicitly set the locale to UTF-8.
4594a504fd64 PSARC 2016/342 jsonpath-rw - a Python implementation of JSONPath
Laszlo Peter <laszlo.peter@oracle.com>
parents:
diff changeset
    54
COMPONENT_PUBLISH_ENV +=	LC_ALL=en_US.UTF-8
4594a504fd64 PSARC 2016/342 jsonpath-rw - a Python implementation of JSONPath
Laszlo Peter <laszlo.peter@oracle.com>
parents:
diff changeset
    55
4594a504fd64 PSARC 2016/342 jsonpath-rw - a Python implementation of JSONPath
Laszlo Peter <laszlo.peter@oracle.com>
parents:
diff changeset
    56
# common targets
4594a504fd64 PSARC 2016/342 jsonpath-rw - a Python implementation of JSONPath
Laszlo Peter <laszlo.peter@oracle.com>
parents:
diff changeset
    57
build:		$(BUILD_NO_ARCH)
4594a504fd64 PSARC 2016/342 jsonpath-rw - a Python implementation of JSONPath
Laszlo Peter <laszlo.peter@oracle.com>
parents:
diff changeset
    58
4594a504fd64 PSARC 2016/342 jsonpath-rw - a Python implementation of JSONPath
Laszlo Peter <laszlo.peter@oracle.com>
parents:
diff changeset
    59
install:	$(INSTALL_NO_ARCH)
4594a504fd64 PSARC 2016/342 jsonpath-rw - a Python implementation of JSONPath
Laszlo Peter <laszlo.peter@oracle.com>
parents:
diff changeset
    60
4594a504fd64 PSARC 2016/342 jsonpath-rw - a Python implementation of JSONPath
Laszlo Peter <laszlo.peter@oracle.com>
parents:
diff changeset
    61
# Tests are not bundled in the tarballs, but are available in the git repo.
4594a504fd64 PSARC 2016/342 jsonpath-rw - a Python implementation of JSONPath
Laszlo Peter <laszlo.peter@oracle.com>
parents:
diff changeset
    62
# XXX File a bug to have the tarballs include the tests?  Or use the git repo
4594a504fd64 PSARC 2016/342 jsonpath-rw - a Python implementation of JSONPath
Laszlo Peter <laszlo.peter@oracle.com>
parents:
diff changeset
    63
# instead of the tarball?
4594a504fd64 PSARC 2016/342 jsonpath-rw - a Python implementation of JSONPath
Laszlo Peter <laszlo.peter@oracle.com>
parents:
diff changeset
    64
test:		$(NO_TESTS)
4594a504fd64 PSARC 2016/342 jsonpath-rw - a Python implementation of JSONPath
Laszlo Peter <laszlo.peter@oracle.com>
parents:
diff changeset
    65
4594a504fd64 PSARC 2016/342 jsonpath-rw - a Python implementation of JSONPath
Laszlo Peter <laszlo.peter@oracle.com>
parents:
diff changeset
    66
system-test:	$(NO_TESTS)
4594a504fd64 PSARC 2016/342 jsonpath-rw - a Python implementation of JSONPath
Laszlo Peter <laszlo.peter@oracle.com>
parents:
diff changeset
    67
4594a504fd64 PSARC 2016/342 jsonpath-rw - a Python implementation of JSONPath
Laszlo Peter <laszlo.peter@oracle.com>
parents:
diff changeset
    68
REQUIRED_PACKAGES += library/python/setuptools-27
4594a504fd64 PSARC 2016/342 jsonpath-rw - a Python implementation of JSONPath
Laszlo Peter <laszlo.peter@oracle.com>
parents:
diff changeset
    69
REQUIRED_PACKAGES += library/python/setuptools-34
4594a504fd64 PSARC 2016/342 jsonpath-rw - a Python implementation of JSONPath
Laszlo Peter <laszlo.peter@oracle.com>
parents:
diff changeset
    70
REQUIRED_PACKAGES += library/python/setuptools-35