mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-28 01:06:17 +00:00
8cd7215b76
Python.The aspects.py library provides means to intercept function calls. Functions and methods (also in Python standard library and third party code) can be wrapped so that when they are called, the wrap is invoked first. WWW: http://www.cs.tut.fi/~ask/aspects/index.shtml PR: ports/131319 Submitted by: Sofian Brabez <sbrabez at gmail.com>
47 lines
1.0 KiB
Makefile
47 lines
1.0 KiB
Makefile
# New ports collection makefile for: py-aspects
|
|
# Date created: 2009-02-02
|
|
# Whom: Sofian Brabez <sbrabez@gmail.com>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= aspects
|
|
PORTVERSION= 1.3
|
|
CATEGORIES= devel python
|
|
MASTER_SITES= http://www.cs.tut.fi/~ask/aspects/
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
DISTNAME= python-${PORTNAME}-${PORTVERSION}
|
|
|
|
MAINTAINER= sbrabez@gmail.com
|
|
COMMENT= Lightweight aspect oriented programming library for Python
|
|
|
|
USE_GMAKE= yes
|
|
USE_PYTHON= 2.5+
|
|
USE_PYDISTUTILS= yes
|
|
PYDISTUTILS_PKGNAME= python-${PORTNAME}
|
|
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
|
SUB_FILES= pkg-message
|
|
|
|
EXAMPLESFILES= httpget_example.py timeout_advice.py timeout_example.py \
|
|
tracer_advice.py tracer_example.py typecheck_advice.py \
|
|
typecheck_example.py
|
|
EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME}
|
|
|
|
do-build:
|
|
@${GMAKE} -C ${WRKSRC} check
|
|
|
|
.if !defined(NOPORTEXAMPLES)
|
|
post-install:
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
.for f in ${EXAMPLESFILES}
|
|
@${INSTALL_DATA} ${WRKSRC}/examples/${f} ${EXAMPLESDIR}
|
|
.endfor
|
|
.endif
|
|
|
|
.if !defined(BATCH)
|
|
@${CAT} ${PKGMESSAGE}
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|