diff options
author | Antoine Brodin <antoine@FreeBSD.org> | 2018-02-19 11:10:43 +0000 |
---|---|---|
committer | Antoine Brodin <antoine@FreeBSD.org> | 2018-02-19 11:10:43 +0000 |
commit | f7455240e3b2acb3cd4804dac9a3afe2582a0a96 (patch) | |
tree | 94eaef37ab07d82e499ae4cafabe202ea2ed0525 /graphics/lcms-python | |
parent | Simplify MASTER_SITES (diff) |
Reduce dependency on the python2 metaport
PR: 225752
Submitted by: Yasuhiro KIMURA
Notes
Notes:
svn path=/head/; revision=462307
Diffstat (limited to 'graphics/lcms-python')
-rw-r--r-- | graphics/lcms-python/Makefile | 3 | ||||
-rw-r--r-- | graphics/lcms-python/files/patch-configure | 11 |
2 files changed, 13 insertions, 1 deletions
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 |