components/python/pycountry/Makefile
author Rich Burridge <rich.burridge@oracle.com>
Tue, 17 Dec 2013 16:20:58 -0800
changeset 1607 861db9bed008
child 1719 ed40f9dc832e
permissions -rw-r--r--
PSARC 2013/352 pytest version 2.3.5 PSARC 2013/354 py version 1.4.15 PSARC 2013/357 pyflakes version 0.7.2 PSARC 2013/359 nose-cover3 version 0.0.4 PSARC 2013/361 tox version 1.4.3 PSARC 2013/362 virtualenv version 1.9.1 PSARC 2013/366 beautifulsoup4 version 4.2.1 PSARC 2013/368 pycountry version 0.17 PSARC 2013/370 pytest-codecheckers version 0.2 PSARC 2013/371 pytest-capturelog version 0.7 PSARC 2013/373 pyDNS version 2.3.6 PSARC 2013/375 cov-core version 1.7 PSARC 2013/376 pytest-cov version 1.6 PSARC 2013/379 waitress version 0.8.5 PSARC 2013/380 webtest version 2.0.6 17599568 The Python pytest module needs to be added to Userland 17599569 The Python pytest-capturelog module needs to be added to Userland 17599570 The Python pytest-codecheckers module needs to be added to Userland 17599571 The Python pytest-cov module needs to be added to Userland 17599575 The Python cov-core module needs to be added to Userland 17599582 The Python nose-cover3 module needs to be added to Userland 17599586 The Python webtest module needs to be added to Userland 17599591 The Python tox module needs to be added to Userland 17599592 The Python pyDNS module needs to be added to Userland 17599593 The Python pycountry module needs to be added to Userland 17599594 The Python pyflakes module needs to be added to Userland 17599596 The Python beautifulsoup4 module needs to be added to Userland 17599598 The Python waitress module needs to be added to Userland 17599599 The Python py module needs to be added to Userland 17720389 The Python virtualenv module needs to be added to Userland
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1607
861db9bed008 PSARC 2013/352 pytest version 2.3.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     1
#
861db9bed008 PSARC 2013/352 pytest version 2.3.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
861db9bed008 PSARC 2013/352 pytest version 2.3.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     3
#
861db9bed008 PSARC 2013/352 pytest version 2.3.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
861db9bed008 PSARC 2013/352 pytest version 2.3.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
861db9bed008 PSARC 2013/352 pytest version 2.3.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
861db9bed008 PSARC 2013/352 pytest version 2.3.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     7
#
861db9bed008 PSARC 2013/352 pytest version 2.3.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
861db9bed008 PSARC 2013/352 pytest version 2.3.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
861db9bed008 PSARC 2013/352 pytest version 2.3.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
861db9bed008 PSARC 2013/352 pytest version 2.3.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
861db9bed008 PSARC 2013/352 pytest version 2.3.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    12
#
861db9bed008 PSARC 2013/352 pytest version 2.3.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
861db9bed008 PSARC 2013/352 pytest version 2.3.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
861db9bed008 PSARC 2013/352 pytest version 2.3.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
861db9bed008 PSARC 2013/352 pytest version 2.3.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
861db9bed008 PSARC 2013/352 pytest version 2.3.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
861db9bed008 PSARC 2013/352 pytest version 2.3.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    18
#
861db9bed008 PSARC 2013/352 pytest version 2.3.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
861db9bed008 PSARC 2013/352 pytest version 2.3.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    20
#
861db9bed008 PSARC 2013/352 pytest version 2.3.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    21
# Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
861db9bed008 PSARC 2013/352 pytest version 2.3.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    22
#
861db9bed008 PSARC 2013/352 pytest version 2.3.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    23
include ../../../make-rules/shared-macros.mk
861db9bed008 PSARC 2013/352 pytest version 2.3.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    24
861db9bed008 PSARC 2013/352 pytest version 2.3.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    25
COMPONENT_NAME=		pycountry
861db9bed008 PSARC 2013/352 pytest version 2.3.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    26
COMPONENT_VERSION=	0.17
861db9bed008 PSARC 2013/352 pytest version 2.3.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    27
COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
861db9bed008 PSARC 2013/352 pytest version 2.3.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    28
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).zip
861db9bed008 PSARC 2013/352 pytest version 2.3.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    29
COMPONENT_ARCHIVE_HASH=	\
861db9bed008 PSARC 2013/352 pytest version 2.3.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    30
    sha256:1d1781ae6c42b15c26f45da7f53200defe00b6b2cad0512f05fdd43e539dd539
