Files
ports/textproc/aspell/Makefile
Dimitry Andric 24ae74c0e2 textproc/aspell: fix build with clang 19
With clang 19 and gcc 15, textproc/aspell fails to compile, with errors
similar to:

    In file included from modules/speller/default/readonly_ws.cpp:51:
    modules/speller/default/vector_hash-t.hpp:186:43: error: no member named 'e' in 'VectorHashTable<Parms>'
      186 |     for (iterator i = begin(); i != this->e; ++i, ++this->_size);
          |                                     ~~~~  ^
    modules/speller/default/vector_hash-t.hpp:186:59: error: no member named '_size' in 'VectorHashTable<Parms>'; did you mean 'size_'?
      186 |     for (iterator i = begin(); i != this->e; ++i, ++this->_size);
          |                                                           ^~~~~
          |                                                           size_
    modules/speller/default/vector_hash.hpp:182:17: note: 'size_' declared here
      182 |     size_type   size_;
          |                 ^

Upstream commit <https://github.com/GNUAspell/aspell/commit/ee6cbb1>
fixes this this, so add it as a PATCHFILES entry in the Makefile, until
the next version of aspell is released.

PR:		280675
Approved by:	fluffy (maintainer)
MFH:		2024Q3
2024-08-07 21:07:16 +02:00

44 lines
994 B
Makefile

PORTNAME= aspell
PORTVERSION= 0.60.8.1
PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= textproc
MASTER_SITES= GNU/aspell
PATCH_SITES= https://github.com/GNUAspell/${PORTNAME}/commit/
PATCHFILES+= ee6cbb12ff36a1e6618d7388a78dd4e0a2b44041.patch:-p1
MAINTAINER= office@FreeBSD.org
COMMENT= Spelling checker with better suggestion logic than ispell
WWW= http://aspell.net/
LICENSE= LGPL21
USES= cpe gmake iconv libtool ncurses perl5 shebangfix
CONFIGURE_ARGS= --enable-curses="${NCURSESLIBS}" \
--enable-dict-dir=${DATADIR} \
--enable-docdir=${DOCSDIR} \
--enable-static
GNU_CONFIGURE= yes
INSTALL_TARGET= install-strip
USE_LDCONFIG= yes
SHEBANG_FILES= scripts/aspell-import
CPE_VENDOR= gnu
SUB_FILES= aspell.ver
PLIST_SUB= VER=${PORTVERSION:R:R}
SUB_LIST= VER=${PORTVERSION:R:R}
INFO= aspell aspell-dev
OPTIONS_DEFINE= NLS
OPTIONS_SUB= yes
NLS_USES= gettext
NLS_CONFIGURE_ENABLE= nls
post-install:
${INSTALL_DATA} ${WRKDIR}/aspell.ver ${STAGEDIR}${PREFIX}/etc
.include <bsd.port.mk>