Skip to content

Commit

Permalink
devel/alex: Update to 3.4.0.0
Browse files Browse the repository at this point in the history
Changes in 3.4.0.0 [Andreas Abel, 2023-06-20]
* New wrappers to lex strict Text: strict-text, posn-strict-text,
  monad-strict-text and monadUserState-strict-text (PR #240). These
  complement the existing wrappers for String and ByteString.
* Tested with GHC 7.0 - 9.6.2.

Changes in 3.3.0.0 [Andreas Abel, 2023-05-25]
* Add an Ord instance to AlexPosn (Issue #233). This breaks developments
  that define their own (orphan) instance Ord AlexPosn. If this is the
  derived stock instance, the fix is to delete the orphan instance and
  require build-tool-depends: alex:alex >= 3.3.0.0.
* Switch to Haskell PVP versioning with four digits.
* Tested with GHC 7.0 - 9.6.1.

Change in 3.2.7.4 [Andreas Abel, 2023-05-02]
* The user-supplied "epilogue" Haskell code is now put last in the
  generated file. This enables use of Template Haskell in the
  epilogue. (Issue #125.)
* Tested with GHC 7.0 - 9.6.1.

Change in 3.2.7.3 [Andreas Abel, 2023-04-14]
* Amend last change (3.2.7.2) so that Alex-generated code does not need
  LANGUAGE PatternGuards.
* Tested with GHC 7.0 - 9.6.1.

Change in 3.2.7.2 [Andreas Abel, 2023-04-03]
* Fix bug with out-of-bound access to alex_check array. (Surfaced with
  GHC's JS backend, fixed by Sylvain Henry in PR #223.)
* Tested with GHC 7.0 - 9.6.1.
  • Loading branch information
depressed-pho committed Oct 26, 2023
1 parent 7ba30a4 commit 13c9209
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 48 deletions.
26 changes: 2 additions & 24 deletions devel/alex/Makefile
Original file line number Diff line number Diff line change
@@ -1,34 +1,12 @@
# $NetBSD: Makefile,v 1.15 2023/10/09 04:54:04 pho Exp $
# $NetBSD: Makefile,v 1.16 2023/10/26 13:07:44 pho Exp $

DISTNAME= alex-3.2.7.1
DISTNAME= alex-3.4.0.0
PKGNAME= ${DISTNAME}
PKGREVISION= 4
CATEGORIES= devel

MAINTAINER= esg@sdf.lonestar.org
COMMENT= Tool for generating lexical analysers in Haskell
LICENSE= modified-bsd

USE_TOOLS+= autoconf gmake
TOOL_DEPENDS+= docbook-xsl-[0-9]*:../../textproc/docbook-xsl
TOOL_DEPENDS+= libxml2-[0-9]*:../../textproc/libxml2
TOOL_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:
${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"
21 changes: 1 addition & 20 deletions devel/alex/PLIST
Original file line number Diff line number Diff line change
@@ -1,24 +1,5 @@
@comment $NetBSD: PLIST,v 1.4 2022/02/11 09:47:44 pho Exp $
@comment $NetBSD: PLIST,v 1.5 2023/10/26 13:07:44 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.hs
share/${HS_PLATFORM}/${PKGNAME}/AlexWrappers.hs
8 changes: 4 additions & 4 deletions devel/alex/distinfo
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
$NetBSD: distinfo,v 1.8 2022/02/11 09:47:44 pho Exp $
$NetBSD: distinfo,v 1.9 2023/10/26 13:07:44 pho Exp $

BLAKE2s (alex-3.2.7.1.tar.gz) = cd6f948f68df789358b38e72d11c315923c29c1b183f53fd01cf88f4ac253401
SHA512 (alex-3.2.7.1.tar.gz) = f8ff12de874b905449fdda0d704f9e4ac30fa3e60e965f82d7bb2d6e3974cf926f85134d32878c48faf0ec4a002ea7240cf6696e1cbcad25a0eebb9d1850cc07
Size (alex-3.2.7.1.tar.gz) = 108229 bytes
BLAKE2s (alex-3.4.0.0.tar.gz) = 439e713d03056744d625c3d7c31681e120ae17243dfbb83ebddbf8c1ca767d93
SHA512 (alex-3.4.0.0.tar.gz) = 4e35238c4e9a383d148f8c8535f7cabe2b6735fb242e5819aafb4695299134342baa95817cbba49b05f6ccc23ee978fa1b7c30a2aa162b53482f5c9feab55fb6
Size (alex-3.4.0.0.tar.gz) = 86841 bytes

0 comments on commit 13c9209

Please sign in to comment.