Skip to content

Commit

Permalink
textproc/aspell: garbage-collect DOCS option (now useless)
Browse files Browse the repository at this point in the history
As of r332672, manpages are always installed and condition
.if ${PORT_OPTIONS:MDOCS} had been removed; since the port
does not install any other documentation, drop it from the
option list as well.  While here, sort INFO alphabetically
and GC the linking gimmick added for version 0.50.4.1 back
in 2003 (r94146, now commit ed1d8c2): these days, it
builds and links fine regardless of the optimization level.

PR:	252357
Fixes:	f027257
  • Loading branch information
Alexey Dokuchaev authored and Alexey Dokuchaev committed Jan 31, 2024
1 parent b296498 commit 09b65d6
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions textproc/aspell/Makefile
Expand Up @@ -12,17 +12,12 @@ WWW= http://aspell.net/
LICENSE= LGPL21

USES= cpe gmake iconv libtool ncurses perl5 shebangfix

OPTIONS_DEFINE= NLS DOCS
OPTIONS_SUB= yes

GNU_CONFIGURE= yes
GNU_CONFIGURE_MANPREFIX=${PREFIX}/share
CONFIGURE_ARGS= --enable-dict-dir=${DATADIR} \
--enable-docdir=${DOCSDIR} \
--enable-curses="${NCURSESLIBS}" \
--enable-static

USE_LDCONFIG= yes
SHEBANG_FILES= scripts/aspell-import
CPE_VENDOR= gnu
Expand All @@ -32,18 +27,14 @@ VERINST= ${PORTVERSION:R:R}
SUB_FILES= aspell.ver
PLIST_SUB= VER=${VERINST}
SUB_LIST= VERINST=${VERINST}
INFO= aspell-dev aspell
INFO= aspell aspell-dev

OPTIONS_DEFINE= NLS
OPTIONS_SUB= yes

NLS_USES= gettext
NLS_CONFIGURE_ENABLE= nls

.include <bsd.port.options.mk>

# Does not link without at least -O
.if !defined(CFLAGS) || ${CFLAGS:M-O*} == ""
CFLAGS+= -O
.endif

post-install:
${INSTALL_DATA} ${WRKDIR}/aspell.ver ${STAGEDIR}${PREFIX}/etc

Expand Down

0 comments on commit 09b65d6

Please sign in to comment.