mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-01 05:45:45 +00:00
551be3c723
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
79 lines
2.3 KiB
Makefile
79 lines
2.3 KiB
Makefile
# Created by: Klaus Aehlig <aehlig@linta.de>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= uzbl
|
|
PORTVERSION= 0.9.1
|
|
DISTVERSIONPREFIX=v
|
|
PORTREVISION= 2
|
|
CATEGORIES= www
|
|
|
|
MAINTAINER= aehlig@linta.de
|
|
COMMENT= Web interface tools which adhere to the unix philosophy
|
|
|
|
LICENSE= GPLv3
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>0:devel/py-setuptools@${PY_FLAVOR}
|
|
LIB_DEPENDS= libwebkitgtk-1.0.so:www/webkit-gtk2 \
|
|
libfontconfig.so:x11-fonts/fontconfig \
|
|
libfreetype.so:print/freetype2 \
|
|
libsoup-2.4.so:devel/libsoup
|
|
RUN_DEPENDS= socat:net/socat \
|
|
dmenu:x11/dmenu \
|
|
${PYTHON_PKGNAMEPREFIX}configparser>0:devel/py-configparser@${PY_FLAVOR}
|
|
|
|
USES= gmake pkgconfig python:2 desktop-file-utils gettext-runtime shebangfix
|
|
USE_XORG= x11
|
|
USE_GNOME= gtk20 pygtk2 cairo
|
|
USE_LDCONFIG= yes
|
|
INSTALLS_ICONS= yes
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= uzbl
|
|
|
|
SHEBANG_FILES= examples/data/scripts/auth.py \
|
|
examples/data/scripts/scheme.py \
|
|
examples/data/scripts/uzblcat
|
|
|
|
MAKE_ENV= PYTHON=${PYTHON_VERSION} \
|
|
MANDIR=${STAGEDIR}${MANPREFIX}/man
|
|
|
|
PORTDOCS= AUTHORS DEBUGGING.md FAQ.md HACKING.md vim
|
|
PORTDATA= examples
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e "s|/usr/local|${PREFIX}|" \
|
|
${WRKSRC}/examples/config/config \
|
|
${WRKSRC}/bin/uzbl-browser.in
|
|
@${REINPLACE_CMD} -e "s|share/uzbl|${DATADIR_REL}|" \
|
|
${WRKSRC}/examples/config/config \
|
|
${WRKSRC}/bin/uzbl-browser.in
|
|
@${REINPLACE_CMD} -e "s|/usr/share/uzbl|${DATADIR}|" \
|
|
${WRKSRC}/bin/uzbl-tabbed
|
|
|
|
post-build:
|
|
@${FIND} ${WRKSRC} \( -name "*.orig" -or -name "*.bak" \) -exec ${RM} {} \;
|
|
|
|
post-install:
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}/examples/data/dforms ${STAGEDIR}${DATADIR}/examples/config
|
|
.for f in data/bookmarks \
|
|
data/dforms/bbs.archlinux.org \
|
|
config/style.css data/uzbl.png
|
|
${INSTALL_DATA} ${WRKSRC}/examples/${f} ${STAGEDIR}${DATADIR}/examples/${f}
|
|
.endfor
|
|
${INSTALL_DATA} ${WRKSRC}/examples/config/config ${STAGEDIR}${DATADIR}/examples/config/config
|
|
(cd ${WRKSRC}/examples/data && \
|
|
${COPYTREE_BIN} scripts ${STAGEDIR}${DATADIR}/examples/data/)
|
|
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/uzbl-core
|
|
|
|
post-install-DOCS-on:
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
.for f in AUTHORS DEBUGGING.md FAQ.md HACKING.md
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}/${f}
|
|
.endfor
|
|
(cd ${WRKSRC}/extras && ${COPYTREE_SHARE} vim ${STAGEDIR}${DOCSDIR})
|
|
|
|
.include <bsd.port.mk>
|