mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-21 04:06:46 +00:00
8a3cd49b7a
- add explicit dependency on pygnome2. Without this, deluge-gtk will fail to work in gnome3 environment - bump PORTREVION because of dependency change
86 lines
2.9 KiB
Makefile
86 lines
2.9 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= deluge
|
|
PORTVERSION= 1.3.11
|
|
PORTREVISION= 1
|
|
PORTEPOCH= 1
|
|
CATEGORIES= net-p2p python
|
|
MASTER_SITES= http://download.deluge-torrent.org/source/
|
|
|
|
MAINTAINER= rm@FreeBSD.org
|
|
COMMENT= Bittorrent client using Python, GTK2, and libtorrent-rasterbar
|
|
|
|
LICENSE= GPLv3
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}xdg>=0.18:${PORTSDIR}/devel/py-xdg \
|
|
${PYTHON_PKGNAMEPREFIX}libtorrent-rasterbar>=0:${PORTSDIR}/net-p2p/libtorrent-rasterbar-python \
|
|
${PYTHON_PKGNAMEPREFIX}openssl>=0.8:${PORTSDIR}/security/py-openssl \
|
|
${PYTHON_PKGNAMEPREFIX}chardet>=1.0.1:${PORTSDIR}/textproc/py-chardet \
|
|
${PYTHON_PKGNAMEPREFIX}mako>=0.2.5:${PORTSDIR}/textproc/py-mako
|
|
|
|
USE_RC_SUBR= deluged deluge_web
|
|
SUB_LIST+= PYTHON_CMD=${PYTHON_CMD}
|
|
|
|
USES= gettext tar:lzma python:2 twisted:run,web
|
|
USE_PYTHON= autoplist distutils
|
|
USE_OPENSSL= yes
|
|
WANT_GNOME= yes
|
|
|
|
OPTIONS_DEFINE= GTK2
|
|
OPTIONS_DEFAULT=GTK2
|
|
OPTIONS_SUB= yes
|
|
|
|
PORTDOCS= ChangeLog README
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MGTK2}
|
|
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}dbus>=0.83:${PORTSDIR}/devel/py-dbus \
|
|
${PYTHON_PKGNAMEPREFIX}game>=1.8.1:${PORTSDIR}/devel/py-game \
|
|
${PYTHON_PKGNAMEPREFIX}notify>=0.1.1:${PORTSDIR}/devel/py-notify \
|
|
xdg-utils>=1.0.2:${PORTSDIR}/devel/xdg-utils
|
|
|
|
USE_GNOME+= librsvg2 pygnome2 pygtk2
|
|
USES+= desktop-file-utils
|
|
INSTALLS_ICONS= yes
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e '/"new_release_check":/s|True,|False,|g ; \
|
|
/"geoip_db_location":/s|/usr/share/GeoIP/GeoIP.dat|${LOCALBASE}/share/GeoIP/GeoIP.dat|g' \
|
|
${WRKSRC}/deluge/core/preferencesmanager.py
|
|
@${REINPLACE_CMD} -e '/"check_new_releases":/s|True,|False,|g ; \
|
|
/"show_new_releases":/s|True,|False,|g' \
|
|
${WRKSRC}/deluge/ui/gtkui/gtkui.py
|
|
@${REINPLACE_CMD} -e 's|GTK|GTK;|' \
|
|
${WRKSRC}/deluge/data/share/applications/deluge.desktop.in
|
|
|
|
post-install:
|
|
# do these by hand, else they wind up in the wrong place
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/apps ; \
|
|
${INSTALL_DATA} ${WRKSRC}/deluge/data/icons/scalable/apps/deluge.svg \
|
|
${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/apps
|
|
.for size in 16 22 24 32 36 48 64 72 96 128 192 256
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${size}x${size}/apps ; \
|
|
${INSTALL_DATA} ${WRKSRC}/deluge/data/icons/hicolor/${size}x${size}/apps/deluge.png \
|
|
${STAGEDIR}${PREFIX}/share/icons/hicolor/${size}x${size}/apps
|
|
.endfor
|
|
.for pic in png xpm
|
|
${INSTALL_DATA} ${WRKSRC}/deluge/data/pixmaps/deluge.${pic} \
|
|
${STAGEDIR}${PREFIX}/share/pixmaps
|
|
.endfor
|
|
.if ${PORT_OPTIONS:MGTK2}
|
|
${INSTALL_DATA} ${WRKSRC}/deluge/data/share/applications/deluge.desktop \
|
|
${STAGEDIR}${PREFIX}/share/applications
|
|
.endif
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
|
|
|
|
# install man pages
|
|
.for man in deluge.1 deluge-console.1 deluge-gtk.1 deluge-web.1 deluged.1
|
|
${INSTALL_MAN} ${WRKSRC}/docs/man/${man} ${STAGEDIR}${MANPREFIX}/man/man1/
|
|
.endfor
|
|
|
|
.include <bsd.port.mk>
|