2012-10-30 10:39:29 +00:00
|
|
|
# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= hotot
|
2013-05-12 05:42:16 +00:00
|
|
|
PORTVERSION= 0.9.8.14
|
2014-04-03 11:26:45 +00:00
|
|
|
PORTREVISION= 1
|
2012-10-30 10:39:29 +00:00
|
|
|
CATEGORIES= net-im www
|
|
|
|
|
|
|
|
MAINTAINER= danfe@FreeBSD.org
|
|
|
|
COMMENT= Lightweight, flexible microblogging client
|
|
|
|
|
|
|
|
LICENSE= LGPL3
|
|
|
|
|
|
|
|
USE_GITHUB= yes
|
2013-02-26 03:41:27 +00:00
|
|
|
GH_ACCOUNT= lyricat
|
2012-10-30 10:39:29 +00:00
|
|
|
GH_PROJECT= Hotot
|
2013-05-12 05:42:16 +00:00
|
|
|
GH_COMMIT= 1f68d33
|
2012-10-30 10:39:29 +00:00
|
|
|
|
2013-04-26 10:44:28 +00:00
|
|
|
USES= cmake gettext
|
2012-10-30 10:39:29 +00:00
|
|
|
USE_PYTHON= yes
|
|
|
|
USE_GNOME= intltool
|
|
|
|
INSTALLS_ICONS= yes
|
|
|
|
|
|
|
|
CFLAGS+= -I${LOCALBASE}/include # does not uphold CPPFLAGS
|
|
|
|
|
2012-12-03 09:12:44 +00:00
|
|
|
OPTIONS_DEFINE= GTK2 QT4 KDE4
|
2012-10-30 12:50:16 +00:00
|
|
|
OPTIONS_DEFAULT= GTK2 QT4
|
2012-12-03 09:12:44 +00:00
|
|
|
KDE4_DESC= KDE 4 integration (implies Qt 4)
|
2012-10-30 12:50:16 +00:00
|
|
|
|
|
|
|
.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
|
|
|
|
|
2012-12-03 09:12:44 +00:00
|
|
|
.if ${PORT_OPTIONS:MQT4} || ${PORT_OPTIONS:MKDE4}
|
2012-10-30 12:50:16 +00:00
|
|
|
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-12-03 09:12:44 +00:00
|
|
|
.if ${PORT_OPTIONS:MKDE4}
|
|
|
|
USE_KDE4= automoc4 kdelibs
|
|
|
|
.else
|
|
|
|
CMAKE_ARGS+= -DWITH_KDE=off
|
|
|
|
.endif
|
|
|
|
|
2012-10-30 10:39:29 +00:00
|
|
|
post-patch:
|
2012-12-03 09:12:44 +00:00
|
|
|
# Fix hardcoded platform name (it is not always Linux)
|
2012-10-30 10:39:29 +00:00
|
|
|
@${REINPLACE_CMD} -e 's,Linux,${OPSYS},' ${WRKSRC}/data/js/conf.js \
|
2012-12-03 09:12:44 +00:00
|
|
|
${WRKSRC}/data/js/util.js ${WRKSRC}/qt/mainwindow.cpp
|
2012-10-30 10:39:29 +00:00
|
|
|
# Strip shlib versions from the library filenames
|
|
|
|
@${REINPLACE_CMD} -E 's,so\.[0-9]+,so,' ${WRKSRC}/hotot/utils.py
|
2012-12-03 09:12:44 +00:00
|
|
|
# Remove `sourceid' parameter from Google search string
|
2012-10-30 10:39:29 +00:00
|
|
|
@${REINPLACE_CMD} -e 's,sourceid=chrome&,,' \
|
|
|
|
${WRKSRC}/data/js/ui.context_menu.js
|
2013-07-19 13:48:11 +00:00
|
|
|
# Sanitize font selection list
|
|
|
|
@${REINPLACE_CMD} -e "/font_list/s/\[.*/['DejaVu Sans', 'Bitstream Vera Sans', 'Droid Sans', 'Verdana', 'Arial', 'Helvetica']/" \
|
2012-10-30 10:39:29 +00:00
|
|
|
${WRKSRC}/data/js/conf.js
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|