From f7455240e3b2acb3cd4804dac9a3afe2582a0a96 Mon Sep 17 00:00:00 2001 From: Antoine Brodin Date: Mon, 19 Feb 2018 11:10:43 +0000 Subject: Reduce dependency on the python2 metaport PR: 225752 Submitted by: Yasuhiro KIMURA --- graphics/lcms-python/Makefile | 3 ++- graphics/lcms-python/files/patch-configure | 11 +++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 graphics/lcms-python/files/patch-configure (limited to 'graphics/lcms-python') diff --git a/graphics/lcms-python/Makefile b/graphics/lcms-python/Makefile index 03ff2cfde99b..16fb7dc9cc07 100644 --- a/graphics/lcms-python/Makefile +++ b/graphics/lcms-python/Makefile @@ -3,6 +3,7 @@ PORTNAME= lcms PORTVERSION= 1.19 +PORTREVISION= 1 CATEGORIES= graphics devel python MASTER_SITES= SF PKGNAMESUFFIX= -python @@ -17,7 +18,7 @@ LIB_DEPENDS= liblcms.so:graphics/lcms BUILD_WRKSRC= ${WRKSRC}/python INSTALL_WRKSRC= ${WRKSRC}/python -USES= python:2 +USES= python:2.7 GNU_CONFIGURE= yes CONFIGURE_ARGS= --with-python CONFIGURE_ENV= PYTHON="${PYTHON_CMD}" diff --git a/graphics/lcms-python/files/patch-configure b/graphics/lcms-python/files/patch-configure new file mode 100644 index 000000000000..6c99e9790c5b --- /dev/null +++ b/graphics/lcms-python/files/patch-configure @@ -0,0 +1,11 @@ +--- configure.orig 2018-02-06 01:53:28 UTC ++++ configure +@@ -5287,7 +5287,7 @@ if test "${am_cv_pathless_PYTHON+set}" = + echo $ECHO_N "(cached) $ECHO_C" >&6 + else + +- for am_cv_pathless_PYTHON in python python2 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5 none; do ++ for am_cv_pathless_PYTHON in python python2 python2.7 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5 none; do + test "$am_cv_pathless_PYTHON" = none && break + prog="import sys, string + # split strings by '.' and convert to numeric. Append some zeros -- cgit v1.2.3