pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/alex Build and install the documentation



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7f19ed433cef
branches:  trunk
changeset: 450855:7f19ed433cef
user:      pho <pho%pkgsrc.org@localhost>
date:      Fri Apr 23 04:35:50 2021 +0000

description:
Build and install the documentation

diffstat:

 devel/alex/Makefile |  20 +++++++++++++++-----
 devel/alex/PLIST    |  37 +++++++++++++++++++++++++++++++++++++
 2 files changed, 52 insertions(+), 5 deletions(-)

diffs (81 lines):

diff -r 8a515cc7b655 -r 7f19ed433cef devel/alex/Makefile
--- a/devel/alex/Makefile       Fri Apr 23 03:59:26 2021 +0000
+++ b/devel/alex/Makefile       Fri Apr 23 04:35:50 2021 +0000
@@ -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 @@
 COMMENT=       Tool for generating lexical analysers in Haskell
 LICENSE=       modified-bsd
 
-USE_TOOLS+=    autoconf
+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
 
-INSTALLATION_DIRS+=    ${PKGMANDIR}/man1
-
+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 -r 8a515cc7b655 -r 7f19ed433cef devel/alex/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/alex/PLIST  Fri Apr 23 04:35:50 2021 +0000
@@ -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



Home | Main Index | Thread Index | Old Index