mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-14 03:10:47 +00:00
50f8eaece1
- USE_PYTHON* = 2.X -> USE_PYTHON* = 2 - USE_PYTHON* = 2.X+ -> USE_PYTHON* = yes Reviewed by: python (mva, rm) Approved by: portmgr-lurkers (mat)
50 lines
1.8 KiB
Makefile
50 lines
1.8 KiB
Makefile
# Created by: Ashish Shukla <wahjava@gmail.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= hotssh
|
|
PORTVERSION= 0.2.7
|
|
PORTREVISION= 4
|
|
CATEGORIES= security gnome
|
|
MASTER_SITES= GNOME
|
|
MASTER_SITE_SUBDIR= sources/${PORTNAME}/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/}
|
|
|
|
MAINTAINER= ashish@FreeBSD.org
|
|
COMMENT= HotSSH is an interface to Secure Shell, for GNOME and OpenSSH
|
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/dbus-python.pc:${PORTSDIR}/devel/py-dbus \
|
|
${LOCALBASE}/libdata/pkgconfig/pygobject-2.0.pc:${PORTSDIR}/devel/py-gobject \
|
|
${LOCALBASE}/libdata/pkgconfig/dbus-glib-1.pc:${PORTSDIR}/devel/dbus-glib \
|
|
${PYTHON_PKGNAMEPREFIX}sqlite3>0:${PORTSDIR}/databases/py-sqlite3 \
|
|
${PYTHON_SITELIBDIR}/gtk-2.0/vtemodule.so:${PORTSDIR}/x11-toolkits/py-vte
|
|
RUN_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/dbus-python.pc:${PORTSDIR}/devel/py-dbus \
|
|
${LOCALBASE}/libdata/pkgconfig/pygobject-2.0.pc:${PORTSDIR}/devel/py-gobject \
|
|
${PYTHON_PKGNAMEPREFIX}sqlite3>0:${PORTSDIR}/databases/py-sqlite3 \
|
|
${PYTHON_SITELIBDIR}/gtk-2.0/vtemodule.so:${PORTSDIR}/x11-toolkits/py-vte
|
|
|
|
USE_GNOME= pygtk2 gnomedocutils libxslt glib20
|
|
USES= gettext
|
|
USE_PYTHON= yes
|
|
INSTALLS_ICONS= yes
|
|
USE_BZIP2= yes
|
|
|
|
B64DECODE?= /usr/bin/b64decode
|
|
BSPATCH?= /usr/bin/bspatch
|
|
|
|
NO_STAGE= yes
|
|
post-extract:
|
|
${GREP} -Rl '^#!/usr/bin/python$$' ${WRKSRC} |${XARGS} ${REINPLACE_CMD} -e 's|^#!/usr/bin/python$$|#!/usr/bin/env python|g'
|
|
${MV} ${WRKSRC}/waf ${WRKSRC}/waf.beforepatch
|
|
cd ${WRKSRC} && ${B64DECODE} -o waf.diff ${FILESDIR}/waf.diff && ${BSPATCH} waf.beforepatch waf waf.diff && ${CHMOD} 755 waf
|
|
${GREP} -Rl '%%LOCALBASE%%' ${WRKSRC} |${XARGS} ${REINPLACE_CMD} -e "s|%%LOCALBASE%%|${LOCALBASE}|g"
|
|
|
|
do-configure:
|
|
cd ${WRKSRC} && ./waf configure --prefix=${PREFIX}
|
|
|
|
do-build:
|
|
cd ${WRKSRC} && ./waf
|
|
|
|
do-install:
|
|
cd ${WRKSRC} && ./waf install
|
|
|
|
.include <bsd.port.mk>
|