diff options
author | pho <pho@pkgsrc.org> | 2021-04-23 04:35:50 +0000 |
---|---|---|
committer | pho <pho@pkgsrc.org> | 2021-04-23 04:35:50 +0000 |
commit | 8dadd83884c389ea7330f6e7f2be253a08e99bea (patch) | |
tree | 1d94aafc550f9a4e7db921ebc9a8697635e789d2 | |
parent | 9e40c7b3b88ace0842e69f3af160cba77d80bc22 (diff) | |
download | pkgsrc-8dadd83884c389ea7330f6e7f2be253a08e99bea.tar.gz |
Build and install the documentation
-rw-r--r-- | devel/alex/Makefile | 20 | ||||
-rw-r--r-- | devel/alex/PLIST | 37 |
2 files changed, 52 insertions, 5 deletions
diff --git a/devel/alex/Makefile b/devel/alex/Makefile index 88136697112..7ef8190f47a 100644 --- a/devel/alex/Makefile +++ b/devel/alex/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.6 2021/04/23 00:35:13 pho Exp $ +# $NetBSD: Makefile,v 1.7 2021/04/23 04:35:50 pho Exp $ DISTNAME= alex-3.2.6 PKGNAME= ${DISTNAME} @@ -8,16 +8,26 @@ MAINTAINER= esg@sdf.lonestar.org COMMENT= Tool for generating lexical analysers in Haskell LICENSE= modified-bsd -USE_TOOLS+= autoconf - -INSTALLATION_DIRS+= ${PKGMANDIR}/man1 +USE_TOOLS+= autoconf gmake +BUILD_DEPENDS+= docbook-xsl-[0-9]*:../../textproc/docbook-xsl +BUILD_DEPENDS+= libxml2-[0-9]*:../../textproc/libxml2 +BUILD_DEPENDS+= libxslt-[0-9]*:../../textproc/libxslt +CONFIGURE_ENV+= fp_cv_dir_docbook_xsl=${PREFIX}/share/xsl/docbook +CONFIGURE_ENV+= ac_cv_path_DbLatexCmd= # empty pre-configure: - cd ${WRKSRC}/doc && autoconf && ${PKGSRC_SETENV} ${CONFIGURE_ENV} \ + ${RUN}cd ${WRKSRC}/doc && autoconf && ${PKGSRC_SETENV} ${CONFIGURE_ENV} \ ${CONFIG_SHELL} ${CONFIG_SHELL_FLAGS} ./configure +post-build: + ${RUN}cd ${WRKSRC}/doc && ${GMAKE} + +INSTALLATION_DIRS+= ${PKGMANDIR}/man1 ${PREFIX}/share/doc/${PKGBASE} post-install: ${INSTALL_MAN} ${WRKSRC}/doc/alex.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 + for f in ${WRKSRC}/doc/alex/*; do \ + ${INSTALL_DATA} "$$f" ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}/; \ + done .include "../../mk/haskell.mk" .include "../../mk/bsd.pkg.mk" diff --git a/devel/alex/PLIST b/devel/alex/PLIST new file mode 100644 index 00000000000..21a8831e1a5 --- /dev/null +++ b/devel/alex/PLIST @@ -0,0 +1,37 @@ +@comment $NetBSD: PLIST,v 1.3 2021/04/23 04:35:50 pho Exp $ +bin/alex +man/man1/alex.1 +share/doc/alex/about.html +share/doc/alex/alex-files.html +share/doc/alex/api.html +share/doc/alex/basic-api.html +share/doc/alex/bug-reports.html +share/doc/alex/charsets.html +share/doc/alex/fptools.css +share/doc/alex/index.html +share/doc/alex/introduction.html +share/doc/alex/invoking.html +share/doc/alex/license.html +share/doc/alex/regexps.html +share/doc/alex/relnotes-20.html +share/doc/alex/relnotes-210.html +share/doc/alex/relnotes-22.html +share/doc/alex/syntax.html +share/doc/alex/types.html +share/doc/alex/wrappers.html +share/doc/${HS_PLATFORM}/${PKGNAME}/LICENSE +share/${HS_PLATFORM}/${PKGNAME}/AlexTemplate +share/${HS_PLATFORM}/${PKGNAME}/AlexTemplate-debug +share/${HS_PLATFORM}/${PKGNAME}/AlexTemplate-ghc +share/${HS_PLATFORM}/${PKGNAME}/AlexTemplate-ghc-debug +share/${HS_PLATFORM}/${PKGNAME}/AlexTemplate-ghc-nopred +share/${HS_PLATFORM}/${PKGNAME}/AlexWrapper-basic +share/${HS_PLATFORM}/${PKGNAME}/AlexWrapper-basic-bytestring +share/${HS_PLATFORM}/${PKGNAME}/AlexWrapper-gscan +share/${HS_PLATFORM}/${PKGNAME}/AlexWrapper-monad +share/${HS_PLATFORM}/${PKGNAME}/AlexWrapper-monad-bytestring +share/${HS_PLATFORM}/${PKGNAME}/AlexWrapper-monadUserState +share/${HS_PLATFORM}/${PKGNAME}/AlexWrapper-monadUserState-bytestring +share/${HS_PLATFORM}/${PKGNAME}/AlexWrapper-posn +share/${HS_PLATFORM}/${PKGNAME}/AlexWrapper-posn-bytestring +share/${HS_PLATFORM}/${PKGNAME}/AlexWrapper-strict-bytestring |