zf

zenflows testing
git clone https://s.sonu.ch/~srfsh/zf.git
Log | Files | Refs | Submodules | README | LICENSE

erlang.mk (270337B)


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