1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-02 06:03:50 +00:00
freebsd-ports/devel/py-bison/Makefile
Baptiste Daroussin 9250d94365 Convert USE_BISON to USES= bison
It brings bison as a build dependency in case it is set the following way:
USES= bison or USES= bison:build

it brings bison as a run dependency in case it is set the following way:
USES= bison:run

it brings bison both as a run and build dependency in case it the set the following way:
USES= bison:both

While here trim some headers
Convert some USE_GNOME= gnomehack to USES= pathfix
2013-03-08 11:32:11 +00:00

54 lines
1.2 KiB
Makefile

# Created by: ijliao
# $FreeBSD$
PORTNAME= bison
PORTVERSION= 0.1.8
PORTREVISION= 2
CATEGORIES= devel python
MASTER_SITES= http://freenet.mcnabhosting.com/python/pybison/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= py${PORTNAME}-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Python-based parsing at the speed of C
LICENSE= GPLv2
BUILD_DEPENDS= pyrex>=0.9.6.2:${PORTSDIR}/devel/pyrex
OPTIONS_DEFINE= DOCS EXAMPLES
USES= bison:both
USE_PYTHON= yes
USE_PYDISTUTILS= yes
PYDISTUTILS_PKGVERSION= 0.1
DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME}
EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME}
PORTDOCS= *
PORTEXAMPLES= *
PLIST_FILES= bin/bison2py \
%%PYTHON_SITELIBDIR%%/bison.py \
%%PYTHON_SITELIBDIR%%/bison.pyc \
%%PYTHON_SITELIBDIR%%/bison.pyo \
%%PYTHON_SITELIBDIR%%/bison_.so
.include <bsd.port.pre.mk>
.if ${ARCH} == "ia64"
BROKEN= Does not compile on ia64
.endif
post-install:
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
@(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${DOCSDIR})
.endif
.if ${PORT_OPTIONS:MEXAMPLES}
@${MKDIR} ${EXAMPLESDIR}
@(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${EXAMPLESDIR})
.endif
.include <bsd.port.post.mk>