git: 6c0e6394499f - main - devel/peg.el: Add new port
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 23 May 2024 06:44:23 UTC
The branch main has been updated by yasu: URL: https://cgit.FreeBSD.org/ports/commit/?id=6c0e6394499ff4ea0ab9e59e9300514646145009 commit 6c0e6394499ff4ea0ab9e59e9300514646145009 Author: Yasuhiro Kimura <yasu@FreeBSD.org> AuthorDate: 2024-05-23 06:42:35 +0000 Commit: Yasuhiro Kimura <yasu@FreeBSD.org> CommitDate: 2024-05-23 06:42:35 +0000 devel/peg.el: Add new port Add devel/peg.el, parsing expression grammars in Emacs lisp. --- devel/Makefile | 1 + devel/peg.el/Makefile | 29 +++++++++++++++++++++++++++++ devel/peg.el/distinfo | 3 +++ devel/peg.el/pkg-descr | 8 ++++++++ 4 files changed, 41 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index d16a460dc751..57bb3ed7ddc1 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -4150,6 +4150,7 @@ SUBDIR += pecl-yac SUBDIR += pecl-yaconf SUBDIR += pecl-zookeeper + SUBDIR += peg.el SUBDIR += pegtl SUBDIR += pep8 SUBDIR += performance diff --git a/devel/peg.el/Makefile b/devel/peg.el/Makefile new file mode 100644 index 000000000000..3ee0122a33c7 --- /dev/null +++ b/devel/peg.el/Makefile @@ -0,0 +1,29 @@ +PORTNAME= peg.el +DISTVERSION= 1.0.1 +CATEGORIES= devel elisp +MASTER_SITES= https://elpa.gnu.org/packages/ +PKGNAMESUFFIX= ${EMACS_PKGNAMESUFFIX} +DISTNAME= peg-${DISTVERSION} + +MAINTAINER= yasu@FreeBSD.org +COMMENT= Parsing expression grammars in Emacs lisp +WWW= https://elpa.gnu.org/packages/peg.html + +LICENSE= GPLv3+ + +USES= emacs tar + +NO_ARCH= yes +PLIST_FILES= ${EMACS_VERSION_SITE_LISPDIR}/peg.el \ + ${EMACS_VERSION_SITE_LISPDIR}/peg.elc + +do-build: + (cd ${WRKSRC} \ + && ${EMACS_CMD} -Q -batch -L . -f batch-byte-compile peg.el) + +do-install: + ${MKDIR} ${STAGEDIR}${PREFIX}/${EMACS_VERSION_SITE_LISPDIR} + (cd ${WRKSRC} && ${INSTALL_DATA} peg.el* \ + ${STAGEDIR}${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}) + +.include <bsd.port.mk> diff --git a/devel/peg.el/distinfo b/devel/peg.el/distinfo new file mode 100644 index 000000000000..dcedf6ce7e52 --- /dev/null +++ b/devel/peg.el/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1716440244 +SHA256 (peg-1.0.1.tar) = 435fcd30d8e0043d030a31a19a6f1322a4637d3f97eae69bb721d8649d299492 +SIZE (peg-1.0.1.tar) = 51200 diff --git a/devel/peg.el/pkg-descr b/devel/peg.el/pkg-descr new file mode 100644 index 000000000000..17203a845900 --- /dev/null +++ b/devel/peg.el/pkg-descr @@ -0,0 +1,8 @@ +This package implements Parsing Expression Grammars for Emacs Lisp. + +Parsing Expression Grammars (PEG) are a formalism in the spirit of +Context Free Grammars (CFG) with some simplifications which makes the +implementation of PEGs as recursive descent parsers particularly +simple and easy to understand [Ford, Baker]. + +PEGs are more expressive than regexps and potentially easier to use.