openbsd-ports/devel/py-setproctitle/patches/patch-Makefile
benoit d7f218b7bf - update py-setproctitle to 1.1.7
- update WANTLIB and patches
2013-03-13 09:01:31 +00:00

28 lines
926 B
Plaintext

$OpenBSD: patch-Makefile,v 1.2 2013/03/13 09:01:35 benoit Exp $
Copy missing file for python3 flavor and remove non supported cp option.
--- Makefile.orig Tue Feb 7 22:44:32 2012
+++ Makefile Mon Mar 11 23:37:03 2013
@@ -29,7 +29,7 @@ build:
check: build tests/pyrun2
PYTHONPATH=`pwd`/$(BUILD_DIR):$$PYTHONPATH \
ROOT_PATH=$(ROOT_PATH) \
- $(PYTHON) `which nosetests` -v -s -w tests
+ $(PYTHON) tests/setproctitle_test.py -v
tests/pyrun2: tests/pyrun.c
$(CC) $(PYINC) -o $@ $< $(PYLIB)
@@ -48,9 +48,10 @@ py3: MANIFEST
$(MKDIR) py3
$(MKDIR) py3/src
$(MKDIR) py3/tests
- for f in `grep -v "#" MANIFEST`; do cp -v $$f py3/$$f; done
+ for f in `grep -v "#" MANIFEST`; do cp $$f py3/$$f; done
# setup.py should be executable with python3 as distribute
# currenlty doesn't seem to try to convert it
+ cp tests/setproctitle_test.py py3/tests
$(PY2TO3) -w --no-diffs py3/tests
tests/pyrun3: tests/pyrun.c