Ports using USE_PYTHON=distutils are now flavored. They will automatically get flavors (py27, py34, py35, py36) depending on what versions they support. There is also a USE_PYTHON=flavors for ports that do not use distutils but need FLAVORS to be set. A USE_PYTHON=noflavors can be set if using distutils but flavors are not wanted. A new USE_PYTHON=optsuffix that will add PYTHON_PKGNAMESUFFIX has been added to cope with Python ports that did not have the Python PKGNAMEPREFIX but are flavored. USES=python now also exports a PY_FLAVOR variable that contains the current python flavor. It can be used in dependency lines when the port itself is not python flavored. For example, deskutils/calibre. By default, all the flavors are generated. To only generate flavors for the versions in PYTHON2_DEFAULT and PYTHON3_DEFAULT, define BUILD_DEFAULT_PYTHON_FLAVORS in your make.conf. In all the ports with Python dependencies, the *_DEPENDS entries MUST end with the flavor so that the framework knows which to build/use. This is done by appending '@${PY_FLAVOR}' after the origin (or @${FLAVOR} if in a Python module with Python flavors, as the content will be the same). For example: RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR} PR: 223071 Reviewed by: portmgr, python Sponsored by: Absolight Differential Revision: https://reviews.freebsd.org/D12464
69 lines
1.8 KiB
Makefile
69 lines
1.8 KiB
Makefile
# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= hotot
|
|
PORTVERSION= 0.9.8.14
|
|
PORTREVISION= 3
|
|
CATEGORIES= net-im www
|
|
|
|
MAINTAINER= danfe@FreeBSD.org
|
|
COMMENT= Lightweight, flexible microblogging client
|
|
|
|
LICENSE= LGPL3
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= lyricat
|
|
GH_PROJECT= Hotot
|
|
|
|
USES= cmake gettext kde:4 python:2.7
|
|
USE_GNOME= intltool
|
|
INSTALLS_ICONS= yes
|
|
|
|
CFLAGS+= -I${LOCALBASE}/include # does not uphold CPPFLAGS
|
|
LDFLAGS+= -L${LOCALBASE}/lib -lintl
|
|
|
|
OPTIONS_DEFINE= GTK2 QT4 KDE4
|
|
OPTIONS_DEFAULT= GTK2 QT4
|
|
KDE4_DESC= KDE 4 integration (implies Qt 4)
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MGTK2}
|
|
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/webkit/__init__.py:www/py-webkitgtk \
|
|
${PYTHON_SITELIBDIR}/keybinder/__init__.py:x11/keybinder
|
|
PLIST_SUB+= GTK2=""
|
|
.else
|
|
CMAKE_ARGS+= -DWITH_GTK=off
|
|
PLIST_SUB+= GTK2="@comment "
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MQT4} || ${PORT_OPTIONS:MKDE4}
|
|
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
|
|
|
|
.if ${PORT_OPTIONS:MKDE4}
|
|
USE_KDE= automoc4 kdelibs
|
|
.else
|
|
CMAKE_ARGS+= -DWITH_KDE=off
|
|
.endif
|
|
|
|
post-patch:
|
|
# Fix hardcoded platform name (it is not always Linux)
|
|
@${REINPLACE_CMD} -e 's,Linux,${OPSYS},' ${WRKSRC}/data/js/conf.js \
|
|
${WRKSRC}/data/js/util.js ${WRKSRC}/qt/mainwindow.cpp
|
|
# Strip shlib versions from the library filenames
|
|
@${REINPLACE_CMD} -E 's,so\.[0-9]+,so,' ${WRKSRC}/hotot/utils.py
|
|
# Remove `sourceid' parameter from Google 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
|
|
|
|
.include <bsd.port.mk>
|