1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-28 01:06:17 +00:00
freebsd-ports/devel/py-aspects/Makefile
Philippe Audeoud 8cd7215b76 aspects is a lightweight approach to aspect oriented programming (AOP) in
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>
2009-02-04 09:55:27 +00:00

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>