2012-10-30 11:39:29 +01:00
|
|
|
# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= hotot
|
|
|
|
PORTVERSION= 0.9.8.8
|
2012-10-30 13:50:16 +01:00
|
|
|
PORTREVISION= 1
|
2012-10-30 11:39:29 +01:00
|
|
|
CATEGORIES= net-im www
|
|
|
|
DISTNAME= ${GH_ACCOUNT}-${GH_PROJECT}-${GH_COMMIT}
|
|
|
|
|
|
|
|
MAINTAINER= danfe@FreeBSD.org
|
|
|
|
COMMENT= Lightweight, flexible microblogging client
|
|
|
|
|
|
|
|
LICENSE= LGPL3
|
|
|
|
|
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_ACCOUNT= shellex
|
|
|
|
GH_PROJECT= Hotot
|
|
|
|
GH_TAGNAME= master
|
|
|
|
GH_COMMIT= 9c8c8a2
|
|
|
|
|
|
|
|
USE_CMAKE= yes
|
2012-10-30 13:50:16 +01:00
|
|
|
CMAKE_ARGS= -DWITH_KDE=off # untested, please send patches if you want it
|
2012-10-30 11:39:29 +01:00
|
|
|
USE_GETTEXT= yes
|
|
|
|
USE_PYTHON= yes
|
|
|
|
USE_GNOME= intltool
|
|
|
|
INSTALLS_ICONS= yes
|
|
|
|
|
|
|
|
CFLAGS+= -I${LOCALBASE}/include # does not uphold CPPFLAGS
|
|
|
|
|
2012-10-30 13:50:16 +01:00
|
|
|
OPTIONS_DEFINE= GTK2 QT4
|
|
|
|
OPTIONS_DEFAULT= GTK2 QT4
|
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MGTK2}
|
|
|
|
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/webkit/__init__.py:${PORTSDIR}/www/py-webkitgtk \
|
|
|
|
${PYTHON_SITELIBDIR}/keybinder/__init__.py:${PORTSDIR}/x11/keybinder
|
|
|
|
PLIST_SUB+= GTK2=""
|
|
|
|
.else
|
|
|
|
CMAKE_ARGS+= -DWITH_GTK=off
|
|
|
|
PLIST_SUB+= GTK2="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MQT4}
|
|
|
|
USE_QT4= moc_build qmake_build rcc_build uic_build \
|
|
|
|
corelib gui sql webkit
|
|
|
|
PLIST_SUB+= QT4=""
|
|
|
|
.else
|
|
|
|
CMAKE_ARGS+= -DWITH_QT=off
|
|
|
|
INSTALL_TARGET= install
|
|
|
|
PLIST_SUB+= QT4="@comment "
|
|
|
|
.endif
|
|
|
|
|
2012-10-30 11:39:29 +01:00
|
|
|
post-patch:
|
|
|
|
# Upstream should probably use platform.system() instead of hardcoding its
|
2012-10-30 13:50:16 +01:00
|
|
|
# name (in Python code at least)
|
2012-10-30 11:39:29 +01:00
|
|
|
@${REINPLACE_CMD} -e 's,Linux,${OPSYS},' ${WRKSRC}/data/js/conf.js \
|
2012-10-30 13:50:16 +01:00
|
|
|
${WRKSRC}/data/js/util.js ${WRKSRC}/hotot/view.py \
|
|
|
|
${WRKSRC}/hotot-gir/view.py ${WRKSRC}/qt/mainwindow.cpp
|
2012-10-30 11:39:29 +01:00
|
|
|
# Strip shlib versions from the library filenames
|
|
|
|
@${REINPLACE_CMD} -E 's,so\.[0-9]+,so,' ${WRKSRC}/hotot/utils.py
|
|
|
|
# Remove `sourceid' parameter from the search string
|
|
|
|
@${REINPLACE_CMD} -e 's,sourceid=chrome&,,' \
|
|
|
|
${WRKSRC}/data/js/ui.context_menu.js
|
|
|
|
# Sanitize font selection list
|
|
|
|
@${REINPLACE_CMD} -e "/font_list/s/\[.*/['DejaVu Sans', 'Bitstream Vera Sans', 'Droid Sans', 'Verdana', 'Arial', 'Helvetica']/" \
|
|
|
|
${WRKSRC}/data/js/conf.js
|
|
|
|
# Remove stale backup files (or they would pollute pkg-plist)
|
2012-10-30 13:50:16 +01:00
|
|
|
@${FIND} ${WRKSRC} -type f -name '*.bak' -delete
|
2012-10-30 11:39:29 +01:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|