1# Copyright (c) 2013-2016, Loïc Hoguin <essen@ninenines.eu>
2#
3# Permission to use, copy, modify, and/or distribute this software for any
4# purpose with or without fee is hereby granted, provided that the above
5# copyright notice and this permission notice appear in all copies.
6#
7# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
8# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
9# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
10# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
11# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
12# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
13# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
14
15.PHONY: all app apps deps search rel relup docs install-docs check tests clean distclean help erlang-mk
16
17ERLANG_MK_FILENAME := $(realpath $(lastword $(MAKEFILE_LIST)))
18export ERLANG_MK_FILENAME
19
20ERLANG_MK_VERSION = 579e9f3-dirty
21ERLANG_MK_WITHOUT =
22
23# Make 3.81 and 3.82 are deprecated.
24
25ifeq ($(MAKELEVEL)$(MAKE_VERSION),03.81)
26$(warning Please upgrade to GNU Make 4 or later: https://erlang.mk/guide/installation.html)
27endif
28
29ifeq ($(MAKELEVEL)$(MAKE_VERSION),03.82)
30$(warning Please upgrade to GNU Make 4 or later: https://erlang.mk/guide/installation.html)
31endif
32
33# Core configuration.
34
35PROJECT ?= $(notdir $(CURDIR))
36PROJECT := $(strip $(PROJECT))
37
38PROJECT_VERSION ?= rolling
39PROJECT_MOD ?= $(PROJECT)_app
40PROJECT_ENV ?= []
41
42# Verbosity.
43
44V ?= 0
45
46verbose_0 = @
47verbose_2 = set -x;
48verbose = $(verbose_$(V))
49
50ifeq ($(V),3)
51SHELL := $(SHELL) -x
52endif
53
54gen_verbose_0 = @echo " GEN   " $@;
55gen_verbose_2 = set -x;
56gen_verbose = $(gen_verbose_$(V))
57
58gen_verbose_esc_0 = @echo " GEN   " $$@;
59gen_verbose_esc_2 = set -x;
60gen_verbose_esc = $(gen_verbose_esc_$(V))
61
62# Temporary files directory.
63
64ERLANG_MK_TMP ?= $(CURDIR)/.erlang.mk
65export ERLANG_MK_TMP
66
67# "erl" command.
68
69ERL = erl +A1 -noinput -boot no_dot_erlang
70
71# Platform detection.
72
73ifeq ($(PLATFORM),)
74UNAME_S := $(shell uname -s)
75
76ifeq ($(UNAME_S),Linux)
77PLATFORM = linux
78else ifeq ($(UNAME_S),Darwin)
79PLATFORM = darwin
80else ifeq ($(UNAME_S),SunOS)
81PLATFORM = solaris
82else ifeq ($(UNAME_S),GNU)
83PLATFORM = gnu
84else ifeq ($(UNAME_S),FreeBSD)
85PLATFORM = freebsd
86else ifeq ($(UNAME_S),NetBSD)
87PLATFORM = netbsd
88else ifeq ($(UNAME_S),OpenBSD)
89PLATFORM = openbsd
90else ifeq ($(UNAME_S),DragonFly)
91PLATFORM = dragonfly
92else ifeq ($(shell uname -o),Msys)
93PLATFORM = msys2
94else
95$(error Unable to detect platform. Please open a ticket with the output of uname -a.)
96endif
97
98export PLATFORM
99endif
100
101# Core targets.
102
103all:: deps app rel
104
105# Noop to avoid a Make warning when there's nothing to do.
106rel::
107	$(verbose) :
108
109relup:: deps app
110
111check:: tests
112
113clean:: clean-crashdump
114
115clean-crashdump:
116ifneq ($(wildcard erl_crash.dump),)
117	$(gen_verbose) rm -f erl_crash.dump
118endif
119
120distclean:: clean distclean-tmp
121
122$(ERLANG_MK_TMP):
123	$(verbose) mkdir -p $(ERLANG_MK_TMP)
124
125distclean-tmp:
126	$(gen_verbose) rm -rf $(ERLANG_MK_TMP)
127
128help::
129	$(verbose) printf "%s\n" \
130		"erlang.mk (version $(ERLANG_MK_VERSION)) is distributed under the terms of the ISC License." \
131		"Copyright (c) 2013-2016 Loïc Hoguin <essen@ninenines.eu>" \
132		"" \
133		"Usage: [V=1] $(MAKE) [target]..." \
134		"" \
135		"Core targets:" \
136		"  all           Run deps, app and rel targets in that order" \
137		"  app           Compile the project" \
138		"  deps          Fetch dependencies (if needed) and compile them" \
139		"  fetch-deps    Fetch dependencies recursively (if needed) without compiling them" \
140		"  list-deps     List dependencies recursively on stdout" \
141		"  search q=...  Search for a package in the built-in index" \
142		"  rel           Build a release for this project, if applicable" \
143		"  docs          Build the documentation for this project" \
144		"  install-docs  Install the man pages for this project" \
145		"  check         Compile and run all tests and analysis for this project" \
146		"  tests         Run the tests for this project" \
147		"  clean         Delete temporary and output files from most targets" \
148		"  distclean     Delete all temporary and output files" \
149		"  help          Display this help and exit" \
150		"  erlang-mk     Update erlang.mk to the latest version"
151
152# Core functions.
153
154empty :=
155space := $(empty) $(empty)
156tab := $(empty)	$(empty)
157comma := ,
158
159define newline
160
161
162endef
163
164define comma_list
165$(subst $(space),$(comma),$(strip $(1)))
166endef
167
168define escape_dquotes
169$(subst ",\",$1)
170endef
171
172# Adding erlang.mk to make Erlang scripts who call init:get_plain_arguments() happy.
173define erlang
174$(ERL) $2 -pz $(ERLANG_MK_TMP)/rebar/ebin -eval "$(subst $(newline),,$(call escape_dquotes,$1))" -- erlang.mk
175endef
176
177ifeq ($(PLATFORM),msys2)
178core_native_path = $(shell cygpath -m $1)
179else
180core_native_path = $1
181endif
182
183core_http_get = curl -Lf$(if $(filter-out 0,$(V)),,s)o $(call core_native_path,$1) $2
184
185core_eq = $(and $(findstring $(1),$(2)),$(findstring $(2),$(1)))
186
187# We skip files that contain spaces because they end up causing issues.
188core_find = $(if $(wildcard $1),$(shell find $(1:%/=%) \( -type l -o -type f \) -name $(subst *,\*,$2) | grep -v " "))
189
190core_lc = $(subst A,a,$(subst B,b,$(subst C,c,$(subst D,d,$(subst E,e,$(subst F,f,$(subst G,g,$(subst H,h,$(subst I,i,$(subst J,j,$(subst K,k,$(subst L,l,$(subst M,m,$(subst N,n,$(subst O,o,$(subst P,p,$(subst Q,q,$(subst R,r,$(subst S,s,$(subst T,t,$(subst U,u,$(subst V,v,$(subst W,w,$(subst X,x,$(subst Y,y,$(subst Z,z,$(1)))))))))))))))))))))))))))
191
192core_ls = $(filter-out $(1),$(shell echo $(1)))
193
194# @todo Use a solution that does not require using perl.
195core_relpath = $(shell perl -e 'use File::Spec; print File::Spec->abs2rel(@ARGV) . "\n"' $1 $2)
196
197define core_render
198	printf -- '$(subst $(newline),\n,$(subst %,%%,$(subst ','\'',$(subst $(tab),$(WS),$(call $(1))))))\n' > $(2)
199endef
200
201# Automated update.
202
203ERLANG_MK_REPO ?= https://github.com/ninenines/erlang.mk
204ERLANG_MK_COMMIT ?=
205ERLANG_MK_BUILD_CONFIG ?= build.config
206ERLANG_MK_BUILD_DIR ?= .erlang.mk.build
207
208erlang-mk: WITHOUT ?= $(ERLANG_MK_WITHOUT)
209erlang-mk:
210ifdef ERLANG_MK_COMMIT
211	$(verbose) git clone $(ERLANG_MK_REPO) $(ERLANG_MK_BUILD_DIR)
212	$(verbose) cd $(ERLANG_MK_BUILD_DIR) && git checkout $(ERLANG_MK_COMMIT)
213else
214	$(verbose) git clone --depth 1 $(ERLANG_MK_REPO) $(ERLANG_MK_BUILD_DIR)
215endif
216	$(verbose) if [ -f $(ERLANG_MK_BUILD_CONFIG) ]; then cp $(ERLANG_MK_BUILD_CONFIG) $(ERLANG_MK_BUILD_DIR)/build.config; fi
217	$(gen_verbose) $(MAKE) --no-print-directory -C $(ERLANG_MK_BUILD_DIR) WITHOUT='$(strip $(WITHOUT))' UPGRADE=1
218	$(verbose) cp $(ERLANG_MK_BUILD_DIR)/erlang.mk ./erlang.mk
219	$(verbose) rm -rf $(ERLANG_MK_BUILD_DIR)
220	$(verbose) rm -rf $(ERLANG_MK_TMP)
221
222# The erlang.mk package index is bundled in the default erlang.mk build.
223# Search for the string "copyright" to skip to the rest of the code.
224
225# Copyright (c) 2015-2017, Loïc Hoguin <essen@ninenines.eu>
226# This file is part of erlang.mk and subject to the terms of the ISC License.
227
228.PHONY: distclean-kerl
229
230KERL_INSTALL_DIR ?= $(HOME)/erlang
231
232ifeq ($(strip $(KERL)),)
233KERL := $(ERLANG_MK_TMP)/kerl/kerl
234endif
235
236KERL_DIR = $(ERLANG_MK_TMP)/kerl
237
238export KERL
239
240KERL_GIT ?= https://github.com/kerl/kerl
241KERL_COMMIT ?= master
242
243KERL_MAKEFLAGS ?=
244
245OTP_GIT ?= https://github.com/erlang/otp
246
247define kerl_otp_target
248$(KERL_INSTALL_DIR)/$(1): $(KERL)
249	$(verbose) if [ ! -d $$@ ]; then \
250		MAKEFLAGS="$(KERL_MAKEFLAGS)" $(KERL) build git $(OTP_GIT) $(1) $(1); \
251		$(KERL) install $(1) $(KERL_INSTALL_DIR)/$(1); \
252	fi
253endef
254
255define kerl_hipe_target
256$(KERL_INSTALL_DIR)/$1-native: $(KERL)
257	$(verbose) if [ ! -d $$@ ]; then \
258		KERL_CONFIGURE_OPTIONS=--enable-native-libs \
259			MAKEFLAGS="$(KERL_MAKEFLAGS)" $(KERL) build git $(OTP_GIT) $1 $1-native; \
260		$(KERL) install $1-native $(KERL_INSTALL_DIR)/$1-native; \
261	fi
262endef
263
264$(KERL): $(KERL_DIR)
265
266$(KERL_DIR): | $(ERLANG_MK_TMP)
267	$(gen_verbose) git clone --depth 1 $(KERL_GIT) $(ERLANG_MK_TMP)/kerl
268	$(verbose) cd $(ERLANG_MK_TMP)/kerl && git checkout $(KERL_COMMIT)
269	$(verbose) chmod +x $(KERL)
270
271distclean:: distclean-kerl
272
273distclean-kerl:
274	$(gen_verbose) rm -rf $(KERL_DIR)
275
276# Allow users to select which version of Erlang/OTP to use for a project.
277
278ifneq ($(strip $(LATEST_ERLANG_OTP)),)
279# In some environments it is necessary to filter out master.
280ERLANG_OTP := $(notdir $(lastword $(sort\
281	$(filter-out $(KERL_INSTALL_DIR)/master $(KERL_INSTALL_DIR)/OTP_R%,\
282	$(filter-out %-rc1 %-rc2 %-rc3,$(wildcard $(KERL_INSTALL_DIR)/*[^-native]))))))
283endif
284
285ERLANG_OTP ?=
286ERLANG_HIPE ?=
287
288# Use kerl to enforce a specific Erlang/OTP version for a project.
289ifneq ($(strip $(ERLANG_OTP)),)
290export PATH := $(KERL_INSTALL_DIR)/$(ERLANG_OTP)/bin:$(PATH)
291SHELL := env PATH=$(PATH) $(SHELL)
292$(eval $(call kerl_otp_target,$(ERLANG_OTP)))
293
294# Build Erlang/OTP only if it doesn't already exist.
295ifeq ($(wildcard $(KERL_INSTALL_DIR)/$(ERLANG_OTP))$(BUILD_ERLANG_OTP),)
296$(info Building Erlang/OTP $(ERLANG_OTP)... Please wait...)
297$(shell $(MAKE) $(KERL_INSTALL_DIR)/$(ERLANG_OTP) ERLANG_OTP=$(ERLANG_OTP) BUILD_ERLANG_OTP=1 >&2)
298endif
299
300else
301# Same for a HiPE enabled VM.
302ifneq ($(strip $(ERLANG_HIPE)),)
303export PATH := $(KERL_INSTALL_DIR)/$(ERLANG_HIPE)-native/bin:$(PATH)
304SHELL := env PATH=$(PATH) $(SHELL)
305$(eval $(call kerl_hipe_target,$(ERLANG_HIPE)))
306
307# Build Erlang/OTP only if it doesn't already exist.
308ifeq ($(wildcard $(KERL_INSTALL_DIR)/$(ERLANG_HIPE)-native)$(BUILD_ERLANG_OTP),)
309$(info Building HiPE-enabled Erlang/OTP $(ERLANG_OTP)... Please wait...)
310$(shell $(MAKE) $(KERL_INSTALL_DIR)/$(ERLANG_HIPE)-native ERLANG_HIPE=$(ERLANG_HIPE) BUILD_ERLANG_OTP=1 >&2)
311endif
312
313endif
314endif
315
316PACKAGES += aberth
317pkg_aberth_name = aberth
318pkg_aberth_description = Generic BERT-RPC server in Erlang
319pkg_aberth_homepage = https://github.com/a13x/aberth
320pkg_aberth_fetch = git
321pkg_aberth_repo = https://github.com/a13x/aberth
322pkg_aberth_commit = master
323
324PACKAGES += active
325pkg_active_name = active
326pkg_active_description = Active development for Erlang: rebuild and reload source/binary files while the VM is running
327pkg_active_homepage = https://github.com/proger/active
328pkg_active_fetch = git
329pkg_active_repo = https://github.com/proger/active
330pkg_active_commit = master
331
332PACKAGES += actordb_core
333pkg_actordb_core_name = actordb_core
334pkg_actordb_core_description = ActorDB main source
335pkg_actordb_core_homepage = http://www.actordb.com/
336pkg_actordb_core_fetch = git
337pkg_actordb_core_repo = https://github.com/biokoda/actordb_core
338pkg_actordb_core_commit = master
339
340PACKAGES += actordb_thrift
341pkg_actordb_thrift_name = actordb_thrift
342pkg_actordb_thrift_description = Thrift API for ActorDB
343pkg_actordb_thrift_homepage = http://www.actordb.com/
344pkg_actordb_thrift_fetch = git
345pkg_actordb_thrift_repo = https://github.com/biokoda/actordb_thrift
346pkg_actordb_thrift_commit = master
347
348PACKAGES += aleppo
349pkg_aleppo_name = aleppo
350pkg_aleppo_description = Alternative Erlang Pre-Processor
351pkg_aleppo_homepage = https://github.com/ErlyORM/aleppo
352pkg_aleppo_fetch = git
353pkg_aleppo_repo = https://github.com/ErlyORM/aleppo
354pkg_aleppo_commit = master
355
356PACKAGES += alog
357pkg_alog_name = alog
358pkg_alog_description = Simply the best logging framework for Erlang
359pkg_alog_homepage = https://github.com/siberian-fast-food/alogger
360pkg_alog_fetch = git
361pkg_alog_repo = https://github.com/siberian-fast-food/alogger
362pkg_alog_commit = master
363
364PACKAGES += amqp_client
365pkg_amqp_client_name = amqp_client
366pkg_amqp_client_description = RabbitMQ Erlang AMQP client
367pkg_amqp_client_homepage = https://www.rabbitmq.com/erlang-client-user-guide.html
368pkg_amqp_client_fetch = git
369pkg_amqp_client_repo = https://github.com/rabbitmq/rabbitmq-erlang-client.git
370pkg_amqp_client_commit = master
371
372PACKAGES += annotations
373pkg_annotations_name = annotations
374pkg_annotations_description = Simple code instrumentation utilities
375pkg_annotations_homepage = https://github.com/hyperthunk/annotations
376pkg_annotations_fetch = git
377pkg_annotations_repo = https://github.com/hyperthunk/annotations
378pkg_annotations_commit = master
379
380PACKAGES += antidote
381pkg_antidote_name = antidote
382pkg_antidote_description = Large-scale computation without synchronisation
383pkg_antidote_homepage = https://syncfree.lip6.fr/
384pkg_antidote_fetch = git
385pkg_antidote_repo = https://github.com/SyncFree/antidote
386pkg_antidote_commit = master
387
388PACKAGES += apns
389pkg_apns_name = apns
390pkg_apns_description = Apple Push Notification Server for Erlang
391pkg_apns_homepage = http://inaka.github.com/apns4erl
392pkg_apns_fetch = git
393pkg_apns_repo = https://github.com/inaka/apns4erl
394pkg_apns_commit = master
395
396PACKAGES += asciideck
397pkg_asciideck_name = asciideck
398pkg_asciideck_description = Asciidoc for Erlang.
399pkg_asciideck_homepage = https://ninenines.eu
400pkg_asciideck_fetch = git
401pkg_asciideck_repo = https://github.com/ninenines/asciideck
402pkg_asciideck_commit = master
403
404PACKAGES += azdht
405pkg_azdht_name = azdht
406pkg_azdht_description = Azureus Distributed Hash Table (DHT) in Erlang
407pkg_azdht_homepage = https://github.com/arcusfelis/azdht
408pkg_azdht_fetch = git
409pkg_azdht_repo = https://github.com/arcusfelis/azdht
410pkg_azdht_commit = master
411
412PACKAGES += backoff
413pkg_backoff_name = backoff
414pkg_backoff_description = Simple exponential backoffs in Erlang
415pkg_backoff_homepage = https://github.com/ferd/backoff
416pkg_backoff_fetch = git
417pkg_backoff_repo = https://github.com/ferd/backoff
418pkg_backoff_commit = master
419
420PACKAGES += barrel_tcp
421pkg_barrel_tcp_name = barrel_tcp
422pkg_barrel_tcp_description = barrel is a generic TCP acceptor pool with low latency in Erlang.
423pkg_barrel_tcp_homepage = https://github.com/benoitc-attic/barrel_tcp
424pkg_barrel_tcp_fetch = git
425pkg_barrel_tcp_repo = https://github.com/benoitc-attic/barrel_tcp
426pkg_barrel_tcp_commit = master
427
428PACKAGES += basho_bench
429pkg_basho_bench_name = basho_bench
430pkg_basho_bench_description = A load-generation and testing tool for basically whatever you can write a returning Erlang function for.
431pkg_basho_bench_homepage = https://github.com/basho/basho_bench
432pkg_basho_bench_fetch = git
433pkg_basho_bench_repo = https://github.com/basho/basho_bench
434pkg_basho_bench_commit = master
435
436PACKAGES += bcrypt
437pkg_bcrypt_name = bcrypt
438pkg_bcrypt_description = Bcrypt Erlang / C library
439pkg_bcrypt_homepage = https://github.com/erlangpack/bcrypt
440pkg_bcrypt_fetch = git
441pkg_bcrypt_repo = https://github.com/erlangpack/bcrypt.git
442pkg_bcrypt_commit = master
443
444PACKAGES += beam
445pkg_beam_name = beam
446pkg_beam_description = BEAM emulator written in Erlang
447pkg_beam_homepage = https://github.com/tonyrog/beam
448pkg_beam_fetch = git
449pkg_beam_repo = https://github.com/tonyrog/beam
450pkg_beam_commit = master
451
452PACKAGES += beanstalk
453pkg_beanstalk_name = beanstalk
454pkg_beanstalk_description = An Erlang client for beanstalkd
455pkg_beanstalk_homepage = https://github.com/tim/erlang-beanstalk
456pkg_beanstalk_fetch = git
457pkg_beanstalk_repo = https://github.com/tim/erlang-beanstalk
458pkg_beanstalk_commit = master
459
460PACKAGES += bear
461pkg_bear_name = bear
462pkg_bear_description = a set of statistics functions for erlang
463pkg_bear_homepage = https://github.com/boundary/bear
464pkg_bear_fetch = git
465pkg_bear_repo = https://github.com/boundary/bear
466pkg_bear_commit = master
467
468PACKAGES += bertconf
469pkg_bertconf_name = bertconf
470pkg_bertconf_description = Make ETS tables out of statc BERT files that are auto-reloaded
471pkg_bertconf_homepage = https://github.com/ferd/bertconf
472pkg_bertconf_fetch = git
473pkg_bertconf_repo = https://github.com/ferd/bertconf
474pkg_bertconf_commit = master
475
476PACKAGES += bifrost
477pkg_bifrost_name = bifrost
478pkg_bifrost_description = Erlang FTP Server Framework
479pkg_bifrost_homepage = https://github.com/thorstadt/bifrost
480pkg_bifrost_fetch = git
481pkg_bifrost_repo = https://github.com/thorstadt/bifrost
482pkg_bifrost_commit = master
483
484PACKAGES += binpp
485pkg_binpp_name = binpp
486pkg_binpp_description = Erlang Binary Pretty Printer
487pkg_binpp_homepage = https://github.com/jtendo/binpp
488pkg_binpp_fetch = git
489pkg_binpp_repo = https://github.com/jtendo/binpp
490pkg_binpp_commit = master
491
492PACKAGES += bisect
493pkg_bisect_name = bisect
494pkg_bisect_description = Ordered fixed-size binary dictionary in Erlang
495pkg_bisect_homepage = https://github.com/knutin/bisect
496pkg_bisect_fetch = git
497pkg_bisect_repo = https://github.com/knutin/bisect
498pkg_bisect_commit = master
499
500PACKAGES += bitcask
501pkg_bitcask_name = bitcask
502pkg_bitcask_description = because you need another a key/value storage engine
503pkg_bitcask_homepage = https://github.com/basho/bitcask
504pkg_bitcask_fetch = git
505pkg_bitcask_repo = https://github.com/basho/bitcask
506pkg_bitcask_commit = develop
507
508PACKAGES += bitstore
509pkg_bitstore_name = bitstore
510pkg_bitstore_description = A document based ontology development environment
511pkg_bitstore_homepage = https://github.com/bdionne/bitstore
512pkg_bitstore_fetch = git
513pkg_bitstore_repo = https://github.com/bdionne/bitstore
514pkg_bitstore_commit = master
515
516PACKAGES += bootstrap
517pkg_bootstrap_name = bootstrap
518pkg_bootstrap_description = A simple, yet powerful Erlang cluster bootstrapping application.
519pkg_bootstrap_homepage = https://github.com/schlagert/bootstrap
520pkg_bootstrap_fetch = git
521pkg_bootstrap_repo = https://github.com/schlagert/bootstrap
522pkg_bootstrap_commit = master
523
524PACKAGES += boss
525pkg_boss_name = boss
526pkg_boss_description = Erlang web MVC, now featuring Comet
527pkg_boss_homepage = https://github.com/ChicagoBoss/ChicagoBoss
528pkg_boss_fetch = git
529pkg_boss_repo = https://github.com/ChicagoBoss/ChicagoBoss
530pkg_boss_commit = master
531
532PACKAGES += boss_db
533pkg_boss_db_name = boss_db
534pkg_boss_db_description = BossDB: a sharded, caching, pooling, evented ORM for Erlang
535pkg_boss_db_homepage = https://github.com/ErlyORM/boss_db
536pkg_boss_db_fetch = git
537pkg_boss_db_repo = https://github.com/ErlyORM/boss_db
538pkg_boss_db_commit = master
539
540PACKAGES += brod
541pkg_brod_name = brod
542pkg_brod_description = Kafka client in Erlang
543pkg_brod_homepage = https://github.com/klarna/brod
544pkg_brod_fetch = git
545pkg_brod_repo = https://github.com/klarna/brod.git
546pkg_brod_commit = master
547
548PACKAGES += bson
549pkg_bson_name = bson
550pkg_bson_description = BSON documents in Erlang, see bsonspec.org
551pkg_bson_homepage = https://github.com/comtihon/bson-erlang
552pkg_bson_fetch = git
553pkg_bson_repo = https://github.com/comtihon/bson-erlang
554pkg_bson_commit = master
555
556PACKAGES += bullet
557pkg_bullet_name = bullet
558pkg_bullet_description = Simple, reliable, efficient streaming for Cowboy.
559pkg_bullet_homepage = http://ninenines.eu
560pkg_bullet_fetch = git
561pkg_bullet_repo = https://github.com/ninenines/bullet
562pkg_bullet_commit = master
563
564PACKAGES += cache
565pkg_cache_name = cache
566pkg_cache_description = Erlang in-memory cache
567pkg_cache_homepage = https://github.com/fogfish/cache
568pkg_cache_fetch = git
569pkg_cache_repo = https://github.com/fogfish/cache
570pkg_cache_commit = master
571
572PACKAGES += cake
573pkg_cake_name = cake
574pkg_cake_description = Really simple terminal colorization
575pkg_cake_homepage = https://github.com/darach/cake-erl
576pkg_cake_fetch = git
577pkg_cake_repo = https://github.com/darach/cake-erl
578pkg_cake_commit = master
579
580PACKAGES += carotene
581pkg_carotene_name = carotene
582pkg_carotene_description = Real-time server
583pkg_carotene_homepage = https://github.com/carotene/carotene
584pkg_carotene_fetch = git
585pkg_carotene_repo = https://github.com/carotene/carotene
586pkg_carotene_commit = master
587
588PACKAGES += cberl
589pkg_cberl_name = cberl
590pkg_cberl_description = NIF based Erlang bindings for Couchbase
591pkg_cberl_homepage = https://github.com/chitika/cberl
592pkg_cberl_fetch = git
593pkg_cberl_repo = https://github.com/chitika/cberl
594pkg_cberl_commit = master
595
596PACKAGES += cecho
597pkg_cecho_name = cecho
598pkg_cecho_description = An ncurses library for Erlang
599pkg_cecho_homepage = https://github.com/mazenharake/cecho
600pkg_cecho_fetch = git
601pkg_cecho_repo = https://github.com/mazenharake/cecho
602pkg_cecho_commit = master
603
604PACKAGES += cferl
605pkg_cferl_name = cferl
606pkg_cferl_description = Rackspace / Open Stack Cloud Files Erlang Client
607pkg_cferl_homepage = https://github.com/ddossot/cferl
608pkg_cferl_fetch = git
609pkg_cferl_repo = https://github.com/ddossot/cferl
610pkg_cferl_commit = master
611
612PACKAGES += chaos_monkey
613pkg_chaos_monkey_name = chaos_monkey
614pkg_chaos_monkey_description = This is The CHAOS MONKEY.  It will kill your processes.
615pkg_chaos_monkey_homepage = https://github.com/dLuna/chaos_monkey
616pkg_chaos_monkey_fetch = git
617pkg_chaos_monkey_repo = https://github.com/dLuna/chaos_monkey
618pkg_chaos_monkey_commit = master
619
620PACKAGES += check_node
621pkg_check_node_name = check_node
622pkg_check_node_description = Nagios Scripts for monitoring Riak
623pkg_check_node_homepage = https://github.com/basho-labs/riak_nagios
624pkg_check_node_fetch = git
625pkg_check_node_repo = https://github.com/basho-labs/riak_nagios
626pkg_check_node_commit = master
627
628PACKAGES += chronos
629pkg_chronos_name = chronos
630pkg_chronos_description = Timer module for Erlang that makes it easy to abstact time out of the tests.
631pkg_chronos_homepage = https://github.com/lehoff/chronos
632pkg_chronos_fetch = git
633pkg_chronos_repo = https://github.com/lehoff/chronos
634pkg_chronos_commit = master
635
636PACKAGES += chumak
637pkg_chumak_name = chumak
638pkg_chumak_description = Pure Erlang implementation of ZeroMQ Message Transport Protocol.
639pkg_chumak_homepage = http://choven.ca
640pkg_chumak_fetch = git
641pkg_chumak_repo = https://github.com/chovencorp/chumak
642pkg_chumak_commit = master
643
644PACKAGES += cl
645pkg_cl_name = cl
646pkg_cl_description = OpenCL binding for Erlang
647pkg_cl_homepage = https://github.com/tonyrog/cl
648pkg_cl_fetch = git
649pkg_cl_repo = https://github.com/tonyrog/cl
650pkg_cl_commit = master
651
652PACKAGES += clique
653pkg_clique_name = clique
654pkg_clique_description = CLI Framework for Erlang
655pkg_clique_homepage = https://github.com/basho/clique
656pkg_clique_fetch = git
657pkg_clique_repo = https://github.com/basho/clique
658pkg_clique_commit = develop
659
660PACKAGES += cloudi_core
661pkg_cloudi_core_name = cloudi_core
662pkg_cloudi_core_description = CloudI internal service runtime
663pkg_cloudi_core_homepage = http://cloudi.org/
664pkg_cloudi_core_fetch = git
665pkg_cloudi_core_repo = https://github.com/CloudI/cloudi_core
666pkg_cloudi_core_commit = master
667
668PACKAGES += cloudi_service_api_requests
669pkg_cloudi_service_api_requests_name = cloudi_service_api_requests
670pkg_cloudi_service_api_requests_description = CloudI Service API requests (JSON-RPC/Erlang-term support)
671pkg_cloudi_service_api_requests_homepage = http://cloudi.org/
672pkg_cloudi_service_api_requests_fetch = git
673pkg_cloudi_service_api_requests_repo = https://github.com/CloudI/cloudi_service_api_requests
674pkg_cloudi_service_api_requests_commit = master
675
676PACKAGES += cloudi_service_db
677pkg_cloudi_service_db_name = cloudi_service_db
678pkg_cloudi_service_db_description = CloudI Database (in-memory/testing/generic)
679pkg_cloudi_service_db_homepage = http://cloudi.org/
680pkg_cloudi_service_db_fetch = git
681pkg_cloudi_service_db_repo = https://github.com/CloudI/cloudi_service_db
682pkg_cloudi_service_db_commit = master
683
684PACKAGES += cloudi_service_db_cassandra
685pkg_cloudi_service_db_cassandra_name = cloudi_service_db_cassandra
686pkg_cloudi_service_db_cassandra_description = Cassandra CloudI Service
687pkg_cloudi_service_db_cassandra_homepage = http://cloudi.org/
688pkg_cloudi_service_db_cassandra_fetch = git
689pkg_cloudi_service_db_cassandra_repo = https://github.com/CloudI/cloudi_service_db_cassandra
690pkg_cloudi_service_db_cassandra_commit = master
691
692PACKAGES += cloudi_service_db_cassandra_cql
693pkg_cloudi_service_db_cassandra_cql_name = cloudi_service_db_cassandra_cql
694pkg_cloudi_service_db_cassandra_cql_description = Cassandra CQL CloudI Service
695pkg_cloudi_service_db_cassandra_cql_homepage = http://cloudi.org/
696pkg_cloudi_service_db_cassandra_cql_fetch = git
697pkg_cloudi_service_db_cassandra_cql_repo = https://github.com/CloudI/cloudi_service_db_cassandra_cql
698pkg_cloudi_service_db_cassandra_cql_commit = master
699
700PACKAGES += cloudi_service_db_couchdb
701pkg_cloudi_service_db_couchdb_name = cloudi_service_db_couchdb
702pkg_cloudi_service_db_couchdb_description = CouchDB CloudI Service
703pkg_cloudi_service_db_couchdb_homepage = http://cloudi.org/
704pkg_cloudi_service_db_couchdb_fetch = git
705pkg_cloudi_service_db_couchdb_repo = https://github.com/CloudI/cloudi_service_db_couchdb
706pkg_cloudi_service_db_couchdb_commit = master
707
708PACKAGES += cloudi_service_db_elasticsearch
709pkg_cloudi_service_db_elasticsearch_name = cloudi_service_db_elasticsearch
710pkg_cloudi_service_db_elasticsearch_description = elasticsearch CloudI Service
711pkg_cloudi_service_db_elasticsearch_homepage = http://cloudi.org/
712pkg_cloudi_service_db_elasticsearch_fetch = git
713pkg_cloudi_service_db_elasticsearch_repo = https://github.com/CloudI/cloudi_service_db_elasticsearch
714pkg_cloudi_service_db_elasticsearch_commit = master
715
716PACKAGES += cloudi_service_db_memcached
717pkg_cloudi_service_db_memcached_name = cloudi_service_db_memcached
718pkg_cloudi_service_db_memcached_description = memcached CloudI Service
719pkg_cloudi_service_db_memcached_homepage = http://cloudi.org/
720pkg_cloudi_service_db_memcached_fetch = git
721pkg_cloudi_service_db_memcached_repo = https://github.com/CloudI/cloudi_service_db_memcached
722pkg_cloudi_service_db_memcached_commit = master
723
724PACKAGES += cloudi_service_db_mysql
725pkg_cloudi_service_db_mysql_name = cloudi_service_db_mysql
726pkg_cloudi_service_db_mysql_description = MySQL CloudI Service
727pkg_cloudi_service_db_mysql_homepage = http://cloudi.org/
728pkg_cloudi_service_db_mysql_fetch = git
729pkg_cloudi_service_db_mysql_repo = https://github.com/CloudI/cloudi_service_db_mysql
730pkg_cloudi_service_db_mysql_commit = master
731
732PACKAGES += cloudi_service_db_pgsql
733pkg_cloudi_service_db_pgsql_name = cloudi_service_db_pgsql
734pkg_cloudi_service_db_pgsql_description = PostgreSQL CloudI Service
735pkg_cloudi_service_db_pgsql_homepage = http://cloudi.org/
736pkg_cloudi_service_db_pgsql_fetch = git
737pkg_cloudi_service_db_pgsql_repo = https://github.com/CloudI/cloudi_service_db_pgsql
738pkg_cloudi_service_db_pgsql_commit = master
739
740PACKAGES += cloudi_service_db_riak
741pkg_cloudi_service_db_riak_name = cloudi_service_db_riak
742pkg_cloudi_service_db_riak_description = Riak CloudI Service
743pkg_cloudi_service_db_riak_homepage = http://cloudi.org/
744pkg_cloudi_service_db_riak_fetch = git
745pkg_cloudi_service_db_riak_repo = https://github.com/CloudI/cloudi_service_db_riak
746pkg_cloudi_service_db_riak_commit = master
747
748PACKAGES += cloudi_service_db_tokyotyrant
749pkg_cloudi_service_db_tokyotyrant_name = cloudi_service_db_tokyotyrant
750pkg_cloudi_service_db_tokyotyrant_description = Tokyo Tyrant CloudI Service
751pkg_cloudi_service_db_tokyotyrant_homepage = http://cloudi.org/
752pkg_cloudi_service_db_tokyotyrant_fetch = git
753pkg_cloudi_service_db_tokyotyrant_repo = https://github.com/CloudI/cloudi_service_db_tokyotyrant
754pkg_cloudi_service_db_tokyotyrant_commit = master
755
756PACKAGES += cloudi_service_filesystem
757pkg_cloudi_service_filesystem_name = cloudi_service_filesystem
758pkg_cloudi_service_filesystem_description = Filesystem CloudI Service
759pkg_cloudi_service_filesystem_homepage = http://cloudi.org/
760pkg_cloudi_service_filesystem_fetch = git
761pkg_cloudi_service_filesystem_repo = https://github.com/CloudI/cloudi_service_filesystem
762pkg_cloudi_service_filesystem_commit = master
763
764PACKAGES += cloudi_service_http_client
765pkg_cloudi_service_http_client_name = cloudi_service_http_client
766pkg_cloudi_service_http_client_description = HTTP client CloudI Service
767pkg_cloudi_service_http_client_homepage = http://cloudi.org/
768pkg_cloudi_service_http_client_fetch = git
769pkg_cloudi_service_http_client_repo = https://github.com/CloudI/cloudi_service_http_client
770pkg_cloudi_service_http_client_commit = master
771
772PACKAGES += cloudi_service_http_cowboy
773pkg_cloudi_service_http_cowboy_name = cloudi_service_http_cowboy
774pkg_cloudi_service_http_cowboy_description = cowboy HTTP/HTTPS CloudI Service
775pkg_cloudi_service_http_cowboy_homepage = http://cloudi.org/
776pkg_cloudi_service_http_cowboy_fetch = git
777pkg_cloudi_service_http_cowboy_repo = https://github.com/CloudI/cloudi_service_http_cowboy
778pkg_cloudi_service_http_cowboy_commit = master
779
780PACKAGES += cloudi_service_http_elli
781pkg_cloudi_service_http_elli_name = cloudi_service_http_elli
782pkg_cloudi_service_http_elli_description = elli HTTP CloudI Service
783pkg_cloudi_service_http_elli_homepage = http://cloudi.org/
784pkg_cloudi_service_http_elli_fetch = git
785pkg_cloudi_service_http_elli_repo = https://github.com/CloudI/cloudi_service_http_elli
786pkg_cloudi_service_http_elli_commit = master
787
788PACKAGES += cloudi_service_map_reduce
789pkg_cloudi_service_map_reduce_name = cloudi_service_map_reduce
790pkg_cloudi_service_map_reduce_description = Map/Reduce CloudI Service
791pkg_cloudi_service_map_reduce_homepage = http://cloudi.org/
792pkg_cloudi_service_map_reduce_fetch = git
793pkg_cloudi_service_map_reduce_repo = https://github.com/CloudI/cloudi_service_map_reduce
794pkg_cloudi_service_map_reduce_commit = master
795
796PACKAGES += cloudi_service_oauth1
797pkg_cloudi_service_oauth1_name = cloudi_service_oauth1
798pkg_cloudi_service_oauth1_description = OAuth v1.0 CloudI Service
799pkg_cloudi_service_oauth1_homepage = http://cloudi.org/
800pkg_cloudi_service_oauth1_fetch = git
801pkg_cloudi_service_oauth1_repo = https://github.com/CloudI/cloudi_service_oauth1
802pkg_cloudi_service_oauth1_commit = master
803
804PACKAGES += cloudi_service_queue
805pkg_cloudi_service_queue_name = cloudi_service_queue
806pkg_cloudi_service_queue_description = Persistent Queue Service
807pkg_cloudi_service_queue_homepage = http://cloudi.org/
808pkg_cloudi_service_queue_fetch = git
809pkg_cloudi_service_queue_repo = https://github.com/CloudI/cloudi_service_queue
810pkg_cloudi_service_queue_commit = master
811
812PACKAGES += cloudi_service_quorum
813pkg_cloudi_service_quorum_name = cloudi_service_quorum
814pkg_cloudi_service_quorum_description = CloudI Quorum Service
815pkg_cloudi_service_quorum_homepage = http://cloudi.org/
816pkg_cloudi_service_quorum_fetch = git
817pkg_cloudi_service_quorum_repo = https://github.com/CloudI/cloudi_service_quorum
818pkg_cloudi_service_quorum_commit = master
819
820PACKAGES += cloudi_service_router
821pkg_cloudi_service_router_name = cloudi_service_router
822pkg_cloudi_service_router_description = CloudI Router Service
823pkg_cloudi_service_router_homepage = http://cloudi.org/
824pkg_cloudi_service_router_fetch = git
825pkg_cloudi_service_router_repo = https://github.com/CloudI/cloudi_service_router
826pkg_cloudi_service_router_commit = master
827
828PACKAGES += cloudi_service_tcp
829pkg_cloudi_service_tcp_name = cloudi_service_tcp
830pkg_cloudi_service_tcp_description = TCP CloudI Service
831pkg_cloudi_service_tcp_homepage = http://cloudi.org/
832pkg_cloudi_service_tcp_fetch = git
833pkg_cloudi_service_tcp_repo = https://github.com/CloudI/cloudi_service_tcp
834pkg_cloudi_service_tcp_commit = master
835
836PACKAGES += cloudi_service_timers
837pkg_cloudi_service_timers_name = cloudi_service_timers
838pkg_cloudi_service_timers_description = Timers CloudI Service
839pkg_cloudi_service_timers_homepage = http://cloudi.org/
840pkg_cloudi_service_timers_fetch = git
841pkg_cloudi_service_timers_repo = https://github.com/CloudI/cloudi_service_timers
842pkg_cloudi_service_timers_commit = master
843
844PACKAGES += cloudi_service_udp
845pkg_cloudi_service_udp_name = cloudi_service_udp
846pkg_cloudi_service_udp_description = UDP CloudI Service
847pkg_cloudi_service_udp_homepage = http://cloudi.org/
848pkg_cloudi_service_udp_fetch = git
849pkg_cloudi_service_udp_repo = https://github.com/CloudI/cloudi_service_udp
850pkg_cloudi_service_udp_commit = master
851
852PACKAGES += cloudi_service_validate
853pkg_cloudi_service_validate_name = cloudi_service_validate
854pkg_cloudi_service_validate_description = CloudI Validate Service
855pkg_cloudi_service_validate_homepage = http://cloudi.org/
856pkg_cloudi_service_validate_fetch = git
857pkg_cloudi_service_validate_repo = https://github.com/CloudI/cloudi_service_validate
858pkg_cloudi_service_validate_commit = master
859
860PACKAGES += cloudi_service_zeromq
861pkg_cloudi_service_zeromq_name = cloudi_service_zeromq
862pkg_cloudi_service_zeromq_description = ZeroMQ CloudI Service
863pkg_cloudi_service_zeromq_homepage = http://cloudi.org/
864pkg_cloudi_service_zeromq_fetch = git
865pkg_cloudi_service_zeromq_repo = https://github.com/CloudI/cloudi_service_zeromq
866pkg_cloudi_service_zeromq_commit = master
867
868PACKAGES += cluster_info
869pkg_cluster_info_name = cluster_info
870pkg_cluster_info_description = Fork of Hibari's nifty cluster_info OTP app
871pkg_cluster_info_homepage = https://github.com/basho/cluster_info
872pkg_cluster_info_fetch = git
873pkg_cluster_info_repo = https://github.com/basho/cluster_info
874pkg_cluster_info_commit = master
875
876PACKAGES += color
877pkg_color_name = color
878pkg_color_description = ANSI colors for your Erlang
879pkg_color_homepage = https://github.com/julianduque/erlang-color
880pkg_color_fetch = git
881pkg_color_repo = https://github.com/julianduque/erlang-color
882pkg_color_commit = master
883
884PACKAGES += confetti
885pkg_confetti_name = confetti
886pkg_confetti_description = Erlang configuration provider / application:get_env/2 on steroids
887pkg_confetti_homepage = https://github.com/jtendo/confetti
888pkg_confetti_fetch = git
889pkg_confetti_repo = https://github.com/jtendo/confetti
890pkg_confetti_commit = master
891
892PACKAGES += couchbeam
893pkg_couchbeam_name = couchbeam
894pkg_couchbeam_description = Apache CouchDB client in Erlang
895pkg_couchbeam_homepage = https://github.com/benoitc/couchbeam
896pkg_couchbeam_fetch = git
897pkg_couchbeam_repo = https://github.com/benoitc/couchbeam
898pkg_couchbeam_commit = master
899
900PACKAGES += covertool
901pkg_covertool_name = covertool
902pkg_covertool_description = Tool to convert Erlang cover data files into Cobertura XML reports
903pkg_covertool_homepage = https://github.com/idubrov/covertool
904pkg_covertool_fetch = git
905pkg_covertool_repo = https://github.com/idubrov/covertool
906pkg_covertool_commit = master
907
908PACKAGES += cowboy
909pkg_cowboy_name = cowboy
910pkg_cowboy_description = Small, fast and modular HTTP server.
911pkg_cowboy_homepage = http://ninenines.eu
912pkg_cowboy_fetch = git
913pkg_cowboy_repo = https://github.com/ninenines/cowboy
914pkg_cowboy_commit = 1.0.4
915
916PACKAGES += cowdb
917pkg_cowdb_name = cowdb
918pkg_cowdb_description = Pure Key/Value database library for Erlang Applications
919pkg_cowdb_homepage = https://github.com/refuge/cowdb
920pkg_cowdb_fetch = git
921pkg_cowdb_repo = https://github.com/refuge/cowdb
922pkg_cowdb_commit = master
923
924PACKAGES += cowlib
925pkg_cowlib_name = cowlib
926pkg_cowlib_description = Support library for manipulating Web protocols.
927pkg_cowlib_homepage = http://ninenines.eu
928pkg_cowlib_fetch = git
929pkg_cowlib_repo = https://github.com/ninenines/cowlib
930pkg_cowlib_commit = 1.0.2
931
932PACKAGES += cpg
933pkg_cpg_name = cpg
934pkg_cpg_description = CloudI Process Groups
935pkg_cpg_homepage = https://github.com/okeuday/cpg
936pkg_cpg_fetch = git
937pkg_cpg_repo = https://github.com/okeuday/cpg
938pkg_cpg_commit = master
939
940PACKAGES += cqerl
941pkg_cqerl_name = cqerl
942pkg_cqerl_description = Native Erlang CQL client for Cassandra
943pkg_cqerl_homepage = https://matehat.github.io/cqerl/
944pkg_cqerl_fetch = git
945pkg_cqerl_repo = https://github.com/matehat/cqerl
946pkg_cqerl_commit = master
947
948PACKAGES += cr
949pkg_cr_name = cr
950pkg_cr_description = Chain Replication
951pkg_cr_homepage = https://synrc.com/apps/cr/doc/cr.htm
952pkg_cr_fetch = git
953pkg_cr_repo = https://github.com/spawnproc/cr
954pkg_cr_commit = master
955
956PACKAGES += cuttlefish
957pkg_cuttlefish_name = cuttlefish
958pkg_cuttlefish_description = cuttlefish configuration abstraction
959pkg_cuttlefish_homepage = https://github.com/Kyorai/cuttlefish
960pkg_cuttlefish_fetch = git
961pkg_cuttlefish_repo = https://github.com/Kyorai/cuttlefish
962pkg_cuttlefish_commit = master
963
964PACKAGES += damocles
965pkg_damocles_name = damocles
966pkg_damocles_description = Erlang library for generating adversarial network conditions for QAing distributed applications/systems on a single Linux box.
967pkg_damocles_homepage = https://github.com/lostcolony/damocles
968pkg_damocles_fetch = git
969pkg_damocles_repo = https://github.com/lostcolony/damocles
970pkg_damocles_commit = master
971
972PACKAGES += debbie
973pkg_debbie_name = debbie
974pkg_debbie_description = .DEB Built In Erlang
975pkg_debbie_homepage = https://github.com/crownedgrouse/debbie
976pkg_debbie_fetch = git
977pkg_debbie_repo = https://github.com/crownedgrouse/debbie
978pkg_debbie_commit = master
979
980PACKAGES += decimal
981pkg_decimal_name = decimal
982pkg_decimal_description = An Erlang decimal arithmetic library
983pkg_decimal_homepage = https://github.com/tim/erlang-decimal
984pkg_decimal_fetch = git
985pkg_decimal_repo = https://github.com/tim/erlang-decimal
986pkg_decimal_commit = master
987
988PACKAGES += detergent
989pkg_detergent_name = detergent
990pkg_detergent_description = An emulsifying Erlang SOAP library
991pkg_detergent_homepage = https://github.com/devinus/detergent
992pkg_detergent_fetch = git
993pkg_detergent_repo = https://github.com/devinus/detergent
994pkg_detergent_commit = master
995
996PACKAGES += detest
997pkg_detest_name = detest
998pkg_detest_description = Tool for running tests on a cluster of erlang nodes
999pkg_detest_homepage = https://github.com/biokoda/detest
1000pkg_detest_fetch = git
1001pkg_detest_repo = https://github.com/biokoda/detest
1002pkg_detest_commit = master
1003
1004PACKAGES += dh_date
1005pkg_dh_date_name = dh_date
1006pkg_dh_date_description = Date formatting / parsing library for erlang
1007pkg_dh_date_homepage = https://github.com/daleharvey/dh_date
1008pkg_dh_date_fetch = git
1009pkg_dh_date_repo = https://github.com/daleharvey/dh_date
1010pkg_dh_date_commit = master
1011
1012PACKAGES += dirbusterl
1013pkg_dirbusterl_name = dirbusterl
1014pkg_dirbusterl_description = DirBuster successor in Erlang
1015pkg_dirbusterl_homepage = https://github.com/silentsignal/DirBustErl
1016pkg_dirbusterl_fetch = git
1017pkg_dirbusterl_repo = https://github.com/silentsignal/DirBustErl
1018pkg_dirbusterl_commit = master
1019
1020PACKAGES += dispcount
1021pkg_dispcount_name = dispcount
1022pkg_dispcount_description = Erlang task dispatcher based on ETS counters.
1023pkg_dispcount_homepage = https://github.com/ferd/dispcount
1024pkg_dispcount_fetch = git
1025pkg_dispcount_repo = https://github.com/ferd/dispcount
1026pkg_dispcount_commit = master
1027
1028PACKAGES += dlhttpc
1029pkg_dlhttpc_name = dlhttpc
1030pkg_dlhttpc_description = dispcount-based lhttpc fork for massive amounts of requests to limited endpoints
1031pkg_dlhttpc_homepage = https://github.com/ferd/dlhttpc
1032pkg_dlhttpc_fetch = git
1033pkg_dlhttpc_repo = https://github.com/ferd/dlhttpc
1034pkg_dlhttpc_commit = master
1035
1036PACKAGES += dns
1037pkg_dns_name = dns
1038pkg_dns_description = Erlang DNS library
1039pkg_dns_homepage = https://github.com/aetrion/dns_erlang
1040pkg_dns_fetch = git
1041pkg_dns_repo = https://github.com/aetrion/dns_erlang
1042pkg_dns_commit = master
1043
1044PACKAGES += dnssd
1045pkg_dnssd_name = dnssd
1046pkg_dnssd_description = Erlang interface to Apple's Bonjour D    NS Service Discovery implementation
1047pkg_dnssd_homepage = https://github.com/benoitc/dnssd_erlang
1048pkg_dnssd_fetch = git
1049pkg_dnssd_repo = https://github.com/benoitc/dnssd_erlang
1050pkg_dnssd_commit = master
1051
1052PACKAGES += dynamic_compile
1053pkg_dynamic_compile_name = dynamic_compile
1054pkg_dynamic_compile_description = compile and load erlang modules from string input
1055pkg_dynamic_compile_homepage = https://github.com/jkvor/dynamic_compile
1056pkg_dynamic_compile_fetch = git
1057pkg_dynamic_compile_repo = https://github.com/jkvor/dynamic_compile
1058pkg_dynamic_compile_commit = master
1059
1060PACKAGES += e2
1061pkg_e2_name = e2
1062pkg_e2_description = Library to simply writing correct OTP applications.
1063pkg_e2_homepage = http://e2project.org
1064pkg_e2_fetch = git
1065pkg_e2_repo = https://github.com/gar1t/e2
1066pkg_e2_commit = master
1067
1068PACKAGES += eamf
1069pkg_eamf_name = eamf
1070pkg_eamf_description = eAMF provides Action Message Format (AMF) support for Erlang
1071pkg_eamf_homepage = https://github.com/mrinalwadhwa/eamf
1072pkg_eamf_fetch = git
1073pkg_eamf_repo = https://github.com/mrinalwadhwa/eamf
1074pkg_eamf_commit = master
1075
1076PACKAGES += eavro
1077pkg_eavro_name = eavro
1078pkg_eavro_description = Apache Avro encoder/decoder
1079pkg_eavro_homepage = https://github.com/SIfoxDevTeam/eavro
1080pkg_eavro_fetch = git
1081pkg_eavro_repo = https://github.com/SIfoxDevTeam/eavro
1082pkg_eavro_commit = master
1083
1084PACKAGES += ecapnp
1085pkg_ecapnp_name = ecapnp
1086pkg_ecapnp_description = Cap'n Proto library for Erlang
1087pkg_ecapnp_homepage = https://github.com/kaos/ecapnp
1088pkg_ecapnp_fetch = git
1089pkg_ecapnp_repo = https://github.com/kaos/ecapnp
1090pkg_ecapnp_commit = master
1091
1092PACKAGES += econfig
1093pkg_econfig_name = econfig
1094pkg_econfig_description = simple Erlang config handler using INI files
1095pkg_econfig_homepage = https://github.com/benoitc/econfig
1096pkg_econfig_fetch = git
1097pkg_econfig_repo = https://github.com/benoitc/econfig
1098pkg_econfig_commit = master
1099
1100PACKAGES += edate
1101pkg_edate_name = edate
1102pkg_edate_description = date manipulation library for erlang
1103pkg_edate_homepage = https://github.com/dweldon/edate
1104pkg_edate_fetch = git
1105pkg_edate_repo = https://github.com/dweldon/edate
1106pkg_edate_commit = master
1107
1108PACKAGES += edgar
1109pkg_edgar_name = edgar
1110pkg_edgar_description = Erlang Does GNU AR
1111pkg_edgar_homepage = https://github.com/crownedgrouse/edgar
1112pkg_edgar_fetch = git
1113pkg_edgar_repo = https://github.com/crownedgrouse/edgar
1114pkg_edgar_commit = master
1115
1116PACKAGES += edis
1117pkg_edis_name = edis
1118pkg_edis_description = An Erlang implementation of Redis KV Store
1119pkg_edis_homepage = http://inaka.github.com/edis/
1120pkg_edis_fetch = git
1121pkg_edis_repo = https://github.com/inaka/edis
1122pkg_edis_commit = master
1123
1124PACKAGES += edns
1125pkg_edns_name = edns
1126pkg_edns_description = Erlang/OTP DNS server
1127pkg_edns_homepage = https://github.com/hcvst/erlang-dns
1128pkg_edns_fetch = git
1129pkg_edns_repo = https://github.com/hcvst/erlang-dns
1130pkg_edns_commit = master
1131
1132PACKAGES += edown
1133pkg_edown_name = edown
1134pkg_edown_description = EDoc extension for generating Github-flavored Markdown
1135pkg_edown_homepage = https://github.com/uwiger/edown
1136pkg_edown_fetch = git
1137pkg_edown_repo = https://github.com/uwiger/edown
1138pkg_edown_commit = master
1139
1140PACKAGES += eep
1141pkg_eep_name = eep
1142pkg_eep_description = Erlang Easy Profiling (eep) application provides a way to analyze application performance and call hierarchy
1143pkg_eep_homepage = https://github.com/virtan/eep
1144pkg_eep_fetch = git
1145pkg_eep_repo = https://github.com/virtan/eep
1146pkg_eep_commit = master
1147
1148PACKAGES += eep_app
1149pkg_eep_app_name = eep_app
1150pkg_eep_app_description = Embedded Event Processing
1151pkg_eep_app_homepage = https://github.com/darach/eep-erl
1152pkg_eep_app_fetch = git
1153pkg_eep_app_repo = https://github.com/darach/eep-erl
1154pkg_eep_app_commit = master
1155
1156PACKAGES += efene
1157pkg_efene_name = efene
1158pkg_efene_description = Alternative syntax for the Erlang Programming Language focusing on simplicity, ease of use and programmer UX
1159pkg_efene_homepage = https://github.com/efene/efene
1160pkg_efene_fetch = git
1161pkg_efene_repo = https://github.com/efene/efene
1162pkg_efene_commit = master
1163
1164PACKAGES += egeoip
1165pkg_egeoip_name = egeoip
1166pkg_egeoip_description = Erlang IP Geolocation module, currently supporting the MaxMind GeoLite City Database.
1167pkg_egeoip_homepage = https://github.com/mochi/egeoip
1168pkg_egeoip_fetch = git
1169pkg_egeoip_repo = https://github.com/mochi/egeoip
1170pkg_egeoip_commit = master
1171
1172PACKAGES += ehsa
1173pkg_ehsa_name = ehsa
1174pkg_ehsa_description = Erlang HTTP server basic and digest authentication modules
1175pkg_ehsa_homepage = https://bitbucket.org/a12n/ehsa
1176pkg_ehsa_fetch = hg
1177pkg_ehsa_repo = https://bitbucket.org/a12n/ehsa
1178pkg_ehsa_commit = default
1179
1180PACKAGES += ej
1181pkg_ej_name = ej
1182pkg_ej_description = Helper module for working with Erlang terms representing JSON
1183pkg_ej_homepage = https://github.com/seth/ej
1184pkg_ej_fetch = git
1185pkg_ej_repo = https://github.com/seth/ej
1186pkg_ej_commit = master
1187
1188PACKAGES += ejabberd
1189pkg_ejabberd_name = ejabberd
1190pkg_ejabberd_description = Robust, ubiquitous and massively scalable Jabber / XMPP Instant Messaging platform
1191pkg_ejabberd_homepage = https://github.com/processone/ejabberd
1192pkg_ejabberd_fetch = git
1193pkg_ejabberd_repo = https://github.com/processone/ejabberd
1194pkg_ejabberd_commit = master
1195
1196PACKAGES += ejwt
1197pkg_ejwt_name = ejwt
1198pkg_ejwt_description = erlang library for JSON Web Token
1199pkg_ejwt_homepage = https://github.com/artefactop/ejwt
1200pkg_ejwt_fetch = git
1201pkg_ejwt_repo = https://github.com/artefactop/ejwt
1202pkg_ejwt_commit = master
1203
1204PACKAGES += ekaf
1205pkg_ekaf_name = ekaf
1206pkg_ekaf_description = A minimal, high-performance Kafka client in Erlang.
1207pkg_ekaf_homepage = https://github.com/helpshift/ekaf
1208pkg_ekaf_fetch = git
1209pkg_ekaf_repo = https://github.com/helpshift/ekaf
1210pkg_ekaf_commit = master
1211
1212PACKAGES += elarm
1213pkg_elarm_name = elarm
1214pkg_elarm_description = Alarm Manager for Erlang.
1215pkg_elarm_homepage = https://github.com/esl/elarm
1216pkg_elarm_fetch = git
1217pkg_elarm_repo = https://github.com/esl/elarm
1218pkg_elarm_commit = master
1219
1220PACKAGES += eleveldb
1221pkg_eleveldb_name = eleveldb
1222pkg_eleveldb_description = Erlang LevelDB API
1223pkg_eleveldb_homepage = https://github.com/basho/eleveldb
1224pkg_eleveldb_fetch = git
1225pkg_eleveldb_repo = https://github.com/basho/eleveldb
1226pkg_eleveldb_commit = master
1227
1228PACKAGES += elixir
1229pkg_elixir_name = elixir
1230pkg_elixir_description = Elixir is a dynamic, functional language designed for building scalable and maintainable applications
1231pkg_elixir_homepage = https://elixir-lang.org/
1232pkg_elixir_fetch = git
1233pkg_elixir_repo = https://github.com/elixir-lang/elixir
1234pkg_elixir_commit = master
1235
1236PACKAGES += elli
1237pkg_elli_name = elli
1238pkg_elli_description = Simple, robust and performant Erlang web server
1239pkg_elli_homepage = https://github.com/elli-lib/elli
1240pkg_elli_fetch = git
1241pkg_elli_repo = https://github.com/elli-lib/elli
1242pkg_elli_commit = master
1243
1244PACKAGES += elvis
1245pkg_elvis_name = elvis
1246pkg_elvis_description = Erlang Style Reviewer
1247pkg_elvis_homepage = https://github.com/inaka/elvis
1248pkg_elvis_fetch = git
1249pkg_elvis_repo = https://github.com/inaka/elvis
1250pkg_elvis_commit = master
1251
1252PACKAGES += emagick
1253pkg_emagick_name = emagick
1254pkg_emagick_description = Wrapper for Graphics/ImageMagick command line tool.
1255pkg_emagick_homepage = https://github.com/kivra/emagick
1256pkg_emagick_fetch = git
1257pkg_emagick_repo = https://github.com/kivra/emagick
1258pkg_emagick_commit = master
1259
1260PACKAGES += emysql
1261pkg_emysql_name = emysql
1262pkg_emysql_description = Stable, pure Erlang MySQL driver.
1263pkg_emysql_homepage = https://github.com/Eonblast/Emysql
1264pkg_emysql_fetch = git
1265pkg_emysql_repo = https://github.com/Eonblast/Emysql
1266pkg_emysql_commit = master
1267
1268PACKAGES += enm
1269pkg_enm_name = enm
1270pkg_enm_description = Erlang driver for nanomsg
1271pkg_enm_homepage = https://github.com/basho/enm
1272pkg_enm_fetch = git
1273pkg_enm_repo = https://github.com/basho/enm
1274pkg_enm_commit = master
1275
1276PACKAGES += entop
1277pkg_entop_name = entop
1278pkg_entop_description = A top-like tool for monitoring an Erlang node
1279pkg_entop_homepage = https://github.com/mazenharake/entop
1280pkg_entop_fetch = git
1281pkg_entop_repo = https://github.com/mazenharake/entop
1282pkg_entop_commit = master
1283
1284PACKAGES += epcap
1285pkg_epcap_name = epcap
1286pkg_epcap_description = Erlang packet capture interface using pcap
1287pkg_epcap_homepage = https://github.com/msantos/epcap
1288pkg_epcap_fetch = git
1289pkg_epcap_repo = https://github.com/msantos/epcap
1290pkg_epcap_commit = master
1291
1292PACKAGES += eper
1293pkg_eper_name = eper
1294pkg_eper_description = Erlang performance and debugging tools.
1295pkg_eper_homepage = https://github.com/massemanet/eper
1296pkg_eper_fetch = git
1297pkg_eper_repo = https://github.com/massemanet/eper
1298pkg_eper_commit = master
1299
1300PACKAGES += epgsql
1301pkg_epgsql_name = epgsql
1302pkg_epgsql_description = Erlang PostgreSQL client library.
1303pkg_epgsql_homepage = https://github.com/epgsql/epgsql
1304pkg_epgsql_fetch = git
1305pkg_epgsql_repo = https://github.com/epgsql/epgsql
1306pkg_epgsql_commit = master
1307
1308PACKAGES += episcina
1309pkg_episcina_name = episcina
1310pkg_episcina_description = A simple non intrusive resource pool for connections
1311pkg_episcina_homepage = https://github.com/erlware/episcina
1312pkg_episcina_fetch = git
1313pkg_episcina_repo = https://github.com/erlware/episcina
1314pkg_episcina_commit = master
1315
1316PACKAGES += eplot
1317pkg_eplot_name = eplot
1318pkg_eplot_description = A plot engine written in erlang.
1319pkg_eplot_homepage = https://github.com/psyeugenic/eplot
1320pkg_eplot_fetch = git
1321pkg_eplot_repo = https://github.com/psyeugenic/eplot
1322pkg_eplot_commit = master
1323
1324PACKAGES += epocxy
1325pkg_epocxy_name = epocxy
1326pkg_epocxy_description = Erlang Patterns of Concurrency
1327pkg_epocxy_homepage = https://github.com/duomark/epocxy
1328pkg_epocxy_fetch = git
1329pkg_epocxy_repo = https://github.com/duomark/epocxy
1330pkg_epocxy_commit = master
1331
1332PACKAGES += epubnub
1333pkg_epubnub_name = epubnub
1334pkg_epubnub_description = Erlang PubNub API
1335pkg_epubnub_homepage = https://github.com/tsloughter/epubnub
1336pkg_epubnub_fetch = git
1337pkg_epubnub_repo = https://github.com/tsloughter/epubnub
1338pkg_epubnub_commit = master
1339
1340PACKAGES += eqm
1341pkg_eqm_name = eqm
1342pkg_eqm_description = Erlang pub sub with supply-demand channels
1343pkg_eqm_homepage = https://github.com/loucash/eqm
1344pkg_eqm_fetch = git
1345pkg_eqm_repo = https://github.com/loucash/eqm
1346pkg_eqm_commit = master
1347
1348PACKAGES += eredis
1349pkg_eredis_name = eredis
1350pkg_eredis_description = Erlang Redis client
1351pkg_eredis_homepage = https://github.com/wooga/eredis
1352pkg_eredis_fetch = git
1353pkg_eredis_repo = https://github.com/wooga/eredis
1354pkg_eredis_commit = master
1355
1356PACKAGES += eredis_pool
1357pkg_eredis_pool_name = eredis_pool
1358pkg_eredis_pool_description = eredis_pool is Pool of Redis clients, using eredis and poolboy.
1359pkg_eredis_pool_homepage = https://github.com/hiroeorz/eredis_pool
1360pkg_eredis_pool_fetch = git
1361pkg_eredis_pool_repo = https://github.com/hiroeorz/eredis_pool
1362pkg_eredis_pool_commit = master
1363
1364PACKAGES += erl_streams
1365pkg_erl_streams_name = erl_streams
1366pkg_erl_streams_description = Streams in Erlang
1367pkg_erl_streams_homepage = https://github.com/epappas/erl_streams
1368pkg_erl_streams_fetch = git
1369pkg_erl_streams_repo = https://github.com/epappas/erl_streams
1370pkg_erl_streams_commit = master
1371
1372PACKAGES += erlang_cep
1373pkg_erlang_cep_name = erlang_cep
1374pkg_erlang_cep_description = A basic CEP package written in erlang
1375pkg_erlang_cep_homepage = https://github.com/danmacklin/erlang_cep
1376pkg_erlang_cep_fetch = git
1377pkg_erlang_cep_repo = https://github.com/danmacklin/erlang_cep
1378pkg_erlang_cep_commit = master
1379
1380PACKAGES += erlang_js
1381pkg_erlang_js_name = erlang_js
1382pkg_erlang_js_description = A linked-in driver for Erlang to Mozilla's Spidermonkey Javascript runtime.
1383pkg_erlang_js_homepage = https://github.com/basho/erlang_js
1384pkg_erlang_js_fetch = git
1385pkg_erlang_js_repo = https://github.com/basho/erlang_js
1386pkg_erlang_js_commit = master
1387
1388PACKAGES += erlang_localtime
1389pkg_erlang_localtime_name = erlang_localtime
1390pkg_erlang_localtime_description = Erlang library for conversion from one local time to another
1391pkg_erlang_localtime_homepage = https://github.com/dmitryme/erlang_localtime
1392pkg_erlang_localtime_fetch = git
1393pkg_erlang_localtime_repo = https://github.com/dmitryme/erlang_localtime
1394pkg_erlang_localtime_commit = master
1395
1396PACKAGES += erlang_smtp
1397pkg_erlang_smtp_name = erlang_smtp
1398pkg_erlang_smtp_description = Erlang SMTP and POP3 server code.
1399pkg_erlang_smtp_homepage = https://github.com/tonyg/erlang-smtp
1400pkg_erlang_smtp_fetch = git
1401pkg_erlang_smtp_repo = https://github.com/tonyg/erlang-smtp
1402pkg_erlang_smtp_commit = master
1403
1404PACKAGES += erlang_term
1405pkg_erlang_term_name = erlang_term
1406pkg_erlang_term_description = Erlang Term Info
1407pkg_erlang_term_homepage = https://github.com/okeuday/erlang_term
1408pkg_erlang_term_fetch = git
1409pkg_erlang_term_repo = https://github.com/okeuday/erlang_term
1410pkg_erlang_term_commit = master
1411
1412PACKAGES += erlastic_search
1413pkg_erlastic_search_name = erlastic_search
1414pkg_erlastic_search_description = An Erlang app for communicating with Elastic Search's rest interface.
1415pkg_erlastic_search_homepage = https://github.com/tsloughter/erlastic_search
1416pkg_erlastic_search_fetch = git
1417pkg_erlastic_search_repo = https://github.com/tsloughter/erlastic_search
1418pkg_erlastic_search_commit = master
1419
1420PACKAGES += erlasticsearch
1421pkg_erlasticsearch_name = erlasticsearch
1422pkg_erlasticsearch_description = Erlang thrift interface to elastic_search
1423pkg_erlasticsearch_homepage = https://github.com/dieswaytoofast/erlasticsearch
1424pkg_erlasticsearch_fetch = git
1425pkg_erlasticsearch_repo = https://github.com/dieswaytoofast/erlasticsearch
1426pkg_erlasticsearch_commit = master
1427
1428PACKAGES += erlbrake
1429pkg_erlbrake_name = erlbrake
1430pkg_erlbrake_description = Erlang Airbrake notification client
1431pkg_erlbrake_homepage = https://github.com/kenpratt/erlbrake
1432pkg_erlbrake_fetch = git
1433pkg_erlbrake_repo = https://github.com/kenpratt/erlbrake
1434pkg_erlbrake_commit = master
1435
1436PACKAGES += erlcloud
1437pkg_erlcloud_name = erlcloud
1438pkg_erlcloud_description = Cloud Computing library for erlang (Amazon EC2, S3, SQS, SimpleDB, Mechanical Turk, ELB)
1439pkg_erlcloud_homepage = https://github.com/gleber/erlcloud
1440pkg_erlcloud_fetch = git
1441pkg_erlcloud_repo = https://github.com/gleber/erlcloud
1442pkg_erlcloud_commit = master
1443
1444PACKAGES += erlcron
1445pkg_erlcron_name = erlcron
1446pkg_erlcron_description = Erlang cronish system
1447pkg_erlcron_homepage = https://github.com/erlware/erlcron
1448pkg_erlcron_fetch = git
1449pkg_erlcron_repo = https://github.com/erlware/erlcron
1450pkg_erlcron_commit = master
1451
1452PACKAGES += erldb
1453pkg_erldb_name = erldb
1454pkg_erldb_description = ORM (Object-relational mapping) application implemented in Erlang
1455pkg_erldb_homepage = http://erldb.org
1456pkg_erldb_fetch = git
1457pkg_erldb_repo = https://github.com/erldb/erldb
1458pkg_erldb_commit = master
1459
1460PACKAGES += erldis
1461pkg_erldis_name = erldis
1462pkg_erldis_description = redis erlang client library
1463pkg_erldis_homepage = https://github.com/cstar/erldis
1464pkg_erldis_fetch = git
1465pkg_erldis_repo = https://github.com/cstar/erldis
1466pkg_erldis_commit = master
1467
1468PACKAGES += erldns
1469pkg_erldns_name = erldns
1470pkg_erldns_description = DNS server, in erlang.
1471pkg_erldns_homepage = https://github.com/aetrion/erl-dns
1472pkg_erldns_fetch = git
1473pkg_erldns_repo = https://github.com/aetrion/erl-dns
1474pkg_erldns_commit = master
1475
1476PACKAGES += erldocker
1477pkg_erldocker_name = erldocker
1478pkg_erldocker_description = Docker Remote API client for Erlang
1479pkg_erldocker_homepage = https://github.com/proger/erldocker
1480pkg_erldocker_fetch = git
1481pkg_erldocker_repo = https://github.com/proger/erldocker
1482pkg_erldocker_commit = master
1483
1484PACKAGES += erlfsmon
1485pkg_erlfsmon_name = erlfsmon
1486pkg_erlfsmon_description = Erlang filesystem event watcher for Linux and OSX
1487pkg_erlfsmon_homepage = https://github.com/proger/erlfsmon
1488pkg_erlfsmon_fetch = git
1489pkg_erlfsmon_repo = https://github.com/proger/erlfsmon
1490pkg_erlfsmon_commit = master
1491
1492PACKAGES += erlgit
1493pkg_erlgit_name = erlgit
1494pkg_erlgit_description = Erlang convenience wrapper around git executable
1495pkg_erlgit_homepage = https://github.com/gleber/erlgit
1496pkg_erlgit_fetch = git
1497pkg_erlgit_repo = https://github.com/gleber/erlgit
1498pkg_erlgit_commit = master
1499
1500PACKAGES += erlguten
1501pkg_erlguten_name = erlguten
1502pkg_erlguten_description = ErlGuten is a system for high-quality typesetting, written purely in Erlang.
1503pkg_erlguten_homepage = https://github.com/richcarl/erlguten
1504pkg_erlguten_fetch = git
1505pkg_erlguten_repo = https://github.com/richcarl/erlguten
1506pkg_erlguten_commit = master
1507
1508PACKAGES += erlmc
1509pkg_erlmc_name = erlmc
1510pkg_erlmc_description = Erlang memcached binary protocol client
1511pkg_erlmc_homepage = https://github.com/jkvor/erlmc
1512pkg_erlmc_fetch = git
1513pkg_erlmc_repo = https://github.com/jkvor/erlmc
1514pkg_erlmc_commit = master
1515
1516PACKAGES += erlmongo
1517pkg_erlmongo_name = erlmongo
1518pkg_erlmongo_description = Record based Erlang driver for MongoDB with gridfs support
1519pkg_erlmongo_homepage = https://github.com/SergejJurecko/erlmongo
1520pkg_erlmongo_fetch = git
1521pkg_erlmongo_repo = https://github.com/SergejJurecko/erlmongo
1522pkg_erlmongo_commit = master
1523
1524PACKAGES += erlog
1525pkg_erlog_name = erlog
1526pkg_erlog_description = Prolog interpreter in and for Erlang
1527pkg_erlog_homepage = https://github.com/rvirding/erlog
1528pkg_erlog_fetch = git
1529pkg_erlog_repo = https://github.com/rvirding/erlog
1530pkg_erlog_commit = master
1531
1532PACKAGES += erlpass
1533pkg_erlpass_name = erlpass
1534pkg_erlpass_description = A library to handle password hashing and changing in a safe manner, independent from any kind of storage whatsoever.
1535pkg_erlpass_homepage = https://github.com/ferd/erlpass
1536pkg_erlpass_fetch = git
1537pkg_erlpass_repo = https://github.com/ferd/erlpass
1538pkg_erlpass_commit = master
1539
1540PACKAGES += erlport
1541pkg_erlport_name = erlport
1542pkg_erlport_description = ErlPort - connect Erlang to other languages
1543pkg_erlport_homepage = https://github.com/hdima/erlport
1544pkg_erlport_fetch = git
1545pkg_erlport_repo = https://github.com/hdima/erlport
1546pkg_erlport_commit = master
1547
1548PACKAGES += erlsh
1549pkg_erlsh_name = erlsh
1550pkg_erlsh_description = Erlang shell tools
1551pkg_erlsh_homepage = https://github.com/proger/erlsh
1552pkg_erlsh_fetch = git
1553pkg_erlsh_repo = https://github.com/proger/erlsh
1554pkg_erlsh_commit = master
1555
1556PACKAGES += erlsha2
1557pkg_erlsha2_name = erlsha2
1558pkg_erlsha2_description = SHA-224, SHA-256, SHA-384, SHA-512 implemented in Erlang NIFs.
1559pkg_erlsha2_homepage = https://github.com/vinoski/erlsha2
1560pkg_erlsha2_fetch = git
1561pkg_erlsha2_repo = https://github.com/vinoski/erlsha2
1562pkg_erlsha2_commit = master
1563
1564PACKAGES += erlsom
1565pkg_erlsom_name = erlsom
1566pkg_erlsom_description = XML parser for Erlang
1567pkg_erlsom_homepage = https://github.com/willemdj/erlsom
1568pkg_erlsom_fetch = git
1569pkg_erlsom_repo = https://github.com/willemdj/erlsom
1570pkg_erlsom_commit = master
1571
1572PACKAGES += erlubi
1573pkg_erlubi_name = erlubi
1574pkg_erlubi_description = Ubigraph Erlang Client (and Process Visualizer)
1575pkg_erlubi_homepage = https://github.com/krestenkrab/erlubi
1576pkg_erlubi_fetch = git
1577pkg_erlubi_repo = https://github.com/krestenkrab/erlubi
1578pkg_erlubi_commit = master
1579
1580PACKAGES += erlvolt
1581pkg_erlvolt_name = erlvolt
1582pkg_erlvolt_description = VoltDB Erlang Client Driver
1583pkg_erlvolt_homepage = https://github.com/VoltDB/voltdb-client-erlang
1584pkg_erlvolt_fetch = git
1585pkg_erlvolt_repo = https://github.com/VoltDB/voltdb-client-erlang
1586pkg_erlvolt_commit = master
1587
1588PACKAGES += erlware_commons
1589pkg_erlware_commons_name = erlware_commons
1590pkg_erlware_commons_description = Erlware Commons is an Erlware project focused on all aspects of reusable Erlang components.
1591pkg_erlware_commons_homepage = https://github.com/erlware/erlware_commons
1592pkg_erlware_commons_fetch = git
1593pkg_erlware_commons_repo = https://github.com/erlware/erlware_commons
1594pkg_erlware_commons_commit = master
1595
1596PACKAGES += erlydtl
1597pkg_erlydtl_name = erlydtl
1598pkg_erlydtl_description = Django Template Language for Erlang.
1599pkg_erlydtl_homepage = https://github.com/erlydtl/erlydtl
1600pkg_erlydtl_fetch = git
1601pkg_erlydtl_repo = https://github.com/erlydtl/erlydtl
1602pkg_erlydtl_commit = master
1603
1604PACKAGES += errd
1605pkg_errd_name = errd
1606pkg_errd_description = Erlang RRDTool library
1607pkg_errd_homepage = https://github.com/archaelus/errd
1608pkg_errd_fetch = git
1609pkg_errd_repo = https://github.com/archaelus/errd
1610pkg_errd_commit = master
1611
1612PACKAGES += erserve
1613pkg_erserve_name = erserve
1614pkg_erserve_description = Erlang/Rserve communication interface
1615pkg_erserve_homepage = https://github.com/del/erserve
1616pkg_erserve_fetch = git
1617pkg_erserve_repo = https://github.com/del/erserve
1618pkg_erserve_commit = master
1619
1620PACKAGES += erwa
1621pkg_erwa_name = erwa
1622pkg_erwa_description = A WAMP router and client written in Erlang.
1623pkg_erwa_homepage = https://github.com/bwegh/erwa
1624pkg_erwa_fetch = git
1625pkg_erwa_repo = https://github.com/bwegh/erwa
1626pkg_erwa_commit = master
1627
1628PACKAGES += escalus
1629pkg_escalus_name = escalus
1630pkg_escalus_description = An XMPP client library in Erlang for conveniently testing XMPP servers
1631pkg_escalus_homepage = https://github.com/esl/escalus
1632pkg_escalus_fetch = git
1633pkg_escalus_repo = https://github.com/esl/escalus
1634pkg_escalus_commit = master
1635
1636PACKAGES += esh_mk
1637pkg_esh_mk_name = esh_mk
1638pkg_esh_mk_description = esh template engine plugin for erlang.mk
1639pkg_esh_mk_homepage = https://github.com/crownedgrouse/esh.mk
1640pkg_esh_mk_fetch = git
1641pkg_esh_mk_repo = https://github.com/crownedgrouse/esh.mk.git
1642pkg_esh_mk_commit = master
1643
1644PACKAGES += espec
1645pkg_espec_name = espec
1646pkg_espec_description = ESpec: Behaviour driven development framework for Erlang
1647pkg_espec_homepage = https://github.com/lucaspiller/espec
1648pkg_espec_fetch = git
1649pkg_espec_repo = https://github.com/lucaspiller/espec
1650pkg_espec_commit = master
1651
1652PACKAGES += estatsd
1653pkg_estatsd_name = estatsd
1654pkg_estatsd_description = Erlang stats aggregation app that periodically flushes data to graphite
1655pkg_estatsd_homepage = https://github.com/RJ/estatsd
1656pkg_estatsd_fetch = git
1657pkg_estatsd_repo = https://github.com/RJ/estatsd
1658pkg_estatsd_commit = master
1659
1660PACKAGES += etap
1661pkg_etap_name = etap
1662pkg_etap_description = etap is a simple erlang testing library that provides TAP compliant output.
1663pkg_etap_homepage = https://github.com/ngerakines/etap
1664pkg_etap_fetch = git
1665pkg_etap_repo = https://github.com/ngerakines/etap
1666pkg_etap_commit = master
1667
1668PACKAGES += etest
1669pkg_etest_name = etest
1670pkg_etest_description = A lightweight, convention over configuration test framework for Erlang
1671pkg_etest_homepage = https://github.com/wooga/etest
1672pkg_etest_fetch = git
1673pkg_etest_repo = https://github.com/wooga/etest
1674pkg_etest_commit = master
1675
1676PACKAGES += etest_http
1677pkg_etest_http_name = etest_http
1678pkg_etest_http_description = etest Assertions around HTTP (client-side)
1679pkg_etest_http_homepage = https://github.com/wooga/etest_http
1680pkg_etest_http_fetch = git
1681pkg_etest_http_repo = https://github.com/wooga/etest_http
1682pkg_etest_http_commit = master
1683
1684PACKAGES += etoml
1685pkg_etoml_name = etoml
1686pkg_etoml_description = TOML language erlang parser
1687pkg_etoml_homepage = https://github.com/kalta/etoml
1688pkg_etoml_fetch = git
1689pkg_etoml_repo = https://github.com/kalta/etoml
1690pkg_etoml_commit = master
1691
1692PACKAGES += eunit
1693pkg_eunit_name = eunit
1694pkg_eunit_description = The EUnit lightweight unit testing framework for Erlang - this is the canonical development repository.
1695pkg_eunit_homepage = https://github.com/richcarl/eunit
1696pkg_eunit_fetch = git
1697pkg_eunit_repo = https://github.com/richcarl/eunit
1698pkg_eunit_commit = master
1699
1700PACKAGES += eunit_formatters
1701pkg_eunit_formatters_name = eunit_formatters
1702pkg_eunit_formatters_description = Because eunit's output sucks. Let's make it better.
1703pkg_eunit_formatters_homepage = https://github.com/seancribbs/eunit_formatters
1704pkg_eunit_formatters_fetch = git
1705pkg_eunit_formatters_repo = https://github.com/seancribbs/eunit_formatters
1706pkg_eunit_formatters_commit = master
1707
1708PACKAGES += euthanasia
1709pkg_euthanasia_name = euthanasia
1710pkg_euthanasia_description = Merciful killer for your Erlang processes
1711pkg_euthanasia_homepage = https://github.com/doubleyou/euthanasia
1712pkg_euthanasia_fetch = git
1713pkg_euthanasia_repo = https://github.com/doubleyou/euthanasia
1714pkg_euthanasia_commit = master
1715
1716PACKAGES += evum
1717pkg_evum_name = evum
1718pkg_evum_description = Spawn Linux VMs as Erlang processes in the Erlang VM
1719pkg_evum_homepage = https://github.com/msantos/evum
1720pkg_evum_fetch = git
1721pkg_evum_repo = https://github.com/msantos/evum
1722pkg_evum_commit = master
1723
1724PACKAGES += exec
1725pkg_exec_name = erlexec
1726pkg_exec_description = Execute and control OS processes from Erlang/OTP.
1727pkg_exec_homepage = http://saleyn.github.com/erlexec
1728pkg_exec_fetch = git
1729pkg_exec_repo = https://github.com/saleyn/erlexec
1730pkg_exec_commit = master
1731
1732PACKAGES += exml
1733pkg_exml_name = exml
1734pkg_exml_description = XML parsing library in Erlang
1735pkg_exml_homepage = https://github.com/paulgray/exml
1736pkg_exml_fetch = git
1737pkg_exml_repo = https://github.com/paulgray/exml
1738pkg_exml_commit = master
1739
1740PACKAGES += exometer
1741pkg_exometer_name = exometer
1742pkg_exometer_description = Basic measurement objects and probe behavior
1743pkg_exometer_homepage = https://github.com/Feuerlabs/exometer
1744pkg_exometer_fetch = git
1745pkg_exometer_repo = https://github.com/Feuerlabs/exometer
1746pkg_exometer_commit = master
1747
1748PACKAGES += exs1024
1749pkg_exs1024_name = exs1024
1750pkg_exs1024_description = Xorshift1024star pseudo random number generator for Erlang.
1751pkg_exs1024_homepage = https://github.com/jj1bdx/exs1024
1752pkg_exs1024_fetch = git
1753pkg_exs1024_repo = https://github.com/jj1bdx/exs1024
1754pkg_exs1024_commit = master
1755
1756PACKAGES += exs64
1757pkg_exs64_name = exs64
1758pkg_exs64_description = Xorshift64star pseudo random number generator for Erlang.
1759pkg_exs64_homepage = https://github.com/jj1bdx/exs64
1760pkg_exs64_fetch = git
1761pkg_exs64_repo = https://github.com/jj1bdx/exs64
1762pkg_exs64_commit = master
1763
1764PACKAGES += exsplus116
1765pkg_exsplus116_name = exsplus116
1766pkg_exsplus116_description = Xorshift116plus for Erlang
1767pkg_exsplus116_homepage = https://github.com/jj1bdx/exsplus116
1768pkg_exsplus116_fetch = git
1769pkg_exsplus116_repo = https://github.com/jj1bdx/exsplus116
1770pkg_exsplus116_commit = master
1771
1772PACKAGES += exsplus128
1773pkg_exsplus128_name = exsplus128
1774pkg_exsplus128_description = Xorshift128plus pseudo random number generator for Erlang.
1775pkg_exsplus128_homepage = https://github.com/jj1bdx/exsplus128
1776pkg_exsplus128_fetch = git
1777pkg_exsplus128_repo = https://github.com/jj1bdx/exsplus128
1778pkg_exsplus128_commit = master
1779
1780PACKAGES += ezmq
1781pkg_ezmq_name = ezmq
1782pkg_ezmq_description = zMQ implemented in Erlang
1783pkg_ezmq_homepage = https://github.com/RoadRunnr/ezmq
1784pkg_ezmq_fetch = git
1785pkg_ezmq_repo = https://github.com/RoadRunnr/ezmq
1786pkg_ezmq_commit = master
1787
1788PACKAGES += ezmtp
1789pkg_ezmtp_name = ezmtp
1790pkg_ezmtp_description = ZMTP protocol in pure Erlang.
1791pkg_ezmtp_homepage = https://github.com/a13x/ezmtp
1792pkg_ezmtp_fetch = git
1793pkg_ezmtp_repo = https://github.com/a13x/ezmtp
1794pkg_ezmtp_commit = master
1795
1796PACKAGES += fast_disk_log
1797pkg_fast_disk_log_name = fast_disk_log
1798pkg_fast_disk_log_description = Pool-based asynchronous Erlang disk logger
1799pkg_fast_disk_log_homepage = https://github.com/lpgauth/fast_disk_log
1800pkg_fast_disk_log_fetch = git
1801pkg_fast_disk_log_repo = https://github.com/lpgauth/fast_disk_log
1802pkg_fast_disk_log_commit = master
1803
1804PACKAGES += feeder
1805pkg_feeder_name = feeder
1806pkg_feeder_description = Stream parse RSS and Atom formatted XML feeds.
1807pkg_feeder_homepage = https://github.com/michaelnisi/feeder
1808pkg_feeder_fetch = git
1809pkg_feeder_repo = https://github.com/michaelnisi/feeder
1810pkg_feeder_commit = master
1811
1812PACKAGES += find_crate
1813pkg_find_crate_name = find_crate
1814pkg_find_crate_description = Find Rust libs and exes in Erlang application priv directory
1815pkg_find_crate_homepage = https://github.com/goertzenator/find_crate
1816pkg_find_crate_fetch = git
1817pkg_find_crate_repo = https://github.com/goertzenator/find_crate
1818pkg_find_crate_commit = master
1819
1820PACKAGES += fix
1821pkg_fix_name = fix
1822pkg_fix_description = http://fixprotocol.org/ implementation.
1823pkg_fix_homepage = https://github.com/maxlapshin/fix
1824pkg_fix_fetch = git
1825pkg_fix_repo = https://github.com/maxlapshin/fix
1826pkg_fix_commit = master
1827
1828PACKAGES += flower
1829pkg_flower_name = flower
1830pkg_flower_description = FlowER - a Erlang OpenFlow development platform
1831pkg_flower_homepage = https://github.com/travelping/flower
1832pkg_flower_fetch = git
1833pkg_flower_repo = https://github.com/travelping/flower
1834pkg_flower_commit = master
1835
1836PACKAGES += fn
1837pkg_fn_name = fn
1838pkg_fn_description = Function utilities for Erlang
1839pkg_fn_homepage = https://github.com/reiddraper/fn
1840pkg_fn_fetch = git
1841pkg_fn_repo = https://github.com/reiddraper/fn
1842pkg_fn_commit = master
1843
1844PACKAGES += folsom
1845pkg_folsom_name = folsom
1846pkg_folsom_description = Expose Erlang Events and Metrics
1847pkg_folsom_homepage = https://github.com/boundary/folsom
1848pkg_folsom_fetch = git
1849pkg_folsom_repo = https://github.com/boundary/folsom
1850pkg_folsom_commit = master
1851
1852PACKAGES += folsom_cowboy
1853pkg_folsom_cowboy_name = folsom_cowboy
1854pkg_folsom_cowboy_description = A Cowboy based Folsom HTTP Wrapper.
1855pkg_folsom_cowboy_homepage = https://github.com/boundary/folsom_cowboy
1856pkg_folsom_cowboy_fetch = git
1857pkg_folsom_cowboy_repo = https://github.com/boundary/folsom_cowboy
1858pkg_folsom_cowboy_commit = master
1859
1860PACKAGES += folsomite
1861pkg_folsomite_name = folsomite
1862pkg_folsomite_description = blow up your graphite / riemann server with folsom metrics
1863pkg_folsomite_homepage = https://github.com/campanja/folsomite
1864pkg_folsomite_fetch = git
1865pkg_folsomite_repo = https://github.com/campanja/folsomite
1866pkg_folsomite_commit = master
1867
1868PACKAGES += fs
1869pkg_fs_name = fs
1870pkg_fs_description = Erlang FileSystem Listener
1871pkg_fs_homepage = https://github.com/synrc/fs
1872pkg_fs_fetch = git
1873pkg_fs_repo = https://github.com/synrc/fs
1874pkg_fs_commit = master
1875
1876PACKAGES += fuse
1877pkg_fuse_name = fuse
1878pkg_fuse_description = A Circuit Breaker for Erlang
1879pkg_fuse_homepage = https://github.com/jlouis/fuse
1880pkg_fuse_fetch = git
1881pkg_fuse_repo = https://github.com/jlouis/fuse
1882pkg_fuse_commit = master
1883
1884PACKAGES += gcm
1885pkg_gcm_name = gcm
1886pkg_gcm_description = An Erlang application for Google Cloud Messaging
1887pkg_gcm_homepage = https://github.com/pdincau/gcm-erlang
1888pkg_gcm_fetch = git
1889pkg_gcm_repo = https://github.com/pdincau/gcm-erlang
1890pkg_gcm_commit = master
1891
1892PACKAGES += gcprof
1893pkg_gcprof_name = gcprof
1894pkg_gcprof_description = Garbage Collection profiler for Erlang
1895pkg_gcprof_homepage = https://github.com/knutin/gcprof
1896pkg_gcprof_fetch = git
1897pkg_gcprof_repo = https://github.com/knutin/gcprof
1898pkg_gcprof_commit = master
1899
1900PACKAGES += geas
1901pkg_geas_name = geas
1902pkg_geas_description = Guess Erlang Application Scattering
1903pkg_geas_homepage = https://github.com/crownedgrouse/geas
1904pkg_geas_fetch = git
1905pkg_geas_repo = https://github.com/crownedgrouse/geas
1906pkg_geas_commit = master
1907
1908PACKAGES += geef
1909pkg_geef_name = geef
1910pkg_geef_description = Git NEEEEF (Erlang NIF)
1911pkg_geef_homepage = https://github.com/carlosmn/geef
1912pkg_geef_fetch = git
1913pkg_geef_repo = https://github.com/carlosmn/geef
1914pkg_geef_commit = master
1915
1916PACKAGES += gen_coap
1917pkg_gen_coap_name = gen_coap
1918pkg_gen_coap_description = Generic Erlang CoAP Client/Server
1919pkg_gen_coap_homepage = https://github.com/gotthardp/gen_coap
1920pkg_gen_coap_fetch = git
1921pkg_gen_coap_repo = https://github.com/gotthardp/gen_coap
1922pkg_gen_coap_commit = master
1923
1924PACKAGES += gen_cycle
1925pkg_gen_cycle_name = gen_cycle
1926pkg_gen_cycle_description = Simple, generic OTP behaviour for recurring tasks
1927pkg_gen_cycle_homepage = https://github.com/aerosol/gen_cycle
1928pkg_gen_cycle_fetch = git
1929pkg_gen_cycle_repo = https://github.com/aerosol/gen_cycle
1930pkg_gen_cycle_commit = develop
1931
1932PACKAGES += gen_icmp
1933pkg_gen_icmp_name = gen_icmp
1934pkg_gen_icmp_description = Erlang interface to ICMP sockets
1935pkg_gen_icmp_homepage = https://github.com/msantos/gen_icmp
1936pkg_gen_icmp_fetch = git
1937pkg_gen_icmp_repo = https://github.com/msantos/gen_icmp
1938pkg_gen_icmp_commit = master
1939
1940PACKAGES += gen_leader
1941pkg_gen_leader_name = gen_leader
1942pkg_gen_leader_description = leader election behavior
1943pkg_gen_leader_homepage = https://github.com/garret-smith/gen_leader_revival
1944pkg_gen_leader_fetch = git
1945pkg_gen_leader_repo = https://github.com/garret-smith/gen_leader_revival
1946pkg_gen_leader_commit = master
1947
1948PACKAGES += gen_nb_server
1949pkg_gen_nb_server_name = gen_nb_server
1950pkg_gen_nb_server_description = OTP behavior for writing non-blocking servers
1951pkg_gen_nb_server_homepage = https://github.com/kevsmith/gen_nb_server
1952pkg_gen_nb_server_fetch = git
1953pkg_gen_nb_server_repo = https://github.com/kevsmith/gen_nb_server
1954pkg_gen_nb_server_commit = master
1955
1956PACKAGES += gen_paxos
1957pkg_gen_paxos_name = gen_paxos
1958pkg_gen_paxos_description = An Erlang/OTP-style implementation of the PAXOS distributed consensus protocol
1959pkg_gen_paxos_homepage = https://github.com/gburd/gen_paxos
1960pkg_gen_paxos_fetch = git
1961pkg_gen_paxos_repo = https://github.com/gburd/gen_paxos
1962pkg_gen_paxos_commit = master
1963
1964PACKAGES += gen_rpc
1965pkg_gen_rpc_name = gen_rpc
1966pkg_gen_rpc_description = A scalable RPC library for Erlang-VM based languages
1967pkg_gen_rpc_homepage = https://github.com/priestjim/gen_rpc.git
1968pkg_gen_rpc_fetch = git
1969pkg_gen_rpc_repo = https://github.com/priestjim/gen_rpc.git
1970pkg_gen_rpc_commit = master
1971
1972PACKAGES += gen_smtp
1973pkg_gen_smtp_name = gen_smtp
1974pkg_gen_smtp_description = A generic Erlang SMTP server and client that can be extended via callback modules
1975pkg_gen_smtp_homepage = https://github.com/Vagabond/gen_smtp
1976pkg_gen_smtp_fetch = git
1977pkg_gen_smtp_repo = https://github.com/Vagabond/gen_smtp
1978pkg_gen_smtp_commit = master
1979
1980PACKAGES += gen_tracker
1981pkg_gen_tracker_name = gen_tracker
1982pkg_gen_tracker_description = supervisor with ets handling of children and their metadata
1983pkg_gen_tracker_homepage = https://github.com/erlyvideo/gen_tracker
1984pkg_gen_tracker_fetch = git
1985pkg_gen_tracker_repo = https://github.com/erlyvideo/gen_tracker
1986pkg_gen_tracker_commit = master
1987
1988PACKAGES += gen_unix
1989pkg_gen_unix_name = gen_unix
1990pkg_gen_unix_description = Erlang Unix socket interface
1991pkg_gen_unix_homepage = https://github.com/msantos/gen_unix
1992pkg_gen_unix_fetch = git
1993pkg_gen_unix_repo = https://github.com/msantos/gen_unix
1994pkg_gen_unix_commit = master
1995
1996PACKAGES += geode
1997pkg_geode_name = geode
1998pkg_geode_description = geohash/proximity lookup in pure, uncut erlang.
1999pkg_geode_homepage = https://github.com/bradfordw/geode
2000pkg_geode_fetch = git
2001pkg_geode_repo = https://github.com/bradfordw/geode
2002pkg_geode_commit = master
2003
2004PACKAGES += getopt
2005pkg_getopt_name = getopt
2006pkg_getopt_description = Module to parse command line arguments using the GNU getopt syntax
2007pkg_getopt_homepage = https://github.com/jcomellas/getopt
2008pkg_getopt_fetch = git
2009pkg_getopt_repo = https://github.com/jcomellas/getopt
2010pkg_getopt_commit = master
2011
2012PACKAGES += gettext
2013pkg_gettext_name = gettext
2014pkg_gettext_description = Erlang internationalization library.
2015pkg_gettext_homepage = https://github.com/etnt/gettext
2016pkg_gettext_fetch = git
2017pkg_gettext_repo = https://github.com/etnt/gettext
2018pkg_gettext_commit = master
2019
2020PACKAGES += giallo
2021pkg_giallo_name = giallo
2022pkg_giallo_description = Small and flexible web framework on top of Cowboy
2023pkg_giallo_homepage = https://github.com/kivra/giallo
2024pkg_giallo_fetch = git
2025pkg_giallo_repo = https://github.com/kivra/giallo
2026pkg_giallo_commit = master
2027
2028PACKAGES += gin
2029pkg_gin_name = gin
2030pkg_gin_description = The guards  and  for Erlang parse_transform
2031pkg_gin_homepage = https://github.com/mad-cocktail/gin
2032pkg_gin_fetch = git
2033pkg_gin_repo = https://github.com/mad-cocktail/gin
2034pkg_gin_commit = master
2035
2036PACKAGES += gitty
2037pkg_gitty_name = gitty
2038pkg_gitty_description = Git access in erlang
2039pkg_gitty_homepage = https://github.com/maxlapshin/gitty
2040pkg_gitty_fetch = git
2041pkg_gitty_repo = https://github.com/maxlapshin/gitty
2042pkg_gitty_commit = master
2043
2044PACKAGES += gold_fever
2045pkg_gold_fever_name = gold_fever
2046pkg_gold_fever_description = A Treasure Hunt for Erlangers
2047pkg_gold_fever_homepage = https://github.com/inaka/gold_fever
2048pkg_gold_fever_fetch = git
2049pkg_gold_fever_repo = https://github.com/inaka/gold_fever
2050pkg_gold_fever_commit = master
2051
2052PACKAGES += gpb
2053pkg_gpb_name = gpb
2054pkg_gpb_description = A Google Protobuf implementation for Erlang
2055pkg_gpb_homepage = https://github.com/tomas-abrahamsson/gpb
2056pkg_gpb_fetch = git
2057pkg_gpb_repo = https://github.com/tomas-abrahamsson/gpb
2058pkg_gpb_commit = master
2059
2060PACKAGES += gproc
2061pkg_gproc_name = gproc
2062pkg_gproc_description = Extended process registry for Erlang
2063pkg_gproc_homepage = https://github.com/uwiger/gproc
2064pkg_gproc_fetch = git
2065pkg_gproc_repo = https://github.com/uwiger/gproc
2066pkg_gproc_commit = master
2067
2068PACKAGES += grapherl
2069pkg_grapherl_name = grapherl
2070pkg_grapherl_description = Create graphs of Erlang systems and programs
2071pkg_grapherl_homepage = https://github.com/eproxus/grapherl
2072pkg_grapherl_fetch = git
2073pkg_grapherl_repo = https://github.com/eproxus/grapherl
2074pkg_grapherl_commit = master
2075
2076PACKAGES += grpc
2077pkg_grpc_name = grpc
2078pkg_grpc_description = gRPC server in Erlang
2079pkg_grpc_homepage = https://github.com/Bluehouse-Technology/grpc
2080pkg_grpc_fetch = git
2081pkg_grpc_repo = https://github.com/Bluehouse-Technology/grpc
2082pkg_grpc_commit = master
2083
2084PACKAGES += grpc_client
2085pkg_grpc_client_name = grpc_client
2086pkg_grpc_client_description = gRPC client in Erlang
2087pkg_grpc_client_homepage = https://github.com/Bluehouse-Technology/grpc_client
2088pkg_grpc_client_fetch = git
2089pkg_grpc_client_repo = https://github.com/Bluehouse-Technology/grpc_client
2090pkg_grpc_client_commit = master
2091
2092PACKAGES += gun
2093pkg_gun_name = gun
2094pkg_gun_description = Asynchronous SPDY, HTTP and Websocket client written in Erlang.
2095pkg_gun_homepage = http//ninenines.eu
2096pkg_gun_fetch = git
2097pkg_gun_repo = https://github.com/ninenines/gun
2098pkg_gun_commit = master
2099
2100PACKAGES += gut
2101pkg_gut_name = gut
2102pkg_gut_description = gut is a template printing, aka scaffolding, tool for Erlang. Like rails generate or yeoman
2103pkg_gut_homepage = https://github.com/unbalancedparentheses/gut
2104pkg_gut_fetch = git
2105pkg_gut_repo = https://github.com/unbalancedparentheses/gut
2106pkg_gut_commit = master
2107
2108PACKAGES += hackney
2109pkg_hackney_name = hackney
2110pkg_hackney_description = simple HTTP client in Erlang
2111pkg_hackney_homepage = https://github.com/benoitc/hackney
2112pkg_hackney_fetch = git
2113pkg_hackney_repo = https://github.com/benoitc/hackney
2114pkg_hackney_commit = master
2115
2116PACKAGES += hamcrest
2117pkg_hamcrest_name = hamcrest
2118pkg_hamcrest_description = Erlang port of Hamcrest
2119pkg_hamcrest_homepage = https://github.com/hyperthunk/hamcrest-erlang
2120pkg_hamcrest_fetch = git
2121pkg_hamcrest_repo = https://github.com/hyperthunk/hamcrest-erlang
2122pkg_hamcrest_commit = master
2123
2124PACKAGES += hanoidb
2125pkg_hanoidb_name = hanoidb
2126pkg_hanoidb_description = Erlang LSM BTree Storage
2127pkg_hanoidb_homepage = https://github.com/krestenkrab/hanoidb
2128pkg_hanoidb_fetch = git
2129pkg_hanoidb_repo = https://github.com/krestenkrab/hanoidb
2130pkg_hanoidb_commit = master
2131
2132PACKAGES += hottub
2133pkg_hottub_name = hottub
2134pkg_hottub_description = Permanent Erlang Worker Pool
2135pkg_hottub_homepage = https://github.com/bfrog/hottub
2136pkg_hottub_fetch = git
2137pkg_hottub_repo = https://github.com/bfrog/hottub
2138pkg_hottub_commit = master
2139
2140PACKAGES += hpack
2141pkg_hpack_name = hpack
2142pkg_hpack_description = HPACK Implementation for Erlang
2143pkg_hpack_homepage = https://github.com/joedevivo/hpack
2144pkg_hpack_fetch = git
2145pkg_hpack_repo = https://github.com/joedevivo/hpack
2146pkg_hpack_commit = master
2147
2148PACKAGES += hyper
2149pkg_hyper_name = hyper
2150pkg_hyper_description = Erlang implementation of HyperLogLog
2151pkg_hyper_homepage = https://github.com/GameAnalytics/hyper
2152pkg_hyper_fetch = git
2153pkg_hyper_repo = https://github.com/GameAnalytics/hyper
2154pkg_hyper_commit = master
2155
2156PACKAGES += i18n
2157pkg_i18n_name = i18n
2158pkg_i18n_description = International components for unicode from Erlang (unicode, date, string, number, format, locale, localization, transliteration, icu4e)
2159pkg_i18n_homepage = https://github.com/erlang-unicode/i18n
2160pkg_i18n_fetch = git
2161pkg_i18n_repo = https://github.com/erlang-unicode/i18n
2162pkg_i18n_commit = master
2163
2164PACKAGES += ibrowse
2165pkg_ibrowse_name = ibrowse
2166pkg_ibrowse_description = Erlang HTTP client
2167pkg_ibrowse_homepage = https://github.com/cmullaparthi/ibrowse
2168pkg_ibrowse_fetch = git
2169pkg_ibrowse_repo = https://github.com/cmullaparthi/ibrowse
2170pkg_ibrowse_commit = master
2171
2172PACKAGES += idna
2173pkg_idna_name = idna
2174pkg_idna_description = Erlang IDNA lib
2175pkg_idna_homepage = https://github.com/benoitc/erlang-idna
2176pkg_idna_fetch = git
2177pkg_idna_repo = https://github.com/benoitc/erlang-idna
2178pkg_idna_commit = master
2179
2180PACKAGES += ierlang
2181pkg_ierlang_name = ierlang
2182pkg_ierlang_description = An Erlang language kernel for IPython.
2183pkg_ierlang_homepage = https://github.com/robbielynch/ierlang
2184pkg_ierlang_fetch = git
2185pkg_ierlang_repo = https://github.com/robbielynch/ierlang
2186pkg_ierlang_commit = master
2187
2188PACKAGES += iota
2189pkg_iota_name = iota
2190pkg_iota_description = iota (Inter-dependency Objective Testing Apparatus) - a tool to enforce clean separation of responsibilities in Erlang code
2191pkg_iota_homepage = https://github.com/jpgneves/iota
2192pkg_iota_fetch = git
2193pkg_iota_repo = https://github.com/jpgneves/iota
2194pkg_iota_commit = master
2195
2196PACKAGES += irc_lib
2197pkg_irc_lib_name = irc_lib
2198pkg_irc_lib_description = Erlang irc client library
2199pkg_irc_lib_homepage = https://github.com/OtpChatBot/irc_lib
2200pkg_irc_lib_fetch = git
2201pkg_irc_lib_repo = https://github.com/OtpChatBot/irc_lib
2202pkg_irc_lib_commit = master
2203
2204PACKAGES += ircd
2205pkg_ircd_name = ircd
2206pkg_ircd_description = A pluggable IRC daemon application/library for Erlang.
2207pkg_ircd_homepage = https://github.com/tonyg/erlang-ircd
2208pkg_ircd_fetch = git
2209pkg_ircd_repo = https://github.com/tonyg/erlang-ircd
2210pkg_ircd_commit = master
2211
2212PACKAGES += iris
2213pkg_iris_name = iris
2214pkg_iris_description = Iris Erlang binding
2215pkg_iris_homepage = https://github.com/project-iris/iris-erl
2216pkg_iris_fetch = git
2217pkg_iris_repo = https://github.com/project-iris/iris-erl
2218pkg_iris_commit = master
2219
2220PACKAGES += iso8601
2221pkg_iso8601_name = iso8601
2222pkg_iso8601_description = Erlang ISO 8601 date formatter/parser
2223pkg_iso8601_homepage = https://github.com/seansawyer/erlang_iso8601
2224pkg_iso8601_fetch = git
2225pkg_iso8601_repo = https://github.com/seansawyer/erlang_iso8601
2226pkg_iso8601_commit = master
2227
2228PACKAGES += jamdb_sybase
2229pkg_jamdb_sybase_name = jamdb_sybase
2230pkg_jamdb_sybase_description = Erlang driver for SAP Sybase ASE
2231pkg_jamdb_sybase_homepage = https://github.com/erlangbureau/jamdb_sybase
2232pkg_jamdb_sybase_fetch = git
2233pkg_jamdb_sybase_repo = https://github.com/erlangbureau/jamdb_sybase
2234pkg_jamdb_sybase_commit = master
2235
2236PACKAGES += jerg
2237pkg_jerg_name = jerg
2238pkg_jerg_description = JSON Schema to Erlang Records Generator
2239pkg_jerg_homepage = https://github.com/ddossot/jerg
2240pkg_jerg_fetch = git
2241pkg_jerg_repo = https://github.com/ddossot/jerg
2242pkg_jerg_commit = master
2243
2244PACKAGES += jesse
2245pkg_jesse_name = jesse
2246pkg_jesse_description = jesse (JSon Schema Erlang) is an implementation of a json schema validator for Erlang.
2247pkg_jesse_homepage = https://github.com/for-GET/jesse
2248pkg_jesse_fetch = git
2249pkg_jesse_repo = https://github.com/for-GET/jesse
2250pkg_jesse_commit = master
2251
2252PACKAGES += jiffy
2253pkg_jiffy_name = jiffy
2254pkg_jiffy_description = JSON NIFs for Erlang.
2255pkg_jiffy_homepage = https://github.com/davisp/jiffy
2256pkg_jiffy_fetch = git
2257pkg_jiffy_repo = https://github.com/davisp/jiffy
2258pkg_jiffy_commit = master
2259
2260PACKAGES += jiffy_v
2261pkg_jiffy_v_name = jiffy_v
2262pkg_jiffy_v_description = JSON validation utility
2263pkg_jiffy_v_homepage = https://github.com/shizzard/jiffy-v
2264pkg_jiffy_v_fetch = git
2265pkg_jiffy_v_repo = https://github.com/shizzard/jiffy-v
2266pkg_jiffy_v_commit = master
2267
2268PACKAGES += jobs
2269pkg_jobs_name = jobs
2270pkg_jobs_description = a Job scheduler for load regulation
2271pkg_jobs_homepage = https://github.com/esl/jobs
2272pkg_jobs_fetch = git
2273pkg_jobs_repo = https://github.com/esl/jobs
2274pkg_jobs_commit = master
2275
2276PACKAGES += joxa
2277pkg_joxa_name = joxa
2278pkg_joxa_description = A Modern Lisp for the Erlang VM
2279pkg_joxa_homepage = https://github.com/joxa/joxa
2280pkg_joxa_fetch = git
2281pkg_joxa_repo = https://github.com/joxa/joxa
2282pkg_joxa_commit = master
2283
2284PACKAGES += json
2285pkg_json_name = json
2286pkg_json_description = a high level json library for erlang (17.0+)
2287pkg_json_homepage = https://github.com/talentdeficit/json
2288pkg_json_fetch = git
2289pkg_json_repo = https://github.com/talentdeficit/json
2290pkg_json_commit = master
2291
2292PACKAGES += json_rec
2293pkg_json_rec_name = json_rec
2294pkg_json_rec_description = JSON to erlang record
2295pkg_json_rec_homepage = https://github.com/justinkirby/json_rec
2296pkg_json_rec_fetch = git
2297pkg_json_rec_repo = https://github.com/justinkirby/json_rec
2298pkg_json_rec_commit = master
2299
2300PACKAGES += jsone
2301pkg_jsone_name = jsone
2302pkg_jsone_description = An Erlang library for encoding, decoding JSON data.
2303pkg_jsone_homepage = https://github.com/sile/jsone.git
2304pkg_jsone_fetch = git
2305pkg_jsone_repo = https://github.com/sile/jsone.git
2306pkg_jsone_commit = master
2307
2308PACKAGES += jsonerl
2309pkg_jsonerl_name = jsonerl
2310pkg_jsonerl_description = yet another but slightly different erlang <-> json encoder/decoder
2311pkg_jsonerl_homepage = https://github.com/lambder/jsonerl
2312pkg_jsonerl_fetch = git
2313pkg_jsonerl_repo = https://github.com/lambder/jsonerl
2314pkg_jsonerl_commit = master
2315
2316PACKAGES += jsonpath
2317pkg_jsonpath_name = jsonpath
2318pkg_jsonpath_description = Fast Erlang JSON data retrieval and updates via javascript-like notation
2319pkg_jsonpath_homepage = https://github.com/GeneStevens/jsonpath
2320pkg_jsonpath_fetch = git
2321pkg_jsonpath_repo = https://github.com/GeneStevens/jsonpath
2322pkg_jsonpath_commit = master
2323
2324PACKAGES += jsonx
2325pkg_jsonx_name = jsonx
2326pkg_jsonx_description = JSONX is an Erlang library for efficient decode and encode JSON, written in C.
2327pkg_jsonx_homepage = https://github.com/iskra/jsonx
2328pkg_jsonx_fetch = git
2329pkg_jsonx_repo = https://github.com/iskra/jsonx
2330pkg_jsonx_commit = master
2331
2332PACKAGES += jsx
2333pkg_jsx_name = jsx
2334pkg_jsx_description = An Erlang application for consuming, producing and manipulating JSON.
2335pkg_jsx_homepage = https://github.com/talentdeficit/jsx
2336pkg_jsx_fetch = git
2337pkg_jsx_repo = https://github.com/talentdeficit/jsx
2338pkg_jsx_commit = main
2339
2340PACKAGES += kafka
2341pkg_kafka_name = kafka
2342pkg_kafka_description = Kafka consumer and producer in Erlang
2343pkg_kafka_homepage = https://github.com/wooga/kafka-erlang
2344pkg_kafka_fetch = git
2345pkg_kafka_repo = https://github.com/wooga/kafka-erlang
2346pkg_kafka_commit = master
2347
2348PACKAGES += kafka_protocol
2349pkg_kafka_protocol_name = kafka_protocol
2350pkg_kafka_protocol_description = Kafka protocol Erlang library
2351pkg_kafka_protocol_homepage = https://github.com/klarna/kafka_protocol
2352pkg_kafka_protocol_fetch = git
2353pkg_kafka_protocol_repo = https://github.com/klarna/kafka_protocol.git
2354pkg_kafka_protocol_commit = master
2355
2356PACKAGES += kai
2357pkg_kai_name = kai
2358pkg_kai_description = DHT storage by Takeshi Inoue
2359pkg_kai_homepage = https://github.com/synrc/kai
2360pkg_kai_fetch = git
2361pkg_kai_repo = https://github.com/synrc/kai
2362pkg_kai_commit = master
2363
2364PACKAGES += katja
2365pkg_katja_name = katja
2366pkg_katja_description = A simple Riemann client written in Erlang.
2367pkg_katja_homepage = https://github.com/nifoc/katja
2368pkg_katja_fetch = git
2369pkg_katja_repo = https://github.com/nifoc/katja
2370pkg_katja_commit = master
2371
2372PACKAGES += kdht
2373pkg_kdht_name = kdht
2374pkg_kdht_description = kdht is an erlang DHT implementation
2375pkg_kdht_homepage = https://github.com/kevinlynx/kdht
2376pkg_kdht_fetch = git
2377pkg_kdht_repo = https://github.com/kevinlynx/kdht
2378pkg_kdht_commit = master
2379
2380PACKAGES += key2value
2381pkg_key2value_name = key2value
2382pkg_key2value_description = Erlang 2-way map
2383pkg_key2value_homepage = https://github.com/okeuday/key2value
2384pkg_key2value_fetch = git
2385pkg_key2value_repo = https://github.com/okeuday/key2value
2386pkg_key2value_commit = master
2387
2388PACKAGES += keys1value
2389pkg_keys1value_name = keys1value
2390pkg_keys1value_description = Erlang set associative map for key lists
2391pkg_keys1value_homepage = https://github.com/okeuday/keys1value
2392pkg_keys1value_fetch = git
2393pkg_keys1value_repo = https://github.com/okeuday/keys1value
2394pkg_keys1value_commit = master
2395
2396PACKAGES += kinetic
2397pkg_kinetic_name = kinetic
2398pkg_kinetic_description = Erlang Kinesis Client
2399pkg_kinetic_homepage = https://github.com/AdRoll/kinetic
2400pkg_kinetic_fetch = git
2401pkg_kinetic_repo = https://github.com/AdRoll/kinetic
2402pkg_kinetic_commit = master
2403
2404PACKAGES += kjell
2405pkg_kjell_name = kjell
2406pkg_kjell_description = Erlang Shell
2407pkg_kjell_homepage = https://github.com/karlll/kjell
2408pkg_kjell_fetch = git
2409pkg_kjell_repo = https://github.com/karlll/kjell
2410pkg_kjell_commit = master
2411
2412PACKAGES += kraken
2413pkg_kraken_name = kraken
2414pkg_kraken_description = Distributed Pubsub Server for Realtime Apps
2415pkg_kraken_homepage = https://github.com/Asana/kraken
2416pkg_kraken_fetch = git
2417pkg_kraken_repo = https://github.com/Asana/kraken
2418pkg_kraken_commit = master
2419
2420PACKAGES += kucumberl
2421pkg_kucumberl_name = kucumberl
2422pkg_kucumberl_description = A pure-erlang, open-source, implementation of Cucumber
2423pkg_kucumberl_homepage = https://github.com/openshine/kucumberl
2424pkg_kucumberl_fetch = git
2425pkg_kucumberl_repo = https://github.com/openshine/kucumberl
2426pkg_kucumberl_commit = master
2427
2428PACKAGES += kvc
2429pkg_kvc_name = kvc
2430pkg_kvc_description = KVC - Key Value Coding for Erlang data structures
2431pkg_kvc_homepage = https://github.com/etrepum/kvc
2432pkg_kvc_fetch = git
2433pkg_kvc_repo = https://github.com/etrepum/kvc
2434pkg_kvc_commit = master
2435
2436PACKAGES += kvlists
2437pkg_kvlists_name = kvlists
2438pkg_kvlists_description = Lists of key-value pairs (decoded JSON) in Erlang
2439pkg_kvlists_homepage = https://github.com/jcomellas/kvlists
2440pkg_kvlists_fetch = git
2441pkg_kvlists_repo = https://github.com/jcomellas/kvlists
2442pkg_kvlists_commit = master
2443
2444PACKAGES += kvs
2445pkg_kvs_name = kvs
2446pkg_kvs_description = Container and Iterator
2447pkg_kvs_homepage = https://github.com/synrc/kvs
2448pkg_kvs_fetch = git
2449pkg_kvs_repo = https://github.com/synrc/kvs
2450pkg_kvs_commit = master
2451
2452PACKAGES += lager
2453pkg_lager_name = lager
2454pkg_lager_description = A logging framework for Erlang/OTP.
2455pkg_lager_homepage = https://github.com/erlang-lager/lager
2456pkg_lager_fetch = git
2457pkg_lager_repo = https://github.com/erlang-lager/lager
2458pkg_lager_commit = master
2459
2460PACKAGES += lager_amqp_backend
2461pkg_lager_amqp_backend_name = lager_amqp_backend
2462pkg_lager_amqp_backend_description = AMQP RabbitMQ Lager backend
2463pkg_lager_amqp_backend_homepage = https://github.com/jbrisbin/lager_amqp_backend
2464pkg_lager_amqp_backend_fetch = git
2465pkg_lager_amqp_backend_repo = https://github.com/jbrisbin/lager_amqp_backend
2466pkg_lager_amqp_backend_commit = master
2467
2468PACKAGES += lager_syslog
2469pkg_lager_syslog_name = lager_syslog
2470pkg_lager_syslog_description = Syslog backend for lager
2471pkg_lager_syslog_homepage = https://github.com/erlang-lager/lager_syslog
2472pkg_lager_syslog_fetch = git
2473pkg_lager_syslog_repo = https://github.com/erlang-lager/lager_syslog
2474pkg_lager_syslog_commit = master
2475
2476PACKAGES += lambdapad
2477pkg_lambdapad_name = lambdapad
2478pkg_lambdapad_description = Static site generator using Erlang. Yes, Erlang.
2479pkg_lambdapad_homepage = https://github.com/gar1t/lambdapad
2480pkg_lambdapad_fetch = git
2481pkg_lambdapad_repo = https://github.com/gar1t/lambdapad
2482pkg_lambdapad_commit = master
2483
2484PACKAGES += lasp
2485pkg_lasp_name = lasp
2486pkg_lasp_description = A Language for Distributed, Eventually Consistent Computations
2487pkg_lasp_homepage = http://lasp-lang.org/
2488pkg_lasp_fetch = git
2489pkg_lasp_repo = https://github.com/lasp-lang/lasp
2490pkg_lasp_commit = master
2491
2492PACKAGES += lasse
2493pkg_lasse_name = lasse
2494pkg_lasse_description = SSE handler for Cowboy
2495pkg_lasse_homepage = https://github.com/inaka/lasse
2496pkg_lasse_fetch = git
2497pkg_lasse_repo = https://github.com/inaka/lasse
2498pkg_lasse_commit = master
2499
2500PACKAGES += ldap
2501pkg_ldap_name = ldap
2502pkg_ldap_description = LDAP server written in Erlang
2503pkg_ldap_homepage = https://github.com/spawnproc/ldap
2504pkg_ldap_fetch = git
2505pkg_ldap_repo = https://github.com/spawnproc/ldap
2506pkg_ldap_commit = master
2507
2508PACKAGES += lethink
2509pkg_lethink_name = lethink
2510pkg_lethink_description = erlang driver for rethinkdb
2511pkg_lethink_homepage = https://github.com/taybin/lethink
2512pkg_lethink_fetch = git
2513pkg_lethink_repo = https://github.com/taybin/lethink
2514pkg_lethink_commit = master
2515
2516PACKAGES += lfe
2517pkg_lfe_name = lfe
2518pkg_lfe_description = Lisp Flavoured Erlang (LFE)
2519pkg_lfe_homepage = https://github.com/rvirding/lfe
2520pkg_lfe_fetch = git
2521pkg_lfe_repo = https://github.com/rvirding/lfe
2522pkg_lfe_commit = master
2523
2524PACKAGES += ling
2525pkg_ling_name = ling
2526pkg_ling_description = Erlang on Xen
2527pkg_ling_homepage = https://github.com/cloudozer/ling
2528pkg_ling_fetch = git
2529pkg_ling_repo = https://github.com/cloudozer/ling
2530pkg_ling_commit = master
2531
2532PACKAGES += live
2533pkg_live_name = live
2534pkg_live_description = Automated module and configuration reloader.
2535pkg_live_homepage = http://ninenines.eu
2536pkg_live_fetch = git
2537pkg_live_repo = https://github.com/ninenines/live
2538pkg_live_commit = master
2539
2540PACKAGES += lmq
2541pkg_lmq_name = lmq
2542pkg_lmq_description = Lightweight Message Queue
2543pkg_lmq_homepage = https://github.com/iij/lmq
2544pkg_lmq_fetch = git
2545pkg_lmq_repo = https://github.com/iij/lmq
2546pkg_lmq_commit = master
2547
2548PACKAGES += locker
2549pkg_locker_name = locker
2550pkg_locker_description = Atomic distributed 'check and set' for short-lived keys
2551pkg_locker_homepage = https://github.com/wooga/locker
2552pkg_locker_fetch = git
2553pkg_locker_repo = https://github.com/wooga/locker
2554pkg_locker_commit = master
2555
2556PACKAGES += locks
2557pkg_locks_name = locks
2558pkg_locks_description = A scalable, deadlock-resolving resource locker
2559pkg_locks_homepage = https://github.com/uwiger/locks
2560pkg_locks_fetch = git
2561pkg_locks_repo = https://github.com/uwiger/locks
2562pkg_locks_commit = master
2563
2564PACKAGES += log4erl
2565pkg_log4erl_name = log4erl
2566pkg_log4erl_description = A logger for erlang in the spirit of Log4J.
2567pkg_log4erl_homepage = https://github.com/ahmednawras/log4erl
2568pkg_log4erl_fetch = git
2569pkg_log4erl_repo = https://github.com/ahmednawras/log4erl
2570pkg_log4erl_commit = master
2571
2572PACKAGES += lol
2573pkg_lol_name = lol
2574pkg_lol_description = Lisp on erLang, and programming is fun again
2575pkg_lol_homepage = https://github.com/b0oh/lol
2576pkg_lol_fetch = git
2577pkg_lol_repo = https://github.com/b0oh/lol
2578pkg_lol_commit = master
2579
2580PACKAGES += lucid
2581pkg_lucid_name = lucid
2582pkg_lucid_description = HTTP/2 server written in Erlang
2583pkg_lucid_homepage = https://github.com/tatsuhiro-t/lucid
2584pkg_lucid_fetch = git
2585pkg_lucid_repo = https://github.com/tatsuhiro-t/lucid
2586pkg_lucid_commit = master
2587
2588PACKAGES += luerl
2589pkg_luerl_name = luerl
2590pkg_luerl_description = Lua in Erlang
2591pkg_luerl_homepage = https://github.com/rvirding/luerl
2592pkg_luerl_fetch = git
2593pkg_luerl_repo = https://github.com/rvirding/luerl
2594pkg_luerl_commit = develop
2595
2596PACKAGES += luwak
2597pkg_luwak_name = luwak
2598pkg_luwak_description = Large-object storage interface for Riak
2599pkg_luwak_homepage = https://github.com/basho/luwak
2600pkg_luwak_fetch = git
2601pkg_luwak_repo = https://github.com/basho/luwak
2602pkg_luwak_commit = master
2603
2604PACKAGES += lux
2605pkg_lux_name = lux
2606pkg_lux_description = Lux (LUcid eXpect scripting) simplifies test automation and provides an Expect-style execution of commands
2607pkg_lux_homepage = https://github.com/hawk/lux
2608pkg_lux_fetch = git
2609pkg_lux_repo = https://github.com/hawk/lux
2610pkg_lux_commit = master
2611
2612PACKAGES += machi
2613pkg_machi_name = machi
2614pkg_machi_description = Machi file store
2615pkg_machi_homepage = https://github.com/basho/machi
2616pkg_machi_fetch = git
2617pkg_machi_repo = https://github.com/basho/machi
2618pkg_machi_commit = master
2619
2620PACKAGES += mad
2621pkg_mad_name = mad
2622pkg_mad_description = Small and Fast Rebar Replacement
2623pkg_mad_homepage = https://github.com/synrc/mad
2624pkg_mad_fetch = git
2625pkg_mad_repo = https://github.com/synrc/mad
2626pkg_mad_commit = master
2627
2628PACKAGES += marina
2629pkg_marina_name = marina
2630pkg_marina_description = Non-blocking Erlang Cassandra CQL3 client
2631pkg_marina_homepage = https://github.com/lpgauth/marina
2632pkg_marina_fetch = git
2633pkg_marina_repo = https://github.com/lpgauth/marina
2634pkg_marina_commit = master
2635
2636PACKAGES += mavg
2637pkg_mavg_name = mavg
2638pkg_mavg_description = Erlang :: Exponential moving average library
2639pkg_mavg_homepage = https://github.com/EchoTeam/mavg
2640pkg_mavg_fetch = git
2641pkg_mavg_repo = https://github.com/EchoTeam/mavg
2642pkg_mavg_commit = master
2643
2644PACKAGES += mc_erl
2645pkg_mc_erl_name = mc_erl
2646pkg_mc_erl_description = mc-erl is a server for Minecraft 1.4.7 written in Erlang.
2647pkg_mc_erl_homepage = https://github.com/clonejo/mc-erl
2648pkg_mc_erl_fetch = git
2649pkg_mc_erl_repo = https://github.com/clonejo/mc-erl
2650pkg_mc_erl_commit = master
2651
2652PACKAGES += mcd
2653pkg_mcd_name = mcd
2654pkg_mcd_description = Fast memcached protocol client in pure Erlang
2655pkg_mcd_homepage = https://github.com/EchoTeam/mcd
2656pkg_mcd_fetch = git
2657pkg_mcd_repo = https://github.com/EchoTeam/mcd
2658pkg_mcd_commit = master
2659
2660PACKAGES += mcerlang
2661pkg_mcerlang_name = mcerlang
2662pkg_mcerlang_description = The McErlang model checker for Erlang
2663pkg_mcerlang_homepage = https://github.com/fredlund/McErlang
2664pkg_mcerlang_fetch = git
2665pkg_mcerlang_repo = https://github.com/fredlund/McErlang
2666pkg_mcerlang_commit = master
2667
2668PACKAGES += meck
2669pkg_meck_name = meck
2670pkg_meck_description = A mocking library for Erlang
2671pkg_meck_homepage = https://github.com/eproxus/meck
2672pkg_meck_fetch = git
2673pkg_meck_repo = https://github.com/eproxus/meck
2674pkg_meck_commit = master
2675
2676PACKAGES += mekao
2677pkg_mekao_name = mekao
2678pkg_mekao_description = SQL constructor
2679pkg_mekao_homepage = https://github.com/ddosia/mekao
2680pkg_mekao_fetch = git
2681pkg_mekao_repo = https://github.com/ddosia/mekao
2682pkg_mekao_commit = master
2683
2684PACKAGES += memo
2685pkg_memo_name = memo
2686pkg_memo_description = Erlang memoization server
2687pkg_memo_homepage = https://github.com/tuncer/memo
2688pkg_memo_fetch = git
2689pkg_memo_repo = https://github.com/tuncer/memo
2690pkg_memo_commit = master
2691
2692PACKAGES += merge_index
2693pkg_merge_index_name = merge_index
2694pkg_merge_index_description = MergeIndex is an Erlang library for storing ordered sets on disk. It is very similar to an SSTable (in Google's Bigtable) or an HFile (in Hadoop).
2695pkg_merge_index_homepage = https://github.com/basho/merge_index
2696pkg_merge_index_fetch = git
2697pkg_merge_index_repo = https://github.com/basho/merge_index
2698pkg_merge_index_commit = master
2699
2700PACKAGES += merl
2701pkg_merl_name = merl
2702pkg_merl_description = Metaprogramming in Erlang
2703pkg_merl_homepage = https://github.com/richcarl/merl
2704pkg_merl_fetch = git
2705pkg_merl_repo = https://github.com/richcarl/merl
2706pkg_merl_commit = master
2707
2708PACKAGES += mimerl
2709pkg_mimerl_name = mimerl
2710pkg_mimerl_description = library to handle mimetypes
2711pkg_mimerl_homepage = https://github.com/benoitc/mimerl
2712pkg_mimerl_fetch = git
2713pkg_mimerl_repo = https://github.com/benoitc/mimerl
2714pkg_mimerl_commit = master
2715
2716PACKAGES += mimetypes
2717pkg_mimetypes_name = mimetypes
2718pkg_mimetypes_description = Erlang MIME types library
2719pkg_mimetypes_homepage = https://github.com/spawngrid/mimetypes
2720pkg_mimetypes_fetch = git
2721pkg_mimetypes_repo = https://github.com/spawngrid/mimetypes
2722pkg_mimetypes_commit = master
2723
2724PACKAGES += mixer
2725pkg_mixer_name = mixer
2726pkg_mixer_description = Mix in functions from other modules
2727pkg_mixer_homepage = https://github.com/chef/mixer
2728pkg_mixer_fetch = git
2729pkg_mixer_repo = https://github.com/chef/mixer
2730pkg_mixer_commit = master
2731
2732PACKAGES += mochiweb
2733pkg_mochiweb_name = mochiweb
2734pkg_mochiweb_description = MochiWeb is an Erlang library for building lightweight HTTP servers.
2735pkg_mochiweb_homepage = https://github.com/mochi/mochiweb
2736pkg_mochiweb_fetch = git
2737pkg_mochiweb_repo = https://github.com/mochi/mochiweb
2738pkg_mochiweb_commit = master
2739
2740PACKAGES += mochiweb_xpath
2741pkg_mochiweb_xpath_name = mochiweb_xpath
2742pkg_mochiweb_xpath_description = XPath support for mochiweb's html parser
2743pkg_mochiweb_xpath_homepage = https://github.com/retnuh/mochiweb_xpath
2744pkg_mochiweb_xpath_fetch = git
2745pkg_mochiweb_xpath_repo = https://github.com/retnuh/mochiweb_xpath
2746pkg_mochiweb_xpath_commit = master
2747
2748PACKAGES += mockgyver
2749pkg_mockgyver_name = mockgyver
2750pkg_mockgyver_description = A mocking library for Erlang
2751pkg_mockgyver_homepage = https://github.com/klajo/mockgyver
2752pkg_mockgyver_fetch = git
2753pkg_mockgyver_repo = https://github.com/klajo/mockgyver
2754pkg_mockgyver_commit = master
2755
2756PACKAGES += modlib
2757pkg_modlib_name = modlib
2758pkg_modlib_description = Web framework based on Erlang's inets httpd
2759pkg_modlib_homepage = https://github.com/gar1t/modlib
2760pkg_modlib_fetch = git
2761pkg_modlib_repo = https://github.com/gar1t/modlib
2762pkg_modlib_commit = master
2763
2764PACKAGES += mongodb
2765pkg_mongodb_name = mongodb
2766pkg_mongodb_description = MongoDB driver for Erlang
2767pkg_mongodb_homepage = https://github.com/comtihon/mongodb-erlang
2768pkg_mongodb_fetch = git
2769pkg_mongodb_repo = https://github.com/comtihon/mongodb-erlang
2770pkg_mongodb_commit = master
2771
2772PACKAGES += mongooseim
2773pkg_mongooseim_name = mongooseim
2774pkg_mongooseim_description = Jabber / XMPP server with focus on performance and scalability, by Erlang Solutions
2775pkg_mongooseim_homepage = https://www.erlang-solutions.com/products/mongooseim-massively-scalable-ejabberd-platform
2776pkg_mongooseim_fetch = git
2777pkg_mongooseim_repo = https://github.com/esl/MongooseIM
2778pkg_mongooseim_commit = master
2779
2780PACKAGES += moyo
2781pkg_moyo_name = moyo
2782pkg_moyo_description = Erlang utility functions library
2783pkg_moyo_homepage = https://github.com/dwango/moyo
2784pkg_moyo_fetch = git
2785pkg_moyo_repo = https://github.com/dwango/moyo
2786pkg_moyo_commit = master
2787
2788PACKAGES += msgpack
2789pkg_msgpack_name = msgpack
2790pkg_msgpack_description = MessagePack (de)serializer implementation for Erlang
2791pkg_msgpack_homepage = https://github.com/msgpack/msgpack-erlang
2792pkg_msgpack_fetch = git
2793pkg_msgpack_repo = https://github.com/msgpack/msgpack-erlang
2794pkg_msgpack_commit = master
2795
2796PACKAGES += mu2
2797pkg_mu2_name = mu2
2798pkg_mu2_description = Erlang mutation testing tool
2799pkg_mu2_homepage = https://github.com/ramsay-t/mu2
2800pkg_mu2_fetch = git
2801pkg_mu2_repo = https://github.com/ramsay-t/mu2
2802pkg_mu2_commit = master
2803
2804PACKAGES += mustache
2805pkg_mustache_name = mustache
2806pkg_mustache_description = Mustache template engine for Erlang.
2807pkg_mustache_homepage = https://github.com/mojombo/mustache.erl
2808pkg_mustache_fetch = git
2809pkg_mustache_repo = https://github.com/mojombo/mustache.erl
2810pkg_mustache_commit = master
2811
2812PACKAGES += myproto
2813pkg_myproto_name = myproto
2814pkg_myproto_description = MySQL Server Protocol in Erlang
2815pkg_myproto_homepage = https://github.com/altenwald/myproto
2816pkg_myproto_fetch = git
2817pkg_myproto_repo = https://github.com/altenwald/myproto
2818pkg_myproto_commit = master
2819
2820PACKAGES += mysql
2821pkg_mysql_name = mysql
2822pkg_mysql_description = MySQL client library for Erlang/OTP
2823pkg_mysql_homepage = https://github.com/mysql-otp/mysql-otp
2824pkg_mysql_fetch = git
2825pkg_mysql_repo = https://github.com/mysql-otp/mysql-otp
2826pkg_mysql_commit = 1.7.0
2827
2828PACKAGES += n2o
2829pkg_n2o_name = n2o
2830pkg_n2o_description = WebSocket Application Server
2831pkg_n2o_homepage = https://github.com/5HT/n2o
2832pkg_n2o_fetch = git
2833pkg_n2o_repo = https://github.com/5HT/n2o
2834pkg_n2o_commit = master
2835
2836PACKAGES += nat_upnp
2837pkg_nat_upnp_name = nat_upnp
2838pkg_nat_upnp_description = Erlang library to map your internal port to an external using UNP IGD
2839pkg_nat_upnp_homepage = https://github.com/benoitc/nat_upnp
2840pkg_nat_upnp_fetch = git
2841pkg_nat_upnp_repo = https://github.com/benoitc/nat_upnp
2842pkg_nat_upnp_commit = master
2843
2844PACKAGES += neo4j
2845pkg_neo4j_name = neo4j
2846pkg_neo4j_description = Erlang client library for Neo4J.
2847pkg_neo4j_homepage = https://github.com/dmitriid/neo4j-erlang
2848pkg_neo4j_fetch = git
2849pkg_neo4j_repo = https://github.com/dmitriid/neo4j-erlang
2850pkg_neo4j_commit = master
2851
2852PACKAGES += neotoma
2853pkg_neotoma_name = neotoma
2854pkg_neotoma_description = Erlang library and packrat parser-generator for parsing expression grammars.
2855pkg_neotoma_homepage = https://github.com/seancribbs/neotoma
2856pkg_neotoma_fetch = git
2857pkg_neotoma_repo = https://github.com/seancribbs/neotoma
2858pkg_neotoma_commit = master
2859
2860PACKAGES += newrelic
2861pkg_newrelic_name = newrelic
2862pkg_newrelic_description = Erlang library for sending metrics to New Relic
2863pkg_newrelic_homepage = https://github.com/wooga/newrelic-erlang
2864pkg_newrelic_fetch = git
2865pkg_newrelic_repo = https://github.com/wooga/newrelic-erlang
2866pkg_newrelic_commit = master
2867
2868PACKAGES += nifty
2869pkg_nifty_name = nifty
2870pkg_nifty_description = Erlang NIF wrapper generator
2871pkg_nifty_homepage = https://github.com/parapluu/nifty
2872pkg_nifty_fetch = git
2873pkg_nifty_repo = https://github.com/parapluu/nifty
2874pkg_nifty_commit = master
2875
2876PACKAGES += nitrogen_core
2877pkg_nitrogen_core_name = nitrogen_core
2878pkg_nitrogen_core_description = The core Nitrogen library.
2879pkg_nitrogen_core_homepage = http://nitrogenproject.com/
2880pkg_nitrogen_core_fetch = git
2881pkg_nitrogen_core_repo = https://github.com/nitrogen/nitrogen_core
2882pkg_nitrogen_core_commit = master
2883
2884PACKAGES += nkbase
2885pkg_nkbase_name = nkbase
2886pkg_nkbase_description = NkBASE distributed database
2887pkg_nkbase_homepage = https://github.com/Nekso/nkbase
2888pkg_nkbase_fetch = git
2889pkg_nkbase_repo = https://github.com/Nekso/nkbase
2890pkg_nkbase_commit = develop
2891
2892PACKAGES += nkdocker
2893pkg_nkdocker_name = nkdocker
2894pkg_nkdocker_description = Erlang Docker client
2895pkg_nkdocker_homepage = https://github.com/Nekso/nkdocker
2896pkg_nkdocker_fetch = git
2897pkg_nkdocker_repo = https://github.com/Nekso/nkdocker
2898pkg_nkdocker_commit = master
2899
2900PACKAGES += nkpacket
2901pkg_nkpacket_name = nkpacket
2902pkg_nkpacket_description = Generic Erlang transport layer
2903pkg_nkpacket_homepage = https://github.com/Nekso/nkpacket
2904pkg_nkpacket_fetch = git
2905pkg_nkpacket_repo = https://github.com/Nekso/nkpacket
2906pkg_nkpacket_commit = master
2907
2908PACKAGES += nksip
2909pkg_nksip_name = nksip
2910pkg_nksip_description = Erlang SIP application server
2911pkg_nksip_homepage = https://github.com/kalta/nksip
2912pkg_nksip_fetch = git
2913pkg_nksip_repo = https://github.com/kalta/nksip
2914pkg_nksip_commit = master
2915
2916PACKAGES += nodefinder
2917pkg_nodefinder_name = nodefinder
2918pkg_nodefinder_description = automatic node discovery via UDP multicast
2919pkg_nodefinder_homepage = https://github.com/erlanger/nodefinder
2920pkg_nodefinder_fetch = git
2921pkg_nodefinder_repo = https://github.com/okeuday/nodefinder
2922pkg_nodefinder_commit = master
2923
2924PACKAGES += nprocreg
2925pkg_nprocreg_name = nprocreg
2926pkg_nprocreg_description = Minimal Distributed Erlang Process Registry
2927pkg_nprocreg_homepage = http://nitrogenproject.com/
2928pkg_nprocreg_fetch = git
2929pkg_nprocreg_repo = https://github.com/nitrogen/nprocreg
2930pkg_nprocreg_commit = master
2931
2932PACKAGES += oauth
2933pkg_oauth_name = oauth
2934pkg_oauth_description = An Erlang OAuth 1.0 implementation
2935pkg_oauth_homepage = https://github.com/tim/erlang-oauth
2936pkg_oauth_fetch = git
2937pkg_oauth_repo = https://github.com/tim/erlang-oauth
2938pkg_oauth_commit = master
2939
2940PACKAGES += oauth2
2941pkg_oauth2_name = oauth2
2942pkg_oauth2_description = Erlang Oauth2 implementation
2943pkg_oauth2_homepage = https://github.com/kivra/oauth2
2944pkg_oauth2_fetch = git
2945pkg_oauth2_repo = https://github.com/kivra/oauth2
2946pkg_oauth2_commit = master
2947
2948PACKAGES += observer_cli
2949pkg_observer_cli_name = observer_cli
2950pkg_observer_cli_description = Visualize Erlang/Elixir Nodes On The Command Line
2951pkg_observer_cli_homepage = http://zhongwencool.github.io/observer_cli
2952pkg_observer_cli_fetch = git
2953pkg_observer_cli_repo = https://github.com/zhongwencool/observer_cli
2954pkg_observer_cli_commit = master
2955
2956PACKAGES += octopus
2957pkg_octopus_name = octopus
2958pkg_octopus_description = Small and flexible pool manager written in Erlang
2959pkg_octopus_homepage = https://github.com/erlangbureau/octopus
2960pkg_octopus_fetch = git
2961pkg_octopus_repo = https://github.com/erlangbureau/octopus
2962pkg_octopus_commit = master
2963
2964PACKAGES += of_protocol
2965pkg_of_protocol_name = of_protocol
2966pkg_of_protocol_description = OpenFlow Protocol Library for Erlang
2967pkg_of_protocol_homepage = https://github.com/FlowForwarding/of_protocol
2968pkg_of_protocol_fetch = git
2969pkg_of_protocol_repo = https://github.com/FlowForwarding/of_protocol
2970pkg_of_protocol_commit = master
2971
2972PACKAGES += opencouch
2973pkg_opencouch_name = couch
2974pkg_opencouch_description = A embeddable document oriented database compatible with Apache CouchDB
2975pkg_opencouch_homepage = https://github.com/benoitc/opencouch
2976pkg_opencouch_fetch = git
2977pkg_opencouch_repo = https://github.com/benoitc/opencouch
2978pkg_opencouch_commit = master
2979
2980PACKAGES += openflow
2981pkg_openflow_name = openflow
2982pkg_openflow_description = An OpenFlow controller written in pure erlang
2983pkg_openflow_homepage = https://github.com/renatoaguiar/erlang-openflow
2984pkg_openflow_fetch = git
2985pkg_openflow_repo = https://github.com/renatoaguiar/erlang-openflow
2986pkg_openflow_commit = master
2987
2988PACKAGES += openid
2989pkg_openid_name = openid
2990pkg_openid_description = Erlang OpenID
2991pkg_openid_homepage = https://github.com/brendonh/erl_openid
2992pkg_openid_fetch = git
2993pkg_openid_repo = https://github.com/brendonh/erl_openid
2994pkg_openid_commit = master
2995
2996PACKAGES += openpoker
2997pkg_openpoker_name = openpoker
2998pkg_openpoker_description = Genesis Texas hold'em Game Server
2999pkg_openpoker_homepage = https://github.com/hpyhacking/openpoker
3000pkg_openpoker_fetch = git
3001pkg_openpoker_repo = https://github.com/hpyhacking/openpoker
3002pkg_openpoker_commit = master
3003
3004PACKAGES += otpbp
3005pkg_otpbp_name = otpbp
3006pkg_otpbp_description = Parse transformer for use new OTP functions in old Erlang/OTP releases (R15, R16, 17, 18, 19)
3007pkg_otpbp_homepage = https://github.com/Ledest/otpbp
3008pkg_otpbp_fetch = git
3009pkg_otpbp_repo = https://github.com/Ledest/otpbp
3010pkg_otpbp_commit = master
3011
3012PACKAGES += pal
3013pkg_pal_name = pal
3014pkg_pal_description = Pragmatic Authentication Library
3015pkg_pal_homepage = https://github.com/manifest/pal
3016pkg_pal_fetch = git
3017pkg_pal_repo = https://github.com/manifest/pal
3018pkg_pal_commit = master
3019
3020PACKAGES += parse_trans
3021pkg_parse_trans_name = parse_trans
3022pkg_parse_trans_description = Parse transform utilities for Erlang
3023pkg_parse_trans_homepage = https://github.com/uwiger/parse_trans
3024pkg_parse_trans_fetch = git
3025pkg_parse_trans_repo = https://github.com/uwiger/parse_trans
3026pkg_parse_trans_commit = master
3027
3028PACKAGES += parsexml
3029pkg_parsexml_name = parsexml
3030pkg_parsexml_description = Simple DOM XML parser with convenient and very simple API
3031pkg_parsexml_homepage = https://github.com/maxlapshin/parsexml
3032pkg_parsexml_fetch = git
3033pkg_parsexml_repo = https://github.com/maxlapshin/parsexml
3034pkg_parsexml_commit = master
3035
3036PACKAGES += partisan
3037pkg_partisan_name = partisan
3038pkg_partisan_description = High-performance, high-scalability distributed computing with Erlang and Elixir.
3039pkg_partisan_homepage = http://partisan.cloud
3040pkg_partisan_fetch = git
3041pkg_partisan_repo = https://github.com/lasp-lang/partisan
3042pkg_partisan_commit = master
3043
3044PACKAGES += pegjs
3045pkg_pegjs_name = pegjs
3046pkg_pegjs_description = An implementation of PEG.js grammar for Erlang.
3047pkg_pegjs_homepage = https://github.com/dmitriid/pegjs
3048pkg_pegjs_fetch = git
3049pkg_pegjs_repo = https://github.com/dmitriid/pegjs
3050pkg_pegjs_commit = master
3051
3052PACKAGES += percept2
3053pkg_percept2_name = percept2
3054pkg_percept2_description = Concurrent profiling tool for Erlang
3055pkg_percept2_homepage = https://github.com/huiqing/percept2
3056pkg_percept2_fetch = git
3057pkg_percept2_repo = https://github.com/huiqing/percept2
3058pkg_percept2_commit = master
3059
3060PACKAGES += pgo
3061pkg_pgo_name = pgo
3062pkg_pgo_description = Erlang Postgres client and connection pool
3063pkg_pgo_homepage = https://github.com/erleans/pgo.git
3064pkg_pgo_fetch = git
3065pkg_pgo_repo = https://github.com/erleans/pgo.git
3066pkg_pgo_commit = master
3067
3068PACKAGES += pgsql
3069pkg_pgsql_name = pgsql
3070pkg_pgsql_description = Erlang PostgreSQL driver
3071pkg_pgsql_homepage = https://github.com/semiocast/pgsql
3072pkg_pgsql_fetch = git
3073pkg_pgsql_repo = https://github.com/semiocast/pgsql
3074pkg_pgsql_commit = master
3075
3076PACKAGES += pkgx
3077pkg_pkgx_name = pkgx
3078pkg_pkgx_description = Build .deb packages from Erlang releases
3079pkg_pkgx_homepage = https://github.com/arjan/pkgx
3080pkg_pkgx_fetch = git
3081pkg_pkgx_repo = https://github.com/arjan/pkgx
3082pkg_pkgx_commit = master
3083
3084PACKAGES += pkt
3085pkg_pkt_name = pkt
3086pkg_pkt_description = Erlang network protocol library
3087pkg_pkt_homepage = https://github.com/msantos/pkt
3088pkg_pkt_fetch = git
3089pkg_pkt_repo = https://github.com/msantos/pkt
3090pkg_pkt_commit = master
3091
3092PACKAGES += plain_fsm
3093pkg_plain_fsm_name = plain_fsm
3094pkg_plain_fsm_description = A behaviour/support library for writing plain Erlang FSMs.
3095pkg_plain_fsm_homepage = https://github.com/uwiger/plain_fsm
3096pkg_plain_fsm_fetch = git
3097pkg_plain_fsm_repo = https://github.com/uwiger/plain_fsm
3098pkg_plain_fsm_commit = master
3099
3100PACKAGES += plumtree
3101pkg_plumtree_name = plumtree
3102pkg_plumtree_description = Epidemic Broadcast Trees
3103pkg_plumtree_homepage = https://github.com/helium/plumtree
3104pkg_plumtree_fetch = git
3105pkg_plumtree_repo = https://github.com/helium/plumtree
3106pkg_plumtree_commit = master
3107
3108PACKAGES += pmod_transform
3109pkg_pmod_transform_name = pmod_transform
3110pkg_pmod_transform_description = Parse transform for parameterized modules
3111pkg_pmod_transform_homepage = https://github.com/erlang/pmod_transform
3112pkg_pmod_transform_fetch = git
3113pkg_pmod_transform_repo = https://github.com/erlang/pmod_transform
3114pkg_pmod_transform_commit = master
3115
3116PACKAGES += pobox
3117pkg_pobox_name = pobox
3118pkg_pobox_description = External buffer processes to protect against mailbox overflow in Erlang
3119pkg_pobox_homepage = https://github.com/ferd/pobox
3120pkg_pobox_fetch = git
3121pkg_pobox_repo = https://github.com/ferd/pobox
3122pkg_pobox_commit = master
3123
3124PACKAGES += ponos
3125pkg_ponos_name = ponos
3126pkg_ponos_description = ponos is a simple yet powerful load generator written in erlang
3127pkg_ponos_homepage = https://github.com/klarna/ponos
3128pkg_ponos_fetch = git
3129pkg_ponos_repo = https://github.com/klarna/ponos
3130pkg_ponos_commit = master
3131
3132PACKAGES += poolboy
3133pkg_poolboy_name = poolboy
3134pkg_poolboy_description = A hunky Erlang worker pool factory
3135pkg_poolboy_homepage = https://github.com/devinus/poolboy
3136pkg_poolboy_fetch = git
3137pkg_poolboy_repo = https://github.com/devinus/poolboy
3138pkg_poolboy_commit = master
3139
3140PACKAGES += pooler
3141pkg_pooler_name = pooler
3142pkg_pooler_description = An OTP Process Pool Application
3143pkg_pooler_homepage = https://github.com/seth/pooler
3144pkg_pooler_fetch = git
3145pkg_pooler_repo = https://github.com/seth/pooler
3146pkg_pooler_commit = master
3147
3148PACKAGES += pqueue
3149pkg_pqueue_name = pqueue
3150pkg_pqueue_description = Erlang Priority Queues
3151pkg_pqueue_homepage = https://github.com/okeuday/pqueue
3152pkg_pqueue_fetch = git
3153pkg_pqueue_repo = https://github.com/okeuday/pqueue
3154pkg_pqueue_commit = master
3155
3156PACKAGES += procket
3157pkg_procket_name = procket
3158pkg_procket_description = Erlang interface to low level socket operations
3159pkg_procket_homepage = http://blog.listincomprehension.com/search/label/procket
3160pkg_procket_fetch = git
3161pkg_procket_repo = https://github.com/msantos/procket
3162pkg_procket_commit = master
3163
3164PACKAGES += prometheus
3165pkg_prometheus_name = prometheus
3166pkg_prometheus_description = Prometheus.io client in Erlang
3167pkg_prometheus_homepage = https://github.com/deadtrickster/prometheus.erl
3168pkg_prometheus_fetch = git
3169pkg_prometheus_repo = https://github.com/deadtrickster/prometheus.erl
3170pkg_prometheus_commit = master
3171
3172PACKAGES += prop
3173pkg_prop_name = prop
3174pkg_prop_description = An Erlang code scaffolding and generator system.
3175pkg_prop_homepage = https://github.com/nuex/prop
3176pkg_prop_fetch = git
3177pkg_prop_repo = https://github.com/nuex/prop
3178pkg_prop_commit = master
3179
3180PACKAGES += proper
3181pkg_proper_name = proper
3182pkg_proper_description = PropEr: a QuickCheck-inspired property-based testing tool for Erlang.
3183pkg_proper_homepage = http://proper.softlab.ntua.gr
3184pkg_proper_fetch = git
3185pkg_proper_repo = https://github.com/manopapad/proper
3186pkg_proper_commit = master
3187
3188PACKAGES += props
3189pkg_props_name = props
3190pkg_props_description = Property structure library
3191pkg_props_homepage = https://github.com/greyarea/props
3192pkg_props_fetch = git
3193pkg_props_repo = https://github.com/greyarea/props
3194pkg_props_commit = master
3195
3196PACKAGES += protobuffs
3197pkg_protobuffs_name = protobuffs
3198pkg_protobuffs_description = An implementation of Google's Protocol Buffers for Erlang, based on ngerakines/erlang_protobuffs.
3199pkg_protobuffs_homepage = https://github.com/basho/erlang_protobuffs
3200pkg_protobuffs_fetch = git
3201pkg_protobuffs_repo = https://github.com/basho/erlang_protobuffs
3202pkg_protobuffs_commit = master
3203
3204PACKAGES += psycho
3205pkg_psycho_name = psycho
3206pkg_psycho_description = HTTP server that provides a WSGI-like interface for applications and middleware.
3207pkg_psycho_homepage = https://github.com/gar1t/psycho
3208pkg_psycho_fetch = git
3209pkg_psycho_repo = https://github.com/gar1t/psycho
3210pkg_psycho_commit = master
3211
3212PACKAGES += purity
3213pkg_purity_name = purity
3214pkg_purity_description = A side-effect analyzer for Erlang
3215pkg_purity_homepage = https://github.com/mpitid/purity
3216pkg_purity_fetch = git
3217pkg_purity_repo = https://github.com/mpitid/purity
3218pkg_purity_commit = master
3219
3220PACKAGES += push_service
3221pkg_push_service_name = push_service
3222pkg_push_service_description = Push service
3223pkg_push_service_homepage = https://github.com/hairyhum/push_service
3224pkg_push_service_fetch = git
3225pkg_push_service_repo = https://github.com/hairyhum/push_service
3226pkg_push_service_commit = master
3227
3228PACKAGES += qdate
3229pkg_qdate_name = qdate
3230pkg_qdate_description = Date, time, and timezone parsing, formatting, and conversion for Erlang.
3231pkg_qdate_homepage = https://github.com/choptastic/qdate
3232pkg_qdate_fetch = git
3233pkg_qdate_repo = https://github.com/choptastic/qdate
3234pkg_qdate_commit = master
3235
3236PACKAGES += qrcode
3237pkg_qrcode_name = qrcode
3238pkg_qrcode_description = QR Code encoder in Erlang
3239pkg_qrcode_homepage = https://github.com/komone/qrcode
3240pkg_qrcode_fetch = git
3241pkg_qrcode_repo = https://github.com/komone/qrcode
3242pkg_qrcode_commit = master
3243
3244PACKAGES += quest
3245pkg_quest_name = quest
3246pkg_quest_description = Learn Erlang through this set of challenges. An interactive system for getting to know Erlang.
3247pkg_quest_homepage = https://github.com/eriksoe/ErlangQuest
3248pkg_quest_fetch = git
3249pkg_quest_repo = https://github.com/eriksoe/ErlangQuest
3250pkg_quest_commit = master
3251
3252PACKAGES += quickrand
3253pkg_quickrand_name = quickrand
3254pkg_quickrand_description = Quick Erlang Random Number Generation
3255pkg_quickrand_homepage = https://github.com/okeuday/quickrand
3256pkg_quickrand_fetch = git
3257pkg_quickrand_repo = https://github.com/okeuday/quickrand
3258pkg_quickrand_commit = master
3259
3260PACKAGES += rabbit
3261pkg_rabbit_name = rabbit
3262pkg_rabbit_description = RabbitMQ Server
3263pkg_rabbit_homepage = https://www.rabbitmq.com/
3264pkg_rabbit_fetch = git
3265pkg_rabbit_repo = https://github.com/rabbitmq/rabbitmq-server.git
3266pkg_rabbit_commit = master
3267
3268PACKAGES += rabbit_exchange_type_riak
3269pkg_rabbit_exchange_type_riak_name = rabbit_exchange_type_riak
3270pkg_rabbit_exchange_type_riak_description = Custom RabbitMQ exchange type for sticking messages in Riak
3271pkg_rabbit_exchange_type_riak_homepage = https://github.com/jbrisbin/riak-exchange
3272pkg_rabbit_exchange_type_riak_fetch = git
3273pkg_rabbit_exchange_type_riak_repo = https://github.com/jbrisbin/riak-exchange
3274pkg_rabbit_exchange_type_riak_commit = master
3275
3276PACKAGES += rack
3277pkg_rack_name = rack
3278pkg_rack_description = Rack handler for erlang
3279pkg_rack_homepage = https://github.com/erlyvideo/rack
3280pkg_rack_fetch = git
3281pkg_rack_repo = https://github.com/erlyvideo/rack
3282pkg_rack_commit = master
3283
3284PACKAGES += radierl
3285pkg_radierl_name = radierl
3286pkg_radierl_description = RADIUS protocol stack implemented in Erlang.
3287pkg_radierl_homepage = https://github.com/vances/radierl
3288pkg_radierl_fetch = git
3289pkg_radierl_repo = https://github.com/vances/radierl
3290pkg_radierl_commit = master
3291
3292PACKAGES += rafter
3293pkg_rafter_name = rafter
3294pkg_rafter_description = An Erlang library application which implements the Raft consensus protocol
3295pkg_rafter_homepage = https://github.com/andrewjstone/rafter
3296pkg_rafter_fetch = git
3297pkg_rafter_repo = https://github.com/andrewjstone/rafter
3298pkg_rafter_commit = master
3299
3300PACKAGES += ranch
3301pkg_ranch_name = ranch
3302pkg_ranch_description = Socket acceptor pool for TCP protocols.
3303pkg_ranch_homepage = http://ninenines.eu
3304pkg_ranch_fetch = git
3305pkg_ranch_repo = https://github.com/ninenines/ranch
3306pkg_ranch_commit = 1.2.1
3307
3308PACKAGES += rbeacon
3309pkg_rbeacon_name = rbeacon
3310pkg_rbeacon_description = LAN discovery and presence in Erlang.
3311pkg_rbeacon_homepage = https://github.com/refuge/rbeacon
3312pkg_rbeacon_fetch = git
3313pkg_rbeacon_repo = https://github.com/refuge/rbeacon
3314pkg_rbeacon_commit = master
3315
3316PACKAGES += rebar
3317pkg_rebar_name = rebar
3318pkg_rebar_description = Erlang build tool that makes it easy to compile and test Erlang applications, port drivers and releases.
3319pkg_rebar_homepage = http://www.rebar3.org
3320pkg_rebar_fetch = git
3321pkg_rebar_repo = https://github.com/rebar/rebar3
3322pkg_rebar_commit = master
3323
3324PACKAGES += rebus
3325pkg_rebus_name = rebus
3326pkg_rebus_description = A stupid simple, internal, pub/sub event bus written in- and for Erlang.
3327pkg_rebus_homepage = https://github.com/olle/rebus
3328pkg_rebus_fetch = git
3329pkg_rebus_repo = https://github.com/olle/rebus
3330pkg_rebus_commit = master
3331
3332PACKAGES += rec2json
3333pkg_rec2json_name = rec2json
3334pkg_rec2json_description = Compile erlang record definitions into modules to convert them to/from json easily.
3335pkg_rec2json_homepage = https://github.com/lordnull/rec2json
3336pkg_rec2json_fetch = git
3337pkg_rec2json_repo = https://github.com/lordnull/rec2json
3338pkg_rec2json_commit = master
3339
3340PACKAGES += recon
3341pkg_recon_name = recon
3342pkg_recon_description = Collection of functions and scripts to debug Erlang in production.
3343pkg_recon_homepage = https://github.com/ferd/recon
3344pkg_recon_fetch = git
3345pkg_recon_repo = https://github.com/ferd/recon
3346pkg_recon_commit = master
3347
3348PACKAGES += record_info
3349pkg_record_info_name = record_info
3350pkg_record_info_description = Convert between record and proplist
3351pkg_record_info_homepage = https://github.com/bipthelin/erlang-record_info
3352pkg_record_info_fetch = git
3353pkg_record_info_repo = https://github.com/bipthelin/erlang-record_info
3354pkg_record_info_commit = master
3355
3356PACKAGES += redgrid
3357pkg_redgrid_name = redgrid
3358pkg_redgrid_description = automatic Erlang node discovery via redis
3359pkg_redgrid_homepage = https://github.com/jkvor/redgrid
3360pkg_redgrid_fetch = git
3361pkg_redgrid_repo = https://github.com/jkvor/redgrid
3362pkg_redgrid_commit = master
3363
3364PACKAGES += redo
3365pkg_redo_name = redo
3366pkg_redo_description = pipelined erlang redis client
3367pkg_redo_homepage = https://github.com/jkvor/redo
3368pkg_redo_fetch = git
3369pkg_redo_repo = https://github.com/jkvor/redo
3370pkg_redo_commit = master
3371
3372PACKAGES += reload_mk
3373pkg_reload_mk_name = reload_mk
3374pkg_reload_mk_description = Live reload plugin for erlang.mk.
3375pkg_reload_mk_homepage = https://github.com/bullno1/reload.mk
3376pkg_reload_mk_fetch = git
3377pkg_reload_mk_repo = https://github.com/bullno1/reload.mk
3378pkg_reload_mk_commit = master
3379
3380PACKAGES += reltool_util
3381pkg_reltool_util_name = reltool_util
3382pkg_reltool_util_description = Erlang reltool utility functionality application
3383pkg_reltool_util_homepage = https://github.com/okeuday/reltool_util
3384pkg_reltool_util_fetch = git
3385pkg_reltool_util_repo = https://github.com/okeuday/reltool_util
3386pkg_reltool_util_commit = master
3387
3388PACKAGES += relx
3389pkg_relx_name = relx
3390pkg_relx_description = Sane, simple release creation for Erlang
3391pkg_relx_homepage = https://github.com/erlware/relx
3392pkg_relx_fetch = git
3393pkg_relx_repo = https://github.com/erlware/relx
3394pkg_relx_commit = master
3395
3396PACKAGES += resource_discovery
3397pkg_resource_discovery_name = resource_discovery
3398pkg_resource_discovery_description = An application used to dynamically discover resources present in an Erlang node cluster.
3399pkg_resource_discovery_homepage = http://erlware.org/
3400pkg_resource_discovery_fetch = git
3401pkg_resource_discovery_repo = https://github.com/erlware/resource_discovery
3402pkg_resource_discovery_commit = master
3403
3404PACKAGES += restc
3405pkg_restc_name = restc
3406pkg_restc_description = Erlang Rest Client
3407pkg_restc_homepage = https://github.com/kivra/restclient
3408pkg_restc_fetch = git
3409pkg_restc_repo = https://github.com/kivra/restclient
3410pkg_restc_commit = master
3411
3412PACKAGES += rfc4627_jsonrpc
3413pkg_rfc4627_jsonrpc_name = rfc4627_jsonrpc
3414pkg_rfc4627_jsonrpc_description = Erlang RFC4627 (JSON) codec and JSON-RPC server implementation.
3415pkg_rfc4627_jsonrpc_homepage = https://github.com/tonyg/erlang-rfc4627
3416pkg_rfc4627_jsonrpc_fetch = git
3417pkg_rfc4627_jsonrpc_repo = https://github.com/tonyg/erlang-rfc4627
3418pkg_rfc4627_jsonrpc_commit = master
3419
3420PACKAGES += riak_control
3421pkg_riak_control_name = riak_control
3422pkg_riak_control_description = Webmachine-based administration interface for Riak.
3423pkg_riak_control_homepage = https://github.com/basho/riak_control
3424pkg_riak_control_fetch = git
3425pkg_riak_control_repo = https://github.com/basho/riak_control
3426pkg_riak_control_commit = master
3427
3428PACKAGES += riak_core
3429pkg_riak_core_name = riak_core
3430pkg_riak_core_description = Distributed systems infrastructure used by Riak.
3431pkg_riak_core_homepage = https://github.com/basho/riak_core
3432pkg_riak_core_fetch = git
3433pkg_riak_core_repo = https://github.com/basho/riak_core
3434pkg_riak_core_commit = master
3435
3436PACKAGES += riak_dt
3437pkg_riak_dt_name = riak_dt
3438pkg_riak_dt_description = Convergent replicated datatypes in Erlang
3439pkg_riak_dt_homepage = https://github.com/basho/riak_dt
3440pkg_riak_dt_fetch = git
3441pkg_riak_dt_repo = https://github.com/basho/riak_dt
3442pkg_riak_dt_commit = master
3443
3444PACKAGES += riak_ensemble
3445pkg_riak_ensemble_name = riak_ensemble
3446pkg_riak_ensemble_description = Multi-Paxos framework in Erlang
3447pkg_riak_ensemble_homepage = https://github.com/basho/riak_ensemble
3448pkg_riak_ensemble_fetch = git
3449pkg_riak_ensemble_repo = https://github.com/basho/riak_ensemble
3450pkg_riak_ensemble_commit = master
3451
3452PACKAGES += riak_kv
3453pkg_riak_kv_name = riak_kv
3454pkg_riak_kv_description = Riak Key/Value Store
3455pkg_riak_kv_homepage = https://github.com/basho/riak_kv
3456pkg_riak_kv_fetch = git
3457pkg_riak_kv_repo = https://github.com/basho/riak_kv
3458pkg_riak_kv_commit = master
3459
3460PACKAGES += riak_pg
3461pkg_riak_pg_name = riak_pg
3462pkg_riak_pg_description = Distributed process groups with riak_core.
3463pkg_riak_pg_homepage = https://github.com/cmeiklejohn/riak_pg
3464pkg_riak_pg_fetch = git
3465pkg_riak_pg_repo = https://github.com/cmeiklejohn/riak_pg
3466pkg_riak_pg_commit = master
3467
3468PACKAGES += riak_pipe
3469pkg_riak_pipe_name = riak_pipe
3470pkg_riak_pipe_description = Riak Pipelines
3471pkg_riak_pipe_homepage = https://github.com/basho/riak_pipe
3472pkg_riak_pipe_fetch = git
3473pkg_riak_pipe_repo = https://github.com/basho/riak_pipe
3474pkg_riak_pipe_commit = master
3475
3476PACKAGES += riak_sysmon
3477pkg_riak_sysmon_name = riak_sysmon
3478pkg_riak_sysmon_description = Simple OTP app for managing Erlang VM system_monitor event messages
3479pkg_riak_sysmon_homepage = https://github.com/basho/riak_sysmon
3480pkg_riak_sysmon_fetch = git
3481pkg_riak_sysmon_repo = https://github.com/basho/riak_sysmon
3482pkg_riak_sysmon_commit = master
3483
3484PACKAGES += riak_test
3485pkg_riak_test_name = riak_test
3486pkg_riak_test_description = I'm in your cluster, testing your riaks
3487pkg_riak_test_homepage = https://github.com/basho/riak_test
3488pkg_riak_test_fetch = git
3489pkg_riak_test_repo = https://github.com/basho/riak_test
3490pkg_riak_test_commit = master
3491
3492PACKAGES += riakc
3493pkg_riakc_name = riakc
3494pkg_riakc_description = Erlang clients for Riak.
3495pkg_riakc_homepage = https://github.com/basho/riak-erlang-client
3496pkg_riakc_fetch = git
3497pkg_riakc_repo = https://github.com/basho/riak-erlang-client
3498pkg_riakc_commit = master
3499
3500PACKAGES += riakhttpc
3501pkg_riakhttpc_name = riakhttpc
3502pkg_riakhttpc_description = Riak Erlang client using the HTTP interface
3503pkg_riakhttpc_homepage = https://github.com/basho/riak-erlang-http-client
3504pkg_riakhttpc_fetch = git
3505pkg_riakhttpc_repo = https://github.com/basho/riak-erlang-http-client
3506pkg_riakhttpc_commit = master
3507
3508PACKAGES += riaknostic
3509pkg_riaknostic_name = riaknostic
3510pkg_riaknostic_description = A diagnostic tool for Riak installations, to find common errors asap
3511pkg_riaknostic_homepage = https://github.com/basho/riaknostic
3512pkg_riaknostic_fetch = git
3513pkg_riaknostic_repo = https://github.com/basho/riaknostic
3514pkg_riaknostic_commit = master
3515
3516PACKAGES += riakpool
3517pkg_riakpool_name = riakpool
3518pkg_riakpool_description = erlang riak client pool
3519pkg_riakpool_homepage = https://github.com/dweldon/riakpool
3520pkg_riakpool_fetch = git
3521pkg_riakpool_repo = https://github.com/dweldon/riakpool
3522pkg_riakpool_commit = master
3523
3524PACKAGES += rivus_cep
3525pkg_rivus_cep_name = rivus_cep
3526pkg_rivus_cep_description = Complex event processing in Erlang
3527pkg_rivus_cep_homepage = https://github.com/vascokk/rivus_cep
3528pkg_rivus_cep_fetch = git
3529pkg_rivus_cep_repo = https://github.com/vascokk/rivus_cep
3530pkg_rivus_cep_commit = master
3531
3532PACKAGES += rlimit
3533pkg_rlimit_name = rlimit
3534pkg_rlimit_description = Magnus Klaar's rate limiter code from etorrent
3535pkg_rlimit_homepage = https://github.com/jlouis/rlimit
3536pkg_rlimit_fetch = git
3537pkg_rlimit_repo = https://github.com/jlouis/rlimit
3538pkg_rlimit_commit = master
3539
3540PACKAGES += rust_mk
3541pkg_rust_mk_name = rust_mk
3542pkg_rust_mk_description = Build Rust crates in an Erlang application
3543pkg_rust_mk_homepage = https://github.com/goertzenator/rust.mk
3544pkg_rust_mk_fetch = git
3545pkg_rust_mk_repo = https://github.com/goertzenator/rust.mk
3546pkg_rust_mk_commit = master
3547
3548PACKAGES += safetyvalve
3549pkg_safetyvalve_name = safetyvalve
3550pkg_safetyvalve_description = A safety valve for your erlang node
3551pkg_safetyvalve_homepage = https://github.com/jlouis/safetyvalve
3552pkg_safetyvalve_fetch = git
3553pkg_safetyvalve_repo = https://github.com/jlouis/safetyvalve
3554pkg_safetyvalve_commit = master
3555
3556PACKAGES += seestar
3557pkg_seestar_name = seestar
3558pkg_seestar_description = The Erlang client for Cassandra 1.2+ binary protocol
3559pkg_seestar_homepage = https://github.com/iamaleksey/seestar
3560pkg_seestar_fetch = git
3561pkg_seestar_repo = https://github.com/iamaleksey/seestar
3562pkg_seestar_commit = master
3563
3564PACKAGES += service
3565pkg_service_name = service
3566pkg_service_description = A minimal Erlang behavior for creating CloudI internal services
3567pkg_service_homepage = http://cloudi.org/
3568pkg_service_fetch = git
3569pkg_service_repo = https://github.com/CloudI/service
3570pkg_service_commit = master
3571
3572PACKAGES += setup
3573pkg_setup_name = setup
3574pkg_setup_description = Generic setup utility for Erlang-based systems
3575pkg_setup_homepage = https://github.com/uwiger/setup
3576pkg_setup_fetch = git
3577pkg_setup_repo = https://github.com/uwiger/setup
3578pkg_setup_commit = master
3579
3580PACKAGES += sext
3581pkg_sext_name = sext
3582pkg_sext_description = Sortable Erlang Term Serialization
3583pkg_sext_homepage = https://github.com/uwiger/sext
3584pkg_sext_fetch = git
3585pkg_sext_repo = https://github.com/uwiger/sext
3586pkg_sext_commit = master
3587
3588PACKAGES += sfmt
3589pkg_sfmt_name = sfmt
3590pkg_sfmt_description = SFMT pseudo random number generator for Erlang.
3591pkg_sfmt_homepage = https://github.com/jj1bdx/sfmt-erlang
3592pkg_sfmt_fetch = git
3593pkg_sfmt_repo = https://github.com/jj1bdx/sfmt-erlang
3594pkg_sfmt_commit = master
3595
3596PACKAGES += sgte
3597pkg_sgte_name = sgte
3598pkg_sgte_description = A simple Erlang Template Engine
3599pkg_sgte_homepage = https://github.com/filippo/sgte
3600pkg_sgte_fetch = git
3601pkg_sgte_repo = https://github.com/filippo/sgte
3602pkg_sgte_commit = master
3603
3604PACKAGES += sheriff
3605pkg_sheriff_name = sheriff
3606pkg_sheriff_description = Parse transform for type based validation.
3607pkg_sheriff_homepage = http://ninenines.eu
3608pkg_sheriff_fetch = git
3609pkg_sheriff_repo = https://github.com/extend/sheriff
3610pkg_sheriff_commit = master
3611
3612PACKAGES += shotgun
3613pkg_shotgun_name = shotgun
3614pkg_shotgun_description = better than just a gun
3615pkg_shotgun_homepage = https://github.com/inaka/shotgun
3616pkg_shotgun_fetch = git
3617pkg_shotgun_repo = https://github.com/inaka/shotgun
3618pkg_shotgun_commit = master
3619
3620PACKAGES += sidejob
3621pkg_sidejob_name = sidejob
3622pkg_sidejob_description = Parallel worker and capacity limiting library for Erlang
3623pkg_sidejob_homepage = https://github.com/basho/sidejob
3624pkg_sidejob_fetch = git
3625pkg_sidejob_repo = https://github.com/basho/sidejob
3626pkg_sidejob_commit = master
3627
3628PACKAGES += sieve
3629pkg_sieve_name = sieve
3630pkg_sieve_description = sieve is a simple TCP routing proxy (layer 7) in erlang
3631pkg_sieve_homepage = https://github.com/benoitc/sieve
3632pkg_sieve_fetch = git
3633pkg_sieve_repo = https://github.com/benoitc/sieve
3634pkg_sieve_commit = master
3635
3636PACKAGES += sighandler
3637pkg_sighandler_name = sighandler
3638pkg_sighandler_description = Handle UNIX signals in Er    lang
3639pkg_sighandler_homepage = https://github.com/jkingsbery/sighandler
3640pkg_sighandler_fetch = git
3641pkg_sighandler_repo = https://github.com/jkingsbery/sighandler
3642pkg_sighandler_commit = master
3643
3644PACKAGES += simhash
3645pkg_simhash_name = simhash
3646pkg_simhash_description = Simhashing for Erlang -- hashing algorithm to find near-duplicates in binary data.
3647pkg_simhash_homepage = https://github.com/ferd/simhash
3648pkg_simhash_fetch = git
3649pkg_simhash_repo = https://github.com/ferd/simhash
3650pkg_simhash_commit = master
3651
3652PACKAGES += simple_bridge
3653pkg_simple_bridge_name = simple_bridge
3654pkg_simple_bridge_description = A simple, standardized interface library to Erlang HTTP Servers.
3655pkg_simple_bridge_homepage = https://github.com/nitrogen/simple_bridge
3656pkg_simple_bridge_fetch = git
3657pkg_simple_bridge_repo = https://github.com/nitrogen/simple_bridge
3658pkg_simple_bridge_commit = master
3659
3660PACKAGES += simple_oauth2
3661pkg_simple_oauth2_name = simple_oauth2
3662pkg_simple_oauth2_description = Simple erlang OAuth2 client module for any http server framework (Google, Facebook, Yandex, Vkontakte are preconfigured)
3663pkg_simple_oauth2_homepage = https://github.com/virtan/simple_oauth2
3664pkg_simple_oauth2_fetch = git
3665pkg_simple_oauth2_repo = https://github.com/virtan/simple_oauth2
3666pkg_simple_oauth2_commit = master
3667
3668PACKAGES += skel
3669pkg_skel_name = skel
3670pkg_skel_description = A Streaming Process-based Skeleton Library for Erlang
3671pkg_skel_homepage = https://github.com/ParaPhrase/skel
3672pkg_skel_fetch = git
3673pkg_skel_repo = https://github.com/ParaPhrase/skel
3674pkg_skel_commit = master
3675
3676PACKAGES += slack
3677pkg_slack_name = slack
3678pkg_slack_description = Minimal slack notification OTP library.
3679pkg_slack_homepage = https://github.com/DonBranson/slack
3680pkg_slack_fetch = git
3681pkg_slack_repo = https://github.com/DonBranson/slack.git
3682pkg_slack_commit = master
3683
3684PACKAGES += smother
3685pkg_smother_name = smother
3686pkg_smother_description = Extended code coverage metrics for Erlang.
3687pkg_smother_homepage = https://ramsay-t.github.io/Smother/
3688pkg_smother_fetch = git
3689pkg_smother_repo = https://github.com/ramsay-t/Smother
3690pkg_smother_commit = master
3691
3692PACKAGES += snappyer
3693pkg_snappyer_name = snappyer
3694pkg_snappyer_description = Snappy as nif for Erlang
3695pkg_snappyer_homepage = https://github.com/zmstone/snappyer
3696pkg_snappyer_fetch = git
3697pkg_snappyer_repo = https://github.com/zmstone/snappyer.git
3698pkg_snappyer_commit = master
3699
3700PACKAGES += social
3701pkg_social_name = social
3702pkg_social_description = Cowboy handler for social login via OAuth2 providers
3703pkg_social_homepage = https://github.com/dvv/social
3704pkg_social_fetch = git
3705pkg_social_repo = https://github.com/dvv/social
3706pkg_social_commit = master
3707
3708PACKAGES += spapi_router
3709pkg_spapi_router_name = spapi_router
3710pkg_spapi_router_description = Partially-connected Erlang clustering
3711pkg_spapi_router_homepage = https://github.com/spilgames/spapi-router
3712pkg_spapi_router_fetch = git
3713pkg_spapi_router_repo = https://github.com/spilgames/spapi-router
3714pkg_spapi_router_commit = master
3715
3716PACKAGES += sqerl
3717pkg_sqerl_name = sqerl
3718pkg_sqerl_description = An Erlang-flavoured SQL DSL
3719pkg_sqerl_homepage = https://github.com/hairyhum/sqerl
3720pkg_sqerl_fetch = git
3721pkg_sqerl_repo = https://github.com/hairyhum/sqerl
3722pkg_sqerl_commit = master
3723
3724PACKAGES += srly
3725pkg_srly_name = srly
3726pkg_srly_description = Native Erlang Unix serial interface
3727pkg_srly_homepage = https://github.com/msantos/srly
3728pkg_srly_fetch = git
3729pkg_srly_repo = https://github.com/msantos/srly
3730pkg_srly_commit = master
3731
3732PACKAGES += sshrpc
3733pkg_sshrpc_name = sshrpc
3734pkg_sshrpc_description = Erlang SSH RPC module (experimental)
3735pkg_sshrpc_homepage = https://github.com/jj1bdx/sshrpc
3736pkg_sshrpc_fetch = git
3737pkg_sshrpc_repo = https://github.com/jj1bdx/sshrpc
3738pkg_sshrpc_commit = master
3739
3740PACKAGES += stable
3741pkg_stable_name = stable
3742pkg_stable_description = Library of assorted helpers for Cowboy web server.
3743pkg_stable_homepage = https://github.com/dvv/stable
3744pkg_stable_fetch = git
3745pkg_stable_repo = https://github.com/dvv/stable
3746pkg_stable_commit = master
3747
3748PACKAGES += statebox
3749pkg_statebox_name = statebox
3750pkg_statebox_description = Erlang state monad with merge/conflict-resolution capabilities. Useful for Riak.
3751pkg_statebox_homepage = https://github.com/mochi/statebox
3752pkg_statebox_fetch = git
3753pkg_statebox_repo = https://github.com/mochi/statebox
3754pkg_statebox_commit = master
3755
3756PACKAGES += statebox_riak
3757pkg_statebox_riak_name = statebox_riak
3758pkg_statebox_riak_description = Convenience library that makes it easier to use statebox with riak, extracted from best practices in our production code at Mochi Media.
3759pkg_statebox_riak_homepage = https://github.com/mochi/statebox_riak
3760pkg_statebox_riak_fetch = git
3761pkg_statebox_riak_repo = https://github.com/mochi/statebox_riak
3762pkg_statebox_riak_commit = master
3763
3764PACKAGES += statman
3765pkg_statman_name = statman
3766pkg_statman_description = Efficiently collect massive volumes of metrics inside the Erlang VM
3767pkg_statman_homepage = https://github.com/knutin/statman
3768pkg_statman_fetch = git
3769pkg_statman_repo = https://github.com/knutin/statman
3770pkg_statman_commit = master
3771
3772PACKAGES += statsderl
3773pkg_statsderl_name = statsderl
3774pkg_statsderl_description = StatsD client (erlang)
3775pkg_statsderl_homepage = https://github.com/lpgauth/statsderl
3776pkg_statsderl_fetch = git
3777pkg_statsderl_repo = https://github.com/lpgauth/statsderl
3778pkg_statsderl_commit = master
3779
3780PACKAGES += stdinout_pool
3781pkg_stdinout_pool_name = stdinout_pool
3782pkg_stdinout_pool_description = stdinout_pool    : stuff goes in, stuff goes out. there's never any miscommunication.
3783pkg_stdinout_pool_homepage = https://github.com/mattsta/erlang-stdinout-pool
3784pkg_stdinout_pool_fetch = git
3785pkg_stdinout_pool_repo = https://github.com/mattsta/erlang-stdinout-pool
3786pkg_stdinout_pool_commit = master
3787
3788PACKAGES += stockdb
3789pkg_stockdb_name = stockdb
3790pkg_stockdb_description = Database for storing Stock Exchange quotes in erlang
3791pkg_stockdb_homepage = https://github.com/maxlapshin/stockdb
3792pkg_stockdb_fetch = git
3793pkg_stockdb_repo = https://github.com/maxlapshin/stockdb
3794pkg_stockdb_commit = master
3795
3796PACKAGES += stripe
3797pkg_stripe_name = stripe
3798pkg_stripe_description = Erlang interface to the stripe.com API
3799pkg_stripe_homepage = https://github.com/mattsta/stripe-erlang
3800pkg_stripe_fetch = git
3801pkg_stripe_repo = https://github.com/mattsta/stripe-erlang
3802pkg_stripe_commit = v1
3803
3804PACKAGES += subproc
3805pkg_subproc_name = subproc
3806pkg_subproc_description = unix subprocess manager with {active,once|false} modes
3807pkg_subproc_homepage = http://dozzie.jarowit.net/trac/wiki/subproc
3808pkg_subproc_fetch = git
3809pkg_subproc_repo = https://github.com/dozzie/subproc
3810pkg_subproc_commit = v0.1.0
3811
3812PACKAGES += supervisor3
3813pkg_supervisor3_name = supervisor3
3814pkg_supervisor3_description = OTP supervisor with additional strategies
3815pkg_supervisor3_homepage = https://github.com/klarna/supervisor3
3816pkg_supervisor3_fetch = git
3817pkg_supervisor3_repo = https://github.com/klarna/supervisor3.git
3818pkg_supervisor3_commit = master
3819
3820PACKAGES += surrogate
3821pkg_surrogate_name = surrogate
3822pkg_surrogate_description = Proxy server written in erlang. Supports reverse proxy load balancing and forward proxy with http (including CONNECT), socks4, socks5, and transparent proxy modes.
3823pkg_surrogate_homepage = https://github.com/skruger/Surrogate
3824pkg_surrogate_fetch = git
3825pkg_surrogate_repo = https://github.com/skruger/Surrogate
3826pkg_surrogate_commit = master
3827
3828PACKAGES += swab
3829pkg_swab_name = swab
3830pkg_swab_description = General purpose buffer handling module
3831pkg_swab_homepage = https://github.com/crownedgrouse/swab
3832pkg_swab_fetch = git
3833pkg_swab_repo = https://github.com/crownedgrouse/swab
3834pkg_swab_commit = master
3835
3836PACKAGES += swarm
3837pkg_swarm_name = swarm
3838pkg_swarm_description = Fast and simple acceptor pool for Erlang
3839pkg_swarm_homepage = https://github.com/jeremey/swarm
3840pkg_swarm_fetch = git
3841pkg_swarm_repo = https://github.com/jeremey/swarm
3842pkg_swarm_commit = master
3843
3844PACKAGES += switchboard
3845pkg_switchboard_name = switchboard
3846pkg_switchboard_description = A framework for processing email using worker plugins.
3847pkg_switchboard_homepage = https://github.com/thusfresh/switchboard
3848pkg_switchboard_fetch = git
3849pkg_switchboard_repo = https://github.com/thusfresh/switchboard
3850pkg_switchboard_commit = master
3851
3852PACKAGES += syn
3853pkg_syn_name = syn
3854pkg_syn_description = A global Process Registry and Process Group manager for Erlang.
3855pkg_syn_homepage = https://github.com/ostinelli/syn
3856pkg_syn_fetch = git
3857pkg_syn_repo = https://github.com/ostinelli/syn
3858pkg_syn_commit = master
3859
3860PACKAGES += sync
3861pkg_sync_name = sync
3862pkg_sync_description = On-the-fly recompiling and reloading in Erlang.
3863pkg_sync_homepage = https://github.com/rustyio/sync
3864pkg_sync_fetch = git
3865pkg_sync_repo = https://github.com/rustyio/sync
3866pkg_sync_commit = master
3867
3868PACKAGES += syntaxerl
3869pkg_syntaxerl_name = syntaxerl
3870pkg_syntaxerl_description = Syntax checker for Erlang
3871pkg_syntaxerl_homepage = https://github.com/ten0s/syntaxerl
3872pkg_syntaxerl_fetch = git
3873pkg_syntaxerl_repo = https://github.com/ten0s/syntaxerl
3874pkg_syntaxerl_commit = master
3875
3876PACKAGES += syslog
3877pkg_syslog_name = syslog
3878pkg_syslog_description = Erlang port driver for interacting with syslog via syslog(3)
3879pkg_syslog_homepage = https://github.com/Vagabond/erlang-syslog
3880pkg_syslog_fetch = git
3881pkg_syslog_repo = https://github.com/Vagabond/erlang-syslog
3882pkg_syslog_commit = master
3883
3884PACKAGES += taskforce
3885pkg_taskforce_name = taskforce
3886pkg_taskforce_description = Erlang worker pools for controlled parallelisation of arbitrary tasks.
3887pkg_taskforce_homepage = https://github.com/g-andrade/taskforce
3888pkg_taskforce_fetch = git
3889pkg_taskforce_repo = https://github.com/g-andrade/taskforce
3890pkg_taskforce_commit = master
3891
3892PACKAGES += tddreloader
3893pkg_tddreloader_name = tddreloader
3894pkg_tddreloader_description = Shell utility for recompiling, reloading, and testing code as it changes
3895pkg_tddreloader_homepage = https://github.com/version2beta/tddreloader
3896pkg_tddreloader_fetch = git
3897pkg_tddreloader_repo = https://github.com/version2beta/tddreloader
3898pkg_tddreloader_commit = master
3899
3900PACKAGES += tempo
3901pkg_tempo_name = tempo
3902pkg_tempo_description = NIF-based date and time parsing and formatting for Erlang.
3903pkg_tempo_homepage = https://github.com/selectel/tempo
3904pkg_tempo_fetch = git
3905pkg_tempo_repo = https://github.com/selectel/tempo
3906pkg_tempo_commit = master
3907
3908PACKAGES += ticktick
3909pkg_ticktick_name = ticktick
3910pkg_ticktick_description = Ticktick is an id generator for message service.
3911pkg_ticktick_homepage = https://github.com/ericliang/ticktick
3912pkg_ticktick_fetch = git
3913pkg_ticktick_repo = https://github.com/ericliang/ticktick
3914pkg_ticktick_commit = master
3915
3916PACKAGES += tinymq
3917pkg_tinymq_name = tinymq
3918pkg_tinymq_description = TinyMQ - a diminutive, in-memory message queue
3919pkg_tinymq_homepage = https://github.com/ChicagoBoss/tinymq
3920pkg_tinymq_fetch = git
3921pkg_tinymq_repo = https://github.com/ChicagoBoss/tinymq
3922pkg_tinymq_commit = master
3923
3924PACKAGES += tinymt
3925pkg_tinymt_name = tinymt
3926pkg_tinymt_description = TinyMT pseudo random number generator for Erlang.
3927pkg_tinymt_homepage = https://github.com/jj1bdx/tinymt-erlang
3928pkg_tinymt_fetch = git
3929pkg_tinymt_repo = https://github.com/jj1bdx/tinymt-erlang
3930pkg_tinymt_commit = master
3931
3932PACKAGES += tirerl
3933pkg_tirerl_name = tirerl
3934pkg_tirerl_description = Erlang interface to Elastic Search
3935pkg_tirerl_homepage = https://github.com/inaka/tirerl
3936pkg_tirerl_fetch = git
3937pkg_tirerl_repo = https://github.com/inaka/tirerl
3938pkg_tirerl_commit = master
3939
3940PACKAGES += toml
3941pkg_toml_name = toml
3942pkg_toml_description = TOML (0.4.0) config parser
3943pkg_toml_homepage = http://dozzie.jarowit.net/trac/wiki/TOML
3944pkg_toml_fetch = git
3945pkg_toml_repo = https://github.com/dozzie/toml
3946pkg_toml_commit = v0.2.0
3947
3948PACKAGES += traffic_tools
3949pkg_traffic_tools_name = traffic_tools
3950pkg_traffic_tools_description = Simple traffic limiting library
3951pkg_traffic_tools_homepage = https://github.com/systra/traffic_tools
3952pkg_traffic_tools_fetch = git
3953pkg_traffic_tools_repo = https://github.com/systra/traffic_tools
3954pkg_traffic_tools_commit = master
3955
3956PACKAGES += trails
3957pkg_trails_name = trails
3958pkg_trails_description = A couple of improvements over Cowboy Routes
3959pkg_trails_homepage = http://inaka.github.io/cowboy-trails/
3960pkg_trails_fetch = git
3961pkg_trails_repo = https://github.com/inaka/cowboy-trails
3962pkg_trails_commit = master
3963
3964PACKAGES += trane
3965pkg_trane_name = trane
3966pkg_trane_description = SAX style broken HTML parser in Erlang
3967pkg_trane_homepage = https://github.com/massemanet/trane
3968pkg_trane_fetch = git
3969pkg_trane_repo = https://github.com/massemanet/trane
3970pkg_trane_commit = master
3971
3972PACKAGES += transit
3973pkg_transit_name = transit
3974pkg_transit_description = transit format for erlang
3975pkg_transit_homepage = https://github.com/isaiah/transit-erlang
3976pkg_transit_fetch = git
3977pkg_transit_repo = https://github.com/isaiah/transit-erlang
3978pkg_transit_commit = master
3979
3980PACKAGES += trie
3981pkg_trie_name = trie
3982pkg_trie_description = Erlang Trie Implementation
3983pkg_trie_homepage = https://github.com/okeuday/trie
3984pkg_trie_fetch = git
3985pkg_trie_repo = https://github.com/okeuday/trie
3986pkg_trie_commit = master
3987
3988PACKAGES += triq
3989pkg_triq_name = triq
3990pkg_triq_description = Trifork QuickCheck
3991pkg_triq_homepage = https://triq.gitlab.io
3992pkg_triq_fetch = git
3993pkg_triq_repo = https://gitlab.com/triq/triq.git
3994pkg_triq_commit = master
3995
3996PACKAGES += tunctl
3997pkg_tunctl_name = tunctl
3998pkg_tunctl_description = Erlang TUN/TAP interface
3999pkg_tunctl_homepage = https://github.com/msantos/tunctl
4000pkg_tunctl_fetch = git
4001pkg_tunctl_repo = https://github.com/msantos/tunctl
4002pkg_tunctl_commit = master
4003
4004PACKAGES += twerl
4005pkg_twerl_name = twerl
4006pkg_twerl_description = Erlang client for the Twitter Streaming API
4007pkg_twerl_homepage = https://github.com/lucaspiller/twerl
4008pkg_twerl_fetch = git
4009pkg_twerl_repo = https://github.com/lucaspiller/twerl
4010pkg_twerl_commit = oauth
4011
4012PACKAGES += twitter_erlang
4013pkg_twitter_erlang_name = twitter_erlang
4014pkg_twitter_erlang_description = An Erlang twitter client
4015pkg_twitter_erlang_homepage = https://github.com/ngerakines/erlang_twitter
4016pkg_twitter_erlang_fetch = git
4017pkg_twitter_erlang_repo = https://github.com/ngerakines/erlang_twitter
4018pkg_twitter_erlang_commit = master
4019
4020PACKAGES += ucol_nif
4021pkg_ucol_nif_name = ucol_nif
4022pkg_ucol_nif_description = ICU based collation Erlang module
4023pkg_ucol_nif_homepage = https://github.com/refuge/ucol_nif
4024pkg_ucol_nif_fetch = git
4025pkg_ucol_nif_repo = https://github.com/refuge/ucol_nif
4026pkg_ucol_nif_commit = master
4027
4028PACKAGES += unicorn
4029pkg_unicorn_name = unicorn
4030pkg_unicorn_description = Generic configuration server
4031pkg_unicorn_homepage = https://github.com/shizzard/unicorn
4032pkg_unicorn_fetch = git
4033pkg_unicorn_repo = https://github.com/shizzard/unicorn
4034pkg_unicorn_commit = master
4035
4036PACKAGES += unsplit
4037pkg_unsplit_name = unsplit
4038pkg_unsplit_description = Resolves conflicts in Mnesia after network splits
4039pkg_unsplit_homepage = https://github.com/uwiger/unsplit
4040pkg_unsplit_fetch = git
4041pkg_unsplit_repo = https://github.com/uwiger/unsplit
4042pkg_unsplit_commit = master
4043
4044PACKAGES += uuid
4045pkg_uuid_name = uuid
4046pkg_uuid_description = Erlang UUID Implementation
4047pkg_uuid_homepage = https://github.com/okeuday/uuid
4048pkg_uuid_fetch = git
4049pkg_uuid_repo = https://github.com/okeuday/uuid
4050pkg_uuid_commit = master
4051
4052PACKAGES += ux
4053pkg_ux_name = ux
4054pkg_ux_description = Unicode eXtention for Erlang (Strings, Collation)
4055pkg_ux_homepage = https://github.com/erlang-unicode/ux
4056pkg_ux_fetch = git
4057pkg_ux_repo = https://github.com/erlang-unicode/ux
4058pkg_ux_commit = master
4059
4060PACKAGES += vert
4061pkg_vert_name = vert
4062pkg_vert_description = Erlang binding to libvirt virtualization API
4063pkg_vert_homepage = https://github.com/msantos/erlang-libvirt
4064pkg_vert_fetch = git
4065pkg_vert_repo = https://github.com/msantos/erlang-libvirt
4066pkg_vert_commit = master
4067
4068PACKAGES += verx
4069pkg_verx_name = verx
4070pkg_verx_description = Erlang implementation of the libvirtd remote protocol
4071pkg_verx_homepage = https://github.com/msantos/verx
4072pkg_verx_fetch = git
4073pkg_verx_repo = https://github.com/msantos/verx
4074pkg_verx_commit = master
4075
4076PACKAGES += vmq_acl
4077pkg_vmq_acl_name = vmq_acl
4078pkg_vmq_acl_description = Component of VerneMQ: A distributed MQTT message broker
4079pkg_vmq_acl_homepage = https://verne.mq/
4080pkg_vmq_acl_fetch = git
4081pkg_vmq_acl_repo = https://github.com/erlio/vmq_acl
4082pkg_vmq_acl_commit = master
4083
4084PACKAGES += vmq_bridge
4085pkg_vmq_bridge_name = vmq_bridge
4086pkg_vmq_bridge_description = Component of VerneMQ: A distributed MQTT message broker
4087pkg_vmq_bridge_homepage = https://verne.mq/
4088pkg_vmq_bridge_fetch = git
4089pkg_vmq_bridge_repo = https://github.com/erlio/vmq_bridge
4090pkg_vmq_bridge_commit = master
4091
4092PACKAGES += vmq_graphite
4093pkg_vmq_graphite_name = vmq_graphite
4094pkg_vmq_graphite_description = Component of VerneMQ: A distributed MQTT message broker
4095pkg_vmq_graphite_homepage = https://verne.mq/
4096pkg_vmq_graphite_fetch = git
4097pkg_vmq_graphite_repo = https://github.com/erlio/vmq_graphite
4098pkg_vmq_graphite_commit = master
4099
4100PACKAGES += vmq_passwd
4101pkg_vmq_passwd_name = vmq_passwd
4102pkg_vmq_passwd_description = Component of VerneMQ: A distributed MQTT message broker
4103pkg_vmq_passwd_homepage = https://verne.mq/
4104pkg_vmq_passwd_fetch = git
4105pkg_vmq_passwd_repo = https://github.com/erlio/vmq_passwd
4106pkg_vmq_passwd_commit = master
4107
4108PACKAGES += vmq_server
4109pkg_vmq_server_name = vmq_server
4110pkg_vmq_server_description = Component of VerneMQ: A distributed MQTT message broker
4111pkg_vmq_server_homepage = https://verne.mq/
4112pkg_vmq_server_fetch = git
4113pkg_vmq_server_repo = https://github.com/erlio/vmq_server
4114pkg_vmq_server_commit = master
4115
4116PACKAGES += vmq_snmp
4117pkg_vmq_snmp_name = vmq_snmp
4118pkg_vmq_snmp_description = Component of VerneMQ: A distributed MQTT message broker
4119pkg_vmq_snmp_homepage = https://verne.mq/
4120pkg_vmq_snmp_fetch = git
4121pkg_vmq_snmp_repo = https://github.com/erlio/vmq_snmp
4122pkg_vmq_snmp_commit = master
4123
4124PACKAGES += vmq_systree
4125pkg_vmq_systree_name = vmq_systree
4126pkg_vmq_systree_description = Component of VerneMQ: A distributed MQTT message broker
4127pkg_vmq_systree_homepage = https://verne.mq/
4128pkg_vmq_systree_fetch = git
4129pkg_vmq_systree_repo = https://github.com/erlio/vmq_systree
4130pkg_vmq_systree_commit = master
4131
4132PACKAGES += vmstats
4133pkg_vmstats_name = vmstats
4134pkg_vmstats_description = tiny Erlang app that works in conjunction with statsderl in order to generate information on the Erlang VM for graphite logs.
4135pkg_vmstats_homepage = https://github.com/ferd/vmstats
4136pkg_vmstats_fetch = git
4137pkg_vmstats_repo = https://github.com/ferd/vmstats
4138pkg_vmstats_commit = master
4139
4140PACKAGES += walrus
4141pkg_walrus_name = walrus
4142pkg_walrus_description = Walrus - Mustache-like Templating
4143pkg_walrus_homepage = https://github.com/devinus/walrus
4144pkg_walrus_fetch = git
4145pkg_walrus_repo = https://github.com/devinus/walrus
4146pkg_walrus_commit = master
4147
4148PACKAGES += webmachine
4149pkg_webmachine_name = webmachine
4150pkg_webmachine_description = A REST-based system for building web applications.
4151pkg_webmachine_homepage = https://github.com/basho/webmachine
4152pkg_webmachine_fetch = git
4153pkg_webmachine_repo = https://github.com/basho/webmachine
4154pkg_webmachine_commit = master
4155
4156PACKAGES += websocket_client
4157pkg_websocket_client_name = websocket_client
4158pkg_websocket_client_description = Erlang websocket client (ws and wss supported)
4159pkg_websocket_client_homepage = https://github.com/jeremyong/websocket_client
4160pkg_websocket_client_fetch = git
4161pkg_websocket_client_repo = https://github.com/jeremyong/websocket_client
4162pkg_websocket_client_commit = master
4163
4164PACKAGES += worker_pool
4165pkg_worker_pool_name = worker_pool
4166pkg_worker_pool_description = a simple erlang worker pool
4167pkg_worker_pool_homepage = https://github.com/inaka/worker_pool
4168pkg_worker_pool_fetch = git
4169pkg_worker_pool_repo = https://github.com/inaka/worker_pool
4170pkg_worker_pool_commit = master
4171
4172PACKAGES += wrangler
4173pkg_wrangler_name = wrangler
4174pkg_wrangler_description = Import of the Wrangler svn repository.
4175pkg_wrangler_homepage = http://www.cs.kent.ac.uk/projects/wrangler/Home.html
4176pkg_wrangler_fetch = git
4177pkg_wrangler_repo = https://github.com/RefactoringTools/wrangler
4178pkg_wrangler_commit = master
4179
4180PACKAGES += wsock
4181pkg_wsock_name = wsock
4182pkg_wsock_description = Erlang library to build WebSocket clients and servers
4183pkg_wsock_homepage = https://github.com/madtrick/wsock
4184pkg_wsock_fetch = git
4185pkg_wsock_repo = https://github.com/madtrick/wsock
4186pkg_wsock_commit = master
4187
4188PACKAGES += xhttpc
4189pkg_xhttpc_name = xhttpc
4190pkg_xhttpc_description = Extensible HTTP Client for Erlang
4191pkg_xhttpc_homepage = https://github.com/seriyps/xhttpc
4192pkg_xhttpc_fetch = git
4193pkg_xhttpc_repo = https://github.com/seriyps/xhttpc
4194pkg_xhttpc_commit = master
4195
4196PACKAGES += xref_runner
4197pkg_xref_runner_name = xref_runner
4198pkg_xref_runner_description = Erlang Xref Runner (inspired in rebar xref)
4199pkg_xref_runner_homepage = https://github.com/inaka/xref_runner
4200pkg_xref_runner_fetch = git
4201pkg_xref_runner_repo = https://github.com/inaka/xref_runner
4202pkg_xref_runner_commit = master
4203
4204PACKAGES += yamerl
4205pkg_yamerl_name = yamerl
4206pkg_yamerl_description = YAML 1.2 parser in pure Erlang
4207pkg_yamerl_homepage = https://github.com/yakaz/yamerl
4208pkg_yamerl_fetch = git
4209pkg_yamerl_repo = https://github.com/yakaz/yamerl
4210pkg_yamerl_commit = master
4211
4212PACKAGES += yamler
4213pkg_yamler_name = yamler
4214pkg_yamler_description = libyaml-based yaml loader for Erlang
4215pkg_yamler_homepage = https://github.com/goertzenator/yamler
4216pkg_yamler_fetch = git
4217pkg_yamler_repo = https://github.com/goertzenator/yamler
4218pkg_yamler_commit = master
4219
4220PACKAGES += yaws
4221pkg_yaws_name = yaws
4222pkg_yaws_description = Yaws webserver
4223pkg_yaws_homepage = http://yaws.hyber.org
4224pkg_yaws_fetch = git
4225pkg_yaws_repo = https://github.com/klacke/yaws
4226pkg_yaws_commit = master
4227
4228PACKAGES += zab_engine
4229pkg_zab_engine_name = zab_engine
4230pkg_zab_engine_description = zab propotocol implement by erlang
4231pkg_zab_engine_homepage = https://github.com/xinmingyao/zab_engine
4232pkg_zab_engine_fetch = git
4233pkg_zab_engine_repo = https://github.com/xinmingyao/zab_engine
4234pkg_zab_engine_commit = master
4235
4236PACKAGES += zabbix_sender
4237pkg_zabbix_sender_name = zabbix_sender
4238pkg_zabbix_sender_description = Zabbix trapper for sending data to Zabbix in pure Erlang
4239pkg_zabbix_sender_homepage = https://github.com/stalkermn/zabbix_sender
4240pkg_zabbix_sender_fetch = git
4241pkg_zabbix_sender_repo = https://github.com/stalkermn/zabbix_sender.git
4242pkg_zabbix_sender_commit = master
4243
4244PACKAGES += zeta
4245pkg_zeta_name = zeta
4246pkg_zeta_description = HTTP access log parser in Erlang
4247pkg_zeta_homepage = https://github.com/s1n4/zeta
4248pkg_zeta_fetch = git
4249pkg_zeta_repo = https://github.com/s1n4/zeta
4250pkg_zeta_commit = master
4251
4252PACKAGES += zippers
4253pkg_zippers_name = zippers
4254pkg_zippers_description = A library for functional zipper data structures in Erlang. Read more on zippers
4255pkg_zippers_homepage = https://github.com/ferd/zippers
4256pkg_zippers_fetch = git
4257pkg_zippers_repo = https://github.com/ferd/zippers
4258pkg_zippers_commit = master
4259
4260PACKAGES += zlists
4261pkg_zlists_name = zlists
4262pkg_zlists_description = Erlang lazy lists library.
4263pkg_zlists_homepage = https://github.com/vjache/erlang-zlists
4264pkg_zlists_fetch = git
4265pkg_zlists_repo = https://github.com/vjache/erlang-zlists
4266pkg_zlists_commit = master
4267
4268PACKAGES += zraft_lib
4269pkg_zraft_lib_name = zraft_lib
4270pkg_zraft_lib_description = Erlang raft consensus protocol implementation
4271pkg_zraft_lib_homepage = https://github.com/dreyk/zraft_lib
4272pkg_zraft_lib_fetch = git
4273pkg_zraft_lib_repo = https://github.com/dreyk/zraft_lib
4274pkg_zraft_lib_commit = master
4275
4276PACKAGES += zucchini
4277pkg_zucchini_name = zucchini
4278pkg_zucchini_description = An Erlang INI parser
4279pkg_zucchini_homepage = https://github.com/devinus/zucchini
4280pkg_zucchini_fetch = git
4281pkg_zucchini_repo = https://github.com/devinus/zucchini
4282pkg_zucchini_commit = master
4283
4284# Copyright (c) 2015-2016, Loïc Hoguin <essen@ninenines.eu>
4285# This file is part of erlang.mk and subject to the terms of the ISC License.
4286
4287.PHONY: search
4288
4289define pkg_print
4290	$(verbose) printf "%s\n" \
4291		$(if $(call core_eq,$(1),$(pkg_$(1)_name)),,"Pkg name:    $(1)") \
4292		"App name:    $(pkg_$(1)_name)" \
4293		"Description: $(pkg_$(1)_description)" \
4294		"Home page:   $(pkg_$(1)_homepage)" \
4295		"Fetch with:  $(pkg_$(1)_fetch)" \
4296		"Repository:  $(pkg_$(1)_repo)" \
4297		"Commit:      $(pkg_$(1)_commit)" \
4298		""
4299
4300endef
4301
4302search:
4303ifdef q
4304	$(foreach p,$(PACKAGES), \
4305		$(if $(findstring $(call core_lc,$(q)),$(call core_lc,$(pkg_$(p)_name) $(pkg_$(p)_description))), \
4306			$(call pkg_print,$(p))))
4307else
4308	$(foreach p,$(PACKAGES),$(call pkg_print,$(p)))
4309endif
4310
4311# Copyright (c) 2013-2016, Loïc Hoguin <essen@ninenines.eu>
4312# This file is part of erlang.mk and subject to the terms of the ISC License.
4313
4314.PHONY: distclean-deps clean-tmp-deps.log
4315
4316# Configuration.
4317
4318ifdef OTP_DEPS
4319$(warning The variable OTP_DEPS is deprecated in favor of LOCAL_DEPS.)
4320endif
4321
4322IGNORE_DEPS ?=
4323export IGNORE_DEPS
4324
4325APPS_DIR ?= $(CURDIR)/apps
4326export APPS_DIR
4327
4328DEPS_DIR ?= $(CURDIR)/deps
4329export DEPS_DIR
4330
4331REBAR_DEPS_DIR = $(DEPS_DIR)
4332export REBAR_DEPS_DIR
4333
4334REBAR_GIT ?= https://github.com/rebar/rebar
4335REBAR_COMMIT ?= 576e12171ab8d69b048b827b92aa65d067deea01
4336
4337# External "early" plugins (see core/plugins.mk for regular plugins).
4338# They both use the core_dep_plugin macro.
4339
4340define core_dep_plugin
4341ifeq ($(2),$(PROJECT))
4342-include $$(patsubst $(PROJECT)/%,%,$(1))
4343else
4344-include $(DEPS_DIR)/$(1)
4345
4346$(DEPS_DIR)/$(1): $(DEPS_DIR)/$(2) ;
4347endif
4348endef
4349
4350DEP_EARLY_PLUGINS ?=
4351
4352$(foreach p,$(DEP_EARLY_PLUGINS),\
4353	$(eval $(if $(findstring /,$p),\
4354		$(call core_dep_plugin,$p,$(firstword $(subst /, ,$p))),\
4355		$(call core_dep_plugin,$p/early-plugins.mk,$p))))
4356
4357# Query functions.
4358
4359query_fetch_method = $(if $(dep_$(1)),$(call _qfm_dep,$(word 1,$(dep_$(1)))),$(call _qfm_pkg,$(1)))
4360_qfm_dep = $(if $(dep_fetch_$(1)),$(1),$(if $(IS_DEP),legacy,fail))
4361_qfm_pkg = $(if $(pkg_$(1)_fetch),$(pkg_$(1)_fetch),fail)
4362
4363query_name = $(if $(dep_$(1)),$(1),$(if $(pkg_$(1)_name),$(pkg_$(1)_name),$(1)))
4364
4365query_repo = $(call _qr,$(1),$(call query_fetch_method,$(1)))
4366_qr = $(if $(query_repo_$(2)),$(call query_repo_$(2),$(1)),$(call dep_repo,$(1)))
4367
4368query_repo_default = $(if $(dep_$(1)),$(word 2,$(dep_$(1))),$(pkg_$(1)_repo))
4369query_repo_git = $(patsubst git://github.com/%,https://github.com/%,$(call query_repo_default,$(1)))
4370query_repo_git-subfolder = $(call query_repo_git,$(1))
4371query_repo_git-submodule = -
4372query_repo_hg = $(call query_repo_default,$(1))
4373query_repo_svn = $(call query_repo_default,$(1))
4374query_repo_cp = $(call query_repo_default,$(1))
4375query_repo_ln = $(call query_repo_default,$(1))
4376query_repo_hex = https://hex.pm/packages/$(if $(word 3,$(dep_$(1))),$(word 3,$(dep_$(1))),$(1))
4377query_repo_fail = -
4378query_repo_legacy = -
4379
4380query_version = $(call _qv,$(1),$(call query_fetch_method,$(1)))
4381_qv = $(if $(query_version_$(2)),$(call query_version_$(2),$(1)),$(call dep_commit,$(1)))
4382
4383query_version_default = $(if $(dep_$(1)_commit),$(dep_$(1)_commit),$(if $(dep_$(1)),$(word 3,$(dep_$(1))),$(pkg_$(1)_commit)))
4384query_version_git = $(call query_version_default,$(1))
4385query_version_git-subfolder = $(call query_version_git,$(1))
4386query_version_git-submodule = -
4387query_version_hg = $(call query_version_default,$(1))
4388query_version_svn = -
4389query_version_cp = -
4390query_version_ln = -
4391query_version_hex = $(if $(dep_$(1)_commit),$(dep_$(1)_commit),$(if $(dep_$(1)),$(word 2,$(dep_$(1))),$(pkg_$(1)_commit)))
4392query_version_fail = -
4393query_version_legacy = -
4394
4395query_extra = $(call _qe,$(1),$(call query_fetch_method,$(1)))
4396_qe = $(if $(query_extra_$(2)),$(call query_extra_$(2),$(1)),-)
4397
4398query_extra_git = -
4399query_extra_git-subfolder = $(if $(dep_$(1)),subfolder=$(word 4,$(dep_$(1))),-)
4400query_extra_git-submodule = -
4401query_extra_hg = -
4402query_extra_svn = -
4403query_extra_cp = -
4404query_extra_ln = -
4405query_extra_hex = $(if $(dep_$(1)),package-name=$(word 3,$(dep_$(1))),-)
4406query_extra_fail = -
4407query_extra_legacy = -
4408
4409query_absolute_path = $(addprefix $(DEPS_DIR)/,$(call query_name,$(1)))
4410
4411# Deprecated legacy query functions.
4412dep_fetch = $(call query_fetch_method,$(1))
4413dep_name = $(call query_name,$(1))
4414dep_repo = $(call query_repo_git,$(1))
4415dep_commit = $(if $(dep_$(1)_commit),$(dep_$(1)_commit),$(if $(dep_$(1)),$(if $(filter hex,$(word 1,$(dep_$(1)))),$(word 2,$(dep_$(1))),$(word 3,$(dep_$(1)))),$(pkg_$(1)_commit)))
4416
4417LOCAL_DEPS_DIRS = $(foreach a,$(LOCAL_DEPS),$(if $(wildcard $(APPS_DIR)/$(a)),$(APPS_DIR)/$(a)))
4418ALL_DEPS_DIRS = $(addprefix $(DEPS_DIR)/,$(foreach dep,$(filter-out $(IGNORE_DEPS),$(BUILD_DEPS) $(DEPS)),$(call dep_name,$(dep))))
4419
4420# When we are calling an app directly we don't want to include it here
4421# otherwise it'll be treated both as an apps and a top-level project.
4422ALL_APPS_DIRS = $(if $(wildcard $(APPS_DIR)/),$(filter-out $(APPS_DIR),$(shell find $(APPS_DIR) -maxdepth 1 -type d)))
4423ifdef ROOT_DIR
4424ifndef IS_APP
4425ALL_APPS_DIRS := $(filter-out $(APPS_DIR)/$(notdir $(CURDIR)),$(ALL_APPS_DIRS))
4426endif
4427endif
4428
4429ifeq ($(filter $(APPS_DIR) $(DEPS_DIR),$(subst :, ,$(ERL_LIBS))),)
4430ifeq ($(ERL_LIBS),)
4431	ERL_LIBS = $(APPS_DIR):$(DEPS_DIR)
4432else
4433	ERL_LIBS := $(ERL_LIBS):$(APPS_DIR):$(DEPS_DIR)
4434endif
4435endif
4436export ERL_LIBS
4437
4438export NO_AUTOPATCH
4439
4440# Verbosity.
4441
4442dep_verbose_0 = @echo " DEP    $1 ($(call dep_commit,$1))";
4443dep_verbose_2 = set -x;
4444dep_verbose = $(dep_verbose_$(V))
4445
4446# Optimization: don't recompile deps unless truly necessary.
4447
4448ifndef IS_DEP
4449ifneq ($(MAKELEVEL),0)
4450$(shell rm -f ebin/dep_built)
4451endif
4452endif
4453
4454# Core targets.
4455
4456ALL_APPS_DIRS_TO_BUILD = $(if $(LOCAL_DEPS_DIRS)$(IS_APP),$(LOCAL_DEPS_DIRS),$(ALL_APPS_DIRS))
4457
4458apps:: $(ALL_APPS_DIRS) clean-tmp-deps.log | $(ERLANG_MK_TMP)
4459# Create ebin directory for all apps to make sure Erlang recognizes them
4460# as proper OTP applications when using -include_lib. This is a temporary
4461# fix, a proper fix would be to compile apps/* in the right order.
4462ifndef IS_APP
4463ifneq ($(ALL_APPS_DIRS),)
4464	$(verbose) set -e; for dep in $(ALL_APPS_DIRS) ; do \
4465		mkdir -p $$dep/ebin; \
4466	done
4467endif
4468endif
4469# At the toplevel: if LOCAL_DEPS is defined with at least one local app, only
4470# compile that list of apps. Otherwise, compile everything.
4471# Within an app: compile all LOCAL_DEPS that are (uncompiled) local apps.
4472ifneq ($(ALL_APPS_DIRS_TO_BUILD),)
4473	$(verbose) set -e; for dep in $(ALL_APPS_DIRS_TO_BUILD); do \
4474		if grep -qs ^$$dep$$ $(ERLANG_MK_TMP)/apps.log; then \
4475			:; \
4476		else \
4477			echo $$dep >> $(ERLANG_MK_TMP)/apps.log; \
4478			$(MAKE) -C $$dep $(if $(IS_TEST),test-build-app) IS_APP=1; \
4479		fi \
4480	done
4481endif
4482
4483clean-tmp-deps.log:
4484ifeq ($(IS_APP)$(IS_DEP),)
4485	$(verbose) rm -f $(ERLANG_MK_TMP)/apps.log $(ERLANG_MK_TMP)/deps.log
4486endif
4487
4488# Erlang.mk does not rebuild dependencies after they were compiled
4489# once. If a developer is working on the top-level project and some
4490# dependencies at the same time, he may want to change this behavior.
4491# There are two solutions:
4492#     1. Set `FULL=1` so that all dependencies are visited and
4493#        recursively recompiled if necessary.
4494#     2. Set `FORCE_REBUILD=` to the specific list of dependencies that
4495#        should be recompiled (instead of the whole set).
4496
4497FORCE_REBUILD ?=
4498
4499ifeq ($(origin FULL),undefined)
4500ifneq ($(strip $(force_rebuild_dep)$(FORCE_REBUILD)),)
4501define force_rebuild_dep
4502echo "$(FORCE_REBUILD)" | grep -qw "$$(basename "$1")"
4503endef
4504endif
4505endif
4506
4507ifneq ($(SKIP_DEPS),)
4508deps::
4509else
4510deps:: $(ALL_DEPS_DIRS) apps clean-tmp-deps.log | $(ERLANG_MK_TMP)
4511ifneq ($(ALL_DEPS_DIRS),)
4512	$(verbose) set -e; for dep in $(ALL_DEPS_DIRS); do \
4513		if grep -qs ^$$dep$$ $(ERLANG_MK_TMP)/deps.log; then \
4514			:; \
4515		else \
4516			echo $$dep >> $(ERLANG_MK_TMP)/deps.log; \
4517			if [ -z "$(strip $(FULL))" ] $(if $(force_rebuild_dep),&& ! ($(call force_rebuild_dep,$$dep)),) && [ ! -L $$dep ] && [ -f $$dep/ebin/dep_built ]; then \
4518				:; \
4519			elif [ -f $$dep/GNUmakefile ] || [ -f $$dep/makefile ] || [ -f $$dep/Makefile ]; then \
4520				$(MAKE) -C $$dep IS_DEP=1; \
4521				if [ ! -L $$dep ] && [ -d $$dep/ebin ]; then touch $$dep/ebin/dep_built; fi; \
4522			else \
4523				echo "Error: No Makefile to build dependency $$dep." >&2; \
4524				exit 2; \
4525			fi \
4526		fi \
4527	done
4528endif
4529endif
4530
4531# Deps related targets.
4532
4533# @todo rename GNUmakefile and makefile into Makefile first, if they exist
4534# While Makefile file could be GNUmakefile or makefile,
4535# in practice only Makefile is needed so far.
4536define dep_autopatch
4537	if [ -f $(DEPS_DIR)/$(1)/erlang.mk ]; then \
4538		rm -rf $(DEPS_DIR)/$1/ebin/; \
4539		$(call erlang,$(call dep_autopatch_appsrc.erl,$(1))); \
4540		$(call dep_autopatch_erlang_mk,$(1)); \
4541	elif [ -f $(DEPS_DIR)/$(1)/Makefile ]; then \
4542		if [ -f $(DEPS_DIR)/$1/rebar.lock ]; then \
4543			$(call dep_autopatch2,$1); \
4544		elif [ 0 != `grep -c "include ../\w*\.mk" $(DEPS_DIR)/$(1)/Makefile` ]; then \
4545			$(call dep_autopatch2,$(1)); \
4546		elif [ 0 != `grep -ci "^[^#].*rebar" $(DEPS_DIR)/$(1)/Makefile` ]; then \
4547			$(call dep_autopatch2,$(1)); \
4548		elif [ -n "`find $(DEPS_DIR)/$(1)/ -type f -name \*.mk -not -name erlang.mk -exec grep -i "^[^#].*rebar" '{}' \;`" ]; then \
4549			$(call dep_autopatch2,$(1)); \
4550		fi \
4551	else \
4552		if [ ! -d $(DEPS_DIR)/$(1)/src/ ]; then \
4553			$(call dep_autopatch_noop,$(1)); \
4554		else \
4555			$(call dep_autopatch2,$(1)); \
4556		fi \
4557	fi
4558endef
4559
4560define dep_autopatch2
4561	! test -f $(DEPS_DIR)/$1/ebin/$1.app || \
4562	mv -n $(DEPS_DIR)/$1/ebin/$1.app $(DEPS_DIR)/$1/src/$1.app.src; \
4563	rm -f $(DEPS_DIR)/$1/ebin/$1.app; \
4564	if [ -f $(DEPS_DIR)/$1/src/$1.app.src.script ]; then \
4565		$(call erlang,$(call dep_autopatch_appsrc_script.erl,$(1))); \
4566	fi; \
4567	$(call erlang,$(call dep_autopatch_appsrc.erl,$(1))); \
4568	if [ -f $(DEPS_DIR)/$(1)/rebar -o -f $(DEPS_DIR)/$(1)/rebar.config -o -f $(DEPS_DIR)/$(1)/rebar.config.script -o -f $(DEPS_DIR)/$1/rebar.lock ]; then \
4569		$(call dep_autopatch_fetch_rebar); \
4570		$(call dep_autopatch_rebar,$(1)); \
4571	else \
4572		$(call dep_autopatch_gen,$(1)); \
4573	fi
4574endef
4575
4576define dep_autopatch_noop
4577	printf "noop:\n" > $(DEPS_DIR)/$(1)/Makefile
4578endef
4579
4580# Replace "include erlang.mk" with a line that will load the parent Erlang.mk
4581# if given. Do it for all 3 possible Makefile file names.
4582ifeq ($(NO_AUTOPATCH_ERLANG_MK),)
4583define dep_autopatch_erlang_mk
4584	for f in Makefile makefile GNUmakefile; do \
4585		if [ -f $(DEPS_DIR)/$1/$$f ]; then \
4586			sed -i.bak s/'include *erlang.mk'/'include $$(if $$(ERLANG_MK_FILENAME),$$(ERLANG_MK_FILENAME),erlang.mk)'/ $(DEPS_DIR)/$1/$$f; \
4587		fi \
4588	done
4589endef
4590else
4591define dep_autopatch_erlang_mk
4592	:
4593endef
4594endif
4595
4596define dep_autopatch_gen
4597	printf "%s\n" \
4598		"ERLC_OPTS = +debug_info" \
4599		"include ../../erlang.mk" > $(DEPS_DIR)/$(1)/Makefile
4600endef
4601
4602# We use flock/lockf when available to avoid concurrency issues.
4603define dep_autopatch_fetch_rebar
4604	if command -v flock >/dev/null; then \
4605		flock $(ERLANG_MK_TMP)/rebar.lock sh -c "$(call dep_autopatch_fetch_rebar2)"; \
4606	elif command -v lockf >/dev/null; then \
4607		lockf $(ERLANG_MK_TMP)/rebar.lock sh -c "$(call dep_autopatch_fetch_rebar2)"; \
4608	else \
4609		$(call dep_autopatch_fetch_rebar2); \
4610	fi
4611endef
4612
4613define dep_autopatch_fetch_rebar2
4614	if [ ! -d $(ERLANG_MK_TMP)/rebar ]; then \
4615		git clone -q -n -- $(REBAR_GIT) $(ERLANG_MK_TMP)/rebar; \
4616		cd $(ERLANG_MK_TMP)/rebar; \
4617		git checkout -q $(REBAR_COMMIT); \
4618		./bootstrap; \
4619		cd -; \
4620	fi
4621endef
4622
4623define dep_autopatch_rebar
4624	if [ -f $(DEPS_DIR)/$(1)/Makefile ]; then \
4625		mv $(DEPS_DIR)/$(1)/Makefile $(DEPS_DIR)/$(1)/Makefile.orig.mk; \
4626	fi; \
4627	$(call erlang,$(call dep_autopatch_rebar.erl,$(1))); \
4628	rm -f $(DEPS_DIR)/$(1)/ebin/$(1).app
4629endef
4630
4631define dep_autopatch_rebar.erl
4632	application:load(rebar),
4633	application:set_env(rebar, log_level, debug),
4634	rmemo:start(),
4635	Conf1 = case file:consult("$(call core_native_path,$(DEPS_DIR)/$1/rebar.config)") of
4636		{ok, Conf0} -> Conf0;
4637		_ -> []
4638	end,
4639	{Conf, OsEnv} = fun() ->
4640		case filelib:is_file("$(call core_native_path,$(DEPS_DIR)/$1/rebar.config.script)") of
4641			false -> {Conf1, []};
4642			true ->
4643				Bindings0 = erl_eval:new_bindings(),
4644				Bindings1 = erl_eval:add_binding('CONFIG', Conf1, Bindings0),
4645				Bindings = erl_eval:add_binding('SCRIPT', "$(call core_native_path,$(DEPS_DIR)/$1/rebar.config.script)", Bindings1),
4646				Before = os:getenv(),
4647				{ok, Conf2} = file:script("$(call core_native_path,$(DEPS_DIR)/$1/rebar.config.script)", Bindings),
4648				{Conf2, lists:foldl(fun(E, Acc) -> lists:delete(E, Acc) end, os:getenv(), Before)}
4649		end
4650	end(),
4651	Write = fun (Text) ->
4652		file:write_file("$(call core_native_path,$(DEPS_DIR)/$1/Makefile)", Text, [append])
4653	end,
4654	Escape = fun (Text) ->
4655		re:replace(Text, "\\\\$$", "\$$$$", [global, {return, list}])
4656	end,
4657	Write("IGNORE_DEPS += edown eper eunit_formatters meck node_package "
4658		"rebar_lock_deps_plugin rebar_vsn_plugin reltool_util\n"),
4659	Write("C_SRC_DIR = /path/do/not/exist\n"),
4660	Write("C_SRC_TYPE = rebar\n"),
4661	Write("DRV_CFLAGS = -fPIC\nexport DRV_CFLAGS\n"),
4662	Write(["ERLANG_ARCH = ", rebar_utils:wordsize(), "\nexport ERLANG_ARCH\n"]),
4663	ToList = fun
4664		(V) when is_atom(V) -> atom_to_list(V);
4665		(V) when is_list(V) -> "'\\"" ++ V ++ "\\"'"
4666	end,
4667	fun() ->
4668		Write("ERLC_OPTS = +debug_info\nexport ERLC_OPTS\n"),
4669		case lists:keyfind(erl_opts, 1, Conf) of
4670			false -> ok;
4671			{_, ErlOpts} ->
4672				lists:foreach(fun
4673					({d, D}) ->
4674						Write("ERLC_OPTS += -D" ++ ToList(D) ++ "=1\n");
4675					({d, DKey, DVal}) ->
4676						Write("ERLC_OPTS += -D" ++ ToList(DKey) ++ "=" ++ ToList(DVal) ++ "\n");
4677					({i, I}) ->
4678						Write(["ERLC_OPTS += -I ", I, "\n"]);
4679					({platform_define, Regex, D}) ->
4680						case rebar_utils:is_arch(Regex) of
4681							true -> Write("ERLC_OPTS += -D" ++ ToList(D) ++ "=1\n");
4682							false -> ok
4683						end;
4684					({parse_transform, PT}) ->
4685						Write("ERLC_OPTS += +'{parse_transform, " ++ ToList(PT) ++ "}'\n");
4686					(_) -> ok
4687				end, ErlOpts)
4688		end,
4689		Write("\n")
4690	end(),
4691	GetHexVsn = fun(N, NP) ->
4692		case file:consult("$(call core_native_path,$(DEPS_DIR)/$1/rebar.lock)") of
4693			{ok, Lock} ->
4694				io:format("~p~n", [Lock]),
4695				case lists:keyfind("1.1.0", 1, Lock) of
4696					{_, LockPkgs} ->
4697						io:format("~p~n", [LockPkgs]),
4698						case lists:keyfind(atom_to_binary(N, latin1), 1, LockPkgs) of
4699							{_, {pkg, _, Vsn}, _} ->
4700								io:format("~p~n", [Vsn]),
4701								{N, {hex, NP, binary_to_list(Vsn)}};
4702							_ ->
4703								false
4704						end;
4705					_ ->
4706						false
4707				end;
4708			_ ->
4709				false
4710		end
4711	end,
4712	SemVsn = fun
4713		("~>" ++ S0) ->
4714			S = case S0 of
4715				" " ++ S1 -> S1;
4716				_ -> S0
4717			end,
4718			case length([ok || $$. <- S]) of
4719				0 -> S ++ ".0.0";
4720				1 -> S ++ ".0";
4721				_ -> S
4722			end;
4723		(S) -> S
4724	end,
4725	fun() ->
4726		File = case lists:keyfind(deps, 1, Conf) of
4727			false -> [];
4728			{_, Deps} ->
4729				[begin case case Dep of
4730							N when is_atom(N) -> GetHexVsn(N, N);
4731							{N, S} when is_atom(N), is_list(S) -> {N, {hex, N, SemVsn(S)}};
4732							{N, {pkg, NP}} when is_atom(N) -> GetHexVsn(N, NP);
4733							{N, S, {pkg, NP}} -> {N, {hex, NP, S}};
4734							{N, S} when is_tuple(S) -> {N, S};
4735							{N, _, S} -> {N, S};
4736							{N, _, S, _} -> {N, S};
4737							_ -> false
4738						end of
4739					false -> ok;
4740					{Name, Source} ->
4741						{Method, Repo, Commit} = case Source of
4742							{hex, NPV, V} -> {hex, V, NPV};
4743							{git, R} -> {git, R, master};
4744							{M, R, {branch, C}} -> {M, R, C};
4745							{M, R, {ref, C}} -> {M, R, C};
4746							{M, R, {tag, C}} -> {M, R, C};
4747							{M, R, C} -> {M, R, C}
4748						end,
4749						Write(io_lib:format("DEPS += ~s\ndep_~s = ~s ~s ~s~n", [Name, Name, Method, Repo, Commit]))
4750				end end || Dep <- Deps]
4751		end
4752	end(),
4753	fun() ->
4754		case lists:keyfind(erl_first_files, 1, Conf) of
4755			false -> ok;
4756			{_, Files} ->
4757				Names = [[" ", case lists:reverse(F) of
4758					"lre." ++ Elif -> lists:reverse(Elif);
4759					"lrx." ++ Elif -> lists:reverse(Elif);
4760					"lry." ++ Elif -> lists:reverse(Elif);
4761					Elif -> lists:reverse(Elif)
4762				end] || "src/" ++ F <- Files],
4763				Write(io_lib:format("COMPILE_FIRST +=~s\n", [Names]))
4764		end
4765	end(),
4766	Write("\n\nrebar_dep: preprocess pre-deps deps pre-app app\n"),
4767	Write("\npreprocess::\n"),
4768	Write("\npre-deps::\n"),
4769	Write("\npre-app::\n"),
4770	PatchHook = fun(Cmd) ->
4771		Cmd2 = re:replace(Cmd, "^([g]?make)(.*)( -C.*)", "\\\\1\\\\3\\\\2", [{return, list}]),
4772		case Cmd2 of
4773			"make -C" ++ Cmd1 -> "$$\(MAKE) -C" ++ Escape(Cmd1);
4774			"gmake -C" ++ Cmd1 -> "$$\(MAKE) -C" ++ Escape(Cmd1);
4775			"make " ++ Cmd1 -> "$$\(MAKE) -f Makefile.orig.mk " ++ Escape(Cmd1);
4776			"gmake " ++ Cmd1 -> "$$\(MAKE) -f Makefile.orig.mk " ++ Escape(Cmd1);
4777			_ -> Escape(Cmd)
4778		end
4779	end,
4780	fun() ->
4781		case lists:keyfind(pre_hooks, 1, Conf) of
4782			false -> ok;
4783			{_, Hooks} ->
4784				[case H of
4785					{'get-deps', Cmd} ->
4786						Write("\npre-deps::\n\t" ++ PatchHook(Cmd) ++ "\n");
4787					{compile, Cmd} ->
4788						Write("\npre-app::\n\tCC=$$\(CC) " ++ PatchHook(Cmd) ++ "\n");
4789					{Regex, compile, Cmd} ->
4790						case rebar_utils:is_arch(Regex) of
4791							true -> Write("\npre-app::\n\tCC=$$\(CC) " ++ PatchHook(Cmd) ++ "\n");
4792							false -> ok
4793						end;
4794					_ -> ok
4795				end || H <- Hooks]
4796		end
4797	end(),
4798	ShellToMk = fun(V0) ->
4799		V1 = re:replace(V0, "[$$][(]", "$$\(shell ", [global]),
4800		V = re:replace(V1, "([$$])(?![(])(\\\\w*)", "\\\\1(\\\\2)", [global]),
4801		re:replace(V, "-Werror\\\\b", "", [{return, list}, global])
4802	end,
4803	PortSpecs = fun() ->
4804		case lists:keyfind(port_specs, 1, Conf) of
4805			false ->
4806				case filelib:is_dir("$(call core_native_path,$(DEPS_DIR)/$1/c_src)") of
4807					false -> [];
4808					true ->
4809						[{"priv/" ++ proplists:get_value(so_name, Conf, "$(1)_drv.so"),
4810							proplists:get_value(port_sources, Conf, ["c_src/*.c"]), []}]
4811				end;
4812			{_, Specs} ->
4813				lists:flatten([case S of
4814					{Output, Input} -> {ShellToMk(Output), Input, []};
4815					{Regex, Output, Input} ->
4816						case rebar_utils:is_arch(Regex) of
4817							true -> {ShellToMk(Output), Input, []};
4818							false -> []
4819						end;
4820					{Regex, Output, Input, [{env, Env}]} ->
4821						case rebar_utils:is_arch(Regex) of
4822							true -> {ShellToMk(Output), Input, Env};
4823							false -> []
4824						end
4825				end || S <- Specs])
4826		end
4827	end(),
4828	PortSpecWrite = fun (Text) ->
4829		file:write_file("$(call core_native_path,$(DEPS_DIR)/$1/c_src/Makefile.erlang.mk)", Text, [append])
4830	end,
4831	case PortSpecs of
4832		[] -> ok;
4833		_ ->
4834			Write("\npre-app::\n\t@$$\(MAKE) --no-print-directory -f c_src/Makefile.erlang.mk\n"),
4835			PortSpecWrite(io_lib:format("ERL_CFLAGS ?= -finline-functions -Wall -fPIC -I \\"~s/erts-~s/include\\" -I \\"~s\\"\n",
4836				[code:root_dir(), erlang:system_info(version), code:lib_dir(erl_interface, include)])),
4837			PortSpecWrite(io_lib:format("ERL_LDFLAGS ?= -L \\"~s\\" -lei\n",
4838				[code:lib_dir(erl_interface, lib)])),
4839			[PortSpecWrite(["\n", E, "\n"]) || E <- OsEnv],
4840			FilterEnv = fun(Env) ->
4841				lists:flatten([case E of
4842					{_, _} -> E;
4843					{Regex, K, V} ->
4844						case rebar_utils:is_arch(Regex) of
4845							true -> {K, V};
4846							false -> []
4847						end
4848				end || E <- Env])
4849			end,
4850			MergeEnv = fun(Env) ->
4851				lists:foldl(fun ({K, V}, Acc) ->
4852					case lists:keyfind(K, 1, Acc) of
4853						false -> [{K, rebar_utils:expand_env_variable(V, K, "")}|Acc];
4854						{_, V0} -> [{K, rebar_utils:expand_env_variable(V, K, V0)}|Acc]
4855					end
4856				end, [], Env)
4857			end,
4858			PortEnv = case lists:keyfind(port_env, 1, Conf) of
4859				false -> [];
4860				{_, PortEnv0} -> FilterEnv(PortEnv0)
4861			end,
4862			PortSpec = fun ({Output, Input0, Env}) ->
4863				filelib:ensure_dir("$(call core_native_path,$(DEPS_DIR)/$1/)" ++ Output),
4864				Input = [[" ", I] || I <- Input0],
4865				PortSpecWrite([
4866					[["\n", K, " = ", ShellToMk(V)] || {K, V} <- lists:reverse(MergeEnv(PortEnv))],
4867					case $(PLATFORM) of
4868						darwin -> "\n\nLDFLAGS += -flat_namespace -undefined suppress";
4869						_ -> ""
4870					end,
4871					"\n\nall:: ", Output, "\n\t@:\n\n",
4872					"%.o: %.c\n\t$$\(CC) -c -o $$\@ $$\< $$\(CFLAGS) $$\(ERL_CFLAGS) $$\(DRV_CFLAGS) $$\(EXE_CFLAGS)\n\n",
4873					"%.o: %.C\n\t$$\(CXX) -c -o $$\@ $$\< $$\(CXXFLAGS) $$\(ERL_CFLAGS) $$\(DRV_CFLAGS) $$\(EXE_CFLAGS)\n\n",
4874					"%.o: %.cc\n\t$$\(CXX) -c -o $$\@ $$\< $$\(CXXFLAGS) $$\(ERL_CFLAGS) $$\(DRV_CFLAGS) $$\(EXE_CFLAGS)\n\n",
4875					"%.o: %.cpp\n\t$$\(CXX) -c -o $$\@ $$\< $$\(CXXFLAGS) $$\(ERL_CFLAGS) $$\(DRV_CFLAGS) $$\(EXE_CFLAGS)\n\n",
4876					[[Output, ": ", K, " += ", ShellToMk(V), "\n"] || {K, V} <- lists:reverse(MergeEnv(FilterEnv(Env)))],
4877					Output, ": $$\(foreach ext,.c .C .cc .cpp,",
4878						"$$\(patsubst %$$\(ext),%.o,$$\(filter %$$\(ext),$$\(wildcard", Input, "))))\n",
4879					"\t$$\(CC) -o $$\@ $$\? $$\(LDFLAGS) $$\(ERL_LDFLAGS) $$\(DRV_LDFLAGS) $$\(EXE_LDFLAGS)",
4880					case {filename:extension(Output), $(PLATFORM)} of
4881					    {[], _} -> "\n";
4882					    {_, darwin} -> "\n";
4883					    _ -> " -shared\n"
4884					end])
4885			end,
4886			[PortSpec(S) || S <- PortSpecs]
4887	end,
4888	fun() ->
4889		case lists:keyfind(plugins, 1, Conf) of
4890			false -> ok;
4891			{_, Plugins0} ->
4892				Plugins = [P || P <- Plugins0, is_tuple(P)],
4893				case lists:keyfind('lfe-compile', 1, Plugins) of
4894					false -> ok;
4895					_ -> Write("\nBUILD_DEPS = lfe lfe.mk\ndep_lfe.mk = git https://github.com/ninenines/lfe.mk master\nDEP_PLUGINS = lfe.mk\n")
4896				end
4897		end
4898	end(),
4899	Write("\ninclude $$\(if $$\(ERLANG_MK_FILENAME),$$\(ERLANG_MK_FILENAME),erlang.mk)"),
4900	RunPlugin = fun(Plugin, Step) ->
4901		case erlang:function_exported(Plugin, Step, 2) of
4902			false -> ok;
4903			true ->
4904				c:cd("$(call core_native_path,$(DEPS_DIR)/$1/)"),
4905				Ret = Plugin:Step({config, "", Conf, dict:new(), dict:new(), dict:new(),
4906					dict:store(base_dir, "", dict:new())}, undefined),
4907				io:format("rebar plugin ~p step ~p ret ~p~n", [Plugin, Step, Ret])
4908		end
4909	end,
4910	fun() ->
4911		case lists:keyfind(plugins, 1, Conf) of
4912			false -> ok;
4913			{_, Plugins0} ->
4914				Plugins = [P || P <- Plugins0, is_atom(P)],
4915				[begin
4916					case lists:keyfind(deps, 1, Conf) of
4917						false -> ok;
4918						{_, Deps} ->
4919							case lists:keyfind(P, 1, Deps) of
4920								false -> ok;
4921								_ ->
4922									Path = "$(call core_native_path,$(DEPS_DIR)/)" ++ atom_to_list(P),
4923									io:format("~s", [os:cmd("$(MAKE) -C $(call core_native_path,$(DEPS_DIR)/$1) " ++ Path)]),
4924									io:format("~s", [os:cmd("$(MAKE) -C " ++ Path ++ " IS_DEP=1")]),
4925									code:add_patha(Path ++ "/ebin")
4926							end
4927					end
4928				end || P <- Plugins],
4929				[case code:load_file(P) of
4930					{module, P} -> ok;
4931					_ ->
4932						case lists:keyfind(plugin_dir, 1, Conf) of
4933							false -> ok;
4934							{_, PluginsDir} ->
4935								ErlFile = "$(call core_native_path,$(DEPS_DIR)/$1/)" ++ PluginsDir ++ "/" ++ atom_to_list(P) ++ ".erl",
4936								{ok, P, Bin} = compile:file(ErlFile, [binary]),
4937								{module, P} = code:load_binary(P, ErlFile, Bin)
4938						end
4939				end || P <- Plugins],
4940				[RunPlugin(P, preprocess) || P <- Plugins],
4941				[RunPlugin(P, pre_compile) || P <- Plugins],
4942				[RunPlugin(P, compile) || P <- Plugins]
4943		end
4944	end(),
4945	halt()
4946endef
4947
4948define dep_autopatch_appsrc_script.erl
4949	AppSrc = "$(call core_native_path,$(DEPS_DIR)/$1/src/$1.app.src)",
4950	AppSrcScript = AppSrc ++ ".script",
4951	{ok, Conf0} = file:consult(AppSrc),
4952	Bindings0 = erl_eval:new_bindings(),
4953	Bindings1 = erl_eval:add_binding('CONFIG', Conf0, Bindings0),
4954	Bindings = erl_eval:add_binding('SCRIPT', AppSrcScript, Bindings1),
4955	Conf = case file:script(AppSrcScript, Bindings) of
4956		{ok, [C]} -> C;
4957		{ok, C} -> C
4958	end,
4959	ok = file:write_file(AppSrc, io_lib:format("~p.~n", [Conf])),
4960	halt()
4961endef
4962
4963define dep_autopatch_appsrc.erl
4964	AppSrcOut = "$(call core_native_path,$(DEPS_DIR)/$1/src/$1.app.src)",
4965	AppSrcIn = case filelib:is_regular(AppSrcOut) of false -> "$(call core_native_path,$(DEPS_DIR)/$1/ebin/$1.app)"; true -> AppSrcOut end,
4966	case filelib:is_regular(AppSrcIn) of
4967		false -> ok;
4968		true ->
4969			{ok, [{application, $(1), L0}]} = file:consult(AppSrcIn),
4970			L1 = lists:keystore(modules, 1, L0, {modules, []}),
4971			L2 = case lists:keyfind(vsn, 1, L1) of
4972				{_, git} -> lists:keyreplace(vsn, 1, L1, {vsn, lists:droplast(os:cmd("git -C $(DEPS_DIR)/$1 describe --dirty --tags --always"))});
4973				{_, {cmd, _}} -> lists:keyreplace(vsn, 1, L1, {vsn, "cmd"});
4974				_ -> L1
4975			end,
4976			L3 = case lists:keyfind(registered, 1, L2) of false -> [{registered, []}|L2]; _ -> L2 end,
4977			ok = file:write_file(AppSrcOut, io_lib:format("~p.~n", [{application, $(1), L3}])),
4978			case AppSrcOut of AppSrcIn -> ok; _ -> ok = file:delete(AppSrcIn) end
4979	end,
4980	halt()
4981endef
4982
4983define dep_fetch_git
4984	git clone -q -n -- $(call dep_repo,$(1)) $(DEPS_DIR)/$(call dep_name,$(1)); \
4985	cd $(DEPS_DIR)/$(call dep_name,$(1)) && git checkout -q $(call dep_commit,$(1));
4986endef
4987
4988define dep_fetch_git-subfolder
4989	mkdir -p $(ERLANG_MK_TMP)/git-subfolder; \
4990	git clone -q -n -- $(call dep_repo,$1) \
4991		$(ERLANG_MK_TMP)/git-subfolder/$(call dep_name,$1); \
4992	cd $(ERLANG_MK_TMP)/git-subfolder/$(call dep_name,$1) \
4993		&& git checkout -q $(call dep_commit,$1); \
4994	ln -s $(ERLANG_MK_TMP)/git-subfolder/$(call dep_name,$1)/$(word 4,$(dep_$(1))) \
4995		$(DEPS_DIR)/$(call dep_name,$1);
4996endef
4997
4998define dep_fetch_git-submodule
4999	git submodule update --init -- $(DEPS_DIR)/$1;
5000endef
5001
5002define dep_fetch_hg
5003	hg clone -q -U $(call dep_repo,$(1)) $(DEPS_DIR)/$(call dep_name,$(1)); \
5004	cd $(DEPS_DIR)/$(call dep_name,$(1)) && hg update -q $(call dep_commit,$(1));
5005endef
5006
5007define dep_fetch_svn
5008	svn checkout -q $(call dep_repo,$(1)) $(DEPS_DIR)/$(call dep_name,$(1));
5009endef
5010
5011define dep_fetch_cp
5012	cp -R $(call dep_repo,$(1)) $(DEPS_DIR)/$(call dep_name,$(1));
5013endef
5014
5015define dep_fetch_ln
5016	ln -s $(call dep_repo,$(1)) $(DEPS_DIR)/$(call dep_name,$(1));
5017endef
5018
5019# Hex only has a package version. No need to look in the Erlang.mk packages.
5020define dep_fetch_hex
5021	mkdir -p $(ERLANG_MK_TMP)/hex $(DEPS_DIR)/$1; \
5022	$(call core_http_get,$(ERLANG_MK_TMP)/hex/$1.tar,\
5023		https://repo.hex.pm/tarballs/$(if $(word 3,$(dep_$1)),$(word 3,$(dep_$1)),$1)-$(strip $(word 2,$(dep_$1))).tar); \
5024	tar -xOf $(ERLANG_MK_TMP)/hex/$1.tar contents.tar.gz | tar -C $(DEPS_DIR)/$1 -xzf -;
5025endef
5026
5027define dep_fetch_fail
5028	echo "Error: Unknown or invalid dependency: $(1)." >&2; \
5029	exit 78;
5030endef
5031
5032# Kept for compatibility purposes with older Erlang.mk configuration.
5033define dep_fetch_legacy
5034	$(warning WARNING: '$(1)' dependency configuration uses deprecated format.) \
5035	git clone -q -n -- $(word 1,$(dep_$(1))) $(DEPS_DIR)/$(1); \
5036	cd $(DEPS_DIR)/$(1) && git checkout -q $(if $(word 2,$(dep_$(1))),$(word 2,$(dep_$(1))),master);
5037endef
5038
5039define dep_target
5040$(DEPS_DIR)/$(call dep_name,$1): | $(ERLANG_MK_TMP)
5041	$(eval DEP_NAME := $(call dep_name,$1))
5042	$(eval DEP_STR := $(if $(filter $1,$(DEP_NAME)),$1,"$1 ($(DEP_NAME))"))
5043	$(verbose) if test -d $(APPS_DIR)/$(DEP_NAME); then \
5044		echo "Error: Dependency" $(DEP_STR) "conflicts with application found in $(APPS_DIR)/$(DEP_NAME)." >&2; \
5045		exit 17; \
5046	fi
5047	$(verbose) mkdir -p $(DEPS_DIR)
5048	$(dep_verbose) $(call dep_fetch_$(strip $(call dep_fetch,$(1))),$(1))
5049	$(verbose) if [ -f $(DEPS_DIR)/$(1)/configure.ac -o -f $(DEPS_DIR)/$(1)/configure.in ] \
5050			&& [ ! -f $(DEPS_DIR)/$(1)/configure ]; then \
5051		echo " AUTO  " $(DEP_STR); \
5052		cd $(DEPS_DIR)/$(1) && autoreconf -Wall -vif -I m4; \
5053	fi
5054	- $(verbose) if [ -f $(DEPS_DIR)/$(DEP_NAME)/configure ]; then \
5055		echo " CONF  " $(DEP_STR); \
5056		cd $(DEPS_DIR)/$(DEP_NAME) && ./configure; \
5057	fi
5058ifeq ($(filter $(1),$(NO_AUTOPATCH)),)
5059	$(verbose) $$(MAKE) --no-print-directory autopatch-$(DEP_NAME)
5060endif
5061
5062.PHONY: autopatch-$(call dep_name,$1)
5063
5064autopatch-$(call dep_name,$1)::
5065	$(verbose) if [ "$(1)" = "amqp_client" -a "$(RABBITMQ_CLIENT_PATCH)" ]; then \
5066		if [ ! -d $(DEPS_DIR)/rabbitmq-codegen ]; then \
5067			echo " PATCH  Downloading rabbitmq-codegen"; \
5068			git clone https://github.com/rabbitmq/rabbitmq-codegen.git $(DEPS_DIR)/rabbitmq-codegen; \
5069		fi; \
5070		if [ ! -d $(DEPS_DIR)/rabbitmq-server ]; then \
5071			echo " PATCH  Downloading rabbitmq-server"; \
5072			git clone https://github.com/rabbitmq/rabbitmq-server.git $(DEPS_DIR)/rabbitmq-server; \
5073		fi; \
5074		ln -s $(DEPS_DIR)/amqp_client/deps/rabbit_common-0.0.0 $(DEPS_DIR)/rabbit_common; \
5075	elif [ "$(1)" = "rabbit" -a "$(RABBITMQ_SERVER_PATCH)" ]; then \
5076		if [ ! -d $(DEPS_DIR)/rabbitmq-codegen ]; then \
5077			echo " PATCH  Downloading rabbitmq-codegen"; \
5078			git clone https://github.com/rabbitmq/rabbitmq-codegen.git $(DEPS_DIR)/rabbitmq-codegen; \
5079		fi \
5080	elif [ "$1" = "elixir" -a "$(ELIXIR_PATCH)" ]; then \
5081		ln -s lib/elixir/ebin $(DEPS_DIR)/elixir/; \
5082	else \
5083		$$(call dep_autopatch,$(call dep_name,$1)) \
5084	fi
5085endef
5086
5087$(foreach dep,$(BUILD_DEPS) $(DEPS),$(eval $(call dep_target,$(dep))))
5088
5089ifndef IS_APP
5090clean:: clean-apps
5091
5092clean-apps:
5093	$(verbose) set -e; for dep in $(ALL_APPS_DIRS) ; do \
5094		$(MAKE) -C $$dep clean IS_APP=1; \
5095	done
5096
5097distclean:: distclean-apps
5098
5099distclean-apps:
5100	$(verbose) set -e; for dep in $(ALL_APPS_DIRS) ; do \
5101		$(MAKE) -C $$dep distclean IS_APP=1; \
5102	done
5103endif
5104
5105ifndef SKIP_DEPS
5106distclean:: distclean-deps
5107
5108distclean-deps:
5109	$(gen_verbose) rm -rf $(DEPS_DIR)
5110endif
5111
5112# Forward-declare variables used in core/deps-tools.mk. This is required
5113# in case plugins use them.
5114
5115ERLANG_MK_RECURSIVE_DEPS_LIST = $(ERLANG_MK_TMP)/recursive-deps-list.log
5116ERLANG_MK_RECURSIVE_DOC_DEPS_LIST = $(ERLANG_MK_TMP)/recursive-doc-deps-list.log
5117ERLANG_MK_RECURSIVE_REL_DEPS_LIST = $(ERLANG_MK_TMP)/recursive-rel-deps-list.log
5118ERLANG_MK_RECURSIVE_TEST_DEPS_LIST = $(ERLANG_MK_TMP)/recursive-test-deps-list.log
5119ERLANG_MK_RECURSIVE_SHELL_DEPS_LIST = $(ERLANG_MK_TMP)/recursive-shell-deps-list.log
5120
5121ERLANG_MK_QUERY_DEPS_FILE = $(ERLANG_MK_TMP)/query-deps.log
5122ERLANG_MK_QUERY_DOC_DEPS_FILE = $(ERLANG_MK_TMP)/query-doc-deps.log
5123ERLANG_MK_QUERY_REL_DEPS_FILE = $(ERLANG_MK_TMP)/query-rel-deps.log
5124ERLANG_MK_QUERY_TEST_DEPS_FILE = $(ERLANG_MK_TMP)/query-test-deps.log
5125ERLANG_MK_QUERY_SHELL_DEPS_FILE = $(ERLANG_MK_TMP)/query-shell-deps.log
5126
5127# Copyright (c) 2015-2016, Loïc Hoguin <essen@ninenines.eu>
5128# This file is part of erlang.mk and subject to the terms of the ISC License.
5129
5130# Verbosity.
5131
5132proto_verbose_0 = @echo " PROTO " $(filter %.proto,$(?F));
5133proto_verbose = $(proto_verbose_$(V))
5134
5135# Core targets.
5136
5137ifneq ($(wildcard src/),)
5138ifneq ($(filter gpb protobuffs,$(BUILD_DEPS) $(DEPS)),)
5139PROTO_FILES := $(filter %.proto,$(ALL_SRC_FILES))
5140ERL_FILES += $(addprefix src/,$(patsubst %.proto,%_pb.erl,$(notdir $(PROTO_FILES))))
5141
5142ifeq ($(PROTO_FILES),)
5143$(ERLANG_MK_TMP)/last-makefile-change-protobuffs:
5144	$(verbose) :
5145else
5146# Rebuild proto files when the Makefile changes.
5147# We exclude $(PROJECT).d to avoid a circular dependency.
5148$(ERLANG_MK_TMP)/last-makefile-change-protobuffs: $(filter-out $(PROJECT).d,$(MAKEFILE_LIST)) | $(ERLANG_MK_TMP)
5149	$(verbose) if test -f $@; then \
5150		touch $(PROTO_FILES); \
5151	fi
5152	$(verbose) touch $@
5153
5154$(PROJECT).d:: $(ERLANG_MK_TMP)/last-makefile-change-protobuffs
5155endif
5156
5157ifeq ($(filter gpb,$(BUILD_DEPS) $(DEPS)),)
5158define compile_proto.erl
5159	[begin
5160		protobuffs_compile:generate_source(F, [
5161			{output_include_dir, "./include"},
5162			{output_src_dir, "./src"}])
5163	end || F <- string:tokens("$1", " ")],
5164	halt().
5165endef
5166else
5167define compile_proto.erl
5168	[begin
5169		gpb_compile:file(F, [
5170			{include_as_lib, true},
5171			{module_name_suffix, "_pb"},
5172			{o_hrl, "./include"},
5173			{o_erl, "./src"}])
5174	end || F <- string:tokens("$1", " ")],
5175	halt().
5176endef
5177endif
5178
5179ifneq ($(PROTO_FILES),)
5180$(PROJECT).d:: $(PROTO_FILES)
5181	$(verbose) mkdir -p ebin/ include/
5182	$(if $(strip $?),$(proto_verbose) $(call erlang,$(call compile_proto.erl,$?)))
5183endif
5184endif
5185endif
5186
5187# Copyright (c) 2013-2016, Loïc Hoguin <essen@ninenines.eu>
5188# This file is part of erlang.mk and subject to the terms of the ISC License.
5189
5190.PHONY: clean-app
5191
5192# Configuration.
5193
5194ERLC_OPTS ?= -Werror +debug_info +warn_export_vars +warn_shadow_vars \
5195	+warn_obsolete_guard # +bin_opt_info +warn_export_all +warn_missing_spec
5196COMPILE_FIRST ?=
5197COMPILE_FIRST_PATHS = $(addprefix src/,$(addsuffix .erl,$(COMPILE_FIRST)))
5198ERLC_EXCLUDE ?=
5199ERLC_EXCLUDE_PATHS = $(addprefix src/,$(addsuffix .erl,$(ERLC_EXCLUDE)))
5200
5201ERLC_ASN1_OPTS ?=
5202
5203ERLC_MIB_OPTS ?=
5204COMPILE_MIB_FIRST ?=
5205COMPILE_MIB_FIRST_PATHS = $(addprefix mibs/,$(addsuffix .mib,$(COMPILE_MIB_FIRST)))
5206
5207# Verbosity.
5208
5209app_verbose_0 = @echo " APP   " $(PROJECT);
5210app_verbose_2 = set -x;
5211app_verbose = $(app_verbose_$(V))
5212
5213appsrc_verbose_0 = @echo " APP   " $(PROJECT).app.src;
5214appsrc_verbose_2 = set -x;
5215appsrc_verbose = $(appsrc_verbose_$(V))
5216
5217makedep_verbose_0 = @echo " DEPEND" $(PROJECT).d;
5218makedep_verbose_2 = set -x;
5219makedep_verbose = $(makedep_verbose_$(V))
5220
5221erlc_verbose_0 = @echo " ERLC  " $(filter-out $(patsubst %,%.erl,$(ERLC_EXCLUDE)),\
5222	$(filter %.erl %.core,$(?F)));
5223erlc_verbose_2 = set -x;
5224erlc_verbose = $(erlc_verbose_$(V))
5225
5226xyrl_verbose_0 = @echo " XYRL  " $(filter %.xrl %.yrl,$(?F));
5227xyrl_verbose_2 = set -x;
5228xyrl_verbose = $(xyrl_verbose_$(V))
5229
5230asn1_verbose_0 = @echo " ASN1  " $(filter %.asn1,$(?F));
5231asn1_verbose_2 = set -x;
5232asn1_verbose = $(asn1_verbose_$(V))
5233
5234mib_verbose_0 = @echo " MIB   " $(filter %.bin %.mib,$(?F));
5235mib_verbose_2 = set -x;
5236mib_verbose = $(mib_verbose_$(V))
5237
5238ifneq ($(wildcard src/),)
5239
5240# Targets.
5241
5242app:: $(if $(wildcard ebin/test),clean) deps
5243	$(verbose) $(MAKE) --no-print-directory $(PROJECT).d
5244	$(verbose) $(MAKE) --no-print-directory app-build
5245
5246ifeq ($(wildcard src/$(PROJECT_MOD).erl),)
5247define app_file
5248{application, '$(PROJECT)', [
5249	{description, "$(PROJECT_DESCRIPTION)"},
5250	{vsn, "$(PROJECT_VERSION)"},$(if $(IS_DEP),
5251	{id$(comma)$(space)"$(1)"}$(comma))
5252	{modules, [$(call comma_list,$(2))]},
5253	{registered, []},
5254	{applications, [$(call comma_list,kernel stdlib $(OTP_DEPS) $(LOCAL_DEPS) $(foreach dep,$(DEPS),$(call dep_name,$(dep))))]},
5255	{env, $(subst \,\\,$(PROJECT_ENV))}$(if $(findstring {,$(PROJECT_APP_EXTRA_KEYS)),$(comma)$(newline)$(tab)$(subst \,\\,$(PROJECT_APP_EXTRA_KEYS)),)
5256]}.
5257endef
5258else
5259define app_file
5260{application, '$(PROJECT)', [
5261	{description, "$(PROJECT_DESCRIPTION)"},
5262	{vsn, "$(PROJECT_VERSION)"},$(if $(IS_DEP),
5263	{id$(comma)$(space)"$(1)"}$(comma))
5264	{modules, [$(call comma_list,$(2))]},
5265	{registered, [$(call comma_list,$(PROJECT)_sup $(PROJECT_REGISTERED))]},
5266	{applications, [$(call comma_list,kernel stdlib $(OTP_DEPS) $(LOCAL_DEPS) $(foreach dep,$(DEPS),$(call dep_name,$(dep))))]},
5267	{mod, {$(PROJECT_MOD), []}},
5268	{env, $(subst \,\\,$(PROJECT_ENV))}$(if $(findstring {,$(PROJECT_APP_EXTRA_KEYS)),$(comma)$(newline)$(tab)$(subst \,\\,$(PROJECT_APP_EXTRA_KEYS)),)
5269]}.
5270endef
5271endif
5272
5273app-build: ebin/$(PROJECT).app
5274	$(verbose) :
5275
5276# Source files.
5277
5278ALL_SRC_FILES := $(sort $(call core_find,src/,*))
5279
5280ERL_FILES := $(filter %.erl,$(ALL_SRC_FILES))
5281CORE_FILES := $(filter %.core,$(ALL_SRC_FILES))
5282
5283# ASN.1 files.
5284
5285ifneq ($(wildcard asn1/),)
5286ASN1_FILES = $(sort $(call core_find,asn1/,*.asn1))
5287ERL_FILES += $(addprefix src/,$(patsubst %.asn1,%.erl,$(notdir $(ASN1_FILES))))
5288
5289define compile_asn1
5290	$(verbose) mkdir -p include/
5291	$(asn1_verbose) erlc -v -I include/ -o asn1/ +noobj $(ERLC_ASN1_OPTS) $(1)
5292	$(verbose) mv asn1/*.erl src/
5293	-$(verbose) mv asn1/*.hrl include/
5294	$(verbose) mv asn1/*.asn1db include/
5295endef
5296
5297$(PROJECT).d:: $(ASN1_FILES)
5298	$(if $(strip $?),$(call compile_asn1,$?))
5299endif
5300
5301# SNMP MIB files.
5302
5303ifneq ($(wildcard mibs/),)
5304MIB_FILES = $(sort $(call core_find,mibs/,*.mib))
5305
5306$(PROJECT).d:: $(COMPILE_MIB_FIRST_PATHS) $(MIB_FILES)
5307	$(verbose) mkdir -p include/ priv/mibs/
5308	$(mib_verbose) erlc -v $(ERLC_MIB_OPTS) -o priv/mibs/ -I priv/mibs/ $?
5309	$(mib_verbose) erlc -o include/ -- $(addprefix priv/mibs/,$(patsubst %.mib,%.bin,$(notdir $?)))
5310endif
5311
5312# Leex and Yecc files.
5313
5314XRL_FILES := $(filter %.xrl,$(ALL_SRC_FILES))
5315XRL_ERL_FILES = $(addprefix src/,$(patsubst %.xrl,%.erl,$(notdir $(XRL_FILES))))
5316ERL_FILES += $(XRL_ERL_FILES)
5317
5318YRL_FILES := $(filter %.yrl,$(ALL_SRC_FILES))
5319YRL_ERL_FILES = $(addprefix src/,$(patsubst %.yrl,%.erl,$(notdir $(YRL_FILES))))
5320ERL_FILES += $(YRL_ERL_FILES)
5321
5322$(PROJECT).d:: $(XRL_FILES) $(YRL_FILES)
5323	$(if $(strip $?),$(xyrl_verbose) erlc -v -o src/ $(YRL_ERLC_OPTS) $?)
5324
5325# Erlang and Core Erlang files.
5326
5327define makedep.erl
5328	E = ets:new(makedep, [bag]),
5329	G = digraph:new([acyclic]),
5330	ErlFiles = lists:usort(string:tokens("$(ERL_FILES)", " ")),
5331	DepsDir = "$(call core_native_path,$(DEPS_DIR))",
5332	AppsDir = "$(call core_native_path,$(APPS_DIR))",
5333	DepsDirsSrc = "$(if $(wildcard $(DEPS_DIR)/*/src), $(call core_native_path,$(wildcard $(DEPS_DIR)/*/src)))",
5334	DepsDirsInc = "$(if $(wildcard $(DEPS_DIR)/*/include), $(call core_native_path,$(wildcard $(DEPS_DIR)/*/include)))",
5335	AppsDirsSrc = "$(if $(wildcard $(APPS_DIR)/*/src), $(call core_native_path,$(wildcard $(APPS_DIR)/*/src)))",
5336	AppsDirsInc = "$(if $(wildcard $(APPS_DIR)/*/include), $(call core_native_path,$(wildcard $(APPS_DIR)/*/include)))",
5337	DepsDirs = lists:usort(string:tokens(DepsDirsSrc++DepsDirsInc, " ")),
5338	AppsDirs = lists:usort(string:tokens(AppsDirsSrc++AppsDirsInc, " ")),
5339	Modules = [{list_to_atom(filename:basename(F, ".erl")), F} || F <- ErlFiles],
5340	Add = fun (Mod, Dep) ->
5341		case lists:keyfind(Dep, 1, Modules) of
5342			false -> ok;
5343			{_, DepFile} ->
5344				{_, ModFile} = lists:keyfind(Mod, 1, Modules),
5345				ets:insert(E, {ModFile, DepFile}),
5346				digraph:add_vertex(G, Mod),
5347				digraph:add_vertex(G, Dep),
5348				digraph:add_edge(G, Mod, Dep)
5349		end
5350	end,
5351	AddHd = fun (F, Mod, DepFile) ->
5352		case file:open(DepFile, [read]) of
5353			{error, enoent} ->
5354				ok;
5355			{ok, Fd} ->
5356				{_, ModFile} = lists:keyfind(Mod, 1, Modules),
5357				case ets:match(E, {ModFile, DepFile}) of
5358					[] ->
5359						ets:insert(E, {ModFile, DepFile}),
5360						F(F, Fd, Mod,0);
5361					_ -> ok
5362				end
5363		end
5364	end,
5365	SearchHrl = fun
5366		F(_Hrl, []) -> {error,enoent};
5367		F(Hrl, [Dir|Dirs]) ->
5368			HrlF = filename:join([Dir,Hrl]),
5369			case filelib:is_file(HrlF) of
5370				true  ->
5371				{ok, HrlF};
5372				false -> F(Hrl,Dirs)
5373			end
5374	end,
5375	Attr = fun
5376		(_F, Mod, behavior, Dep) ->
5377			Add(Mod, Dep);
5378		(_F, Mod, behaviour, Dep) ->
5379			Add(Mod, Dep);
5380		(_F, Mod, compile, {parse_transform, Dep}) ->
5381			Add(Mod, Dep);
5382		(_F, Mod, compile, Opts) when is_list(Opts) ->
5383			case proplists:get_value(parse_transform, Opts) of
5384				undefined -> ok;
5385				Dep -> Add(Mod, Dep)
5386			end;
5387		(F, Mod, include, Hrl) ->
5388			case SearchHrl(Hrl, ["src", "include",AppsDir,DepsDir]++AppsDirs++DepsDirs) of
5389				{ok, FoundHrl} -> AddHd(F, Mod, FoundHrl);
5390				{error, _} -> false
5391			end;
5392		(F, Mod, include_lib, Hrl) ->
5393			case SearchHrl(Hrl, ["src", "include",AppsDir,DepsDir]++AppsDirs++DepsDirs) of
5394				{ok, FoundHrl} -> AddHd(F, Mod, FoundHrl);
5395				{error, _} -> false
5396			end;
5397		(F, Mod, import, {Imp, _}) ->
5398			IsFile =
5399				case lists:keyfind(Imp, 1, Modules) of
5400					false -> false;
5401					{_, FilePath} -> filelib:is_file(FilePath)
5402				end,
5403			case IsFile of
5404				false -> ok;
5405				true -> Add(Mod, Imp)
5406			end;
5407		(_, _, _, _) -> ok
5408	end,
5409	MakeDepend = fun
5410		(F, Fd, Mod, StartLocation) ->
5411			{ok, Filename} = file:pid2name(Fd),
5412			case io:parse_erl_form(Fd, undefined, StartLocation) of
5413				{ok, AbsData, EndLocation} ->
5414					case AbsData of
5415						{attribute, _, Key, Value} ->
5416							Attr(F, Mod, Key, Value),
5417							F(F, Fd, Mod, EndLocation);
5418						_ -> F(F, Fd, Mod, EndLocation)
5419					end;
5420				{eof, _ } -> file:close(Fd);
5421				{error, ErrorDescription } ->
5422					file:close(Fd);
5423				{error, ErrorInfo, ErrorLocation} ->
5424					F(F, Fd, Mod, ErrorLocation)
5425			end,
5426			ok
5427	end,
5428	[begin
5429		Mod = list_to_atom(filename:basename(F, ".erl")),
5430		case file:open(F, [read]) of
5431			{ok, Fd} -> MakeDepend(MakeDepend, Fd, Mod,0);
5432			{error, enoent} -> ok
5433		end
5434	end || F <- ErlFiles],
5435	Depend = sofs:to_external(sofs:relation_to_family(sofs:relation(ets:tab2list(E)))),
5436	CompileFirst = [X || X <- lists:reverse(digraph_utils:topsort(G)), [] =/= digraph:in_neighbours(G, X)],
5437	TargetPath = fun(Target) ->
5438		case lists:keyfind(Target, 1, Modules) of
5439			false -> "";
5440			{_, DepFile} ->
5441				DirSubname = tl(string:tokens(filename:dirname(DepFile), "/")),
5442				string:join(DirSubname ++ [atom_to_list(Target)], "/")
5443		end
5444	end,
5445	Output0 = [
5446		"# Generated by Erlang.mk. Edit at your own risk!\n\n",
5447		[[F, "::", [[" ", D] || D <- Deps], "; @touch \$$@\n"] || {F, Deps} <- Depend],
5448		"\nCOMPILE_FIRST +=", [[" ", TargetPath(CF)] || CF <- CompileFirst], "\n"
5449	],
5450	Output = case "é" of
5451		[233] -> unicode:characters_to_binary(Output0);
5452		_ -> Output0
5453	end,
5454	ok = file:write_file("$(1)", Output),
5455	halt()
5456endef
5457
5458ifeq ($(if $(NO_MAKEDEP),$(wildcard $(PROJECT).d),),)
5459$(PROJECT).d:: $(ERL_FILES) $(call core_find,include/,*.hrl) $(MAKEFILE_LIST)
5460	$(makedep_verbose) $(call erlang,$(call makedep.erl,$@))
5461endif
5462
5463ifeq ($(IS_APP)$(IS_DEP),)
5464ifneq ($(words $(ERL_FILES) $(CORE_FILES) $(ASN1_FILES) $(MIB_FILES) $(XRL_FILES) $(YRL_FILES)),0)
5465# Rebuild everything when the Makefile changes.
5466$(ERLANG_MK_TMP)/last-makefile-change: $(MAKEFILE_LIST) | $(ERLANG_MK_TMP)
5467	$(verbose) if test -f $@; then \
5468		touch $(ERL_FILES) $(CORE_FILES) $(ASN1_FILES) $(MIB_FILES) $(XRL_FILES) $(YRL_FILES); \
5469		touch -c $(PROJECT).d; \
5470	fi
5471	$(verbose) touch $@
5472
5473$(ERL_FILES) $(CORE_FILES) $(ASN1_FILES) $(MIB_FILES) $(XRL_FILES) $(YRL_FILES):: $(ERLANG_MK_TMP)/last-makefile-change
5474ebin/$(PROJECT).app:: $(ERLANG_MK_TMP)/last-makefile-change
5475endif
5476endif
5477
5478$(PROJECT).d::
5479	$(verbose) :
5480
5481include $(wildcard $(PROJECT).d)
5482
5483ebin/$(PROJECT).app:: ebin/
5484
5485ebin/:
5486	$(verbose) mkdir -p ebin/
5487
5488define compile_erl
5489	$(erlc_verbose) erlc -v $(if $(IS_DEP),$(filter-out -Werror,$(ERLC_OPTS)),$(ERLC_OPTS)) -o ebin/ \
5490		-pa ebin/ -I include/ $(filter-out $(ERLC_EXCLUDE_PATHS),$(COMPILE_FIRST_PATHS) $(1))
5491endef
5492
5493define validate_app_file
5494	case file:consult("ebin/$(PROJECT).app") of
5495		{ok, _} -> halt();
5496		_ -> halt(1)
5497	end
5498endef
5499
5500ebin/$(PROJECT).app:: $(ERL_FILES) $(CORE_FILES) $(wildcard src/$(PROJECT).app.src)
5501	$(eval FILES_TO_COMPILE := $(filter-out src/$(PROJECT).app.src,$?))
5502	$(if $(strip $(FILES_TO_COMPILE)),$(call compile_erl,$(FILES_TO_COMPILE)))
5503# Older git versions do not have the --first-parent flag. Do without in that case.
5504	$(eval GITDESCRIBE := $(shell git describe --dirty --abbrev=7 --tags --always --first-parent 2>/dev/null \
5505		|| git describe --dirty --abbrev=7 --tags --always 2>/dev/null || true))
5506	$(eval MODULES := $(patsubst %,'%',$(sort $(notdir $(basename \
5507		$(filter-out $(ERLC_EXCLUDE_PATHS),$(ERL_FILES) $(CORE_FILES) $(BEAM_FILES)))))))
5508ifeq ($(wildcard src/$(PROJECT).app.src),)
5509	$(app_verbose) printf '$(subst %,%%,$(subst $(newline),\n,$(subst ','\'',$(call app_file,$(GITDESCRIBE),$(MODULES)))))' \
5510		> ebin/$(PROJECT).app
5511	$(verbose) if ! $(call erlang,$(call validate_app_file)); then \
5512		echo "The .app file produced is invalid. Please verify the value of PROJECT_ENV." >&2; \
5513		exit 1; \
5514	fi
5515else
5516	$(verbose) if [ -z "$$(grep -e '^[^%]*{\s*modules\s*,' src/$(PROJECT).app.src)" ]; then \
5517		echo "Empty modules entry not found in $(PROJECT).app.src. Please consult the erlang.mk documentation for instructions." >&2; \
5518		exit 1; \
5519	fi
5520	$(appsrc_verbose) cat src/$(PROJECT).app.src \
5521		| sed "s/{[[:space:]]*modules[[:space:]]*,[[:space:]]*\[\]}/{modules, \[$(call comma_list,$(MODULES))\]}/" \
5522		| sed "s/{id,[[:space:]]*\"git\"}/{id, \"$(subst /,\/,$(GITDESCRIBE))\"}/" \
5523		> ebin/$(PROJECT).app
5524endif
5525ifneq ($(wildcard src/$(PROJECT).appup),)
5526	$(verbose) cp src/$(PROJECT).appup ebin/
5527endif
5528
5529clean:: clean-app
5530
5531clean-app:
5532	$(gen_verbose) rm -rf $(PROJECT).d ebin/ priv/mibs/ $(XRL_ERL_FILES) $(YRL_ERL_FILES) \
5533		$(addprefix include/,$(patsubst %.mib,%.hrl,$(notdir $(MIB_FILES)))) \
5534		$(addprefix include/,$(patsubst %.asn1,%.hrl,$(notdir $(ASN1_FILES)))) \
5535		$(addprefix include/,$(patsubst %.asn1,%.asn1db,$(notdir $(ASN1_FILES)))) \
5536		$(addprefix src/,$(patsubst %.asn1,%.erl,$(notdir $(ASN1_FILES))))
5537
5538endif
5539
5540# Copyright (c) 2016, Loïc Hoguin <essen@ninenines.eu>
5541# Copyright (c) 2015, Viktor Söderqvist <viktor@zuiderkwast.se>
5542# This file is part of erlang.mk and subject to the terms of the ISC License.
5543
5544.PHONY: docs-deps
5545
5546# Configuration.
5547
5548ALL_DOC_DEPS_DIRS = $(addprefix $(DEPS_DIR)/,$(DOC_DEPS))
5549
5550# Targets.
5551
5552$(foreach dep,$(DOC_DEPS),$(eval $(call dep_target,$(dep))))
5553
5554ifneq ($(SKIP_DEPS),)
5555doc-deps:
5556else
5557doc-deps: $(ALL_DOC_DEPS_DIRS)
5558	$(verbose) set -e; for dep in $(ALL_DOC_DEPS_DIRS) ; do $(MAKE) -C $$dep IS_DEP=1; done
5559endif
5560
5561# Copyright (c) 2015-2016, Loïc Hoguin <essen@ninenines.eu>
5562# This file is part of erlang.mk and subject to the terms of the ISC License.
5563
5564.PHONY: rel-deps
5565
5566# Configuration.
5567
5568ALL_REL_DEPS_DIRS = $(addprefix $(DEPS_DIR)/,$(REL_DEPS))
5569
5570# Targets.
5571
5572$(foreach dep,$(REL_DEPS),$(eval $(call dep_target,$(dep))))
5573
5574ifneq ($(SKIP_DEPS),)
5575rel-deps:
5576else
5577rel-deps: $(ALL_REL_DEPS_DIRS)
5578	$(verbose) set -e; for dep in $(ALL_REL_DEPS_DIRS) ; do $(MAKE) -C $$dep; done
5579endif
5580
5581# Copyright (c) 2015-2016, Loïc Hoguin <essen@ninenines.eu>
5582# This file is part of erlang.mk and subject to the terms of the ISC License.
5583
5584.PHONY: test-deps test-dir test-build clean-test-dir
5585
5586# Configuration.
5587
5588TEST_DIR ?= $(CURDIR)/test
5589
5590ALL_TEST_DEPS_DIRS = $(addprefix $(DEPS_DIR)/,$(TEST_DEPS))
5591
5592TEST_ERLC_OPTS ?= +debug_info +warn_export_vars +warn_shadow_vars +warn_obsolete_guard
5593TEST_ERLC_OPTS += -DTEST=1
5594
5595# Targets.
5596
5597$(foreach dep,$(TEST_DEPS),$(eval $(call dep_target,$(dep))))
5598
5599ifneq ($(SKIP_DEPS),)
5600test-deps:
5601else
5602test-deps: $(ALL_TEST_DEPS_DIRS)
5603	$(verbose) set -e; for dep in $(ALL_TEST_DEPS_DIRS) ; do \
5604		if [ -z "$(strip $(FULL))" ] && [ ! -L $$dep ] && [ -f $$dep/ebin/dep_built ]; then \
5605			:; \
5606		else \
5607			$(MAKE) -C $$dep IS_DEP=1; \
5608			if [ ! -L $$dep ] && [ -d $$dep/ebin ]; then touch $$dep/ebin/dep_built; fi; \
5609		fi \
5610	done
5611endif
5612
5613ifneq ($(wildcard $(TEST_DIR)),)
5614test-dir: $(ERLANG_MK_TMP)/$(PROJECT).last-testdir-build
5615	@:
5616
5617test_erlc_verbose_0 = @echo " ERLC  " $(filter-out $(patsubst %,%.erl,$(ERLC_EXCLUDE)),\
5618	$(filter %.erl %.core,$(notdir $(FILES_TO_COMPILE))));
5619test_erlc_verbose_2 = set -x;
5620test_erlc_verbose = $(test_erlc_verbose_$(V))
5621
5622define compile_test_erl
5623	$(test_erlc_verbose) erlc -v $(TEST_ERLC_OPTS) -o $(TEST_DIR) \
5624		-pa ebin/ -I include/ $(1)
5625endef
5626
5627ERL_TEST_FILES = $(call core_find,$(TEST_DIR)/,*.erl)
5628$(ERLANG_MK_TMP)/$(PROJECT).last-testdir-build: $(ERL_TEST_FILES) $(MAKEFILE_LIST)
5629	$(eval FILES_TO_COMPILE := $(if $(filter $(MAKEFILE_LIST),$?),$(filter $(ERL_TEST_FILES),$^),$?))
5630	$(if $(strip $(FILES_TO_COMPILE)),$(call compile_test_erl,$(FILES_TO_COMPILE)) && touch $@)
5631endif
5632
5633test-build:: IS_TEST=1
5634test-build:: ERLC_OPTS=$(TEST_ERLC_OPTS)
5635test-build:: $(if $(wildcard src),$(if $(wildcard ebin/test),,clean)) $(if $(IS_APP),,deps test-deps)
5636# We already compiled everything when IS_APP=1.
5637ifndef IS_APP
5638ifneq ($(wildcard src),)
5639	$(verbose) $(MAKE) --no-print-directory $(PROJECT).d ERLC_OPTS="$(call escape_dquotes,$(TEST_ERLC_OPTS))"
5640	$(verbose) $(MAKE) --no-print-directory app-build ERLC_OPTS="$(call escape_dquotes,$(TEST_ERLC_OPTS))"
5641	$(gen_verbose) touch ebin/test
5642endif
5643ifneq ($(wildcard $(TEST_DIR)),)
5644	$(verbose) $(MAKE) --no-print-directory test-dir ERLC_OPTS="$(call escape_dquotes,$(TEST_ERLC_OPTS))"
5645endif
5646endif
5647
5648# Roughly the same as test-build, but when IS_APP=1.
5649# We only care about compiling the current application.
5650ifdef IS_APP
5651test-build-app:: ERLC_OPTS=$(TEST_ERLC_OPTS)
5652test-build-app:: deps test-deps
5653ifneq ($(wildcard src),)
5654	$(verbose) $(MAKE) --no-print-directory $(PROJECT).d ERLC_OPTS="$(call escape_dquotes,$(TEST_ERLC_OPTS))"
5655	$(verbose) $(MAKE) --no-print-directory app-build ERLC_OPTS="$(call escape_dquotes,$(TEST_ERLC_OPTS))"
5656	$(gen_verbose) touch ebin/test
5657endif
5658ifneq ($(wildcard $(TEST_DIR)),)
5659	$(verbose) $(MAKE) --no-print-directory test-dir ERLC_OPTS="$(call escape_dquotes,$(TEST_ERLC_OPTS))"
5660endif
5661endif
5662
5663clean:: clean-test-dir
5664
5665clean-test-dir:
5666ifneq ($(wildcard $(TEST_DIR)/*.beam),)
5667	$(gen_verbose) rm -f $(TEST_DIR)/*.beam $(ERLANG_MK_TMP)/$(PROJECT).last-testdir-build
5668endif
5669
5670# Copyright (c) 2015-2016, Loïc Hoguin <essen@ninenines.eu>
5671# This file is part of erlang.mk and subject to the terms of the ISC License.
5672
5673.PHONY: rebar.config
5674
5675# We strip out -Werror because we don't want to fail due to
5676# warnings when used as a dependency.
5677
5678compat_prepare_erlc_opts = $(shell echo "$1" | sed 's/, */,/g')
5679
5680define compat_convert_erlc_opts
5681$(if $(filter-out -Werror,$1),\
5682	$(if $(findstring +,$1),\
5683		$(shell echo $1 | cut -b 2-)))
5684endef
5685
5686define compat_erlc_opts_to_list
5687[$(call comma_list,$(foreach o,$(call compat_prepare_erlc_opts,$1),$(call compat_convert_erlc_opts,$o)))]
5688endef
5689
5690define compat_rebar_config
5691{deps, [
5692$(call comma_list,$(foreach d,$(DEPS),\
5693	$(if $(filter hex,$(call dep_fetch,$d)),\
5694		{$(call dep_name,$d)$(comma)"$(call dep_repo,$d)"},\
5695		{$(call dep_name,$d)$(comma)".*"$(comma){git,"$(call dep_repo,$d)"$(comma)"$(call dep_commit,$d)"}})))
5696]}.
5697{erl_opts, $(call compat_erlc_opts_to_list,$(ERLC_OPTS))}.
5698endef
5699
5700rebar.config:
5701	$(gen_verbose) $(call core_render,compat_rebar_config,rebar.config)
5702
5703# Copyright (c) 2015-2016, Loïc Hoguin <essen@ninenines.eu>
5704# This file is part of erlang.mk and subject to the terms of the ISC License.
5705
5706ifeq ($(filter asciideck,$(DEPS) $(DOC_DEPS)),asciideck)
5707
5708.PHONY: asciidoc asciidoc-guide asciidoc-manual install-asciidoc distclean-asciidoc-guide distclean-asciidoc-manual
5709
5710# Core targets.
5711
5712docs:: asciidoc
5713
5714distclean:: distclean-asciidoc-guide distclean-asciidoc-manual
5715
5716# Plugin-specific targets.
5717
5718asciidoc: asciidoc-guide asciidoc-manual
5719
5720# User guide.
5721
5722ifeq ($(wildcard doc/src/guide/book.asciidoc),)
5723asciidoc-guide:
5724else
5725asciidoc-guide: distclean-asciidoc-guide doc-deps
5726	a2x -v -f pdf doc/src/guide/book.asciidoc && mv doc/src/guide/book.pdf doc/guide.pdf
5727	a2x -v -f chunked doc/src/guide/book.asciidoc && mv doc/src/guide/book.chunked/ doc/html/
5728
5729distclean-asciidoc-guide:
5730	$(gen_verbose) rm -rf doc/html/ doc/guide.pdf
5731endif
5732
5733# Man pages.
5734
5735ASCIIDOC_MANUAL_FILES := $(wildcard doc/src/manual/*.asciidoc)
5736
5737ifeq ($(ASCIIDOC_MANUAL_FILES),)
5738asciidoc-manual:
5739else
5740
5741# Configuration.
5742
5743MAN_INSTALL_PATH ?= /usr/local/share/man
5744MAN_SECTIONS ?= 3 7
5745MAN_PROJECT ?= $(shell echo $(PROJECT) | sed 's/^./\U&\E/')
5746MAN_VERSION ?= $(PROJECT_VERSION)
5747
5748# Plugin-specific targets.
5749
5750define asciidoc2man.erl
5751try
5752	[begin
5753		io:format(" ADOC   ~s~n", [F]),
5754		ok = asciideck:to_manpage(asciideck:parse_file(F), #{
5755			compress => gzip,
5756			outdir => filename:dirname(F),
5757			extra2 => "$(MAN_PROJECT) $(MAN_VERSION)",
5758			extra3 => "$(MAN_PROJECT) Function Reference"
5759		})
5760	end || F <- [$(shell echo $(addprefix $(comma)\",$(addsuffix \",$1)) | sed 's/^.//')]],
5761	halt(0)
5762catch C:E ->
5763	io:format("Exception ~p:~p~nStacktrace: ~p~n", [C, E, erlang:get_stacktrace()]),
5764	halt(1)
5765end.
5766endef
5767
5768asciidoc-manual:: doc-deps
5769
5770asciidoc-manual:: $(ASCIIDOC_MANUAL_FILES)
5771	$(gen_verbose) $(call erlang,$(call asciidoc2man.erl,$?))
5772	$(verbose) $(foreach s,$(MAN_SECTIONS),mkdir -p doc/man$s/ && mv doc/src/manual/*.$s.gz doc/man$s/;)
5773
5774install-docs:: install-asciidoc
5775
5776install-asciidoc: asciidoc-manual
5777	$(foreach s,$(MAN_SECTIONS),\
5778		mkdir -p $(MAN_INSTALL_PATH)/man$s/ && \
5779		install -g `id -g` -o `id -u` -m 0644 doc/man$s/*.gz $(MAN_INSTALL_PATH)/man$s/;)
5780
5781distclean-asciidoc-manual:
5782	$(gen_verbose) rm -rf $(addprefix doc/man,$(MAN_SECTIONS))
5783endif
5784endif
5785
5786# Copyright (c) 2014-2016, Loïc Hoguin <essen@ninenines.eu>
5787# This file is part of erlang.mk and subject to the terms of the ISC License.
5788
5789.PHONY: bootstrap bootstrap-lib bootstrap-rel new list-templates
5790
5791# Core targets.
5792
5793help::
5794	$(verbose) printf "%s\n" "" \
5795		"Bootstrap targets:" \
5796		"  bootstrap          Generate a skeleton of an OTP application" \
5797		"  bootstrap-lib      Generate a skeleton of an OTP library" \
5798		"  bootstrap-rel      Generate the files needed to build a release" \
5799		"  new-app in=NAME    Create a new local OTP application NAME" \
5800		"  new-lib in=NAME    Create a new local OTP library NAME" \
5801		"  new t=TPL n=NAME   Generate a module NAME based on the template TPL" \
5802		"  new t=T n=N in=APP Generate a module NAME based on the template TPL in APP" \
5803		"  list-templates     List available templates"
5804
5805# Bootstrap templates.
5806
5807define bs_appsrc
5808{application, $p, [
5809	{description, ""},
5810	{vsn, "0.1.0"},
5811	{id, "git"},
5812	{modules, []},
5813	{registered, []},
5814	{applications, [
5815		kernel,
5816		stdlib
5817	]},
5818	{mod, {$p_app, []}},
5819	{env, []}
5820]}.
5821endef
5822
5823define bs_appsrc_lib
5824{application, $p, [
5825	{description, ""},
5826	{vsn, "0.1.0"},
5827	{id, "git"},
5828	{modules, []},
5829	{registered, []},
5830	{applications, [
5831		kernel,
5832		stdlib
5833	]}
5834]}.
5835endef
5836
5837# To prevent autocompletion issues with ZSH, we add "include erlang.mk"
5838# separately during the actual bootstrap.
5839define bs_Makefile
5840PROJECT = $p
5841PROJECT_DESCRIPTION = New project
5842PROJECT_VERSION = 0.1.0
5843$(if $(SP),
5844# Whitespace to be used when creating files from templates.
5845SP = $(SP)
5846)
5847endef
5848
5849define bs_apps_Makefile
5850PROJECT = $p
5851PROJECT_DESCRIPTION = New project
5852PROJECT_VERSION = 0.1.0
5853$(if $(SP),
5854# Whitespace to be used when creating files from templates.
5855SP = $(SP)
5856)
5857# Make sure we know where the applications are located.
5858ROOT_DIR ?= $(call core_relpath,$(dir $(ERLANG_MK_FILENAME)),$(APPS_DIR)/app)
5859APPS_DIR ?= ..
5860DEPS_DIR ?= $(call core_relpath,$(DEPS_DIR),$(APPS_DIR)/app)
5861
5862include $$(ROOT_DIR)/erlang.mk
5863endef
5864
5865define bs_app
5866-module($p_app).
5867-behaviour(application).
5868
5869-export([start/2]).
5870-export([stop/1]).
5871
5872start(_Type, _Args) ->
5873	$p_sup:start_link().
5874
5875stop(_State) ->
5876	ok.
5877endef
5878
5879define bs_relx_config
5880{release, {$p_release, "1"}, [$p, sasl, runtime_tools]}.
5881{extended_start_script, true}.
5882{sys_config, "config/sys.config"}.
5883{vm_args, "config/vm.args"}.
5884endef
5885
5886define bs_sys_config
5887[
5888].
5889endef
5890
5891define bs_vm_args
5892-name $p@127.0.0.1
5893-setcookie $p
5894-heart
5895endef
5896
5897# Normal templates.
5898
5899define tpl_supervisor
5900-module($(n)).
5901-behaviour(supervisor).
5902
5903-export([start_link/0]).
5904-export([init/1]).
5905
5906start_link() ->
5907	supervisor:start_link({local, ?MODULE}, ?MODULE, []).
5908
5909init([]) ->
5910	Procs = [],
5911	{ok, {{one_for_one, 1, 5}, Procs}}.
5912endef
5913
5914define tpl_gen_server
5915-module($(n)).
5916-behaviour(gen_server).
5917
5918%% API.
5919-export([start_link/0]).
5920
5921%% gen_server.
5922-export([init/1]).
5923-export([handle_call/3]).
5924-export([handle_cast/2]).
5925-export([handle_info/2]).
5926-export([terminate/2]).
5927-export([code_change/3]).
5928
5929-record(state, {
5930}).
5931
5932%% API.
5933
5934-spec start_link() -> {ok, pid()}.
5935start_link() ->
5936	gen_server:start_link(?MODULE, [], []).
5937
5938%% gen_server.
5939
5940init([]) ->
5941	{ok, #state{}}.
5942
5943handle_call(_Request, _From, State) ->
5944	{reply, ignored, State}.
5945
5946handle_cast(_Msg, State) ->
5947	{noreply, State}.
5948
5949handle_info(_Info, State) ->
5950	{noreply, State}.
5951
5952terminate(_Reason, _State) ->
5953	ok.
5954
5955code_change(_OldVsn, State, _Extra) ->
5956	{ok, State}.
5957endef
5958
5959define tpl_module
5960-module($(n)).
5961-export([]).
5962endef
5963
5964define tpl_cowboy_http
5965-module($(n)).
5966-behaviour(cowboy_http_handler).
5967
5968-export([init/3]).
5969-export([handle/2]).
5970-export([terminate/3]).
5971
5972-record(state, {
5973}).
5974
5975init(_, Req, _Opts) ->
5976	{ok, Req, #state{}}.
5977
5978handle(Req, State=#state{}) ->
5979	{ok, Req2} = cowboy_req:reply(200, Req),
5980	{ok, Req2, State}.
5981
5982terminate(_Reason, _Req, _State) ->
5983	ok.
5984endef
5985
5986define tpl_gen_fsm
5987-module($(n)).
5988-behaviour(gen_fsm).
5989
5990%% API.
5991-export([start_link/0]).
5992
5993%% gen_fsm.
5994-export([init/1]).
5995-export([state_name/2]).
5996-export([handle_event/3]).
5997-export([state_name/3]).
5998-export([handle_sync_event/4]).
5999-export([handle_info/3]).
6000-export([terminate/3]).
6001-export([code_change/4]).
6002
6003-record(state, {
6004}).
6005
6006%% API.
6007
6008-spec start_link() -> {ok, pid()}.
6009start_link() ->
6010	gen_fsm:start_link(?MODULE, [], []).
6011
6012%% gen_fsm.
6013
6014init([]) ->
6015	{ok, state_name, #state{}}.
6016
6017state_name(_Event, StateData) ->
6018	{next_state, state_name, StateData}.
6019
6020handle_event(_Event, StateName, StateData) ->
6021	{next_state, StateName, StateData}.
6022
6023state_name(_Event, _From, StateData) ->
6024	{reply, ignored, state_name, StateData}.
6025
6026handle_sync_event(_Event, _From, StateName, StateData) ->
6027	{reply, ignored, StateName, StateData}.
6028
6029handle_info(_Info, StateName, StateData) ->
6030	{next_state, StateName, StateData}.
6031
6032terminate(_Reason, _StateName, _StateData) ->
6033	ok.
6034
6035code_change(_OldVsn, StateName, StateData, _Extra) ->
6036	{ok, StateName, StateData}.
6037endef
6038
6039define tpl_gen_statem
6040-module($(n)).
6041-behaviour(gen_statem).
6042
6043%% API.
6044-export([start_link/0]).
6045
6046%% gen_statem.
6047-export([callback_mode/0]).
6048-export([init/1]).
6049-export([state_name/3]).
6050-export([handle_event/4]).
6051-export([terminate/3]).
6052-export([code_change/4]).
6053
6054-record(state, {
6055}).
6056
6057%% API.
6058
6059-spec start_link() -> {ok, pid()}.
6060start_link() ->
6061	gen_statem:start_link(?MODULE, [], []).
6062
6063%% gen_statem.
6064
6065callback_mode() ->
6066	state_functions.
6067
6068init([]) ->
6069	{ok, state_name, #state{}}.
6070
6071state_name(_EventType, _EventData, StateData) ->
6072	{next_state, state_name, StateData}.
6073
6074handle_event(_EventType, _EventData, StateName, StateData) ->
6075	{next_state, StateName, StateData}.
6076
6077terminate(_Reason, _StateName, _StateData) ->
6078	ok.
6079
6080code_change(_OldVsn, StateName, StateData, _Extra) ->
6081	{ok, StateName, StateData}.
6082endef
6083
6084define tpl_cowboy_loop
6085-module($(n)).
6086-behaviour(cowboy_loop_handler).
6087
6088-export([init/3]).
6089-export([info/3]).
6090-export([terminate/3]).
6091
6092-record(state, {
6093}).
6094
6095init(_, Req, _Opts) ->
6096	{loop, Req, #state{}, 5000, hibernate}.
6097
6098info(_Info, Req, State) ->
6099	{loop, Req, State, hibernate}.
6100
6101terminate(_Reason, _Req, _State) ->
6102	ok.
6103endef
6104
6105define tpl_cowboy_rest
6106-module($(n)).
6107
6108-export([init/3]).
6109-export([content_types_provided/2]).
6110-export([get_html/2]).
6111
6112init(_, _Req, _Opts) ->
6113	{upgrade, protocol, cowboy_rest}.
6114
6115content_types_provided(Req, State) ->
6116	{[{{<<"text">>, <<"html">>, '*'}, get_html}], Req, State}.
6117
6118get_html(Req, State) ->
6119	{<<"<html><body>This is REST!</body></html>">>, Req, State}.
6120endef
6121
6122define tpl_cowboy_ws
6123-module($(n)).
6124-behaviour(cowboy_websocket_handler).
6125
6126-export([init/3]).
6127-export([websocket_init/3]).
6128-export([websocket_handle/3]).
6129-export([websocket_info/3]).
6130-export([websocket_terminate/3]).
6131
6132-record(state, {
6133}).
6134
6135init(_, _, _) ->
6136	{upgrade, protocol, cowboy_websocket}.
6137
6138websocket_init(_, Req, _Opts) ->
6139	Req2 = cowboy_req:compact(Req),
6140	{ok, Req2, #state{}}.
6141
6142websocket_handle({text, Data}, Req, State) ->
6143	{reply, {text, Data}, Req, State};
6144websocket_handle({binary, Data}, Req, State) ->
6145	{reply, {binary, Data}, Req, State};
6146websocket_handle(_Frame, Req, State) ->
6147	{ok, Req, State}.
6148
6149websocket_info(_Info, Req, State) ->
6150	{ok, Req, State}.
6151
6152websocket_terminate(_Reason, _Req, _State) ->
6153	ok.
6154endef
6155
6156define tpl_ranch_protocol
6157-module($(n)).
6158-behaviour(ranch_protocol).
6159
6160-export([start_link/4]).
6161-export([init/4]).
6162
6163-type opts() :: [].
6164-export_type([opts/0]).
6165
6166-record(state, {
6167	socket :: inet:socket(),
6168	transport :: module()
6169}).
6170
6171start_link(Ref, Socket, Transport, Opts) ->
6172	Pid = spawn_link(?MODULE, init, [Ref, Socket, Transport, Opts]),
6173	{ok, Pid}.
6174
6175-spec init(ranch:ref(), inet:socket(), module(), opts()) -> ok.
6176init(Ref, Socket, Transport, _Opts) ->
6177	ok = ranch:accept_ack(Ref),
6178	loop(#state{socket=Socket, transport=Transport}).
6179
6180loop(State) ->
6181	loop(State).
6182endef
6183
6184# Plugin-specific targets.
6185
6186ifndef WS
6187ifdef SP
6188WS = $(subst a,,a $(wordlist 1,$(SP),a a a a a a a a a a a a a a a a a a a a))
6189else
6190WS = $(tab)
6191endif
6192endif
6193
6194bootstrap:
6195ifneq ($(wildcard src/),)
6196	$(error Error: src/ directory already exists)
6197endif
6198	$(eval p := $(PROJECT))
6199	$(if $(shell echo $p | LC_ALL=C grep -x "[a-z0-9_]*"),,\
6200		$(error Error: Invalid characters in the application name))
6201	$(eval n := $(PROJECT)_sup)
6202	$(verbose) $(call core_render,bs_Makefile,Makefile)
6203	$(verbose) echo "include erlang.mk" >> Makefile
6204	$(verbose) mkdir src/
6205ifdef LEGACY
6206	$(verbose) $(call core_render,bs_appsrc,src/$(PROJECT).app.src)
6207endif
6208	$(verbose) $(call core_render,bs_app,src/$(PROJECT)_app.erl)
6209	$(verbose) $(call core_render,tpl_supervisor,src/$(PROJECT)_sup.erl)
6210
6211bootstrap-lib:
6212ifneq ($(wildcard src/),)
6213	$(error Error: src/ directory already exists)
6214endif
6215	$(eval p := $(PROJECT))
6216	$(if $(shell echo $p | LC_ALL=C grep -x "[a-z0-9_]*"),,\
6217		$(error Error: Invalid characters in the application name))
6218	$(verbose) $(call core_render,bs_Makefile,Makefile)
6219	$(verbose) echo "include erlang.mk" >> Makefile
6220	$(verbose) mkdir src/
6221ifdef LEGACY
6222	$(verbose) $(call core_render,bs_appsrc_lib,src/$(PROJECT).app.src)
6223endif
6224
6225bootstrap-rel:
6226ifneq ($(wildcard relx.config),)
6227	$(error Error: relx.config already exists)
6228endif
6229ifneq ($(wildcard config/),)
6230	$(error Error: config/ directory already exists)
6231endif
6232	$(eval p := $(PROJECT))
6233	$(verbose) $(call core_render,bs_relx_config,relx.config)
6234	$(verbose) mkdir config/
6235	$(verbose) $(call core_render,bs_sys_config,config/sys.config)
6236	$(verbose) $(call core_render,bs_vm_args,config/vm.args)
6237
6238new-app:
6239ifndef in
6240	$(error Usage: $(MAKE) new-app in=APP)
6241endif
6242ifneq ($(wildcard $(APPS_DIR)/$in),)
6243	$(error Error: Application $in already exists)
6244endif
6245	$(eval p := $(in))
6246	$(if $(shell echo $p | LC_ALL=C grep -x "[a-z0-9_]*"),,\
6247		$(error Error: Invalid characters in the application name))
6248	$(eval n := $(in)_sup)
6249	$(verbose) mkdir -p $(APPS_DIR)/$p/src/
6250	$(verbose) $(call core_render,bs_apps_Makefile,$(APPS_DIR)/$p/Makefile)
6251ifdef LEGACY
6252	$(verbose) $(call core_render,bs_appsrc,$(APPS_DIR)/$p/src/$p.app.src)
6253endif
6254	$(verbose) $(call core_render,bs_app,$(APPS_DIR)/$p/src/$p_app.erl)
6255	$(verbose) $(call core_render,tpl_supervisor,$(APPS_DIR)/$p/src/$p_sup.erl)
6256
6257new-lib:
6258ifndef in
6259	$(error Usage: $(MAKE) new-lib in=APP)
6260endif
6261ifneq ($(wildcard $(APPS_DIR)/$in),)
6262	$(error Error: Application $in already exists)
6263endif
6264	$(eval p := $(in))
6265	$(if $(shell echo $p | LC_ALL=C grep -x "[a-z0-9_]*"),,\
6266		$(error Error: Invalid characters in the application name))
6267	$(verbose) mkdir -p $(APPS_DIR)/$p/src/
6268	$(verbose) $(call core_render,bs_apps_Makefile,$(APPS_DIR)/$p/Makefile)
6269ifdef LEGACY
6270	$(verbose) $(call core_render,bs_appsrc_lib,$(APPS_DIR)/$p/src/$p.app.src)
6271endif
6272
6273new:
6274ifeq ($(wildcard src/)$(in),)
6275	$(error Error: src/ directory does not exist)
6276endif
6277ifndef t
6278	$(error Usage: $(MAKE) new t=TEMPLATE n=NAME [in=APP])
6279endif
6280ifndef n
6281	$(error Usage: $(MAKE) new t=TEMPLATE n=NAME [in=APP])
6282endif
6283ifdef in
6284	$(verbose) $(call core_render,tpl_$(t),$(APPS_DIR)/$(in)/src/$(n).erl)
6285else
6286	$(verbose) $(call core_render,tpl_$(t),src/$(n).erl)
6287endif
6288
6289list-templates:
6290	$(verbose) @echo Available templates:
6291	$(verbose) printf "    %s\n" $(sort $(patsubst tpl_%,%,$(filter tpl_%,$(.VARIABLES))))
6292
6293# Copyright (c) 2014-2016, Loïc Hoguin <essen@ninenines.eu>
6294# This file is part of erlang.mk and subject to the terms of the ISC License.
6295
6296.PHONY: clean-c_src distclean-c_src-env
6297
6298# Configuration.
6299
6300C_SRC_DIR ?= $(CURDIR)/c_src
6301C_SRC_ENV ?= $(C_SRC_DIR)/env.mk
6302C_SRC_OUTPUT ?= $(CURDIR)/priv/$(PROJECT)
6303C_SRC_TYPE ?= shared
6304
6305# System type and C compiler/flags.
6306
6307ifeq ($(PLATFORM),msys2)
6308	C_SRC_OUTPUT_EXECUTABLE_EXTENSION ?= .exe
6309	C_SRC_OUTPUT_SHARED_EXTENSION ?= .dll
6310else
6311	C_SRC_OUTPUT_EXECUTABLE_EXTENSION ?=
6312	C_SRC_OUTPUT_SHARED_EXTENSION ?= .so
6313endif
6314
6315ifeq ($(C_SRC_TYPE),shared)
6316	C_SRC_OUTPUT_FILE = $(C_SRC_OUTPUT)$(C_SRC_OUTPUT_SHARED_EXTENSION)
6317else
6318	C_SRC_OUTPUT_FILE = $(C_SRC_OUTPUT)$(C_SRC_OUTPUT_EXECUTABLE_EXTENSION)
6319endif
6320
6321ifeq ($(PLATFORM),msys2)
6322# We hardcode the compiler used on MSYS2. The default CC=cc does
6323# not produce working code. The "gcc" MSYS2 package also doesn't.
6324	CC = /mingw64/bin/gcc
6325	export CC
6326	CFLAGS ?= -O3 -std=c99 -finline-functions -Wall -Wmissing-prototypes
6327	CXXFLAGS ?= -O3 -finline-functions -Wall
6328else ifeq ($(PLATFORM),darwin)
6329	CC ?= cc
6330	CFLAGS ?= -O3 -std=c99 -arch x86_64 -Wall -Wmissing-prototypes
6331	CXXFLAGS ?= -O3 -arch x86_64 -Wall
6332	LDFLAGS ?= -arch x86_64 -flat_namespace -undefined suppress
6333else ifeq ($(PLATFORM),freebsd)
6334	CC ?= cc
6335	CFLAGS ?= -O3 -std=c99 -finline-functions -Wall -Wmissing-prototypes
6336	CXXFLAGS ?= -O3 -finline-functions -Wall
6337else ifeq ($(PLATFORM),linux)
6338	CC ?= gcc
6339	CFLAGS ?= -O3 -std=c99 -finline-functions -Wall -Wmissing-prototypes
6340	CXXFLAGS ?= -O3 -finline-functions -Wall
6341endif
6342
6343ifneq ($(PLATFORM),msys2)
6344	CFLAGS += -fPIC
6345	CXXFLAGS += -fPIC
6346endif
6347
6348CFLAGS += -I"$(ERTS_INCLUDE_DIR)" -I"$(ERL_INTERFACE_INCLUDE_DIR)"
6349CXXFLAGS += -I"$(ERTS_INCLUDE_DIR)" -I"$(ERL_INTERFACE_INCLUDE_DIR)"
6350
6351LDLIBS += -L"$(ERL_INTERFACE_LIB_DIR)" -lei
6352
6353# Verbosity.
6354
6355c_verbose_0 = @echo " C     " $(filter-out $(notdir $(MAKEFILE_LIST) $(C_SRC_ENV)),$(^F));
6356c_verbose = $(c_verbose_$(V))
6357
6358cpp_verbose_0 = @echo " CPP   " $(filter-out $(notdir $(MAKEFILE_LIST) $(C_SRC_ENV)),$(^F));
6359cpp_verbose = $(cpp_verbose_$(V))
6360
6361link_verbose_0 = @echo " LD    " $(@F);
6362link_verbose = $(link_verbose_$(V))
6363
6364# Targets.
6365
6366ifeq ($(wildcard $(C_SRC_DIR)),)
6367else ifneq ($(wildcard $(C_SRC_DIR)/Makefile),)
6368app:: app-c_src
6369
6370test-build:: app-c_src
6371
6372app-c_src:
6373	$(MAKE) -C $(C_SRC_DIR)
6374
6375clean::
6376	$(MAKE) -C $(C_SRC_DIR) clean
6377
6378else
6379
6380ifeq ($(SOURCES),)
6381SOURCES := $(sort $(foreach pat,*.c *.C *.cc *.cpp,$(call core_find,$(C_SRC_DIR)/,$(pat))))
6382endif
6383OBJECTS = $(addsuffix .o, $(basename $(SOURCES)))
6384
6385COMPILE_C = $(c_verbose) $(CC) $(CFLAGS) $(CPPFLAGS) -c
6386COMPILE_CPP = $(cpp_verbose) $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c
6387
6388app:: $(C_SRC_ENV) $(C_SRC_OUTPUT_FILE)
6389
6390test-build:: $(C_SRC_ENV) $(C_SRC_OUTPUT_FILE)
6391
6392$(C_SRC_OUTPUT_FILE): $(OBJECTS)
6393	$(verbose) mkdir -p $(dir $@)
6394	$(link_verbose) $(CC) $(OBJECTS) \
6395		$(LDFLAGS) $(if $(filter $(C_SRC_TYPE),shared),-shared) $(LDLIBS) \
6396		-o $(C_SRC_OUTPUT_FILE)
6397
6398$(OBJECTS): $(MAKEFILE_LIST) $(C_SRC_ENV)
6399
6400%.o: %.c
6401	$(COMPILE_C) $(OUTPUT_OPTION) $<
6402
6403%.o: %.cc
6404	$(COMPILE_CPP) $(OUTPUT_OPTION) $<
6405
6406%.o: %.C
6407	$(COMPILE_CPP) $(OUTPUT_OPTION) $<
6408
6409%.o: %.cpp
6410	$(COMPILE_CPP) $(OUTPUT_OPTION) $<
6411
6412clean:: clean-c_src
6413
6414clean-c_src:
6415	$(gen_verbose) rm -f $(C_SRC_OUTPUT_FILE) $(OBJECTS)
6416
6417endif
6418
6419ifneq ($(wildcard $(C_SRC_DIR)),)
6420ERL_ERTS_DIR = $(shell $(ERL) -eval 'io:format("~s~n", [code:lib_dir(erts)]), halt().')
6421
6422$(C_SRC_ENV):
6423	$(verbose) $(ERL) -eval "file:write_file(\"$(call core_native_path,$(C_SRC_ENV))\", \
6424		io_lib:format( \
6425			\"# Generated by Erlang.mk. Edit at your own risk!~n~n\" \
6426			\"ERTS_INCLUDE_DIR ?= ~s/erts-~s/include/~n\" \
6427			\"ERL_INTERFACE_INCLUDE_DIR ?= ~s~n\" \
6428			\"ERL_INTERFACE_LIB_DIR ?= ~s~n\" \
6429			\"ERTS_DIR ?= $(ERL_ERTS_DIR)~n\", \
6430			[code:root_dir(), erlang:system_info(version), \
6431			code:lib_dir(erl_interface, include), \
6432			code:lib_dir(erl_interface, lib)])), \
6433		halt()."
6434
6435distclean:: distclean-c_src-env
6436
6437distclean-c_src-env:
6438	$(gen_verbose) rm -f $(C_SRC_ENV)
6439
6440-include $(C_SRC_ENV)
6441
6442ifneq ($(ERL_ERTS_DIR),$(ERTS_DIR))
6443$(shell rm -f $(C_SRC_ENV))
6444endif
6445endif
6446
6447# Templates.
6448
6449define bs_c_nif
6450#include "erl_nif.h"
6451
6452static int loads = 0;
6453
6454static int load(ErlNifEnv* env, void** priv_data, ERL_NIF_TERM load_info)
6455{
6456	/* Initialize private data. */
6457	*priv_data = NULL;
6458
6459	loads++;
6460
6461	return 0;
6462}
6463
6464static int upgrade(ErlNifEnv* env, void** priv_data, void** old_priv_data, ERL_NIF_TERM load_info)
6465{
6466	/* Convert the private data to the new version. */
6467	*priv_data = *old_priv_data;
6468
6469	loads++;
6470
6471	return 0;
6472}
6473
6474static void unload(ErlNifEnv* env, void* priv_data)
6475{
6476	if (loads == 1) {
6477		/* Destroy the private data. */
6478	}
6479
6480	loads--;
6481}
6482
6483static ERL_NIF_TERM hello(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[])
6484{
6485	if (enif_is_atom(env, argv[0])) {
6486		return enif_make_tuple2(env,
6487			enif_make_atom(env, "hello"),
6488			argv[0]);
6489	}
6490
6491	return enif_make_tuple2(env,
6492		enif_make_atom(env, "error"),
6493		enif_make_atom(env, "badarg"));
6494}
6495
6496static ErlNifFunc nif_funcs[] = {
6497	{"hello", 1, hello}
6498};
6499
6500ERL_NIF_INIT($n, nif_funcs, load, NULL, upgrade, unload)
6501endef
6502
6503define bs_erl_nif
6504-module($n).
6505
6506-export([hello/1]).
6507
6508-on_load(on_load/0).
6509on_load() ->
6510	PrivDir = case code:priv_dir(?MODULE) of
6511		{error, _} ->
6512			AppPath = filename:dirname(filename:dirname(code:which(?MODULE))),
6513			filename:join(AppPath, "priv");
6514		Path ->
6515			Path
6516	end,
6517	erlang:load_nif(filename:join(PrivDir, atom_to_list(?MODULE)), 0).
6518
6519hello(_) ->
6520	erlang:nif_error({not_loaded, ?MODULE}).
6521endef
6522
6523new-nif:
6524ifneq ($(wildcard $(C_SRC_DIR)/$n.c),)
6525	$(error Error: $(C_SRC_DIR)/$n.c already exists)
6526endif
6527ifneq ($(wildcard src/$n.erl),)
6528	$(error Error: src/$n.erl already exists)
6529endif
6530ifndef n
6531	$(error Usage: $(MAKE) new-nif n=NAME [in=APP])
6532endif
6533ifdef in
6534	$(verbose) $(MAKE) -C $(APPS_DIR)/$(in)/ new-nif n=$n in=
6535else
6536	$(verbose) mkdir -p $(C_SRC_DIR) src/
6537	$(verbose) $(call core_render,bs_c_nif,$(C_SRC_DIR)/$n.c)
6538	$(verbose) $(call core_render,bs_erl_nif,src/$n.erl)
6539endif
6540
6541# Copyright (c) 2015-2017, Loïc Hoguin <essen@ninenines.eu>
6542# This file is part of erlang.mk and subject to the terms of the ISC License.
6543
6544.PHONY: ci ci-prepare ci-setup
6545
6546CI_OTP ?=
6547CI_HIPE ?=
6548CI_ERLLVM ?=
6549
6550ifeq ($(CI_VM),native)
6551ERLC_OPTS += +native
6552TEST_ERLC_OPTS += +native
6553else ifeq ($(CI_VM),erllvm)
6554ERLC_OPTS += +native +'{hipe, [to_llvm]}'
6555TEST_ERLC_OPTS += +native +'{hipe, [to_llvm]}'
6556endif
6557
6558ifeq ($(strip $(CI_OTP) $(CI_HIPE) $(CI_ERLLVM)),)
6559ci::
6560else
6561
6562ci:: $(addprefix ci-,$(CI_OTP) $(addsuffix -native,$(CI_HIPE)) $(addsuffix -erllvm,$(CI_ERLLVM)))
6563
6564ci-prepare: $(addprefix $(KERL_INSTALL_DIR)/,$(CI_OTP) $(addsuffix -native,$(CI_HIPE)))
6565
6566ci-setup::
6567	$(verbose) :
6568
6569ci-extra::
6570	$(verbose) :
6571
6572ci_verbose_0 = @echo " CI    " $(1);
6573ci_verbose = $(ci_verbose_$(V))
6574
6575define ci_target
6576ci-$1: $(KERL_INSTALL_DIR)/$2
6577	$(verbose) $(MAKE) --no-print-directory clean
6578	$(ci_verbose) \
6579		PATH="$(KERL_INSTALL_DIR)/$2/bin:$(PATH)" \
6580		CI_OTP_RELEASE="$1" \
6581		CT_OPTS="-label $1" \
6582		CI_VM="$3" \
6583		$(MAKE) ci-setup tests
6584	$(verbose) $(MAKE) --no-print-directory ci-extra
6585endef
6586
6587$(foreach otp,$(CI_OTP),$(eval $(call ci_target,$(otp),$(otp),otp)))
6588$(foreach otp,$(CI_HIPE),$(eval $(call ci_target,$(otp)-native,$(otp)-native,native)))
6589$(foreach otp,$(CI_ERLLVM),$(eval $(call ci_target,$(otp)-erllvm,$(otp)-native,erllvm)))
6590
6591$(foreach otp,$(filter-out $(ERLANG_OTP),$(CI_OTP)),$(eval $(call kerl_otp_target,$(otp))))
6592$(foreach otp,$(filter-out $(ERLANG_HIPE),$(sort $(CI_HIPE) $(CI_ERLLLVM))),$(eval $(call kerl_hipe_target,$(otp))))
6593
6594help::
6595	$(verbose) printf "%s\n" "" \
6596		"Continuous Integration targets:" \
6597		"  ci          Run '$(MAKE) tests' on all configured Erlang versions." \
6598		"" \
6599		"The CI_OTP variable must be defined with the Erlang versions" \
6600		"that must be tested. For example: CI_OTP = OTP-17.3.4 OTP-17.5.3"
6601
6602endif
6603
6604# Copyright (c) 2013-2016, Loïc Hoguin <essen@ninenines.eu>
6605# This file is part of erlang.mk and subject to the terms of the ISC License.
6606
6607.PHONY: ct apps-ct distclean-ct
6608
6609# Configuration.
6610
6611CT_OPTS ?=
6612
6613ifneq ($(wildcard $(TEST_DIR)),)
6614ifndef CT_SUITES
6615CT_SUITES := $(sort $(subst _SUITE.erl,,$(notdir $(call core_find,$(TEST_DIR)/,*_SUITE.erl))))
6616endif
6617endif
6618CT_SUITES ?=
6619CT_LOGS_DIR ?= $(CURDIR)/logs
6620
6621# Core targets.
6622
6623tests:: ct
6624
6625ifndef KEEP_LOGS
6626distclean:: distclean-ct
6627endif
6628
6629help::
6630	$(verbose) printf "%s\n" "" \
6631		"Common_test targets:" \
6632		"  ct          Run all the common_test suites for this project" \
6633		"" \
6634		"All your common_test suites have their associated targets." \
6635		"A suite named http_SUITE can be ran using the ct-http target."
6636
6637# Plugin-specific targets.
6638
6639CT_RUN = ct_run \
6640	-no_auto_compile \
6641	-noinput \
6642	-pa $(CURDIR)/ebin $(TEST_DIR) \
6643	-dir $(TEST_DIR) \
6644	-logdir $(CT_LOGS_DIR)
6645
6646ifeq ($(CT_SUITES),)
6647ct: $(if $(IS_APP)$(ROOT_DIR),,apps-ct)
6648else
6649# We do not run tests if we are in an apps/* with no test directory.
6650ifneq ($(IS_APP)$(wildcard $(TEST_DIR)),1)
6651ct: test-build $(if $(IS_APP)$(ROOT_DIR),,apps-ct)
6652	$(verbose) mkdir -p $(CT_LOGS_DIR)
6653	$(gen_verbose) $(CT_RUN) -sname ct_$(PROJECT) -suite $(addsuffix _SUITE,$(CT_SUITES)) $(CT_OPTS)
6654endif
6655endif
6656
6657ifneq ($(ALL_APPS_DIRS),)
6658define ct_app_target
6659apps-ct-$1: test-build
6660	$$(MAKE) -C $1 ct IS_APP=1
6661endef
6662
6663$(foreach app,$(ALL_APPS_DIRS),$(eval $(call ct_app_target,$(app))))
6664
6665apps-ct: $(addprefix apps-ct-,$(ALL_APPS_DIRS))
6666endif
6667
6668ifdef t
6669ifeq (,$(findstring :,$t))
6670CT_EXTRA = -group $t
6671else
6672t_words = $(subst :, ,$t)
6673CT_EXTRA = -group $(firstword $(t_words)) -case $(lastword $(t_words))
6674endif
6675else
6676ifdef c
6677CT_EXTRA = -case $c
6678else
6679CT_EXTRA =
6680endif
6681endif
6682
6683define ct_suite_target
6684ct-$(1): test-build
6685	$(verbose) mkdir -p $(CT_LOGS_DIR)
6686	$(gen_verbose_esc) $(CT_RUN) -sname ct_$(PROJECT) -suite $(addsuffix _SUITE,$(1)) $(CT_EXTRA) $(CT_OPTS)
6687endef
6688
6689$(foreach test,$(CT_SUITES),$(eval $(call ct_suite_target,$(test))))
6690
6691distclean-ct:
6692	$(gen_verbose) rm -rf $(CT_LOGS_DIR)
6693
6694# Copyright (c) 2013-2016, Loïc Hoguin <essen@ninenines.eu>
6695# This file is part of erlang.mk and subject to the terms of the ISC License.
6696
6697.PHONY: plt distclean-plt dialyze
6698
6699# Configuration.
6700
6701DIALYZER_PLT ?= $(CURDIR)/.$(PROJECT).plt
6702export DIALYZER_PLT
6703
6704PLT_APPS ?=
6705DIALYZER_DIRS ?= --src -r $(wildcard src) $(ALL_APPS_DIRS)
6706DIALYZER_OPTS ?= -Werror_handling -Wrace_conditions -Wunmatched_returns # -Wunderspecs
6707DIALYZER_PLT_OPTS ?=
6708
6709# Core targets.
6710
6711check:: dialyze
6712
6713distclean:: distclean-plt
6714
6715help::
6716	$(verbose) printf "%s\n" "" \
6717		"Dialyzer targets:" \
6718		"  plt         Build a PLT file for this project" \
6719		"  dialyze     Analyze the project using Dialyzer"
6720
6721# Plugin-specific targets.
6722
6723define filter_opts.erl
6724	Opts = init:get_plain_arguments(),
6725	{Filtered, _} = lists:foldl(fun
6726		(O,                         {Os, true}) -> {[O|Os], false};
6727		(O = "-D",                  {Os, _})    -> {[O|Os], true};
6728		(O = [\\$$-, \\$$D, _ | _], {Os, _})    -> {[O|Os], false};
6729		(O = "-I",                  {Os, _})    -> {[O|Os], true};
6730		(O = [\\$$-, \\$$I, _ | _], {Os, _})    -> {[O|Os], false};
6731		(O = "-pa",                 {Os, _})    -> {[O|Os], true};
6732		(_,                         Acc)        -> Acc
6733	end, {[], false}, Opts),
6734	io:format("~s~n", [string:join(lists:reverse(Filtered), " ")]),
6735	halt().
6736endef
6737
6738# DIALYZER_PLT is a variable understood directly by Dialyzer.
6739#
6740# We append the path to erts at the end of the PLT. This works
6741# because the PLT file is in the external term format and the
6742# function binary_to_term/1 ignores any trailing data.
6743$(DIALYZER_PLT): deps app
6744	$(eval DEPS_LOG := $(shell test -f $(ERLANG_MK_TMP)/deps.log && \
6745		while read p; do test -d $$p/ebin && echo $$p/ebin; done <$(ERLANG_MK_TMP)/deps.log))
6746	$(verbose) dialyzer --build_plt $(DIALYZER_PLT_OPTS) --apps \
6747		erts kernel stdlib $(PLT_APPS) $(OTP_DEPS) $(LOCAL_DEPS) $(DEPS_LOG) || test $$? -eq 2
6748	$(verbose) $(ERL) -eval 'io:format("~n~s~n", [code:lib_dir(erts)]), halt().' >> $@
6749
6750plt: $(DIALYZER_PLT)
6751
6752distclean-plt:
6753	$(gen_verbose) rm -f $(DIALYZER_PLT)
6754
6755ifneq ($(wildcard $(DIALYZER_PLT)),)
6756dialyze: $(if $(filter --src,$(DIALYZER_DIRS)),,deps app)
6757	$(verbose) if ! tail -n1 $(DIALYZER_PLT) | \
6758		grep -q "^`$(ERL) -eval 'io:format("~s", [code:lib_dir(erts)]), halt().'`$$"; then \
6759		rm $(DIALYZER_PLT); \
6760		$(MAKE) plt; \
6761	fi
6762else
6763dialyze: $(DIALYZER_PLT)
6764endif
6765	$(verbose) dialyzer --no_native `$(ERL) \
6766		-eval "$(subst $(newline),,$(call escape_dquotes,$(call filter_opts.erl)))" \
6767		-extra $(ERLC_OPTS)` $(DIALYZER_DIRS) $(DIALYZER_OPTS) $(if $(wildcard ebin/),-pa ebin/)
6768
6769# Copyright (c) 2013-2016, Loïc Hoguin <essen@ninenines.eu>
6770# This file is part of erlang.mk and subject to the terms of the ISC License.
6771
6772.PHONY: distclean-edoc edoc
6773
6774# Configuration.
6775
6776EDOC_OPTS ?=
6777EDOC_SRC_DIRS ?=
6778EDOC_OUTPUT ?= doc
6779
6780define edoc.erl
6781	SrcPaths = lists:foldl(fun(P, Acc) ->
6782		filelib:wildcard(atom_to_list(P) ++ "/{src,c_src}") ++ Acc
6783	end, [], [$(call comma_list,$(patsubst %,'%',$(call core_native_path,$(EDOC_SRC_DIRS))))]),
6784	DefaultOpts = [{dir, "$(EDOC_OUTPUT)"}, {source_path, SrcPaths}, {subpackages, false}],
6785	edoc:application($(1), ".", [$(2)] ++ DefaultOpts),
6786	halt(0).
6787endef
6788
6789# Core targets.
6790
6791ifneq ($(strip $(EDOC_SRC_DIRS)$(wildcard doc/overview.edoc)),)
6792docs:: edoc
6793endif
6794
6795distclean:: distclean-edoc
6796
6797# Plugin-specific targets.
6798
6799edoc: distclean-edoc doc-deps
6800	$(gen_verbose) $(call erlang,$(call edoc.erl,$(PROJECT),$(EDOC_OPTS)))
6801
6802distclean-edoc:
6803	$(gen_verbose) rm -f $(EDOC_OUTPUT)/*.css $(EDOC_OUTPUT)/*.html $(EDOC_OUTPUT)/*.png $(EDOC_OUTPUT)/edoc-info
6804
6805# Copyright (c) 2013-2016, Loïc Hoguin <essen@ninenines.eu>
6806# This file is part of erlang.mk and subject to the terms of the ISC License.
6807
6808# Configuration.
6809
6810DTL_FULL_PATH ?=
6811DTL_PATH ?= templates/
6812DTL_PREFIX ?=
6813DTL_SUFFIX ?= _dtl
6814DTL_OPTS ?=
6815
6816# Verbosity.
6817
6818dtl_verbose_0 = @echo " DTL   " $(filter %.dtl,$(?F));
6819dtl_verbose = $(dtl_verbose_$(V))
6820
6821# Core targets.
6822
6823DTL_PATH := $(abspath $(DTL_PATH))
6824DTL_FILES := $(sort $(call core_find,$(DTL_PATH),*.dtl))
6825
6826ifneq ($(DTL_FILES),)
6827
6828DTL_NAMES   = $(addprefix $(DTL_PREFIX),$(addsuffix $(DTL_SUFFIX),$(DTL_FILES:$(DTL_PATH)/%.dtl=%)))
6829DTL_MODULES = $(if $(DTL_FULL_PATH),$(subst /,_,$(DTL_NAMES)),$(notdir $(DTL_NAMES)))
6830BEAM_FILES += $(addsuffix .beam,$(addprefix ebin/,$(DTL_MODULES)))
6831
6832ifneq ($(words $(DTL_FILES)),0)
6833# Rebuild templates when the Makefile changes.
6834$(ERLANG_MK_TMP)/last-makefile-change-erlydtl: $(MAKEFILE_LIST) | $(ERLANG_MK_TMP)
6835	$(verbose) if test -f $@; then \
6836		touch $(DTL_FILES); \
6837	fi
6838	$(verbose) touch $@
6839
6840ebin/$(PROJECT).app:: $(ERLANG_MK_TMP)/last-makefile-change-erlydtl
6841endif
6842
6843define erlydtl_compile.erl
6844	[begin
6845		Module0 = case "$(strip $(DTL_FULL_PATH))" of
6846			"" ->
6847				filename:basename(F, ".dtl");
6848			_ ->
6849				"$(call core_native_path,$(DTL_PATH))/" ++ F2 = filename:rootname(F, ".dtl"),
6850				re:replace(F2, "/",  "_",  [{return, list}, global])
6851		end,
6852		Module = list_to_atom("$(DTL_PREFIX)" ++ string:to_lower(Module0) ++ "$(DTL_SUFFIX)"),
6853		case erlydtl:compile(F, Module, [$(DTL_OPTS)] ++ [{out_dir, "ebin/"}, return_errors]) of
6854			ok -> ok;
6855			{ok, _} -> ok
6856		end
6857	end || F <- string:tokens("$(1)", " ")],
6858	halt().
6859endef
6860
6861ebin/$(PROJECT).app:: $(DTL_FILES) | ebin/
6862	$(if $(strip $?),\
6863		$(dtl_verbose) $(call erlang,$(call erlydtl_compile.erl,$(call core_native_path,$?)),\
6864			-pa ebin/))
6865
6866endif
6867
6868# Copyright (c) 2016, Loïc Hoguin <essen@ninenines.eu>
6869# Copyright (c) 2014, Dave Cottlehuber <dch@skunkwerks.at>
6870# This file is part of erlang.mk and subject to the terms of the ISC License.
6871
6872.PHONY: distclean-escript escript escript-zip
6873
6874# Configuration.
6875
6876ESCRIPT_NAME ?= $(PROJECT)
6877ESCRIPT_FILE ?= $(ESCRIPT_NAME)
6878
6879ESCRIPT_SHEBANG ?= /usr/bin/env escript
6880ESCRIPT_COMMENT ?= This is an -*- erlang -*- file
6881ESCRIPT_EMU_ARGS ?= -escript main $(ESCRIPT_NAME)
6882
6883ESCRIPT_ZIP ?= 7z a -tzip -mx=9 -mtc=off $(if $(filter-out 0,$(V)),,> /dev/null)
6884ESCRIPT_ZIP_FILE ?= $(ERLANG_MK_TMP)/escript.zip
6885
6886# Core targets.
6887
6888distclean:: distclean-escript
6889
6890help::
6891	$(verbose) printf "%s\n" "" \
6892		"Escript targets:" \
6893		"  escript     Build an executable escript archive" \
6894
6895# Plugin-specific targets.
6896
6897escript-zip:: FULL=1
6898escript-zip:: deps app
6899	$(verbose) mkdir -p $(dir $(ESCRIPT_ZIP))
6900	$(verbose) rm -f $(ESCRIPT_ZIP_FILE)
6901	$(gen_verbose) cd .. && $(ESCRIPT_ZIP) $(ESCRIPT_ZIP_FILE) $(PROJECT)/ebin/*
6902ifneq ($(DEPS),)
6903	$(verbose) cd $(DEPS_DIR) && $(ESCRIPT_ZIP) $(ESCRIPT_ZIP_FILE) \
6904		$(subst $(DEPS_DIR)/,,$(addsuffix /*,$(wildcard \
6905			$(addsuffix /ebin,$(shell cat $(ERLANG_MK_TMP)/deps.log)))))
6906endif
6907
6908escript:: escript-zip
6909	$(gen_verbose) printf "%s\n" \
6910		"#!$(ESCRIPT_SHEBANG)" \
6911		"%% $(ESCRIPT_COMMENT)" \
6912		"%%! $(ESCRIPT_EMU_ARGS)" > $(ESCRIPT_FILE)
6913	$(verbose) cat $(ESCRIPT_ZIP_FILE) >> $(ESCRIPT_FILE)
6914	$(verbose) chmod +x $(ESCRIPT_FILE)
6915
6916distclean-escript:
6917	$(gen_verbose) rm -f $(ESCRIPT_FILE)
6918
6919# Copyright (c) 2015-2016, Loïc Hoguin <essen@ninenines.eu>
6920# Copyright (c) 2014, Enrique Fernandez <enrique.fernandez@erlang-solutions.com>
6921# This file is contributed to erlang.mk and subject to the terms of the ISC License.
6922
6923.PHONY: eunit apps-eunit
6924
6925# Configuration
6926
6927EUNIT_OPTS ?=
6928EUNIT_ERL_OPTS ?=
6929
6930# Core targets.
6931
6932tests:: eunit
6933
6934help::
6935	$(verbose) printf "%s\n" "" \
6936		"EUnit targets:" \
6937		"  eunit       Run all the EUnit tests for this project"
6938
6939# Plugin-specific targets.
6940
6941define eunit.erl
6942	$(call cover.erl)
6943	CoverSetup(),
6944	case eunit:test($1, [$(EUNIT_OPTS)]) of
6945		ok -> ok;
6946		error -> halt(2)
6947	end,
6948	CoverExport("$(call core_native_path,$(COVER_DATA_DIR))/eunit.coverdata"),
6949	halt()
6950endef
6951
6952EUNIT_ERL_OPTS += -pa $(TEST_DIR) $(CURDIR)/ebin
6953
6954ifdef t
6955ifeq (,$(findstring :,$(t)))
6956eunit: test-build cover-data-dir
6957	$(gen_verbose) $(call erlang,$(call eunit.erl,['$(t)']),$(EUNIT_ERL_OPTS))
6958else
6959eunit: test-build cover-data-dir
6960	$(gen_verbose) $(call erlang,$(call eunit.erl,fun $(t)/0),$(EUNIT_ERL_OPTS))
6961endif
6962else
6963EUNIT_EBIN_MODS = $(notdir $(basename $(ERL_FILES) $(BEAM_FILES)))
6964EUNIT_TEST_MODS = $(notdir $(basename $(call core_find,$(TEST_DIR)/,*.erl)))
6965
6966EUNIT_MODS = $(foreach mod,$(EUNIT_EBIN_MODS) $(filter-out \
6967	$(patsubst %,%_tests,$(EUNIT_EBIN_MODS)),$(EUNIT_TEST_MODS)),'$(mod)')
6968
6969eunit: test-build $(if $(IS_APP)$(ROOT_DIR),,apps-eunit) cover-data-dir
6970ifneq ($(wildcard src/ $(TEST_DIR)),)
6971	$(gen_verbose) $(call erlang,$(call eunit.erl,[$(call comma_list,$(EUNIT_MODS))]),$(EUNIT_ERL_OPTS))
6972endif
6973
6974ifneq ($(ALL_APPS_DIRS),)
6975apps-eunit: test-build
6976	$(verbose) eunit_retcode=0 ; for app in $(ALL_APPS_DIRS); do $(MAKE) -C $$app eunit IS_APP=1; \
6977		[ $$? -ne 0 ] && eunit_retcode=1 ; done ; \
6978		exit $$eunit_retcode
6979endif
6980endif
6981
6982# Copyright (c) 2015-2017, Loïc Hoguin <essen@ninenines.eu>
6983# This file is part of erlang.mk and subject to the terms of the ISC License.
6984
6985ifeq ($(filter proper,$(DEPS) $(TEST_DEPS)),proper)
6986.PHONY: proper
6987
6988# Targets.
6989
6990tests:: proper
6991
6992define proper_check.erl
6993	$(call cover.erl)
6994	code:add_pathsa([
6995		"$(call core_native_path,$(CURDIR)/ebin)",
6996		"$(call core_native_path,$(DEPS_DIR)/*/ebin)",
6997		"$(call core_native_path,$(TEST_DIR))"]),
6998	Module = fun(M) ->
6999		[true] =:= lists:usort([
7000			case atom_to_list(F) of
7001				"prop_" ++ _ ->
7002					io:format("Testing ~p:~p/0~n", [M, F]),
7003					proper:quickcheck(M:F(), nocolors);
7004				_ ->
7005					true
7006			end
7007		|| {F, 0} <- M:module_info(exports)])
7008	end,
7009	try begin
7010		CoverSetup(),
7011		Res = case $(1) of
7012			all -> [true] =:= lists:usort([Module(M) || M <- [$(call comma_list,$(3))]]);
7013			module -> Module($(2));
7014			function -> proper:quickcheck($(2), nocolors)
7015		end,
7016		CoverExport("$(COVER_DATA_DIR)/proper.coverdata"),
7017		Res
7018	end of
7019		true -> halt(0);
7020		_ -> halt(1)
7021	catch error:undef ->
7022		io:format("Undefined property or module?~n~p~n", [erlang:get_stacktrace()]),
7023		halt(0)
7024	end.
7025endef
7026
7027ifdef t
7028ifeq (,$(findstring :,$(t)))
7029proper: test-build cover-data-dir
7030	$(verbose) $(call erlang,$(call proper_check.erl,module,$(t)))
7031else
7032proper: test-build cover-data-dir
7033	$(verbose) echo Testing $(t)/0
7034	$(verbose) $(call erlang,$(call proper_check.erl,function,$(t)()))
7035endif
7036else
7037proper: test-build cover-data-dir
7038	$(eval MODULES := $(patsubst %,'%',$(sort $(notdir $(basename \
7039		$(wildcard ebin/*.beam) $(call core_find,$(TEST_DIR)/,*.beam))))))
7040	$(gen_verbose) $(call erlang,$(call proper_check.erl,all,undefined,$(MODULES)))
7041endif
7042endif
7043
7044# Copyright (c) 2013-2016, Loïc Hoguin <essen@ninenines.eu>
7045# This file is part of erlang.mk and subject to the terms of the ISC License.
7046
7047.PHONY: relx-rel relx-relup distclean-relx-rel run
7048
7049# Configuration.
7050
7051RELX ?= $(ERLANG_MK_TMP)/relx
7052RELX_CONFIG ?= $(CURDIR)/relx.config
7053
7054RELX_URL ?= https://erlang.mk/res/relx-v3.27.0
7055RELX_OPTS ?=
7056RELX_OUTPUT_DIR ?= _rel
7057RELX_REL_EXT ?=
7058RELX_TAR ?= 1
7059
7060ifdef SFX
7061	RELX_TAR = 1
7062endif
7063
7064ifeq ($(firstword $(RELX_OPTS)),-o)
7065	RELX_OUTPUT_DIR = $(word 2,$(RELX_OPTS))
7066else
7067	RELX_OPTS += -o $(RELX_OUTPUT_DIR)
7068endif
7069
7070# Core targets.
7071
7072ifeq ($(IS_DEP),)
7073ifneq ($(wildcard $(RELX_CONFIG)),)
7074rel:: relx-rel
7075
7076relup:: relx-relup
7077endif
7078endif
7079
7080distclean:: distclean-relx-rel
7081
7082# Plugin-specific targets.
7083
7084$(RELX): | $(ERLANG_MK_TMP)
7085	$(gen_verbose) $(call core_http_get,$(RELX),$(RELX_URL))
7086	$(verbose) chmod +x $(RELX)
7087
7088relx-rel: $(RELX) rel-deps app
7089	$(verbose) $(RELX) $(if $(filter 1,$V),-V 3) -c $(RELX_CONFIG) $(RELX_OPTS) release
7090	$(verbose) $(MAKE) relx-post-rel
7091ifeq ($(RELX_TAR),1)
7092	$(verbose) $(RELX) $(if $(filter 1,$V),-V 3) -c $(RELX_CONFIG) $(RELX_OPTS) tar
7093endif
7094
7095relx-relup: $(RELX) rel-deps app
7096	$(verbose) $(RELX) $(if $(filter 1,$V),-V 3) -c $(RELX_CONFIG) $(RELX_OPTS) release
7097	$(MAKE) relx-post-rel
7098	$(verbose) $(RELX) $(if $(filter 1,$V),-V 3) -c $(RELX_CONFIG) $(RELX_OPTS) relup $(if $(filter 1,$(RELX_TAR)),tar)
7099
7100distclean-relx-rel:
7101	$(gen_verbose) rm -rf $(RELX_OUTPUT_DIR)
7102
7103# Default hooks.
7104relx-post-rel::
7105	$(verbose) :
7106
7107# Run target.
7108
7109ifeq ($(wildcard $(RELX_CONFIG)),)
7110run::
7111else
7112
7113define get_relx_release.erl
7114	{ok, Config} = file:consult("$(call core_native_path,$(RELX_CONFIG))"),
7115	{release, {Name, Vsn0}, _} = lists:keyfind(release, 1, Config),
7116	Vsn = case Vsn0 of
7117		{cmd, Cmd} -> os:cmd(Cmd);
7118		semver -> "";
7119		{semver, _} -> "";
7120		VsnStr -> Vsn0
7121	end,
7122	Extended = case lists:keyfind(extended_start_script, 1, Config) of
7123		{_, true} -> "1";
7124		_ -> ""
7125	end,
7126	io:format("~s ~s ~s", [Name, Vsn, Extended]),
7127	halt(0).
7128endef
7129
7130RELX_REL := $(shell $(call erlang,$(get_relx_release.erl)))
7131RELX_REL_NAME := $(word 1,$(RELX_REL))
7132RELX_REL_VSN := $(word 2,$(RELX_REL))
7133RELX_REL_CMD := $(if $(word 3,$(RELX_REL)),console)
7134
7135ifeq ($(PLATFORM),msys2)
7136RELX_REL_EXT := .cmd
7137endif
7138
7139run:: all
7140	$(verbose) $(RELX_OUTPUT_DIR)/$(RELX_REL_NAME)/bin/$(RELX_REL_NAME)$(RELX_REL_EXT) $(RELX_REL_CMD)
7141
7142ifdef RELOAD
7143rel::
7144	$(verbose) $(RELX_OUTPUT_DIR)/$(RELX_REL_NAME)/bin/$(RELX_REL_NAME)$(RELX_REL_EXT) ping
7145	$(verbose) $(RELX_OUTPUT_DIR)/$(RELX_REL_NAME)/bin/$(RELX_REL_NAME)$(RELX_REL_EXT) \
7146		eval "io:format(\"~p~n\", [c:lm()])"
7147endif
7148
7149help::
7150	$(verbose) printf "%s\n" "" \
7151		"Relx targets:" \
7152		"  run         Compile the project, build the release and run it"
7153
7154endif
7155
7156# Copyright (c) 2015-2016, Loïc Hoguin <essen@ninenines.eu>
7157# Copyright (c) 2014, M Robert Martin <rob@version2beta.com>
7158# This file is contributed to erlang.mk and subject to the terms of the ISC License.
7159
7160.PHONY: shell
7161
7162# Configuration.
7163
7164SHELL_ERL ?= erl
7165SHELL_PATHS ?= $(CURDIR)/ebin $(TEST_DIR)
7166SHELL_OPTS ?=
7167
7168ALL_SHELL_DEPS_DIRS = $(addprefix $(DEPS_DIR)/,$(SHELL_DEPS))
7169
7170# Core targets
7171
7172help::
7173	$(verbose) printf "%s\n" "" \
7174		"Shell targets:" \
7175		"  shell       Run an erlang shell with SHELL_OPTS or reasonable default"
7176
7177# Plugin-specific targets.
7178
7179$(foreach dep,$(SHELL_DEPS),$(eval $(call dep_target,$(dep))))
7180
7181ifneq ($(SKIP_DEPS),)
7182build-shell-deps:
7183else
7184build-shell-deps: $(ALL_SHELL_DEPS_DIRS)
7185	$(verbose) set -e; for dep in $(ALL_SHELL_DEPS_DIRS) ; do \
7186		if [ -z "$(strip $(FULL))" ] && [ ! -L $$dep ] && [ -f $$dep/ebin/dep_built ]; then \
7187			:; \
7188		else \
7189			$(MAKE) -C $$dep IS_DEP=1; \
7190			if [ ! -L $$dep ] && [ -d $$dep/ebin ]; then touch $$dep/ebin/dep_built; fi; \
7191		fi \
7192	done
7193endif
7194
7195shell:: build-shell-deps
7196	$(gen_verbose) $(SHELL_ERL) -pa $(SHELL_PATHS) $(SHELL_OPTS)
7197
7198# Copyright 2017, Stanislaw Klekot <dozzie@jarowit.net>
7199# This file is part of erlang.mk and subject to the terms of the ISC License.
7200
7201.PHONY: distclean-sphinx sphinx
7202
7203# Configuration.
7204
7205SPHINX_BUILD ?= sphinx-build
7206SPHINX_SOURCE ?= doc
7207SPHINX_CONFDIR ?=
7208SPHINX_FORMATS ?= html
7209SPHINX_DOCTREES ?= $(ERLANG_MK_TMP)/sphinx.doctrees
7210SPHINX_OPTS ?=
7211
7212#sphinx_html_opts =
7213#sphinx_html_output = html
7214#sphinx_man_opts =
7215#sphinx_man_output = man
7216#sphinx_latex_opts =
7217#sphinx_latex_output = latex
7218
7219# Helpers.
7220
7221sphinx_build_0 = @echo " SPHINX" $1; $(SPHINX_BUILD) -N -q
7222sphinx_build_1 = $(SPHINX_BUILD) -N
7223sphinx_build_2 = set -x; $(SPHINX_BUILD)
7224sphinx_build = $(sphinx_build_$(V))
7225
7226define sphinx.build
7227$(call sphinx_build,$1) -b $1 -d $(SPHINX_DOCTREES) $(if $(SPHINX_CONFDIR),-c $(SPHINX_CONFDIR)) $(SPHINX_OPTS) $(sphinx_$1_opts) -- $(SPHINX_SOURCE) $(call sphinx.output,$1)
7228
7229endef
7230
7231define sphinx.output
7232$(if $(sphinx_$1_output),$(sphinx_$1_output),$1)
7233endef
7234
7235# Targets.
7236
7237ifneq ($(wildcard $(if $(SPHINX_CONFDIR),$(SPHINX_CONFDIR),$(SPHINX_SOURCE))/conf.py),)
7238docs:: sphinx
7239distclean:: distclean-sphinx
7240endif
7241
7242help::
7243	$(verbose) printf "%s\n" "" \
7244		"Sphinx targets:" \
7245		"  sphinx      Generate Sphinx documentation." \
7246		"" \
7247		"ReST sources and 'conf.py' file are expected in directory pointed by" \
7248		"SPHINX_SOURCE ('doc' by default). SPHINX_FORMATS lists formats to build (only" \
7249		"'html' format is generated by default); target directory can be specified by" \
7250		'setting sphinx_$${format}_output, for example: sphinx_html_output = output/html' \
7251		"Additional Sphinx options can be set in SPHINX_OPTS."
7252
7253# Plugin-specific targets.
7254
7255sphinx:
7256	$(foreach F,$(SPHINX_FORMATS),$(call sphinx.build,$F))
7257
7258distclean-sphinx:
7259	$(gen_verbose) rm -rf $(filter-out $(SPHINX_SOURCE),$(foreach F,$(SPHINX_FORMATS),$(call sphinx.output,$F)))
7260
7261# Copyright (c) 2017, Jean-Sébastien Pédron <jean-sebastien@rabbitmq.com>
7262# This file is contributed to erlang.mk and subject to the terms of the ISC License.
7263
7264.PHONY: show-ERL_LIBS show-ERLC_OPTS show-TEST_ERLC_OPTS
7265
7266show-ERL_LIBS:
7267	@echo $(ERL_LIBS)
7268
7269show-ERLC_OPTS:
7270	@$(foreach opt,$(ERLC_OPTS) -pa ebin -I include,echo "$(opt)";)
7271
7272show-TEST_ERLC_OPTS:
7273	@$(foreach opt,$(TEST_ERLC_OPTS) -pa ebin -I include,echo "$(opt)";)
7274
7275# Copyright (c) 2015-2016, Loïc Hoguin <essen@ninenines.eu>
7276# This file is part of erlang.mk and subject to the terms of the ISC License.
7277
7278ifeq ($(filter triq,$(DEPS) $(TEST_DEPS)),triq)
7279.PHONY: triq
7280
7281# Targets.
7282
7283tests:: triq
7284
7285define triq_check.erl
7286	$(call cover.erl)
7287	code:add_pathsa([
7288		"$(call core_native_path,$(CURDIR)/ebin)",
7289		"$(call core_native_path,$(DEPS_DIR)/*/ebin)",
7290		"$(call core_native_path,$(TEST_DIR))"]),
7291	try begin
7292		CoverSetup(),
7293		Res = case $(1) of
7294			all -> [true] =:= lists:usort([triq:check(M) || M <- [$(call comma_list,$(3))]]);
7295			module -> triq:check($(2));
7296			function -> triq:check($(2))
7297		end,
7298		CoverExport("$(COVER_DATA_DIR)/triq.coverdata"),
7299		Res
7300	end of
7301		true -> halt(0);
7302		_ -> halt(1)
7303	catch error:undef ->
7304		io:format("Undefined property or module?~n~p~n", [erlang:get_stacktrace()]),
7305		halt(0)
7306	end.
7307endef
7308
7309ifdef t
7310ifeq (,$(findstring :,$(t)))
7311triq: test-build cover-data-dir
7312	$(verbose) $(call erlang,$(call triq_check.erl,module,$(t)))
7313else
7314triq: test-build cover-data-dir
7315	$(verbose) echo Testing $(t)/0
7316	$(verbose) $(call erlang,$(call triq_check.erl,function,$(t)()))
7317endif
7318else
7319triq: test-build cover-data-dir
7320	$(eval MODULES := $(patsubst %,'%',$(sort $(notdir $(basename \
7321		$(wildcard ebin/*.beam) $(call core_find,$(TEST_DIR)/,*.beam))))))
7322	$(gen_verbose) $(call erlang,$(call triq_check.erl,all,undefined,$(MODULES)))
7323endif
7324endif
7325
7326# Copyright (c) 2016, Loïc Hoguin <essen@ninenines.eu>
7327# Copyright (c) 2015, Erlang Solutions Ltd.
7328# This file is part of erlang.mk and subject to the terms of the ISC License.
7329
7330.PHONY: xref distclean-xref
7331
7332# Configuration.
7333
7334ifeq ($(XREF_CONFIG),)
7335	XREFR_ARGS :=
7336else
7337	XREFR_ARGS := -c $(XREF_CONFIG)
7338endif
7339
7340XREFR ?= $(CURDIR)/xrefr
7341export XREFR
7342
7343XREFR_URL ?= https://github.com/inaka/xref_runner/releases/download/1.1.0/xrefr
7344
7345# Core targets.
7346
7347help::
7348	$(verbose) printf '%s\n' '' \
7349		'Xref targets:' \
7350		'  xref        Run Xrefr using $$XREF_CONFIG as config file if defined'
7351
7352distclean:: distclean-xref
7353
7354# Plugin-specific targets.
7355
7356$(XREFR):
7357	$(gen_verbose) $(call core_http_get,$(XREFR),$(XREFR_URL))
7358	$(verbose) chmod +x $(XREFR)
7359
7360xref: deps app $(XREFR)
7361	$(gen_verbose) $(XREFR) $(XREFR_ARGS)
7362
7363distclean-xref:
7364	$(gen_verbose) rm -rf $(XREFR)
7365
7366# Copyright (c) 2016, Loïc Hoguin <essen@ninenines.eu>
7367# Copyright (c) 2015, Viktor Söderqvist <viktor@zuiderkwast.se>
7368# This file is part of erlang.mk and subject to the terms of the ISC License.
7369
7370COVER_REPORT_DIR ?= cover
7371COVER_DATA_DIR ?= $(COVER_REPORT_DIR)
7372
7373ifdef COVER
7374COVER_APPS ?= $(notdir $(ALL_APPS_DIRS))
7375COVER_DEPS ?=
7376endif
7377
7378# Code coverage for Common Test.
7379
7380ifdef COVER
7381ifdef CT_RUN
7382ifneq ($(wildcard $(TEST_DIR)),)
7383test-build:: $(TEST_DIR)/ct.cover.spec
7384
7385$(TEST_DIR)/ct.cover.spec: cover-data-dir
7386	$(gen_verbose) printf "%s\n" \
7387		"{incl_app, '$(PROJECT)', details}." \
7388		"{incl_dirs, '$(PROJECT)', [\"$(call core_native_path,$(CURDIR)/ebin)\" \
7389			$(foreach a,$(COVER_APPS),$(comma) \"$(call core_native_path,$(APPS_DIR)/$a/ebin)\") \
7390			$(foreach d,$(COVER_DEPS),$(comma) \"$(call core_native_path,$(DEPS_DIR)/$d/ebin)\")]}." \
7391		'{export,"$(call core_native_path,$(abspath $(COVER_DATA_DIR))/ct.coverdata)"}.' > $@
7392
7393CT_RUN += -cover $(TEST_DIR)/ct.cover.spec
7394endif
7395endif
7396endif
7397
7398# Code coverage for other tools.
7399
7400ifdef COVER
7401define cover.erl
7402	CoverSetup = fun() ->
7403		Dirs = ["$(call core_native_path,$(CURDIR)/ebin)"
7404			$(foreach a,$(COVER_APPS),$(comma) "$(call core_native_path,$(APPS_DIR)/$a/ebin)")
7405			$(foreach d,$(COVER_DEPS),$(comma) "$(call core_native_path,$(DEPS_DIR)/$d/ebin)")],
7406		[begin
7407			case filelib:is_dir(Dir) of
7408				false -> false;
7409				true ->
7410					case cover:compile_beam_directory(Dir) of
7411						{error, _} -> halt(1);
7412						_ -> true
7413					end
7414			end
7415		end || Dir <- Dirs]
7416	end,
7417	CoverExport = fun(Filename) -> cover:export(Filename) end,
7418endef
7419else
7420define cover.erl
7421	CoverSetup = fun() -> ok end,
7422	CoverExport = fun(_) -> ok end,
7423endef
7424endif
7425
7426# Core targets
7427
7428ifdef COVER
7429ifneq ($(COVER_REPORT_DIR),)
7430tests::
7431	$(verbose) $(MAKE) --no-print-directory cover-report
7432endif
7433
7434cover-data-dir: | $(COVER_DATA_DIR)
7435
7436$(COVER_DATA_DIR):
7437	$(verbose) mkdir -p $(COVER_DATA_DIR)
7438else
7439cover-data-dir:
7440endif
7441
7442clean:: coverdata-clean
7443
7444ifneq ($(COVER_REPORT_DIR),)
7445distclean:: cover-report-clean
7446endif
7447
7448help::
7449	$(verbose) printf "%s\n" "" \
7450		"Cover targets:" \
7451		"  cover-report  Generate a HTML coverage report from previously collected" \
7452		"                cover data." \
7453		"  all.coverdata Merge all coverdata files into all.coverdata." \
7454		"" \
7455		"If COVER=1 is set, coverage data is generated by the targets eunit and ct. The" \
7456		"target tests additionally generates a HTML coverage report from the combined" \
7457		"coverdata files from each of these testing tools. HTML reports can be disabled" \
7458		"by setting COVER_REPORT_DIR to empty."
7459
7460# Plugin specific targets
7461
7462COVERDATA = $(filter-out $(COVER_DATA_DIR)/all.coverdata,$(wildcard $(COVER_DATA_DIR)/*.coverdata))
7463
7464.PHONY: coverdata-clean
7465coverdata-clean:
7466	$(gen_verbose) rm -f $(COVER_DATA_DIR)/*.coverdata $(TEST_DIR)/ct.cover.spec
7467
7468# Merge all coverdata files into one.
7469define cover_export.erl
7470	$(foreach f,$(COVERDATA),cover:import("$(f)") == ok orelse halt(1),)
7471	cover:export("$(COVER_DATA_DIR)/$@"), halt(0).
7472endef
7473
7474all.coverdata: $(COVERDATA) cover-data-dir
7475	$(gen_verbose) $(call erlang,$(cover_export.erl))
7476
7477# These are only defined if COVER_REPORT_DIR is non-empty. Set COVER_REPORT_DIR to
7478# empty if you want the coverdata files but not the HTML report.
7479ifneq ($(COVER_REPORT_DIR),)
7480
7481.PHONY: cover-report-clean cover-report
7482
7483cover-report-clean:
7484	$(gen_verbose) rm -rf $(COVER_REPORT_DIR)
7485ifneq ($(COVER_REPORT_DIR),$(COVER_DATA_DIR))
7486	$(if $(shell ls -A $(COVER_DATA_DIR)/),,$(verbose) rmdir $(COVER_DATA_DIR))
7487endif
7488
7489ifeq ($(COVERDATA),)
7490cover-report:
7491else
7492
7493# Modules which include eunit.hrl always contain one line without coverage
7494# because eunit defines test/0 which is never called. We compensate for this.
7495EUNIT_HRL_MODS = $(subst $(space),$(comma),$(shell \
7496	grep -H -e '^\s*-include.*include/eunit\.hrl"' src/*.erl \
7497	| sed "s/^src\/\(.*\)\.erl:.*/'\1'/" | uniq))
7498
7499define cover_report.erl
7500	$(foreach f,$(COVERDATA),cover:import("$(f)") == ok orelse halt(1),)
7501	Ms = cover:imported_modules(),
7502	[cover:analyse_to_file(M, "$(COVER_REPORT_DIR)/" ++ atom_to_list(M)
7503		++ ".COVER.html", [html])  || M <- Ms],
7504	Report = [begin {ok, R} = cover:analyse(M, module), R end || M <- Ms],
7505	EunitHrlMods = [$(EUNIT_HRL_MODS)],
7506	Report1 = [{M, {Y, case lists:member(M, EunitHrlMods) of
7507		true -> N - 1; false -> N end}} || {M, {Y, N}} <- Report],
7508	TotalY = lists:sum([Y || {_, {Y, _}} <- Report1]),
7509	TotalN = lists:sum([N || {_, {_, N}} <- Report1]),
7510	Perc = fun(Y, N) -> case Y + N of 0 -> 100; S -> round(100 * Y / S) end end,
7511	TotalPerc = Perc(TotalY, TotalN),
7512	{ok, F} = file:open("$(COVER_REPORT_DIR)/index.html", [write]),
7513	io:format(F, "<!DOCTYPE html><html>~n"
7514		"<head><meta charset=\"UTF-8\">~n"
7515		"<title>Coverage report</title></head>~n"
7516		"<body>~n", []),
7517	io:format(F, "<h1>Coverage</h1>~n<p>Total: ~p%</p>~n", [TotalPerc]),
7518	io:format(F, "<table><tr><th>Module</th><th>Coverage</th></tr>~n", []),
7519	[io:format(F, "<tr><td><a href=\"~p.COVER.html\">~p</a></td>"
7520		"<td>~p%</td></tr>~n",
7521		[M, M, Perc(Y, N)]) || {M, {Y, N}} <- Report1],
7522	How = "$(subst $(space),$(comma)$(space),$(basename $(COVERDATA)))",
7523	Date = "$(shell date -u "+%Y-%m-%dT%H:%M:%SZ")",
7524	io:format(F, "</table>~n"
7525		"<p>Generated using ~s and erlang.mk on ~s.</p>~n"
7526		"</body></html>", [How, Date]),
7527	halt().
7528endef
7529
7530cover-report:
7531	$(verbose) mkdir -p $(COVER_REPORT_DIR)
7532	$(gen_verbose) $(call erlang,$(cover_report.erl))
7533
7534endif
7535endif # ifneq ($(COVER_REPORT_DIR),)
7536
7537# Copyright (c) 2016, Loïc Hoguin <essen@ninenines.eu>
7538# This file is part of erlang.mk and subject to the terms of the ISC License.
7539
7540.PHONY: sfx
7541
7542ifdef RELX_REL
7543ifdef SFX
7544
7545# Configuration.
7546
7547SFX_ARCHIVE ?= $(RELX_OUTPUT_DIR)/$(RELX_REL_NAME)/$(RELX_REL_NAME)-$(RELX_REL_VSN).tar.gz
7548SFX_OUTPUT_FILE ?= $(RELX_OUTPUT_DIR)/$(RELX_REL_NAME).run
7549
7550# Core targets.
7551
7552rel:: sfx
7553
7554# Plugin-specific targets.
7555
7556define sfx_stub
7557#!/bin/sh
7558
7559TMPDIR=`mktemp -d`
7560ARCHIVE=`awk '/^__ARCHIVE_BELOW__$$/ {print NR + 1; exit 0;}' $$0`
7561FILENAME=$$(basename $$0)
7562REL=$${FILENAME%.*}
7563
7564tail -n+$$ARCHIVE $$0 | tar -xzf - -C $$TMPDIR
7565
7566$$TMPDIR/bin/$$REL console
7567RET=$$?
7568
7569rm -rf $$TMPDIR
7570
7571exit $$RET
7572
7573__ARCHIVE_BELOW__
7574endef
7575
7576sfx:
7577	$(verbose) $(call core_render,sfx_stub,$(SFX_OUTPUT_FILE))
7578	$(gen_verbose) cat $(SFX_ARCHIVE) >> $(SFX_OUTPUT_FILE)
7579	$(verbose) chmod +x $(SFX_OUTPUT_FILE)
7580
7581endif
7582endif
7583
7584# Copyright (c) 2013-2017, Loïc Hoguin <essen@ninenines.eu>
7585# This file is part of erlang.mk and subject to the terms of the ISC License.
7586
7587# External plugins.
7588
7589DEP_PLUGINS ?=
7590
7591$(foreach p,$(DEP_PLUGINS),\
7592	$(eval $(if $(findstring /,$p),\
7593		$(call core_dep_plugin,$p,$(firstword $(subst /, ,$p))),\
7594		$(call core_dep_plugin,$p/plugins.mk,$p))))
7595
7596help:: help-plugins
7597
7598help-plugins::
7599	$(verbose) :
7600
7601# Copyright (c) 2013-2015, Loïc Hoguin <essen@ninenines.eu>
7602# Copyright (c) 2015-2016, Jean-Sébastien Pédron <jean-sebastien@rabbitmq.com>
7603# This file is part of erlang.mk and subject to the terms of the ISC License.
7604
7605# Fetch dependencies recursively (without building them).
7606
7607.PHONY: fetch-deps fetch-doc-deps fetch-rel-deps fetch-test-deps \
7608	fetch-shell-deps
7609
7610.PHONY: $(ERLANG_MK_RECURSIVE_DEPS_LIST) \
7611	$(ERLANG_MK_RECURSIVE_DOC_DEPS_LIST) \
7612	$(ERLANG_MK_RECURSIVE_REL_DEPS_LIST) \
7613	$(ERLANG_MK_RECURSIVE_TEST_DEPS_LIST) \
7614	$(ERLANG_MK_RECURSIVE_SHELL_DEPS_LIST)
7615
7616fetch-deps: $(ERLANG_MK_RECURSIVE_DEPS_LIST)
7617fetch-doc-deps: $(ERLANG_MK_RECURSIVE_DOC_DEPS_LIST)
7618fetch-rel-deps: $(ERLANG_MK_RECURSIVE_REL_DEPS_LIST)
7619fetch-test-deps: $(ERLANG_MK_RECURSIVE_TEST_DEPS_LIST)
7620fetch-shell-deps: $(ERLANG_MK_RECURSIVE_SHELL_DEPS_LIST)
7621
7622ifneq ($(SKIP_DEPS),)
7623$(ERLANG_MK_RECURSIVE_DEPS_LIST) \
7624$(ERLANG_MK_RECURSIVE_DOC_DEPS_LIST) \
7625$(ERLANG_MK_RECURSIVE_REL_DEPS_LIST) \
7626$(ERLANG_MK_RECURSIVE_TEST_DEPS_LIST) \
7627$(ERLANG_MK_RECURSIVE_SHELL_DEPS_LIST):
7628	$(verbose) :> $@
7629else
7630# By default, we fetch "normal" dependencies. They are also included no
7631# matter the type of requested dependencies.
7632#
7633# $(ALL_DEPS_DIRS) includes $(BUILD_DEPS).
7634
7635$(ERLANG_MK_RECURSIVE_DEPS_LIST): $(LOCAL_DEPS_DIRS) $(ALL_DEPS_DIRS)
7636$(ERLANG_MK_RECURSIVE_DOC_DEPS_LIST): $(LOCAL_DEPS_DIRS) $(ALL_DEPS_DIRS) $(ALL_DOC_DEPS_DIRS)
7637$(ERLANG_MK_RECURSIVE_REL_DEPS_LIST): $(LOCAL_DEPS_DIRS) $(ALL_DEPS_DIRS) $(ALL_REL_DEPS_DIRS)
7638$(ERLANG_MK_RECURSIVE_TEST_DEPS_LIST): $(LOCAL_DEPS_DIRS) $(ALL_DEPS_DIRS) $(ALL_TEST_DEPS_DIRS)
7639$(ERLANG_MK_RECURSIVE_SHELL_DEPS_LIST): $(LOCAL_DEPS_DIRS) $(ALL_DEPS_DIRS) $(ALL_SHELL_DEPS_DIRS)
7640
7641# Allow to use fetch-deps and $(DEP_TYPES) to fetch multiple types of
7642# dependencies with a single target.
7643ifneq ($(filter doc,$(DEP_TYPES)),)
7644$(ERLANG_MK_RECURSIVE_DEPS_LIST): $(ALL_DOC_DEPS_DIRS)
7645endif
7646ifneq ($(filter rel,$(DEP_TYPES)),)
7647$(ERLANG_MK_RECURSIVE_DEPS_LIST): $(ALL_REL_DEPS_DIRS)
7648endif
7649ifneq ($(filter test,$(DEP_TYPES)),)
7650$(ERLANG_MK_RECURSIVE_DEPS_LIST): $(ALL_TEST_DEPS_DIRS)
7651endif
7652ifneq ($(filter shell,$(DEP_TYPES)),)
7653$(ERLANG_MK_RECURSIVE_DEPS_LIST): $(ALL_SHELL_DEPS_DIRS)
7654endif
7655
7656ERLANG_MK_RECURSIVE_TMP_LIST := $(abspath $(ERLANG_MK_TMP)/recursive-tmp-deps-$(shell echo $$PPID).log)
7657
7658$(ERLANG_MK_RECURSIVE_DEPS_LIST) \
7659$(ERLANG_MK_RECURSIVE_DOC_DEPS_LIST) \
7660$(ERLANG_MK_RECURSIVE_REL_DEPS_LIST) \
7661$(ERLANG_MK_RECURSIVE_TEST_DEPS_LIST) \
7662$(ERLANG_MK_RECURSIVE_SHELL_DEPS_LIST): | $(ERLANG_MK_TMP)
7663ifeq ($(IS_APP)$(IS_DEP),)
7664	$(verbose) rm -f $(ERLANG_MK_RECURSIVE_TMP_LIST)
7665endif
7666	$(verbose) touch $(ERLANG_MK_RECURSIVE_TMP_LIST)
7667	$(verbose) set -e; for dep in $^ ; do \
7668		if ! grep -qs ^$$dep$$ $(ERLANG_MK_RECURSIVE_TMP_LIST); then \
7669			echo $$dep >> $(ERLANG_MK_RECURSIVE_TMP_LIST); \
7670			if grep -qs -E "^[[:blank:]]*include[[:blank:]]+(erlang\.mk|.*/erlang\.mk|.*ERLANG_MK_FILENAME.*)$$" \
7671			 $$dep/GNUmakefile $$dep/makefile $$dep/Makefile; then \
7672				$(MAKE) -C $$dep fetch-deps \
7673				 IS_DEP=1 \
7674				 ERLANG_MK_RECURSIVE_TMP_LIST=$(ERLANG_MK_RECURSIVE_TMP_LIST); \
7675			fi \
7676		fi \
7677	done
7678ifeq ($(IS_APP)$(IS_DEP),)
7679	$(verbose) sort < $(ERLANG_MK_RECURSIVE_TMP_LIST) | \
7680		uniq > $(ERLANG_MK_RECURSIVE_TMP_LIST).sorted
7681	$(verbose) cmp -s $(ERLANG_MK_RECURSIVE_TMP_LIST).sorted $@ \
7682		|| mv $(ERLANG_MK_RECURSIVE_TMP_LIST).sorted $@
7683	$(verbose) rm -f $(ERLANG_MK_RECURSIVE_TMP_LIST).sorted
7684	$(verbose) rm $(ERLANG_MK_RECURSIVE_TMP_LIST)
7685endif
7686endif # ifneq ($(SKIP_DEPS),)
7687
7688# List dependencies recursively.
7689
7690.PHONY: list-deps list-doc-deps list-rel-deps list-test-deps \
7691	list-shell-deps
7692
7693list-deps: $(ERLANG_MK_RECURSIVE_DEPS_LIST)
7694list-doc-deps: $(ERLANG_MK_RECURSIVE_DOC_DEPS_LIST)
7695list-rel-deps: $(ERLANG_MK_RECURSIVE_REL_DEPS_LIST)
7696list-test-deps: $(ERLANG_MK_RECURSIVE_TEST_DEPS_LIST)
7697list-shell-deps: $(ERLANG_MK_RECURSIVE_SHELL_DEPS_LIST)
7698
7699list-deps list-doc-deps list-rel-deps list-test-deps list-shell-deps:
7700	$(verbose) cat $^
7701
7702# Query dependencies recursively.
7703
7704.PHONY: query-deps query-doc-deps query-rel-deps query-test-deps \
7705	query-shell-deps
7706
7707QUERY ?= name fetch_method repo version
7708
7709define query_target
7710$(1): $(2) clean-tmp-query.log
7711ifeq ($(IS_APP)$(IS_DEP),)
7712	$(verbose) rm -f $(4)
7713endif
7714	$(verbose) $(foreach dep,$(3),\
7715		echo $(PROJECT): $(foreach q,$(QUERY),$(call query_$(q),$(dep))) >> $(4) ;)
7716	$(if $(filter-out query-deps,$(1)),,\
7717		$(verbose) set -e; for dep in $(3) ; do \
7718			if grep -qs ^$$$$dep$$$$ $(ERLANG_MK_TMP)/query.log; then \
7719				:; \
7720			else \
7721				echo $$$$dep >> $(ERLANG_MK_TMP)/query.log; \
7722				$(MAKE) -C $(DEPS_DIR)/$$$$dep $$@ QUERY="$(QUERY)" IS_DEP=1 || true; \
7723			fi \
7724		done)
7725ifeq ($(IS_APP)$(IS_DEP),)
7726	$(verbose) touch $(4)
7727	$(verbose) cat $(4)
7728endif
7729endef
7730
7731clean-tmp-query.log:
7732ifeq ($(IS_DEP),)
7733	$(verbose) rm -f $(ERLANG_MK_TMP)/query.log
7734endif
7735
7736$(eval $(call query_target,query-deps,$(ERLANG_MK_RECURSIVE_DEPS_LIST),$(BUILD_DEPS) $(DEPS),$(ERLANG_MK_QUERY_DEPS_FILE)))
7737$(eval $(call query_target,query-doc-deps,$(ERLANG_MK_RECURSIVE_DOC_DEPS_LIST),$(DOC_DEPS),$(ERLANG_MK_QUERY_DOC_DEPS_FILE)))
7738$(eval $(call query_target,query-rel-deps,$(ERLANG_MK_RECURSIVE_REL_DEPS_LIST),$(REL_DEPS),$(ERLANG_MK_QUERY_REL_DEPS_FILE)))
7739$(eval $(call query_target,query-test-deps,$(ERLANG_MK_RECURSIVE_TEST_DEPS_LIST),$(TEST_DEPS),$(ERLANG_MK_QUERY_TEST_DEPS_FILE)))
7740$(eval $(call query_target,query-shell-deps,$(ERLANG_MK_RECURSIVE_SHELL_DEPS_LIST),$(SHELL_DEPS),$(ERLANG_MK_QUERY_SHELL_DEPS_FILE)))
7741