summaryrefslogtreecommitdiff
path: root/lang/f2c
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2013-09-12 11:26:30 +0000
committerjperkin <jperkin@pkgsrc.org>2013-09-12 11:26:30 +0000
commite32d1d789a9b142727c871189aa522f39ffa4eb7 (patch)
tree7063eb0461fd746b720d5ecd4e67f5b975e837ad /lang/f2c
parentd4f49ce51d092dde9e7d2cddfcd6aaeb0dc7e955 (diff)
downloadpkgsrc-e32d1d789a9b142727c871189aa522f39ffa4eb7.tar.gz
Restore the catman page installation. This reverts the fix for PR#42533,
and ensures that the manual pages can now be read on SunOS, however it should not affect HP-UX support as this package now pulls in nroff as a tool to correctly generate the catman page. Bump PKGREVISION.
Diffstat (limited to 'lang/f2c')
-rw-r--r--lang/f2c/Makefile12
-rw-r--r--lang/f2c/PLIST3
-rw-r--r--lang/f2c/files/f2c.mk1
3 files changed, 12 insertions, 4 deletions
diff --git a/lang/f2c/Makefile b/lang/f2c/Makefile
index e39ce635dec..121ac35f360 100644
--- a/lang/f2c/Makefile
+++ b/lang/f2c/Makefile
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.63 2013/04/06 11:39:25 rodent Exp $
+# $NetBSD: Makefile,v 1.64 2013/09/12 11:26:30 jperkin Exp $
DISTNAME= f2c-20100903 # see notes below
+PKGREVISION= 1
CATEGORIES= lang
MASTER_SITES= ${MASTER_SITE_LOCAL}
@@ -14,8 +15,8 @@ WRKSRC= ${WRKDIR}/f2c
BUILD_DIRS= src
USE_BSD_MAKEFILE= yes
-MAKE_ENV+= MKCATPAGES=no
-INSTALLATION_DIRS= bin share/doc/f2c ${PKGMANDIR}/man1
+USE_TOOLS= nroff
+INSTALLATION_DIRS= bin share/doc/f2c ${PKGMANDIR}/cat1 ${PKGMANDIR}/man1
.include "../../mk/bsd.prefs.mk"
@@ -44,6 +45,11 @@ do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/f2c ${DESTDIR}${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/f2c-f77 ${DESTDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/f2c.1t ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/f2c.1
+.if defined(CATMAN_SECTION_SUFFIX) && !empty(CATMAN_SECTION_SUFFIX:M[Yy][Ee][Ss])
+ ${INSTALL_DATA} ${WRKSRC}/f2c.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/cat1/f2c.1
+.else
+ ${INSTALL_DATA} ${WRKSRC}/f2c.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/cat1/f2c.0
+.endif
.for f in changes f2c.ps f2c.pdf
${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${PREFIX}/share/doc/f2c/${f}
.endfor
diff --git a/lang/f2c/PLIST b/lang/f2c/PLIST
index d41886a1ec0..35712437f79 100644
--- a/lang/f2c/PLIST
+++ b/lang/f2c/PLIST
@@ -1,6 +1,7 @@
-@comment $NetBSD: PLIST,v 1.9 2011/11/29 19:01:41 darcy Exp $
+@comment $NetBSD: PLIST,v 1.10 2013/09/12 11:26:30 jperkin Exp $
bin/f2c
bin/f2c-f77
+man/cat1/f2c.0
man/man1/f2c.1
share/doc/f2c/changes
share/doc/f2c/f2c.pdf
diff --git a/lang/f2c/files/f2c.mk b/lang/f2c/files/f2c.mk
index f09e5b503be..7f46a750c1b 100644
--- a/lang/f2c/files/f2c.mk
+++ b/lang/f2c/files/f2c.mk
@@ -1,6 +1,7 @@
# Makefile for f2c, a Fortran 77 to C converter
PROG= f2c
+MAN= f2c.1
SRCS= main.c init.c gram.c lex.c proc.c equiv.c data.c format.c \
expr.c exec.c intr.c io.c misc.c error.c mem.c names.c \
output.c p1output.c pread.c put.c putpcc.c vax.c formatdata.c \