Skip to content

Commit

Permalink
databases/gnats4: Remove USES=makeinfo
Browse files Browse the repository at this point in the history
- Distfile ships with info files and no need to regenerate these files
- Pet portclippy
- Utilize OPTIONSNG where applicable
  • Loading branch information
5u623l20 committed Oct 21, 2023
1 parent f46f2e0 commit b3ffd0a
Showing 1 changed file with 27 additions and 27 deletions.
54 changes: 27 additions & 27 deletions databases/gnats4/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,19 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= GNATS, the GNU Problem Report Management System
WWW= https://www.gnu.org/software/gnats/

LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING

BROKEN_mips= Does not build: error: conflicting types for yy_scan_string
BROKEN_mips64= Does not build: error: conflicting types for yy_scan_string
BROKEN_FreeBSD_12_powerpc64= fails to build on powerpc64 elfv1: conflicting types for yy_scan_string

GNU_CONFIGURE= yes
USES= cpe gmake makeinfo
USE_GCC= yes
USERS= gnats

USES= cpe gettext-runtime gmake
CPE_VENDOR= gnu
USE_GCC= yes

PKGMESSAGE= ${WRKDIR}/pkg-message
PKGINSTALL= ${WRKDIR}/pkg-install
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --sharedstatedir=${GNATSDBDIR}

.ifdef WANT_FREEFALL_CFG
EXTRA_PATCHES+= ${PATCHDIR}/extrapatch-*
Expand All @@ -32,10 +32,6 @@ WITH_ORGANIZATION= FreeBSD
WITH_GNATSD_SERVICE= support
.endif

GNATSDBDIR?= /var/db/gnats

CONFIGURE_ARGS+= --sharedstatedir=${GNATSDBDIR}

.ifdef WITH_SUBMITTER_ID
CONFIGURE_ARGS+= --with-submitter=${WITH_SUBMITTER_ID}
.endif
Expand All @@ -48,30 +44,31 @@ CONFIGURE_ARGS+= --with-organization=${WITH_ORGANIZATION:Q}
CONFIGURE_ARGS+= --with-gnats-service=${WITH_GNATSD_SERVICE}
.endif

PLIST_SUB= GNATSDBDIR=${GNATSDBDIR}
USERS= gnats

PKGINSTALL= ${WRKDIR}/pkg-install
PKGMESSAGE= ${WRKDIR}/pkg-message
INFO= gnats-faq gnats
PLIST_SUB= GNATSDBDIR=${GNATSDBDIR}
PORTDOCS= NEWS UPGRADING

OPTIONS_DEFINE= DOCS EMACS SERVER
OPTIONS_DEFAULT=SERVER
OPTIONS_SUB= yes
EMACS_USES= emacs

EMACS_DESC= Install Emacs Lisp support file
EMACS_VARS= EMACS_NO_DEPENDS=yes
SERVER_DESC= Install the gnats server too

.include <bsd.port.options.mk>
EMACS_USES= emacs
EMACS_CONFIGURE_ON=--with-lispdir=${LOCALBASE}/${EMACS_SITE_LISPDIR}
EMACS_PLIST_SUB_OFF= EMACS_SITE_LISPDIR="@comment "
EMACS_VARS= EMACS_NO_DEPENDS=yes
SERVER_ALL_TARGET_OFF= all-tools
SERVER_INSTALL_TARGET_OFF= install-tools

.if ! ${PORT_OPTIONS:MSERVER}
ALL_TARGET= all-tools
INSTALL_TARGET= install-tools
.endif
GNATSDBDIR?= /var/db/gnats

.if ${PORT_OPTIONS:MEMACS}
CONFIGURE_ARGS+=--with-lispdir=${LOCALBASE}/${EMACS_SITE_LISPDIR}
.else
PLIST_SUB+= EMACS_SITE_LISPDIR="@comment "
.endif
.include <bsd.port.options.mk>

pre-everything::
.if !defined(PACKAGE_BUILDING) && !defined(WANT_FREEFALL_CFG)
Expand All @@ -87,6 +84,9 @@ pre-everything::
@${ECHO}
.endif

post-patch:
@${REINPLACE_CMD} -e 's|info man|man|g' ${WRKSRC}/doc/Makefile.in

pre-configure:
@${ECHO_CMD} 'RELEASE_TAG="\`uname -srm\`"' > ${WRKSRC}/release-info

Expand All @@ -100,13 +100,13 @@ post-build:
pre-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/libexec/gnats

post-install:
.if ${PORT_OPTIONS:MSERVER}
post-install-SERVER-on:
${MV} ${STAGEDIR}${ETCDIR}/databases.default \
${STAGEDIR}${ETCDIR}/databases.sample
${MV} ${STAGEDIR}${ETCDIR}/gnatsd.host_access.default \
${STAGEDIR}${ETCDIR}/gnatsd.host_access.sample
.endif

post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR})

Expand Down

0 comments on commit b3ffd0a

Please sign in to comment.