pkgsrc-WIP-changes archive

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

new package, lisp flavoured erlang



Module Name:	pkgsrc-wip
Committed By:	Matthew Sporleder <msporleder%gmail.com@localhost>
Pushed By:	mspo
Date:		Wed Mar 22 21:06:38 2017 -0400
Changeset:	15a7269832bd18e03a97577a6b14e3a49dad076d

Added Files:
	lfe/DESCR
	lfe/Makefile
	lfe/PLIST
	lfe/distinfo
	lfe/patches/patch-Makefile

Log Message:
new package, lisp flavoured erlang

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=15a7269832bd18e03a97577a6b14e3a49dad076d

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

diffstat:
 lfe/DESCR                  |  4 ++++
 lfe/Makefile               | 31 ++++++++++++++++++++++++++++
 lfe/PLIST                  | 51 ++++++++++++++++++++++++++++++++++++++++++++++
 lfe/distinfo               |  7 +++++++
 lfe/patches/patch-Makefile | 47 ++++++++++++++++++++++++++++++++++++++++++
 5 files changed, 140 insertions(+)

diffs:
diff --git a/lfe/DESCR b/lfe/DESCR
new file mode 100644
index 0000000000..6b35d50e68
--- /dev/null
+++ b/lfe/DESCR
@@ -0,0 +1,4 @@
+Lisp Flavoured Erlang (LFE)
+LFE, Lisp Flavoured Erlang, is a lisp syntax front-end to the Erlang compiler.
+Code produced with it is compatible with "normal" Erlang code.
+An LFE evaluator and shell is also included.
diff --git a/lfe/Makefile b/lfe/Makefile
new file mode 100644
index 0000000000..dd2660d8ec
--- /dev/null
+++ b/lfe/Makefile
@@ -0,0 +1,31 @@
+# $NetBSD$
+
+GITHUB_PROJECT=	lfe
+DISTNAME=	lfe-1.2.1
+CATEGORIES=	wip
+MASTER_SITES=	${MASTER_SITE_GITHUB:=rvirding/}
+EXTRACT_SUFX=	.zip
+DIST_SUBDIR=	${GITHUB_PROJECT}
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	https://github.com/rvirding/lfe/
+COMMENT=	lisp flavoured erlang
+USE_TOOLS+=	gmake
+MAKE_ENV+=	MANINSTDIR=${DESTDIR}/${PREFIX}/${PKGMANDIR}
+MAKE_ENV+=	DESTBINDIR=${DESTDIR}/${PREFIX}/bin/
+
+SUBST_CLASSES+=			lfe
+SUBST_STAGE.lfe=		post-patch
+SUBST_MESSAGE.lfe=		"fixing path to lfe"
+SUBST_SED.lfe=			-e "s,/usr/bin/env lfe,${PREFIX}/bin/lfe,g"
+SUBST_FILES.lfe=		bin/lfec
+SUBST_FILES.lfe+=		bin/lfedoc
+CHECK_INTERPRETER=		no
+
+NO_CONFIGURE=	yes
+BUILD_MAKE_FLAGS=	compile
+LICENSE=	apache-2.0
+
+# url2pkg-marker (please do not remove this line.)
+.include "../../lang/erlang/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/lfe/PLIST b/lfe/PLIST
new file mode 100644
index 0000000000..2ecf0aa15b
--- /dev/null
+++ b/lfe/PLIST
@@ -0,0 +1,51 @@
+@comment $NetBSD$
+bin/lfe
+bin/lfec
+bin/lfedoc
+bin/lfescript
+libexec/lfe/ebin/cl.beam
+libexec/lfe/ebin/clj.beam
+libexec/lfe/ebin/lfe.app
+libexec/lfe/ebin/lfe.beam
+libexec/lfe/ebin/lfe_bits.beam
+libexec/lfe/ebin/lfe_codegen.beam
+libexec/lfe/ebin/lfe_comp.beam
+libexec/lfe/ebin/lfe_doc.beam
+libexec/lfe/ebin/lfe_edlin_expand.beam
+libexec/lfe/ebin/lfe_env.beam
+libexec/lfe/ebin/lfe_eval.beam
+libexec/lfe/ebin/lfe_gen.beam
+libexec/lfe/ebin/lfe_init.beam
+libexec/lfe/ebin/lfe_io.beam
+libexec/lfe/ebin/lfe_io_format.beam
+libexec/lfe/ebin/lfe_io_pretty.beam
+libexec/lfe/ebin/lfe_io_write.beam
+libexec/lfe/ebin/lfe_lib.beam
+libexec/lfe/ebin/lfe_lint.beam
+libexec/lfe/ebin/lfe_macro.beam
+libexec/lfe/ebin/lfe_macro_export.beam
+libexec/lfe/ebin/lfe_macro_include.beam
+libexec/lfe/ebin/lfe_macro_record.beam
+libexec/lfe/ebin/lfe_ms.beam
+libexec/lfe/ebin/lfe_parse.beam
+libexec/lfe/ebin/lfe_pmod.beam
+libexec/lfe/ebin/lfe_qlc.beam
+libexec/lfe/ebin/lfe_scan.beam
+libexec/lfe/ebin/lfe_shell.beam
+libexec/lfe/ebin/lfe_trans.beam
+libexec/lfe/ebin/lfescript.beam
+libexec/lfe/lfe
+libexec/lfe/lfec
+libexec/lfe/lfedoc
+libexec/lfe/lfescript
+man/man1/lfe.1
+man/man1/lfescript.1
+man/man3/lfe_bits.3
+man/man3/lfe_clj.3
+man/man3/lfe_comp.3
+man/man3/lfe_doc.3
+man/man3/lfe_gen.3
+man/man3/lfe_io.3
+man/man3/lfe_lib.3
+man/man3/lfe_macro.3
+man/man7/lfe_guide.7
diff --git a/lfe/distinfo b/lfe/distinfo
new file mode 100644
index 0000000000..844fde8442
--- /dev/null
+++ b/lfe/distinfo
@@ -0,0 +1,7 @@
+$NetBSD$
+
+SHA1 (lfe/lfe-1.2.1.zip) = a3f84f38b2b0c334cb3c10b1722f9fde0309a6cb
+RMD160 (lfe/lfe-1.2.1.zip) = 9d1a80731783a0473bf173c1328179c01e2a5f0d
+SHA512 (lfe/lfe-1.2.1.zip) = 798bf35cc12be51d8417e121d081e47b1248548eb7c0bd7e97143ee39e339f2404d22149edffe87348bb8eee00f63442440a204df85f71a8d09e66cb9e2cc80c
+Size (lfe/lfe-1.2.1.zip) = 391809 bytes
+SHA1 (patch-Makefile) = 6007e1576464f97408a782bc443ab06fe8daa7b9
diff --git a/lfe/patches/patch-Makefile b/lfe/patches/patch-Makefile
new file mode 100644
index 0000000000..4fbbe0604a
--- /dev/null
+++ b/lfe/patches/patch-Makefile
@@ -0,0 +1,47 @@
+$NetBSD$
+
+--- Makefile.orig	2016-11-23 23:50:28.000000000 +0000
++++ Makefile
+@@ -59,7 +59,8 @@ EMACSRCS = $(notdir $(wildcard $(EMACSDI
+ ELCS = $(EMACSRCS:.el=.elc)
+ 
+ ## Where we install links to the LFE binaries.
+-DESTBINDIR ?= $(PREFIX)$(shell dirname `which erl` 2> /dev/null || echo "/usr/local/bin" )
++#DESTBINDIR ?= $(PREFIX)$(shell dirname `which erl` 2> /dev/null || echo "/usr/local/bin" )
++DESTBINDIR ?= $(DESTDIR)$(PREFIX)/bin
+ 
+ .SUFFIXES: .erl .beam
+ 
+@@ -109,11 +110,16 @@ comp_opts.mk:
+ 
+ -include comp_opts.mk
+ 
+-install: install-man
+-	ln -sf `pwd`/bin/lfe $(DESTBINDIR)
+-	ln -sf `pwd`/bin/lfec $(DESTBINDIR)
+-	ln -sf `pwd`/bin/lfedoc $(DESTBINDIR)
+-	ln -sf `pwd`/bin/lfescript $(DESTBINDIR)
++install: install-ebin install-man
++	install -d $(DESTBINDIR)
++	install -m0755 ./bin/lfe $(DESTDIR)$(PREFIX)/libexec/lfe/lfe
++	install -ls $(DESTDIR)$(PREFIX)/libexec/lfe/lfe $(DESTBINDIR)/lfe
++	install -m0755 ./bin/lfec $(DESTDIR)$(PREFIX)/libexec/lfe/lfec
++	install -ls $(DESTDIR)$(PREFIX)/libexec/lfe/lfec $(DESTBINDIR)/lfec
++	install -m0755 ./bin/lfedoc $(DESTDIR)$(PREFIX)/libexec/lfe/lfedoc
++	install -ls $(DESTDIR)$(PREFIX)/libexec/lfe/lfedoc $(DESTBINDIR)/lfedoc
++	install -m0755 ./bin/lfescript $(DESTDIR)$(PREFIX)/libexec/lfe/lfescript
++	install -ls $(DESTDIR)$(PREFIX)/libexec/lfe/lfescript $(DESTBINDIR)/lfescript
+ 
+ clean:
+ 	rm -rf $(EBINDIR)/*.beam erl_crash.dump comp_opts.mk
+@@ -244,6 +250,10 @@ install-man:
+ 	cp $(MANDIR)/*.3 $(MANINSTDIR)/man3/
+ 	cp $(MANDIR)/*.7 $(MANINSTDIR)/man7/
+ 
++install-ebin:
++	@mkdir -p $(DESTDIR)$(PREFIX)/libexec/lfe
++	cp -r $(EBINDIR) $(DESTDIR)$(PREFIX)/libexec/lfe/
++
+ # Targets for working with Docker
+ docker-build:
+ 	docker build -t lfex/lfe:latest .


Home | Main Index | Thread Index | Old Index