<commit_before># Powerful, light-weight programming language
# http://www.lua.org/
# MIT

include ../../Library/Rules.mk

TITLE=		Lua $(VERSION)
NAME=		lua
VERSION=	5.2.0
REVISION=	0
URL=		http://www.lua.org/work/
SOURCE=		$(NAME)-$(VERSION)-alpha.tar.gz

README=		$(BUILDDIR)/README
LICENSE=	$(PORTDIR)/COPYRIGHT

prep: retrieve
	tar zxf $(SOURCE)
	mv lua-$(VERSION)-alpha $(NAME)-$(VERSION)
	touch prep

build: prep
	cd $(BUILDDIR) ; $(make) CFLAGS="$(CFLAGS)" MYLDFLAGS="$(LDFLAGS)" macosx
	touch build

install: build
	cd $(BUILDDIR) ; \
	make INSTALL_TOP=$(INSTALLDIR)/usr/local INSTALL_MAN=$(INSTALLDIR)/usr/local/share/man/man1 install
	install -d $(INSTALLDOCDIR)
	install -m 644 $(PORTDIR)/COPYRIGHT $(INSTALLDOCDIR)
	install -m 644 $(BUILDDIR)/README $(INSTALLDOCDIR)
	install -m 644 $(BUILDDIR)/doc/* $(INSTALLDOCDIR)
	rm -f $(INSTALLDOCDIR)/*.1
	strip $(INSTALLDIR)/usr/local/bin/*
	strip -x $(INSTALLDIR)/usr/local/lib/*.a
	touch install

test: install
	for x in $(wildcard $(INSTALLDIR)/usr/local/bin/*) ; do \
		lipo $$x -verify_arch i386 x86_64 ; done
	for x in $(wildcard $(INSTALLDIR)/usr/local/lib/*.a) ; do \
		lipo $$x -verify_arch i386 x86_64 ; done
	cd $(BUILDDIR) ; make test
	touch test<commit_msg>lua: build again with readline support. Added test case for readline<commit_after># Powerful, light-weight programming language
# http://www.lua.org/
# MIT

include ../../Library/Rules.mk

TITLE=		Lua $(VERSION)
NAME=		lua
VERSION=	5.2.0
REVISION=	0
URL=		http://www.lua.org/work/
SOURCE=		$(NAME)-$(VERSION)-alpha.tar.gz

README=		$(BUILDDIR)/README
LICENSE=	$(PORTDIR)/COPYRIGHT

prep: retrieve
	tar zxf $(SOURCE)
	mv lua-$(VERSION)-alpha $(NAME)-$(VERSION)
	touch prep

build: prep
	cd $(BUILDDIR) ; \
	$(make)	CFLAGS="$(CFLAGS) -DLUA_USE_READLINE" \
		MYLDFLAGS="$(LDFLAGS)" macosx
	touch build

install: build
	cd $(BUILDDIR) ; \
	make INSTALL_TOP=$(INSTALLDIR)/usr/local INSTALL_MAN=$(INSTALLDIR)/usr/local/share/man/man1 install
	install -d $(INSTALLDOCDIR)
	install -m 644 $(PORTDIR)/COPYRIGHT $(INSTALLDOCDIR)
	install -m 644 $(BUILDDIR)/README $(INSTALLDOCDIR)
	install -m 644 $(BUILDDIR)/doc/* $(INSTALLDOCDIR)
	rm -f $(INSTALLDOCDIR)/*.1
	strip $(INSTALLDIR)/usr/local/bin/*
	strip -x $(INSTALLDIR)/usr/local/lib/*.a
	touch install

test: install
	for x in $(wildcard $(INSTALLDIR)/usr/local/bin/*) ; do \
		lipo $$x -verify_arch i386 x86_64 ; done
	for x in $(wildcard $(INSTALLDIR)/usr/local/lib/*.a) ; do \
		lipo $$x -verify_arch i386 x86_64 ; done
	otool -L $(INSTALLDIR)/usr/local/bin/lua | grep libedit
	cd $(BUILDDIR) ; make test
	touch test
{'fraction_non_alphanumeric': 0.16950464396284828, 'fraction_numerical': 0.02244582043343653, 'mean_word_length': 4.180360721442886, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '1730901', 'n_tokens_mistral': 1056, 'n_tokens_neox': 985, 'n_words': 243}