On 2018/07/13 11:46, Matthieu Herrb wrote:
> Hi,
> 
> The port below installs the python "library" used to generate
> the C bindings for libxcb from the XML X protocol specfification
> files.
> 
> So far this has been somehow hidden in xenocara. Recently it was
> brought to my attention that these files can be used to generate
> binding for other languages than C and would be useful for some
> upcoming ports.
> 
> So here is a port to install those files.
> Once it's in I'll change the xenocara build system to use this to
> re-generate the C sources on XCB updates.
> 
> Note that this is version 1.12 (which matches what we have in xenocara
> now). version 1.13 was released some time ago, and I plan to do an
> upgrade ASAP, but the xenocara parts are not 100% ready. That port
> wont need any tweak beside buming VERSION and rengeraing sums.
> 
> Corrections or oks are welcome.
> 
> -- 
> Matthieu Herrb

: # $OpenBSD: Makefile.template,v 1.78 2018/07/09 15:00:06 jca Exp $
: COMMENT =     X C Binding - protocol binding generator
: 
: VERSION=      1.12
: DISTNAME =    xcb-proto-${VERSION}
: PKGNAME =     py-xcbgen-${VERSION}
: 
: CATEGORIES =  x11
: 
: HOMEPAGE =    https://xcb.freedesktop.org/
: 
: MAINTAINER =  Matthieu Herrb <matth...@openbsd.org>
: 
: # MIT
: PERMIT_PACKAGE_CDROM =        Yes
: 
: MASTER_SITES =                https://xcb.freedesktop.org/dist/
: 
: EXTRACT_SUFX=           .tar.bz2
: 
: MODULES=              lang/python
: 
: NO_BUILD =            Yes
: NO_TEST =             Yes
: 
: PYTHONDIR=    ${PREFIX}/lib/python${MODPY_VERSION}/site-packages/

Already available as MODPY_SITEPKG

: 
: XCBGEN_SRCS= \
:       __init__.py \
:       align.py \
:       error.py \
:       expr.py \
:       matcher.py \
:       state.py \
:       xtypes.py
: 
: do-install:
:       mkdir -p ${PYTHONDIR}/xcbgen

I don't suppose it matters much any more, but would normally go for
INSTALL_DATA_DIR here ^^

:       cd ${WRKSRC}/xcbgen ; for i in ${XCBGEN_SRCS}; do \
:               ${INSTALL_DATA} $$i ${PYTHONDIR}/xcbgen; \
:       done
:       cd ${PYTHONDIR}/xcbgen; \
:       env PYTHON=python${MODPY_VERSION} ${SHELL} ${WRKSRC}/py-compile \

would prefer "env PYTHON=${MODPY_BIN}" here

:       --basedir ${PYTHONDIR}/xcbgen ${XCBGEN_SRCS}
: 
: .include <bsd.port.mk>

Reply via email to