pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel/alex



Module Name:    pkgsrc
Committed By:   pho
Date:           Fri Apr 23 04:35:50 UTC 2021

Modified Files:
        pkgsrc/devel/alex: Makefile
Added Files:
        pkgsrc/devel/alex: PLIST

Log Message:
Build and install the documentation


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 pkgsrc/devel/alex/Makefile
cvs rdiff -u -r0 -r1.3 pkgsrc/devel/alex/PLIST

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/alex/Makefile
diff -u pkgsrc/devel/alex/Makefile:1.6 pkgsrc/devel/alex/Makefile:1.7
--- pkgsrc/devel/alex/Makefile:1.6      Fri Apr 23 00:35:13 2021
+++ pkgsrc/devel/alex/Makefile  Fri Apr 23 04:35:50 2021
@@ -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@localhost
 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"

Added files:

Index: pkgsrc/devel/alex/PLIST
diff -u /dev/null pkgsrc/devel/alex/PLIST:1.3
--- /dev/null   Fri Apr 23 04:35:50 2021
+++ pkgsrc/devel/alex/PLIST     Fri Apr 23 04:35:50 2021
@@ -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