861db9bed008 PSARC 2013/352 pytest version 2.3.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    31
COMPONENT_ARCHIVE_URL=	$(call pypi_url)
861db9bed008 PSARC 2013/352 pytest version 2.3.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    32
COMPONENT_PROJECT_URL=	https://pypi.python.org/pypi/pycountry
861db9bed008 PSARC 2013/352 pytest version 2.3.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    33
COMPONENT_BUGDB=	python-mod/pycountry
861db9bed008 PSARC 2013/352 pytest version 2.3.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    34
861db9bed008 PSARC 2013/352 pytest version 2.3.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    35
include $(WS_TOP)/make-rules/prep.mk
861db9bed008 PSARC 2013/352 pytest version 2.3.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    36
include $(WS_TOP)/make-rules/setup.py.mk
861db9bed008 PSARC 2013/352 pytest version 2.3.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    37
include $(WS_TOP)/make-rules/ips.mk
861db9bed008 PSARC 2013/352 pytest version 2.3.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    38
861db9bed008 PSARC 2013/352 pytest version 2.3.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    39
ASLR_MODE = $(ASLR_NOT_APPLICABLE)
861db9bed008 PSARC 2013/352 pytest version 2.3.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    40
861db9bed008 PSARC 2013/352 pytest version 2.3.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    41
# Regenerate the message object (mo) files for the patched 
861db9bed008 PSARC 2013/352 pytest version 2.3.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    42
# iso3166 (country) translations.
861db9bed008 PSARC 2013/352 pytest version 2.3.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    43
COMPONENT_PRE_BUILD_ACTION = \
861db9bed008 PSARC 2013/352 pytest version 2.3.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    44
	cd $(SOURCE_DIR)/src/$(COMPONENT_NAME)/locales; \
861db9bed008 PSARC 2013/352 pytest version 2.3.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    45
	for pofile in */LC_MESSAGES/iso3166.po; \
861db9bed008 PSARC 2013/352 pytest version 2.3.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    46
	do \
861db9bed008 PSARC 2013/352 pytest version 2.3.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    47
		dir=`dirname $$pofile`; \
861db9bed008 PSARC 2013/352 pytest version 2.3.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    48
		mofile=$$dir/iso3166.mo; \
861db9bed008 PSARC 2013/352 pytest version 2.3.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    49
		/bin/rm -f $$mofile; \
861db9bed008 PSARC 2013/352 pytest version 2.3.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    50
		gmsgfmt $$pofile -o $$mofile; \
861db9bed008 PSARC 2013/352 pytest version 2.3.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    51
	done
861db9bed008 PSARC 2013/352 pytest version 2.3.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    52
861db9bed008 PSARC 2013/352 pytest version 2.3.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    53
# common targets
861db9bed008 PSARC 2013/352 pytest version 2.3.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    54
build:		$(BUILD_NO_ARCH)
861db9bed008 PSARC 2013/352 pytest version 2.3.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    55
861db9bed008 PSARC 2013/352 pytest version 2.3.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    56
install:	$(INSTALL_NO_ARCH)
861db9bed008 PSARC 2013/352 pytest version 2.3.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    57
861db9bed008 PSARC 2013/352 pytest version 2.3.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    58
#  Tests require the tox package
861db9bed008 PSARC 2013/352 pytest version 2.3.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    59
test:		$(NO_TESTS)
861db9bed008 PSARC 2013/352 pytest version 2.3.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    60
861db9bed008 PSARC 2013/352 pytest version 2.3.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    61
BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)
861db9bed008 PSARC 2013/352 pytest version 2.3.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    62
861db9bed008 PSARC 2013/352 pytest version 2.3.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    63
include $(WS_TOP)/make-rules/depend.mk