freebsd-ports/databases/recutils/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

64 lines
1.7 KiB
Makefile

PORTNAME= recutils
PORTVERSION= 1.8
PORTREVISION= 1
CATEGORIES= databases
MASTER_SITES= GNU
MAINTAINER= zeus@gnu.org.ua
COMMENT= Tools and libraries to access human-editable, plain text databases
WWW= https://www.gnu.org/software/recutils/
LICENSE= GPLv3+
LIB_DEPENDS= libuuid.so:misc/e2fsprogs-libuuid
USES= charsetfix cpe libtool makeinfo pkgconfig readline
CPE_VENDOR= gnu
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
INSTALL_TARGET= install-strip
INFO= rec-mode recutils
PORTDOCS= AUTHORS ChangeLog NEWS README
OPTIONS_DEFINE= BASH CURL DOCS GCRYPT MDB NLS TEST
OPTIONS_DEFAULT= CURL GCRYPT MDB
OPTIONS_SUB= yes
BASH_DESC= Build ${PORTNAME} bash(1) builtins
BASH_BUILD_DEPENDS= ${LOCALBASE}/include/bash/config.h:shells/bash
BASH_CONFIGURE_ON= --with-bash-headers=${LOCALBASE}/include/bash
BASH_CONFIGURE_OFF= --disable-bash-builtins
CURL_LIB_DEPENDS= libcurl.so:ftp/curl
CURL_CONFIGURE_ENV_OFF= ac_cv_lib_curl_curl_global_init=no
GCRYPT_DESC= Encryption support via GNU crypt
GCRYPT_LIB_DEPENDS= libgcrypt.so:security/libgcrypt \
libgpg-error.so:security/libgpg-error
GCRYPT_CONFIGURE_OFF= --disable-encryption
MDB_DESC= MS Access database (.mdb) support
MDB_BUILD_DEPENDS= help2man:misc/help2man
MDB_LIB_DEPENDS= libmdb.so:databases/mdbtools
MDB_CONFIGURE_ENV_OFF= ac_cv_lib_mdb_mdb_get_version=no
NLS_USES= gettext
NLS_CONFIGURE_OFF= --disable-nls
TEST_BUILD_DEPENDS= ${LOCALBASE}/include/check.h:devel/check
TEST_TEST_TARGET= check
post-patch:
@${REINPLACE_CMD} -e 's,mdb_init,mdb_get_version,' \
${WRKSRC}/configure
post-install:
${INSTALL_DATA} ${WRKSRC}/etc/*.el \
${STAGEDIR}${PREFIX}/share/emacs/site-lisp
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>