freebsd-ports/deskutils/pinot/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

92 lines
2.9 KiB
Makefile

PORTNAME= pinot
PORTVERSION= 1.21
PORTREVISION= 4
CATEGORIES= deskutils
MAINTAINER= thierry@FreeBSD.org
COMMENT= Personal search and metasearch for the Free Desktop
WWW= https://github.com/FabriceColin/pinot/
LICENSE= GPLv2
BUILD_DEPENDS= desktop-file-install:devel/desktop-file-utils \
update-mime-database:misc/shared-mime-info
LIB_DEPENDS= libxapian.so:databases/xapian-core \
libfontconfig.so:x11-fonts/fontconfig \
libfreetype.so:print/freetype2 \
libexttextcat-2.0.so:textproc/libexttextcat \
libdbus-1.so:devel/dbus \
libxml++-2.6.so:textproc/libxml++26 \
libboost_thread.so:devel/boost-libs \
libharfbuzz.so:print/harfbuzz \
libnotify.so:devel/libnotify \
libexif.so:graphics/libexif \
libexiv2.so:graphics/exiv2 \
libgmime-2.6.so:mail/gmime26 \
libtag.so:audio/taglib \
libcurl.so:ftp/curl
RUN_DEPENDS= update-mime-database:misc/shared-mime-info \
antiword:textproc/antiword \
xdg-open:devel/xdg-utils \
catppt:textproc/catdoc \
unrtf:textproc/unrtf \
catdvi:print/catdvi \
bash:shells/bash \
${LOCALBASE}/libexec/xpdf/pdftotext:graphics/xpdf
USE_GITHUB= yes
GH_ACCOUNT= FabriceColin
USES= compiler:c++11-lang autoreconf gettext gnome libarchive \
libtool pkgconfig python shebangfix sqlite:3 ssl xorg
USE_CXXSTD= c++11
USE_XORG= pixman
USE_GNOME= atkmm cairo cairomm gdkpixbuf2 glibmm gtk30 gtkmm30 \
libsigc++20 libxml2 pangomm
USE_LDCONFIG= ${PREFIX}/lib/pinot/backends ${PREFIX}/lib/pinot/filters
SHEBANG_FILES= scripts/bash/*.sh
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-http=curl --with-ssl=${OPENSSLBASE} --enable-libarchive \
--enable-mempool=no --enable-libnotify
CONFIGURE_ENV= MKDIR_P="${MKDIR}" TEXTCAT_LIBS="-lexttextcat-2.0"
CPPFLAGS+= -I${LOCALBASE}/include
LIBS+= -L${LOCALBASE}/lib -lboost_system
OPTIONS_DEFINE= DEBUG CHMLIB DOCS
OPTIONS_SUB= yes
DEBUG_CONFIGURE_ON= --enable-debug=yes
CHMLIB_DESC= Support of Microsoft ITSS/CHM files
CHMLIB_CONFIGURE_ON= --enable-chmlib=yes
CHMLIB_CONFIGURE_OFF= --disable-chmlib
CHMLIB_LIB_DEPENDS= libchm.so:misc/chmlib
INSTALL_TARGET= install-strip
DOCS= AUTHORS ChangeLog ChangeLog-dijon INSTALL NEWS README TODO
LM2FIX= Core/pinot-index.cpp Core/pinot-index.1 Makefile.am \
textcat31_conf.txt aclocal.m4 textcat3_conf.txt \
textcat_conf.txt textcat32_conf.txt
SHR2FIX= Core/pinot-search.1
UL2FIX= Utils/xdgmime/xdgmime.c
pre-configure:
${REINPLACE_CMD} -e \
'/<command>/s|pdftotext|${LOCALBASE}/libexec/xpdf/pdftotext|' \
${WRKSRC}/Tokenize/filters/external-filters.xml
${REINPLACE_CMD} -e 's|/usr/share|${LOCALBASE}/share|' \
${LM2FIX:S|^|${WRKSRC}/|}
${REINPLACE_CMD} -e 's|/usr/share|${PREFIX}/share|' \
${SHR2FIX:S|^|${WRKSRC}/|}
post-install:
${TOUCH} ${STAGEDIR}${DATADIR}/stopwords/.empty_file
post-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${DOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>