mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-13 03:03:15 +00:00
4942ce5a7d
- Add significantly better support in bsd.python.mk for working with Python Eggs and the easy_install system Tested by: pointyhat runs Approved by: pav (portmgr) Most work by: perky Thanks to: pav
44 lines
874 B
Makefile
44 lines
874 B
Makefile
# New ports collection makefile for: samba-python
|
|
# Date created: 01 May 2004
|
|
# Whom: Timur Bakeyev <timur@gnu.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTREVISION= 0
|
|
PORTEPOCH= 0
|
|
CATEGORIES= net python
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
COMMENT= Python bindings for Samba
|
|
|
|
CONFLICTS=
|
|
|
|
SAMBA_PORT?= samba3
|
|
SAMBA_SUBPORT= yes
|
|
|
|
MASTERDIR= ${.CURDIR}/../${SAMBA_PORT}
|
|
PKGDIR= ${.CURDIR}
|
|
|
|
USE_PYTHON= 2.1+
|
|
USE_PYDISTUTILS= yes
|
|
PYSETUP= python/setup.py
|
|
PYDISTUTILS_PKGNAME= Samba_Python_Extensions
|
|
PYDISTUTILS_PKGVERSION= 0.1
|
|
|
|
CONFIGURE_ARGS+= --with-python
|
|
|
|
WITHOUT_ADS= yes
|
|
|
|
do-build:
|
|
cd ${WRKSRC} && ${MAKE} proto
|
|
cd ${WRKSRC} && ${MAKE} python_ext
|
|
|
|
post-install:
|
|
-@${MKDIR} ${EXAMPLESDIR}
|
|
${CP} -Rp ${WRKSRC}/python/examples/* ${EXAMPLESDIR}
|
|
${CP} -Rp ${WRKDIR}/${DISTNAME}/examples/scripts/shares/python/* \
|
|
${EXAMPLESDIR}
|
|
|
|
.include "${MASTERDIR}/Makefile"
|