aboutsummaryrefslogtreecommitdiffstats
path: root/x11
diff options
context:
space:
mode:
authorrm <rm@FreeBSD.org>2016-03-07 05:57:10 +0800
committerrm <rm@FreeBSD.org>2016-03-07 05:57:10 +0800
commitdd09a336eed946cb8ef302cd893a0e1e27145da2 (patch)
tree820b1a8ad8393638d5578a2c53ff29d393e4a6d1 /x11
parent955e151d553e1874798c89880ede663bcf736608 (diff)
downloadfreebsd-ports-gnome-dd09a336eed946cb8ef302cd893a0e1e27145da2.tar.gz
freebsd-ports-gnome-dd09a336eed946cb8ef302cd893a0e1e27145da2.tar.zst
freebsd-ports-gnome-dd09a336eed946cb8ef302cd893a0e1e27145da2.zip
x11/xcb-proto: fix packaging with python3.5
Utilize py3kplist to fix packaging with python 3.5 and to simplify Makefile. Add LICENSE (MIT) and bump PORTREVISION for package changes. Add NO_ARCH, while here. PR: 205859 Submitted by: Vladimir Krstulja <vlad-fbsd@acheronmedia.com> Submitted by: FreeBSD@ShaneWare.Biz (py3kplist suggestion) Approved by: maintainer timeout
Diffstat (limited to 'x11')
-rw-r--r--x11/xcb-proto/Makefile16
-rw-r--r--x11/xcb-proto/pkg-plist36
2 files changed, 19 insertions, 33 deletions
diff --git a/x11/xcb-proto/Makefile b/x11/xcb-proto/Makefile
index b913cbb158fd..2f6b189bd417 100644
--- a/x11/xcb-proto/Makefile
+++ b/x11/xcb-proto/Makefile
@@ -3,24 +3,22 @@
PORTNAME= xcb-proto
PORTVERSION= 1.11
+PORTREVISION= 1
CATEGORIES= x11 python
MASTER_SITES= http://xcb.freedesktop.org/dist/
MAINTAINER= x11@FreeBSD.org
COMMENT= The X protocol C-language Binding (XCB) protocol
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/COPYING
+
USE_GNOME= libxml2:build
XORG_CAT= proto
USES= python
+USE_PYTHON= py3kplist
+NO_ARCH= yes
DATADIR= ${PREFIX}/share/xcb
-.include <bsd.port.pre.mk>
-
-.if ${PYTHON_MAJOR_VER} == 3
-PLIST_SUB+= PYTHON_SUFFIX=${PYTHON_SUFFIX} PY3="" PY2="@comment "
-.else
-PLIST_SUB+= PY2="" PY3="@comment "
-.endif
-
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/x11/xcb-proto/pkg-plist b/x11/xcb-proto/pkg-plist
index baff4f104c28..dfe024dc7c02 100644
--- a/x11/xcb-proto/pkg-plist
+++ b/x11/xcb-proto/pkg-plist
@@ -32,32 +32,20 @@ libdata/pkgconfig/xcb-proto.pc
%%DATADIR%%/xv.xml
%%DATADIR%%/xvmc.xml
%%PYTHON_SITELIBDIR%%/xcbgen/__init__.py
+%%PYTHON_SITELIBDIR%%/xcbgen/__init__.pyc
+%%PYTHON_SITELIBDIR%%/xcbgen/__init__.pyo
%%PYTHON_SITELIBDIR%%/xcbgen/error.py
+%%PYTHON_SITELIBDIR%%/xcbgen/error.pyc
+%%PYTHON_SITELIBDIR%%/xcbgen/error.pyo
%%PYTHON_SITELIBDIR%%/xcbgen/expr.py
+%%PYTHON_SITELIBDIR%%/xcbgen/expr.pyc
+%%PYTHON_SITELIBDIR%%/xcbgen/expr.pyo
%%PYTHON_SITELIBDIR%%/xcbgen/matcher.py
+%%PYTHON_SITELIBDIR%%/xcbgen/matcher.pyc
+%%PYTHON_SITELIBDIR%%/xcbgen/matcher.pyo
%%PYTHON_SITELIBDIR%%/xcbgen/state.py
+%%PYTHON_SITELIBDIR%%/xcbgen/state.pyc
+%%PYTHON_SITELIBDIR%%/xcbgen/state.pyo
%%PYTHON_SITELIBDIR%%/xcbgen/xtypes.py
-%%PY2%%%%PYTHON_SITELIBDIR%%/xcbgen/__init__.pyc
-%%PY2%%%%PYTHON_SITELIBDIR%%/xcbgen/error.pyc
-%%PY2%%%%PYTHON_SITELIBDIR%%/xcbgen/expr.pyc
-%%PY2%%%%PYTHON_SITELIBDIR%%/xcbgen/matcher.pyc
-%%PY2%%%%PYTHON_SITELIBDIR%%/xcbgen/state.pyc
-%%PY2%%%%PYTHON_SITELIBDIR%%/xcbgen/xtypes.pyc
-%%PY2%%%%PYTHON_SITELIBDIR%%/xcbgen/__init__.pyo
-%%PY2%%%%PYTHON_SITELIBDIR%%/xcbgen/error.pyo
-%%PY2%%%%PYTHON_SITELIBDIR%%/xcbgen/expr.pyo
-%%PY2%%%%PYTHON_SITELIBDIR%%/xcbgen/matcher.pyo
-%%PY2%%%%PYTHON_SITELIBDIR%%/xcbgen/state.pyo
-%%PY2%%%%PYTHON_SITELIBDIR%%/xcbgen/xtypes.pyo
-%%PY3%%%%PYTHON_SITELIBDIR%%/xcbgen/__pycache__/__init__.cpython-%%PYTHON_SUFFIX%%.pyc
-%%PY3%%%%PYTHON_SITELIBDIR%%/xcbgen/__pycache__/__init__.cpython-%%PYTHON_SUFFIX%%.pyo
-%%PY3%%%%PYTHON_SITELIBDIR%%/xcbgen/__pycache__/error.cpython-%%PYTHON_SUFFIX%%.pyc
-%%PY3%%%%PYTHON_SITELIBDIR%%/xcbgen/__pycache__/error.cpython-%%PYTHON_SUFFIX%%.pyo
-%%PY3%%%%PYTHON_SITELIBDIR%%/xcbgen/__pycache__/expr.cpython-%%PYTHON_SUFFIX%%.pyc
-%%PY3%%%%PYTHON_SITELIBDIR%%/xcbgen/__pycache__/expr.cpython-%%PYTHON_SUFFIX%%.pyo
-%%PY3%%%%PYTHON_SITELIBDIR%%/xcbgen/__pycache__/matcher.cpython-%%PYTHON_SUFFIX%%.pyc
-%%PY3%%%%PYTHON_SITELIBDIR%%/xcbgen/__pycache__/matcher.cpython-%%PYTHON_SUFFIX%%.pyo
-%%PY3%%%%PYTHON_SITELIBDIR%%/xcbgen/__pycache__/state.cpython-%%PYTHON_SUFFIX%%.pyc
-%%PY3%%%%PYTHON_SITELIBDIR%%/xcbgen/__pycache__/state.cpython-%%PYTHON_SUFFIX%%.pyo
-%%PY3%%%%PYTHON_SITELIBDIR%%/xcbgen/__pycache__/xtypes.cpython-%%PYTHON_SUFFIX%%.pyc
-%%PY3%%%%PYTHON_SITELIBDIR%%/xcbgen/__pycache__/xtypes.cpython-%%PYTHON_SUFFIX%%.pyo
+%%PYTHON_SITELIBDIR%%/xcbgen/xtypes.pyc
+%%PYTHON_SITELIBDIR%%/xcbgen/xtypes.pyo