2009-09-04 23:04:44 +02:00
|
|
|
# New ports collection makefile for: py-keyring
|
|
|
|
# Date created: 2 September 2009
|
|
|
|
# Whom: Douglas Thrift
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= keyring
|
2010-09-14 09:58:31 +02:00
|
|
|
PORTVERSION= 0.4
|
2009-09-04 23:04:44 +02:00
|
|
|
CATEGORIES= security python
|
2010-08-11 06:11:45 +02:00
|
|
|
MASTER_SITES= CHEESESHOP
|
2009-09-04 23:04:44 +02:00
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
|
|
|
|
MAINTAINER= douglas@douglasthrift.net
|
|
|
|
COMMENT= Store and access your passwords safely
|
|
|
|
|
2010-08-11 06:11:45 +02:00
|
|
|
#LICENSE= PSF
|
|
|
|
|
2009-09-04 23:04:44 +02:00
|
|
|
LATEST_LINK= py-${PORTNAME}
|
|
|
|
|
|
|
|
USE_KDE4= #
|
2009-10-03 05:13:10 +02:00
|
|
|
USE_PYTHON= 2.4+
|
2009-09-04 23:04:44 +02:00
|
|
|
USE_PYDISTUTILS= yes
|
|
|
|
|
|
|
|
OPTIONS= GNOME_KEYRING "GNOME Keyring backend" Off \
|
|
|
|
KDE_KWALLET "KDE KWallet backend" Off
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if defined(WITH_GNOME_KEYRING)
|
|
|
|
LIB_DEPENDS+= gnome-keyring.0:${PORTSDIR}/security/gnome-keyring
|
|
|
|
PLIST_SUB+= GNOME_KEYRING=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= GNOME_KEYRING="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_KDE_KWALLET)
|
|
|
|
PLIST_SUB+= KDE_KWALLET=""
|
|
|
|
USE_KDE4+= kdelibs
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= KDE_KWALLET="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
.if !defined(WITH_GNOME_KEYRING)
|
|
|
|
@${REINPLACE_CMD} -e 's|exts\.append(gnome_keychain_module)|#&|' \
|
|
|
|
${WRKSRC}/extensions.py
|
|
|
|
.endif
|
|
|
|
.if defined(WITH_KDE_KWALLET)
|
2009-10-03 05:13:10 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|kde-config|${KDE4_PREFIX}/bin/kde4-config|' \
|
2009-09-04 23:04:44 +02:00
|
|
|
${WRKSRC}/extensions.py
|
|
|
|
.else
|
|
|
|
@${REINPLACE_CMD} -e 's|exts\.append(kde_kwallet_module)|#&|' \
|
|
|
|
${WRKSRC}/extensions.py
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|