<commit_before>include ../../Library/Configure.mk

PrepRequires = $(BinDir)/lunzip # lunzip

Title=		GNU ed
Name=		ed
Version=	1.16
Site=		https://www.gnu.org/software/ed/
Source=		https://ftp.gnu.org/gnu/ed/$(Name)-$(Version).tar.lz
License=	GPLv3

ConfigureExtra += CFLAGS="$(CFlags)" LDFLAGS="$(LdFLags)"

define after_install_hook
rm -f $(DestDir)$(InfoDir)/dir
cd $(DestDir)$(BinDir) && ln -sf ed gnued
cd $(DestDir)$(InfoDir) && ln -sf ed.info gnued.info
cd $(DestDir)$(ManDir)/man1 && ln -sf ed.1 gnued.1
endef

define test_hook
$(BinDir)/ed --version | grep $(Version)
endef<commit_msg>ed: update to version 1.18<commit_after>include ../../Library/Configure.mk

PrepRequires = $(BinDir)/lunzip # lunzip

Title=		GNU ed
Name=		ed
Version=	1.18
Site=		https://www.gnu.org/software/ed/
Source=		https://ftp.gnu.org/gnu/ed/$(Name)-$(Version).tar.lz
License=	GPLv2

ConfigureExtra += CFLAGS="$(CFlags)" LDFLAGS="$(LdFLags)"

define after_install_hook
rm -f $(DestDir)$(InfoDir)/dir
cd $(DestDir)$(BinDir) && ln -sf ed gnued
cd $(DestDir)$(InfoDir) && ln -sf ed.info gnued.info
cd $(DestDir)$(ManDir)/man1 && ln -sf ed.1 gnued.1
endef

define test_hook
$(BinDir)/ed --version | grep $(Version)
endef
{'fraction_non_alphanumeric': 0.18984179850124897, 'fraction_numerical': 0.014154870940882597, 'mean_word_length': 4.463636363636364, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '62799', 'n_tokens_mistral': 504, 'n_tokens_neox': 469, 'n_words': 107}