e1506e0835
setproctitle allows a process to change its title (as displayed by system tools such as ps and top). ok benoit@
39 lines
920 B
Makefile
39 lines
920 B
Makefile
# $OpenBSD: Makefile,v 1.1.1.1 2011/12/19 10:37:41 mpi Exp $
|
|
|
|
COMMENT = library for getting/setting process names
|
|
|
|
MODPY_EGG_VERSION= 1.1.3
|
|
DISTNAME = setproctitle-${MODPY_EGG_VERSION}
|
|
PKGNAME = py-${DISTNAME}
|
|
|
|
CATEGORIES = devel
|
|
|
|
HOMEPAGE = https://code.google.com/p/py-setproctitle/
|
|
|
|
MAINTAINER = Martin Pieuchot <mpi@openbsd.org>
|
|
|
|
# BSD 3-clause
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
PERMIT_PACKAGE_FTP = Yes
|
|
PERMIT_DISTFILES_CDROM = Yes
|
|
PERMIT_DISTFILES_FTP = Yes
|
|
|
|
MASTER_SITES= ${MASTER_SITE_PYPI:=s/setproctitle/}
|
|
|
|
MODULES = lang/python
|
|
|
|
WANTLIB += ${MODPY_WANTLIB}
|
|
|
|
BUILD_DIR = build/lib.${MODPY_VERSION}
|
|
MODPY_DISTUTILS_BUILDARGS = --build-lib ${BUILD_DIR}
|
|
|
|
REGRESS_DEPENDS = devel/gmake
|
|
|
|
MAKE_ENV += PYTHON="${MODPY_BIN}" PYCONFIG="${MODPY_BIN}-config"
|
|
|
|
do-regress:
|
|
cd ${WRKSRC} && gmake ${MAKE_ENV} tests/pyrun && \
|
|
PYTHONPATH=${BUILD_DIR} ${MODPY_BIN} tests/setproctitle_test.py
|
|
|
|
.include <bsd.port.mk>
|