2271N/A#
2271N/A# CDDL HEADER START
2271N/A#
2271N/A# The contents of this file are subject to the terms of the
2271N/A# Common Development and Distribution License (the "License").
2271N/A# You may not use this file except in compliance with the License.
2271N/A#
2271N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2271N/A# or http://www.opensolaris.org/os/licensing.
2271N/A# See the License for the specific language governing permissions
2271N/A# and limitations under the License.
2271N/A#
2271N/A# When distributing Covered Code, include this CDDL HEADER in each
2271N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2271N/A# If applicable, add the following below this CDDL HEADER, with the
2271N/A# fields enclosed by brackets "[]" replaced with your own identifying
2271N/A# information: Portions Copyright [yyyy] [name of copyright owner]
2271N/A#
2271N/A# CDDL HEADER END
2271N/A#
3996N/A# Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
2271N/A#
2271N/Ainclude ../../../make-rules/shared-macros.mk
2271N/A
2271N/ACOMPONENT_NAME= pycountry
2271N/ACOMPONENT_VERSION= 0.17
2271N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
2271N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).zip
2271N/ACOMPONENT_ARCHIVE_HASH= \
2271N/A sha256:1d1781ae6c42b15c26f45da7f53200defe00b6b2cad0512f05fdd43e539dd539
2271N/ACOMPONENT_ARCHIVE_URL= $(call pypi_url)
2271N/ACOMPONENT_PROJECT_URL= https://pypi.python.org/pypi/pycountry
2271N/ACOMPONENT_BUGDB= python-mod/pycountry
2271N/A
3661N/ATPNO= 14503
3661N/A
3996N/Ainclude $(WS_MAKE_RULES)/prep.mk
3996N/Ainclude $(WS_MAKE_RULES)/setup.py.mk
3996N/Ainclude $(WS_MAKE_RULES)/ips.mk
2271N/A
2271N/AASLR_MODE = $(ASLR_NOT_APPLICABLE)
2271N/A
2271N/A# Regenerate the message object (mo) files for the patched
2665N/A# iso3166 (country) and iso3166-2 (country subdivisions) translations.
2271N/ACOMPONENT_PRE_BUILD_ACTION = \
2271N/A cd $(SOURCE_DIR)/src/$(COMPONENT_NAME)/locales; \
2665N/A for pofile in */LC_MESSAGES/iso3166.po \
2665N/A */LC_MESSAGES/iso3166_2.po ; \
2271N/A do \
2665N/A mofile=`echo $$pofile | $(GSED) -e 's/\.po$$/\.mo/'` ; \
2271N/A /bin/rm -f $$mofile; \
2271N/A gmsgfmt $$pofile -o $$mofile; \
2271N/A done
2271N/A
2271N/A# common targets
2271N/Abuild: $(BUILD_NO_ARCH)
2271N/A
2271N/Ainstall: $(INSTALL_NO_ARCH)
2271N/A
2271N/A# Tests require the tox package
2271N/Atest: $(NO_TESTS)
2271N/A
2271N/A