Commit f1c38f09 authored by Olivier Duchateau's avatar Olivier Duchateau
Browse files

Update to 0.8 (net/py-avahi)

parent 7901b467
......@@ -63,7 +63,6 @@ CONFIGURE_ARGS+=--disable-autoipd
.endif
.if ${AVAHI_SLAVE} == gtk
# We disable man pages, because bssh.1 is not generated (no xmltoman port)
# But Gtk implies GLib, and so man pages (according to man/Makefile.am)
CONFIGURE_ARGS+=--enable-gtk \
--disable-manpages
.else
......
TIMESTAMP = 1599316072
TIMESTAMP = 1602717130
SHA256 (avahi-0.8.tar.gz) = 060309d7a333d38d951bc27598c677af1796934dbd98e1024e7ad8de798fedda
SIZE (avahi-0.8.tar.gz) = 1591458
#!/usr/bin/env python
# -*-python-*-
# This file is part of avahi.
#
# avahi is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation; either version 2 of the
# License, or (at your option) any later version.
#
# avahi is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
# License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with avahi; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
# USA.
try:
import anydbm as dbm
except ImportError:
import dbm
import sys
if len(sys.argv) > 1:
infn = sys.argv[1]
else:
infn = "service-types"
if len(sys.argv) > 2:
outfn = sys.argv[2]
else:
outfn = infn + ".db"
db = dbm.open(outfn, "n")
for ln in open(infn, "r"):
ln = ln.strip(" \r\n\t")
if ln == "" or ln.startswith("#"):
continue
t, n = ln.split(":", 1)
db[t.strip()] = n.strip()
db.close()
# Created by: Joe Marcus Clarke <marcus@FreeBSD.org>
# $FreeBSD: head/net/py-avahi/Makefile 550716 2020-09-30 16:01:34Z bapt $
# $MCom: ports/net/py-avahi/Makefile,v 1.4 2007/07/31 18:24:13 ahze Exp $
PORTREVISION= 0
CATEGORIES= net gnome python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
PKGNAMESUFFIX= # empty
MAINTAINER= gnome@FreeBSD.org
COMMENT= Python interface to the Avahi mDNS system
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}gdbm>0:databases/py-gdbm@${PY_FLAVOR} \
${PYTHON_SITELIBDIR}/dbus/_dbus.py:devel/py-dbus@${PY_FLAVOR}
LIB_DEPENDS= libavahi-client.so:net/avahi-app
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}gdbm>0:databases/py-gdbm@${PY_FLAVOR} \
${PYTHON_SITELIBDIR}/dbus/_dbus.py:devel/py-dbus@${PY_FLAVOR} \
avahi-gtk3>=0.7:net/avahi-gtk3
MASTERDIR= ${.CURDIR}/../avahi-app
BUILD_WRKSRC= ${WRKSRC}/avahi-python
INSTALL_WRKSRC= ${BUILD_WRKSRC}
DESCR= ${.CURDIR}/pkg-descr
PLIST= ${.CURDIR}/pkg-plist
AVAHI_SLAVE= python
USE_GNOME= pygobject3 gtk30
USES= python:3.5+
USE_PYTHON= flavors py3kplist
MANPAGES= avahi-bookmarks.1
# See https://github.com/lathiat/avahi/issues/277
post-extract:
${CP} ${FILESDIR}/build-db ${WRKSRC}/service-type-database
post-patch:
@${REINPLACE_CMD} -e 's|@pkglibdatadir@|${DATADIR}|' \
${WRKSRC}/avahi-python/avahi/ServiceTypeDatabase.py.in
do-build:
@${DO_MAKE_BUILD} -C ${BUILD_WRKSRC}
@${DO_MAKE_BUILD} -C ${WRKSRC}/service-type-database
do-install:
@(cd ${BUILD_WRKSRC}; ${MAKE_CMD} ${MAKE_ARGS} install-strip)
@(cd ${WRKSRC}/service-type-database; ${MAKE_CMD} ${MAKE_ARGS} install)
post-install:
(cd ${STAGEDIR}${PREFIX} && ${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py \
-d ${PREFIX} -f ${PYTHONPREFIX_SITELIBDIR:S,${PREFIX}/,,})
(cd ${STAGEDIR}${PREFIX} && ${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py \
-d ${PREFIX} -f ${PYTHONPREFIX_SITELIBDIR:S,${PREFIX}/,,})
.include "${MASTERDIR}/Makefile"
Python interface to the avahi mDNS service discovery system.
WWW: http://www.avahi.org/
bin/avahi-bookmarks
bin/avahi-discover
lib/avahi/service-types.db
%%PYTHON_SITELIBDIR%%/avahi/ServiceTypeDatabase.py
%%PYTHON_SITELIBDIR%%/avahi/ServiceTypeDatabase.pyc
%%PYTHON_SITELIBDIR%%/avahi/ServiceTypeDatabase.pyo
%%PYTHON_SITELIBDIR%%/avahi/__init__.py
%%PYTHON_SITELIBDIR%%/avahi/__init__.pyc
%%PYTHON_SITELIBDIR%%/avahi/__init__.pyo
man/man1/avahi-bookmarks.1.gz
share/applications/avahi-discover.desktop
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment