aboutsummaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorKoop Mast <kwm@FreeBSD.org>2013-10-02 15:03:50 +0000
committerKoop Mast <kwm@FreeBSD.org>2013-10-02 15:03:50 +0000
commit4ff46cf2ca7033661eb760ab08146332946e9451 (patch)
tree2520c55be0d8f28ded3947b9996e881ec2368dc7 /graphics
parentb2270f715e09eb2e0520ebdb376f19238b69996d (diff)
downloadports-4ff46cf2ca7033661eb760ab08146332946e9451.tar.gz
ports-4ff46cf2ca7033661eb760ab08146332946e9451.zip
Notes
Diffstat (limited to 'graphics')
-rw-r--r--graphics/py-cairo/Makefile23
-rw-r--r--graphics/py-cairo/distinfo4
-rw-r--r--graphics/py-cairo/files/patch-py-compile11
-rw-r--r--graphics/py-cairo/pkg-descr4
-rw-r--r--graphics/py-cairo/pkg-plist3
5 files changed, 19 insertions, 26 deletions
diff --git a/graphics/py-cairo/Makefile b/graphics/py-cairo/Makefile
index 5def8b67c0e1..9f42ed50bca8 100644
--- a/graphics/py-cairo/Makefile
+++ b/graphics/py-cairo/Makefile
@@ -3,8 +3,7 @@
# $MCom: ports/graphics/py-cairo/Makefile,v 1.28 2010/11/15 14:12:13 kwm Exp $
PORTNAME= cairo
-PORTVERSION= 1.8.10
-PORTREVISION= 1
+PORTVERSION= 1.10.0
CATEGORIES= graphics python
MASTER_SITES= http://cairographics.org/releases/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -13,20 +12,26 @@ DISTNAME= py2${PORTNAME}-${PORTVERSION}
MAINTAINER= gnome@FreeBSD.org
COMMENT= Python 2 bindings for Cairo
-WRKSRC= ${WRKDIR}/py${PORTNAME}-${PORTVERSION}
+USE_BZIP2= yes
USE_PYTHON= 2
-USES= gmake pathfix pkgconfig shebangfix
+USES= pkgconfig shebangfix
USE_GNOME= cairo
-GNU_CONFIGURE= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
+CONFIGURE_ENV= PYTHON=${LOCALBASE}/bin/python2 \
+ PREFIX=${STAGEDIR}${PREFIX}
python_OLD_CMD?= /usr/bin/env python
python_CMD?= ${LOCALBASE}/bin/python2
-SHEBANG_FILES= examples/*.py examples/*/*.py setup.py test/*.py
+SHEBANG_FILES= examples/*.py examples/*/*.py waf test/*.py
-post-patch:
- @${REINPLACE_CMD} -e 's|SUBDIRS = cairo examples test|SUBDIRS = cairo examples|g' \
- ${WRKSRC}/Makefile.in
+do-configure:
+ @cd ${WRKSRC} && ${ENV} ${CONFIGURE_ENV} ./waf configure
+
+do-build:
+ @cd ${WRKSRC} && ./waf
+
+do-install:
+ @cd ${WRKSRC} && ./waf install
.include <bsd.port.mk>
diff --git a/graphics/py-cairo/distinfo b/graphics/py-cairo/distinfo
index c4bd9a347736..ba82916dfc1a 100644
--- a/graphics/py-cairo/distinfo
+++ b/graphics/py-cairo/distinfo
@@ -1,2 +1,2 @@
-SHA256 (py2cairo-1.8.10.tar.gz) = b15f71019e42e06d86f7e8fe5587f07c3de5a59a6c3a071b25fe100796dbcd56
-SIZE (py2cairo-1.8.10.tar.gz) = 588459
+SHA256 (py2cairo-1.10.0.tar.bz2) = d30439f06c2ec1a39e27464c6c828b6eface3b22ee17b2de05dc409e429a7431
+SIZE (py2cairo-1.10.0.tar.bz2) = 402070
diff --git a/graphics/py-cairo/files/patch-py-compile b/graphics/py-cairo/files/patch-py-compile
deleted file mode 100644
index 769391193f3d..000000000000
--- a/graphics/py-cairo/files/patch-py-compile
+++ /dev/null
@@ -1,11 +0,0 @@
---- py-compile.orig 2013-09-30 22:50:15.000000000 +0200
-+++ py-compile 2013-09-30 22:50:54.000000000 +0200
-@@ -29,7 +29,7 @@
- # <automake-patches@gnu.org>.
-
- if [ -z "$PYTHON" ]; then
-- PYTHON=python
-+ PYTHON=python2
- fi
-
- basedir=
diff --git a/graphics/py-cairo/pkg-descr b/graphics/py-cairo/pkg-descr
index e40b314a4abd..2b1ab921a3fc 100644
--- a/graphics/py-cairo/pkg-descr
+++ b/graphics/py-cairo/pkg-descr
@@ -1,3 +1,3 @@
-Python bindings for Cairo
-
+Python 2 bindings for Cairo.
+
WWW: http://cairographics.org/
diff --git a/graphics/py-cairo/pkg-plist b/graphics/py-cairo/pkg-plist
index 0d5ac3d2b6d6..6c27c4e90303 100644
--- a/graphics/py-cairo/pkg-plist
+++ b/graphics/py-cairo/pkg-plist
@@ -2,8 +2,7 @@ include/pycairo/pycairo.h
%%PYTHON_SITELIBDIR%%/cairo/__init__.py
%%PYTHON_SITELIBDIR%%/cairo/__init__.pyc
%%PYTHON_SITELIBDIR%%/cairo/__init__.pyo
-%%PYTHON_SITELIBDIR%%/cairo/_cairo.la
%%PYTHON_SITELIBDIR%%/cairo/_cairo.so
libdata/pkgconfig/pycairo.pc
@dirrm %%PYTHON_SITELIBDIR%%/cairo
-@dirrm include/pycairo
+@dirrmtry include/pycairo