diff options
author | wxs <wxs@FreeBSD.org> | 2010-01-14 11:16:39 +0800 |
---|---|---|
committer | wxs <wxs@FreeBSD.org> | 2010-01-14 11:16:39 +0800 |
commit | 804709a125846d537925dd802843e36142cf7f93 (patch) | |
tree | fb89bb5892b94f6547c605752e2852aecf08a486 /shells/fish/Makefile | |
parent | 8c072c8af54c8274742cf5bf55f5764155bf8a07 (diff) | |
download | freebsd-ports-gnome-804709a125846d537925dd802843e36142cf7f93.tar.gz freebsd-ports-gnome-804709a125846d537925dd802843e36142cf7f93.tar.zst freebsd-ports-gnome-804709a125846d537925dd802843e36142cf7f93.zip |
- Remote NLS support (been broken a long time)
- Use xsel from ports, bundled version is out-dated
- Make manual building optional
PR: ports/142346
Submitted by: Rob Farmer <rfarmer@predatorlabs.net> (maintainer)
Diffstat (limited to 'shells/fish/Makefile')
-rw-r--r-- | shells/fish/Makefile | 39 |
1 files changed, 20 insertions, 19 deletions
diff --git a/shells/fish/Makefile b/shells/fish/Makefile index 2f5e1671722f..c87778bf0787 100644 --- a/shells/fish/Makefile +++ b/shells/fish/Makefile @@ -7,7 +7,7 @@ PORTNAME= fish PORTVERSION= 1.23.1 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= shells MASTER_SITES= SF @@ -19,14 +19,14 @@ USE_ICONV= yes USE_GMAKE= yes GNU_CONFIGURE= yes -BUILD_DEPENDS+= doxygen:${PORTSDIR}/devel/doxygen +USE_GETTEXT= yes CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" LIBS="${LDFLAGS}" \ LDFLAGS="${LDFLAGS}" -OPTIONS= NLS "Native language support" on \ - XSEL "Build with xsel" on +OPTIONS= XSEL "Build with xsel" on \ + DOXYGEN "Build docs with doxygen" on MAN1= alias.1 and.1 begin.1 bg.1 bind.1 block.1 \ break.1 breakpoint.1 builtin.1 case.1 cd.1 \ @@ -43,27 +43,28 @@ MAN1= alias.1 and.1 begin.1 bg.1 bind.1 block.1 \ .include <bsd.port.pre.mk> -.if !defined(WITHOUT_NLS) -USE_GETTEXT= yes -PLIST_SUB+= NLS="" -.else -CONFIGURE_ARGS+= --without-gettext -PLIST_SUB+= NLS="@comment " -.endif +# Don't use the bundled xsel +CONFIGURE_ARGS+= --without-xsel .if !defined(WITHOUT_XSEL) -CONFLICTS= xsel-[0-9]* -PLIST_SUB+= XSEL="" -MAN1+= xsel.1 +RUN_DEPENDS= xsel:${PORTSDIR}/x11/xsel-conrad +.endif + +.if defined(WITHOUT_DOXYGEN) || defined(NOPORTDOCS) +PLIST_SUB+= DOCS="@comment " .else -CONFIGURE_ARGS+= --without-xsel -PLIST_SUB+= XSEL="@comment " +BUILD_DEPENDS+= doxygen:${PORTSDIR}/devel/doxygen +PLIST_SUB+= DOCS="" .endif -post-install: -.if !defined(WITHOUT_XSEL) - ${MV} ${PREFIX}/man/man1/xsel.1x ${PREFIX}/man/man1/xsel.1 +post-patch: +.if defined(WITHOUT_DOXYGEN) || defined(NOPORTDOCS) + @${REINPLACE_CMD} -e 's|$(PROGRAMS) user_doc|$(PROGRAMS)|' \ + ${WRKSRC}/Makefile.in + @${REINPLACE_CMD} -e 589,593d ${WRKSRC}/Makefile.in .endif + +post-install: ${CP} ${DATADIR}/man/*.1 ${PREFIX}/man/man1/ ${RM} -rf ${DATADIR}/man if ${GREP} -q '${PREFIX}/bin/${PORTNAME}' /etc/shells; then \ |