freebsd-ports/math/pspp/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

70 lines
1.9 KiB
Makefile

PORTNAME= pspp
PORTVERSION= 1.6.2
CATEGORIES= math
MASTER_SITES= GNU
MAINTAINER= wen@FreeBSD.org
COMMENT= Program for statistical analysis of sampled data
WWW= https://www.gnu.org/software/pspp/pspp.html
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= p5-Text-Diff>=0:textproc/p5-Text-Diff \
texinfo>0:print/texinfo
LIB_DEPENDS= libcairo.so:graphics/cairo \
libpango-1.0.so:x11-toolkits/pango \
libgslcblas.so:math/gsl
USES= cpe charsetfix gettext-tools gmake gnome iconv localbase \
libtool perl5 pkgconfig python:3.7+,build readline
CPE_VENDOR= gnu
USE_GNOME= libxml2
USE_PERL5= build
GNU_CONFIGURE= yes
CONFIGURE_ENV= PYTHON3=${PYTHON_CMD}
MAKE_ARGS= MAKEINFO="${LOCALBASE}/bin/makeinfo" \
XMLLINT="${LOCALBASE}/bin/xmllint"
INSTALL_TARGET= install-strip
TEST_TARGET= check
LDFLAGS+= -L${LOCALBASE}/lib -lxml2
INFO= pspp pspp-dev
PLIST_SUB= VERSION="${PORTVERSION}"
PORTDOCS= AUTHORS ChangeLog NEWS ONEWS README THANKS
PORTEXAMPLES= *
OPTIONS_DEFINE= DOCS EXAMPLES GUI NLS PGSQL
OPTIONS_DEFAULT= GUI
OPTIONS_SUB= yes
GUI_LIB_DEPENDS= libgladeui-2.so:devel/glade \
libspread-sheet-widget.so:devel/spread-sheet-widget
GUI_USES= desktop-file-utils shared-mime-info
GUI_USE= gnome=cairo,gtk30,gtksourceview3,pango pkgconfig
GUI_CONFIGURE_WITH= cairo gui
GUI_INSTALL_TARGET= install-icons install-ext-icons
NLS_BUILD_DEPENDS= appstream-glib>0:devel/appstream-glib
NLS_USES= gettext-runtime
NLS_CONFIGURE_OFF= --disable-nls
NLS_MAKE_ARGS_OFF= POFILES=""
PGSQL_USES= pgsql
PGSQL_CONFIGURE_WITH= libpq
pre-configure-GUI-off:
${REINPLACE_CMD} -e '/language=Glade/d;/j src\/ui\/gui/d' \
${WRKSRC}/Makefile.in
post-install-DOCS-on:
(cd ${WRKSRC} && ${COPYTREE_SHARE} \
"${PORTDOCS}" ${STAGEDIR}${DOCSDIR})
post-install-EXAMPLES-on:
(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} \
"${PORTEXAMPLES}" ${STAGEDIR}${EXAMPLESDIR})
.include <bsd.port.mk>