freebsd-ports/editors/xvile/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

99 lines
2.9 KiB
Makefile

PORTNAME= vile
PORTVERSION= 9.8w
CATEGORIES= editors
MASTER_SITES= https://invisible-island.net/archives/vile/current/ \
ftp://ftp.invisible-island.net/pub/vile/current/ \
https://invisible-mirror.net/archives/vile/current/
PKGNAMEPREFIX= x
PATCH_SITES= ${MASTER_SITES:S,vile/current/,vile/patches/,g}
PATCHFILES= # none
MAINTAINER= dickey@invisible-island.net
COMMENT= VI Like Emacs -- X11 version
WWW= https://invisible-island.net/vile/
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= reflex:textproc/reflex
USES= pkgconfig shebangfix tar:tgz xorg
SHEBANG_FILES= macros/lxvile macros/lxvile-fonts perl/vileget
USE_XORG= x11 xext xpm xt
GNU_CONFIGURE= yes
CONFIGURE_ENV= cf_cv_crypt_works=yes
CONFIGURE_ARGS= --disable-imake \
--disable-desktop \
--enable-fontset \
--with-icon-theme \
--with-xpm \
--datarootdir=${PREFIX}/share/xvile \
--with-icondir=${PREFIX}/share/icons \
--with-libdir-path=${PREFIX}/lib/xvile \
--with-pixmapdir=${PREFIX}/share/pixmaps \
--with-startup-path=${PREFIX}/share/xvile
MAKEFILE= makefile
INSTALL_TARGET= install install-doc install-html
OPTIONS_DEFINE= DOCS FILTERS ICONV PERL
OPTIONS_RADIO= MENUS
OPTIONS_RADIO_MENUS= MOTIF XAW XAW3D
OPTIONS_DEFAULT= ICONV
OPTIONS_SUB= yes
FILTERS_DESC= Loadable filters
FILTERS_CONFIGURE_WITH= loadable-filters
ICONV_USES= iconv
ICONV_CONFIGURE_ON= --with-iconv ${ICONV_CONFIGURE_ARG}
ICONV_CONFIGURE_OFF= --without-iconv --without-locale
MENUS_DESC= Support for menus
MOTIF_USES= motif
MOTIF_CONFIGURE_ON= --enable-colored-menus \
--with-screen=motif
PERL_USES= perl5
PERL_CONFIGURE_WITH= perl
XAW_DESC= X Athena Widgets
XAW_USE= XORG=xaw
XAW_CONFIGURE_ON= --with-screen=athena
XAW3D_DESC= X Athena Widgets with 3D effect
XAW3D_LIB_DEPENDS= libXaw3d.so:x11-toolkits/Xaw3d
XAW3D_CONFIGURE_ON= --enable-colored-menus \
--with-Xaw3d \
--with-screen=xaw3d
# fixes to make this not conflict with the "vile" port
DATADIR= ${PREFIX}/share/xvile
DOCSDIR= ${PREFIX}/share/doc/xvile
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MFILTERS}
PLIST_SUB+= SO_EXT=".so"
.else
PLIST_SUB+= SO_EXT=""
.endif
.if empty(PORT_OPTIONS:MMOTIF) && empty(PORT_OPTIONS:MXAW) && empty(PORT_OPTIONS:MXAW3D)
CONFIGURE_ARGS+= --with-screen=x11
.endif
post-patch:
@${REINPLACE_CMD} -e \
's|$$(datadir)/doc|@prefix@/share/doc/xvile| ; \
s|^\(datadir[ ]*=[ ]*\)@datadir@.*|\1@datarootdir@| ; \
s|@datadir@/doc/vile|@datarootdir@/doc/xvile| ; \
s|$$(datadir)/html|$$(docdir)/html| ; \
s|$$(datadir)/perl|@datadir@/perl| ; \
s|$$(BINDIR)/vileget|$$(BINDIR)/xvileget| ; \
s|\($$(DOCDIR)\) \($$(MANDIR)\)|\1 $$(HTMLDIR) \2|' \
${WRKSRC}/makefile.in
@${REINPLACE_CMD} -e \
's|^\(datadir[ ]*=[ ]*\)@datadir@.*|\1@datarootdir@|' \
${WRKSRC}/filters/makefile.in
post-install:
(cd ${WRKSRC}/macros && ${INSTALL_DATA} *.desktop \
${STAGEDIR}${PREFIX}/share/applications)
.include <bsd.port.mk>