Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

package up the python spwd module #173

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions devel/py-spwd/DESCR
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
This module provides access to the Unix shadow password database.
It is available on various Unix versions
28 changes: 28 additions & 0 deletions devel/py-spwd/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# $NetBSD: Makefile,v 1.29 2014/01/25 10:30:04 wiz Exp $

PKGNAME= ${PYPKGPREFIX}-spwd-${PY_DISTVERSION}
CATEGORIES= devel misc python

MAINTAINER= [email protected]
HOMEPAGE= http://www.python.org/doc/current/tut/node15.html
COMMENT= Line editing support for Python

EXTRACT_ELEMENTS= ${PYSUBDIR}/Modules/spwdmodule.c

MULTIARCH_DIRS.lib= ${PYLIB}/lib-dynload
USE_GCC_RUNTIME= yes

PYDISTUTILSPKG= yes
PY_PATCHPLIST= yes
PYSETUPINSTALLARGS+= --install-lib ${PREFIX}/${PYLIB}/lib-dynload${LIBARCHSUFFIX}

# ignore errors due to missing files (EXTRACT_ELEMENTS!)
do-patch:
(cd ${WRKSRC}; \
for f in ${PATCHDIR}/patch-*;do \
${PATCH} --batch <$$f || ${TRUE}; \
done)

.include "../../lang/python/extension.mk"
.include "../../lang/python/srcdist.mk"
.include "../../mk/bsd.pkg.mk"
2 changes: 2 additions & 0 deletions devel/py-spwd/PLIST
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@comment $NetBSD: PLIST,v 1.2 2011/05/04 11:38:05 obache Exp $
${PYLIB}/lib-dynload${LIBARCHSUFFIX}/spwd.so
5 changes: 5 additions & 0 deletions devel/py-spwd/files/Setup.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# $NetBSD: Setup.in,v 1.1 2002/03/14 17:58:49 wiz Exp $
#
*shared*
spwd spwdmodule.c @BUILDLINK_LDFLAGS@ -R@LOCALBASE@/lib \
@BUILDLINK_CPPFLAGS@
13 changes: 13 additions & 0 deletions devel/py-spwd/files/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# $NetBSD: setup.py,v 1.1 2002/03/14 17:58:50 wiz Exp $

import distutils
from distutils.core import setup, Extension

setup(
ext_modules = [
Extension(
'spwd',
['Modules/spwdmodule.c']
)
]
)