freebsd-ports/net-im/biboumi/Makefile
Stefan Eßer b7f05445c0 Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.

Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.

There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.

This commit implements such a proposal and moves one of the WWW: entries
of each pkg-descr file into the respective port's Makefile. A heuristic
attempts to identify the most relevant URL in case there is more than
one WWW: entry in some pkg-descr file. URLs that are not moved into the
Makefile are prefixed with "See also:" instead of "WWW:" in the pkg-descr
files in order to preserve them.

There are 1256 ports that had no WWW: entries in pkg-descr files. These
ports will not be touched in this commit.

The portlint port has been adjusted to expect a WWW entry in each port
Makefile, and to flag any remaining "WWW:" lines in pkg-descr files as
deprecated.

Approved by:		portmgr (tcberner)
2022-09-07 23:10:59 +02:00

94 lines
2.7 KiB
Makefile

PORTNAME= biboumi
DISTVERSION= 9.0
PORTREVISION= 2
CATEGORIES= net-im
MASTER_SITES= https://git.louiz.org/biboumi/snapshot/
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= samir@noir.im
COMMENT= XMPP gateway to IRC
WWW= https://biboumi.louiz.org/
LICENSE= ZLIB
LIB_DEPENDS= libexpat.so:textproc/expat2 \
libuuid.so:misc/e2fsprogs-libuuid
USES= cmake iconv localbase:ldflags pkgconfig python:build tar:xz
USE_GITHUB= nodefault
GH_TUPLE= catchorg:Catch2:v2.2.1:catch/external/src/catch
CMAKE_ARGS= -DWITHOUT_SYSTEMD=1
OPTIONS_DEFINE= DOCS LIBIDN PGSQL SQLITE3 TLS UDNS
OPTIONS_DEFAULT= LIBIDN PGSQL SQLITE3 TLS UDNS
LIBIDN_DESC= Stringprep functionality, to provide JIDs for IRC users
PGSQL_DESC= Store users' options and messages in PostgreSQL
SQLITE3_DESC= Store users' options and messages in SQLite
TLS_DESC= Support TLS connections to IRC servers
UDNS_DESC= Asynchronously resolve domain names, for better performances
DOCS_BUILD_DEPENDS= sphinx-build:textproc/py-sphinx \
${PYTHON_PKGNAMEPREFIX}sphinx_rtd_theme>0:textproc/py-sphinx_rtd_theme
DOCS_PORTDOCS= *
LIBIDN_LIB_DEPENDS= libidn.so:dns/libidn
LIBIDN_CMAKE_ON= -DWITH_LIBIDN=1
LIBIDN_CMAKE_OFF= -DWITHOUT_LIBIDN=1
PGSQL_USES= pgsql
PGSQL_CMAKE_ON= -DWITH_POSTGRESQL=1
PGSQL_CMAKE_OFF= -DWITHOUT_POSTGRESQL=1
SQLITE3_USES= sqlite:3
SQLITE3_CMAKE_ON= -DWITH_SQLITE3=1
SQLITE3_CMAKE_OFF= -DWITHOUT_SQLITE3=1
TLS_LIB_DEPENDS= libbotan-2.so:security/botan2
TLS_LIB_DEPENDS_OFF= libgcrypt.so:security/libgcrypt
TLS_RUN_DEPENDS= ca_root_nss>0:security/ca_root_nss
TLS_CMAKE_ON= -DWITH_BOTAN=1
TLS_CMAKE_OFF= -DWITHOUT_BOTAN=1
UDNS_LIB_DEPENDS= libudns.so:dns/udns
UDNS_CMAKE_ON= -DWITH_UDNS=1
UDNS_CMAKE_OFF= -DWITHOUT_UDNS=1
USERS= biboumi
GROUPS= ${USERS}
USE_RC_SUBR= biboumi
SUB_LIST= USER=${USERS} GROUP=${GROUPS}
PLIST_SUB= ${SUB_LIST}
SUB_FILES= pkg-message
post-patch:
${REINPLACE_CMD} -e 's,GIT_REPOSITORY.*Catch.git",SOURCE_DIR "${WRKSRC}/external/src/catch",' ${WRKSRC}/CMakeLists.txt
post-build:
cd ${WRKSRC}/doc && ${MAKE} man
post-build-DOCS-on:
cd ${WRKSRC}/doc && ${MAKE} html
do-install:
${INSTALL_PROGRAM} ${WRKDIR}/.build/biboumi ${STAGEDIR}${PREFIX}/bin
${MKDIR} ${STAGEDIR}${PREFIX}/etc/biboumi
${INSTALL_DATA} ${WRKSRC}/conf/biboumi.cfg ${STAGEDIR}${ETCDIR}/biboumi.cfg.sample
post-install:
${MKDIR} ${STAGEDIR}/var/db/biboumi
${MKDIR} ${STAGEDIR}/var/run/biboumi
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/conf/*policy.txt ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_MAN} ${WRKSRC}/doc/_build/man/*.1 ${STAGEDIR}${PREFIX}/man/man1
post-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC}/doc/_build/html && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} \
"! -name .buildinfo")
.include <bsd.port.mk>