Resurrect and update to py-cups-1.9.73. Add a python3 FLAVOR.
This commit is contained in:
parent
7ab63e7b2e
commit
6d2d8cbfab
37
print/py-cups/Makefile
Normal file
37
print/py-cups/Makefile
Normal file
@ -0,0 +1,37 @@
|
||||
# $OpenBSD: Makefile,v 1.29 2017/07/14 16:11:14 ajacoutot Exp $
|
||||
|
||||
COMMENT= CUPS bindings for Python
|
||||
|
||||
MODPY_EGG_VERSION= 1.9.73
|
||||
DISTNAME= pycups-${MODPY_EGG_VERSION}
|
||||
PKGNAME= ${DISTNAME:S/^py/py-/}
|
||||
EXTRACT_SUFX= .tar.bz2
|
||||
|
||||
CATEGORIES= print
|
||||
|
||||
HOMEPAGE= http://cyberelk.net/tim/software/pycups/
|
||||
|
||||
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
|
||||
|
||||
# GPLv2
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
|
||||
WANTLIB += cups iconv pthread ${MODPY_WANTLIB}
|
||||
|
||||
MASTER_SITES= http://cyberelk.net/tim/data/pycups/
|
||||
|
||||
MODULES= lang/python
|
||||
|
||||
FLAVORS= python3
|
||||
FLAVOR?=
|
||||
|
||||
LIB_DEPENDS= print/cups,-libs \
|
||||
${MODPY_LIB_DEPENDS}
|
||||
|
||||
CFLAGS= -I${LOCALBASE}/include -DVERSION=\"${MODPY_EGG_VERSION}\"
|
||||
LDFLAGS= -L${LOCALBASE}/lib
|
||||
MAKE_ENV= PYTHON="${MODPY_BIN}"
|
||||
|
||||
NO_TEST= Yes
|
||||
|
||||
.include <bsd.port.mk>
|
2
print/py-cups/distinfo
Normal file
2
print/py-cups/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (pycups-1.9.73.tar.bz2) = w4G+ARiJym9yhZhXjInIrJ96selbYUR0358vqDGuUzU=
|
||||
SIZE (pycups-1.9.73.tar.bz2) = 52732
|
14
print/py-cups/patches/patch-setup_py
Normal file
14
print/py-cups/patches/patch-setup_py
Normal file
@ -0,0 +1,14 @@
|
||||
$OpenBSD: patch-setup_py,v 1.9 2017/07/14 16:11:14 ajacoutot Exp $
|
||||
Index: setup.py
|
||||
--- setup.py.orig
|
||||
+++ setup.py
|
||||
@@ -38,7 +38,8 @@ import sys
|
||||
VERSION="1.9.73"
|
||||
libraries=["cups"]
|
||||
|
||||
-if sys.platform == "darwin" or sys.platform.startswith("freebsd"):
|
||||
+if sys.platform == "darwin" or sys.platform.startswith("freebsd") or \
|
||||
+ sys.platform.startswith("openbsd"):
|
||||
libraries.append ("iconv")
|
||||
|
||||
setup (name="pycups",
|
1
print/py-cups/pkg/DESCR
Normal file
1
print/py-cups/pkg/DESCR
Normal file
@ -0,0 +1 @@
|
||||
Python bindings for the CUPS API.
|
3
print/py-cups/pkg/PLIST
Normal file
3
print/py-cups/pkg/PLIST
Normal file
@ -0,0 +1,3 @@
|
||||
@comment $OpenBSD: PLIST,v 1.5 2017/07/14 16:11:14 ajacoutot Exp $
|
||||
lib/python${MODPY_VERSION}/site-packages/cups.so
|
||||
lib/python${MODPY_VERSION}/site-packages/pycups-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info
|
Loading…
Reference in New Issue
Block a user