erlang.mk (268598B)
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 = 2020.03.05-27-g7f608c6-dirty 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 = never lose your childlike sense of wonder baby cuttlefish, promise me? 959 pkg_cuttlefish_homepage = https://github.com/basho/cuttlefish 960 pkg_cuttlefish_fetch = git 961 pkg_cuttlefish_repo = https://github.com/basho/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.5.1 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 HEX_CORE_GIT ?= https://github.com/hexpm/hex_core 4338 HEX_CORE_COMMIT ?= v0.7.0 4339 4340 PACKAGES += hex_core 4341 pkg_hex_core_name = hex_core 4342 pkg_hex_core_description = Reference implementation of Hex specifications 4343 pkg_hex_core_homepage = $(HEX_CORE_GIT) 4344 pkg_hex_core_fetch = git 4345 pkg_hex_core_repo = $(HEX_CORE_GIT) 4346 pkg_hex_core_commit = $(HEX_CORE_COMMIT) 4347 4348 # External "early" plugins (see core/plugins.mk for regular plugins). 4349 # They both use the core_dep_plugin macro. 4350 4351 define core_dep_plugin 4352 ifeq ($(2),$(PROJECT)) 4353 -include $$(patsubst $(PROJECT)/%,%,$(1)) 4354 else 4355 -include $(DEPS_DIR)/$(1) 4356 4357 $(DEPS_DIR)/$(1): $(DEPS_DIR)/$(2) ; 4358 endif 4359 endef 4360 4361 DEP_EARLY_PLUGINS ?= 4362 4363 $(foreach p,$(DEP_EARLY_PLUGINS),\ 4364 $(eval $(if $(findstring /,$p),\ 4365 $(call core_dep_plugin,$p,$(firstword $(subst /, ,$p))),\ 4366 $(call core_dep_plugin,$p/early-plugins.mk,$p)))) 4367 4368 # Query functions. 4369 4370 query_fetch_method = $(if $(dep_$(1)),$(call _qfm_dep,$(word 1,$(dep_$(1)))),$(call _qfm_pkg,$(1))) 4371 _qfm_dep = $(if $(dep_fetch_$(1)),$(1),$(if $(IS_DEP),legacy,fail)) 4372 _qfm_pkg = $(if $(pkg_$(1)_fetch),$(pkg_$(1)_fetch),fail) 4373 4374 query_name = $(if $(dep_$(1)),$(1),$(if $(pkg_$(1)_name),$(pkg_$(1)_name),$(1))) 4375 4376 query_repo = $(call _qr,$(1),$(call query_fetch_method,$(1))) 4377 _qr = $(if $(query_repo_$(2)),$(call query_repo_$(2),$(1)),$(call dep_repo,$(1))) 4378 4379 query_repo_default = $(if $(dep_$(1)),$(word 2,$(dep_$(1))),$(pkg_$(1)_repo)) 4380 query_repo_git = $(patsubst git://github.com/%,https://github.com/%,$(call query_repo_default,$(1))) 4381 query_repo_git-subfolder = $(call query_repo_git,$(1)) 4382 query_repo_git-submodule = - 4383 query_repo_hg = $(call query_repo_default,$(1)) 4384 query_repo_svn = $(call query_repo_default,$(1)) 4385 query_repo_cp = $(call query_repo_default,$(1)) 4386 query_repo_ln = $(call query_repo_default,$(1)) 4387 query_repo_hex = https://hex.pm/packages/$(if $(word 3,$(dep_$(1))),$(word 3,$(dep_$(1))),$(1)) 4388 query_repo_fail = - 4389 query_repo_legacy = - 4390 4391 query_version = $(call _qv,$(1),$(call query_fetch_method,$(1))) 4392 _qv = $(if $(query_version_$(2)),$(call query_version_$(2),$(1)),$(call dep_commit,$(1))) 4393 4394 query_version_default = $(if $(dep_$(1)_commit),$(dep_$(1)_commit),$(if $(dep_$(1)),$(word 3,$(dep_$(1))),$(pkg_$(1)_commit))) 4395 query_version_git = $(call query_version_default,$(1)) 4396 query_version_git-subfolder = $(call query_version_git,$(1)) 4397 query_version_git-submodule = - 4398 query_version_hg = $(call query_version_default,$(1)) 4399 query_version_svn = - 4400 query_version_cp = - 4401 query_version_ln = - 4402 query_version_hex = $(if $(dep_$(1)_commit),$(dep_$(1)_commit),$(if $(dep_$(1)),$(word 2,$(dep_$(1))),$(pkg_$(1)_commit))) 4403 query_version_fail = - 4404 query_version_legacy = - 4405 4406 query_extra = $(call _qe,$(1),$(call query_fetch_method,$(1))) 4407 _qe = $(if $(query_extra_$(2)),$(call query_extra_$(2),$(1)),-) 4408 4409 query_extra_git = - 4410 query_extra_git-subfolder = $(if $(dep_$(1)),subfolder=$(word 4,$(dep_$(1))),-) 4411 query_extra_git-submodule = - 4412 query_extra_hg = - 4413 query_extra_svn = - 4414 query_extra_cp = - 4415 query_extra_ln = - 4416 query_extra_hex = $(if $(dep_$(1)),package-name=$(word 3,$(dep_$(1))),-) 4417 query_extra_fail = - 4418 query_extra_legacy = - 4419 4420 query_absolute_path = $(addprefix $(DEPS_DIR)/,$(call query_name,$(1))) 4421 4422 # Deprecated legacy query functions. 4423 dep_fetch = $(call query_fetch_method,$(1)) 4424 dep_name = $(call query_name,$(1)) 4425 dep_repo = $(call query_repo_git,$(1)) 4426 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))) 4427 4428 LOCAL_DEPS_DIRS = $(foreach a,$(LOCAL_DEPS),$(if $(wildcard $(APPS_DIR)/$(a)),$(APPS_DIR)/$(a))) 4429 ALL_DEPS_DIRS = $(addprefix $(DEPS_DIR)/,$(foreach dep,$(filter-out $(IGNORE_DEPS),$(BUILD_DEPS) $(DEPS)),$(call dep_name,$(dep)))) 4430 4431 # When we are calling an app directly we don't want to include it here 4432 # otherwise it'll be treated both as an apps and a top-level project. 4433 ALL_APPS_DIRS = $(if $(wildcard $(APPS_DIR)/),$(filter-out $(APPS_DIR),$(shell find $(APPS_DIR) -maxdepth 1 -type d))) 4434 ifdef ROOT_DIR 4435 ifndef IS_APP 4436 ALL_APPS_DIRS := $(filter-out $(APPS_DIR)/$(notdir $(CURDIR)),$(ALL_APPS_DIRS)) 4437 endif 4438 endif 4439 4440 ifeq ($(filter $(APPS_DIR) $(DEPS_DIR),$(subst :, ,$(ERL_LIBS))),) 4441 ifeq ($(ERL_LIBS),) 4442 ERL_LIBS = $(APPS_DIR):$(DEPS_DIR) 4443 else 4444 ERL_LIBS := $(ERL_LIBS):$(APPS_DIR):$(DEPS_DIR) 4445 endif 4446 endif 4447 export ERL_LIBS 4448 4449 export NO_AUTOPATCH 4450 4451 # Verbosity. 4452 4453 dep_verbose_0 = @echo " DEP $1 ($(call dep_commit,$1))"; 4454 dep_verbose_2 = set -x; 4455 dep_verbose = $(dep_verbose_$(V)) 4456 4457 # Optimization: don't recompile deps unless truly necessary. 4458 4459 ifndef IS_DEP 4460 ifneq ($(MAKELEVEL),0) 4461 $(shell rm -f ebin/dep_built) 4462 endif 4463 endif 4464 4465 # Core targets. 4466 4467 ALL_APPS_DIRS_TO_BUILD = $(if $(LOCAL_DEPS_DIRS)$(IS_APP),$(LOCAL_DEPS_DIRS),$(ALL_APPS_DIRS)) 4468 4469 apps:: $(ALL_APPS_DIRS) clean-tmp-deps.log | $(ERLANG_MK_TMP) 4470 # Create ebin directory for all apps to make sure Erlang recognizes them 4471 # as proper OTP applications when using -include_lib. This is a temporary 4472 # fix, a proper fix would be to compile apps/* in the right order. 4473 ifndef IS_APP 4474 ifneq ($(ALL_APPS_DIRS),) 4475 $(verbose) set -e; for dep in $(ALL_APPS_DIRS) ; do \ 4476 mkdir -p $$dep/ebin; \ 4477 done 4478 endif 4479 endif 4480 # At the toplevel: if LOCAL_DEPS is defined with at least one local app, only 4481 # compile that list of apps. Otherwise, compile everything. 4482 # Within an app: compile all LOCAL_DEPS that are (uncompiled) local apps. 4483 ifneq ($(ALL_APPS_DIRS_TO_BUILD),) 4484 $(verbose) set -e; for dep in $(ALL_APPS_DIRS_TO_BUILD); do \ 4485 if grep -qs ^$$dep$$ $(ERLANG_MK_TMP)/apps.log; then \ 4486 :; \ 4487 else \ 4488 echo $$dep >> $(ERLANG_MK_TMP)/apps.log; \ 4489 $(MAKE) -C $$dep $(if $(IS_TEST),test-build-app) IS_APP=1; \ 4490 fi \ 4491 done 4492 endif 4493 4494 clean-tmp-deps.log: 4495 ifeq ($(IS_APP)$(IS_DEP),) 4496 $(verbose) rm -f $(ERLANG_MK_TMP)/apps.log $(ERLANG_MK_TMP)/deps.log 4497 endif 4498 4499 # Erlang.mk does not rebuild dependencies after they were compiled 4500 # once. If a developer is working on the top-level project and some 4501 # dependencies at the same time, he may want to change this behavior. 4502 # There are two solutions: 4503 # 1. Set `FULL=1` so that all dependencies are visited and 4504 # recursively recompiled if necessary. 4505 # 2. Set `FORCE_REBUILD=` to the specific list of dependencies that 4506 # should be recompiled (instead of the whole set). 4507 4508 FORCE_REBUILD ?= 4509 4510 ifeq ($(origin FULL),undefined) 4511 ifneq ($(strip $(force_rebuild_dep)$(FORCE_REBUILD)),) 4512 define force_rebuild_dep 4513 echo "$(FORCE_REBUILD)" | grep -qw "$$(basename "$1")" 4514 endef 4515 endif 4516 endif 4517 4518 ifneq ($(SKIP_DEPS),) 4519 deps:: 4520 else 4521 deps:: $(ALL_DEPS_DIRS) apps clean-tmp-deps.log | $(ERLANG_MK_TMP) 4522 ifneq ($(ALL_DEPS_DIRS),) 4523 $(verbose) set -e; for dep in $(ALL_DEPS_DIRS); do \ 4524 if grep -qs ^$$dep$$ $(ERLANG_MK_TMP)/deps.log; then \ 4525 :; \ 4526 else \ 4527 echo $$dep >> $(ERLANG_MK_TMP)/deps.log; \ 4528 if [ -z "$(strip $(FULL))" ] $(if $(force_rebuild_dep),&& ! ($(call force_rebuild_dep,$$dep)),) && [ ! -L $$dep ] && [ -f $$dep/ebin/dep_built ]; then \ 4529 :; \ 4530 elif [ -f $$dep/GNUmakefile ] || [ -f $$dep/makefile ] || [ -f $$dep/Makefile ]; then \ 4531 $(MAKE) -C $$dep IS_DEP=1; \ 4532 if [ ! -L $$dep ] && [ -d $$dep/ebin ]; then touch $$dep/ebin/dep_built; fi; \ 4533 else \ 4534 echo "Error: No Makefile to build dependency $$dep." >&2; \ 4535 exit 2; \ 4536 fi \ 4537 fi \ 4538 done 4539 endif 4540 endif 4541 4542 # Deps related targets. 4543 4544 # @todo rename GNUmakefile and makefile into Makefile first, if they exist 4545 # While Makefile file could be GNUmakefile or makefile, 4546 # in practice only Makefile is needed so far. 4547 define dep_autopatch 4548 if [ -f $(DEPS_DIR)/$(1)/erlang.mk ]; then \ 4549 rm -rf $(DEPS_DIR)/$1/ebin/; \ 4550 $(call erlang,$(call dep_autopatch_appsrc.erl,$(1))); \ 4551 $(call dep_autopatch_erlang_mk,$(1)); \ 4552 elif [ -f $(DEPS_DIR)/$(1)/Makefile ]; then \ 4553 if [ -f $(DEPS_DIR)/$1/rebar.lock ]; then \ 4554 $(call dep_autopatch2,$1); \ 4555 elif [ 0 != `grep -c "include ../\w*\.mk" $(DEPS_DIR)/$(1)/Makefile` ]; then \ 4556 $(call dep_autopatch2,$(1)); \ 4557 elif [ 0 != `grep -ci "^[^#].*rebar" $(DEPS_DIR)/$(1)/Makefile` ]; then \ 4558 $(call dep_autopatch2,$(1)); \ 4559 elif [ -n "`find $(DEPS_DIR)/$(1)/ -type f -name \*.mk -not -name erlang.mk -exec grep -i "^[^#].*rebar" '{}' \;`" ]; then \ 4560 $(call dep_autopatch2,$(1)); \ 4561 fi \ 4562 else \ 4563 if [ ! -d $(DEPS_DIR)/$(1)/src/ ]; then \ 4564 $(call dep_autopatch_noop,$(1)); \ 4565 else \ 4566 $(call dep_autopatch2,$(1)); \ 4567 fi \ 4568 fi 4569 endef 4570 4571 define dep_autopatch2 4572 ! test -f $(DEPS_DIR)/$1/ebin/$1.app || \ 4573 mv -n $(DEPS_DIR)/$1/ebin/$1.app $(DEPS_DIR)/$1/src/$1.app.src; \ 4574 rm -f $(DEPS_DIR)/$1/ebin/$1.app; \ 4575 if [ -f $(DEPS_DIR)/$1/src/$1.app.src.script ]; then \ 4576 $(call erlang,$(call dep_autopatch_appsrc_script.erl,$(1))); \ 4577 fi; \ 4578 $(call erlang,$(call dep_autopatch_appsrc.erl,$(1))); \ 4579 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 \ 4580 $(call dep_autopatch_fetch_rebar); \ 4581 $(call dep_autopatch_rebar,$(1)); \ 4582 else \ 4583 $(call dep_autopatch_gen,$(1)); \ 4584 fi 4585 endef 4586 4587 define dep_autopatch_noop 4588 printf "noop:\n" > $(DEPS_DIR)/$(1)/Makefile 4589 endef 4590 4591 # Replace "include erlang.mk" with a line that will load the parent Erlang.mk 4592 # if given. Do it for all 3 possible Makefile file names. 4593 ifeq ($(NO_AUTOPATCH_ERLANG_MK),) 4594 define dep_autopatch_erlang_mk 4595 for f in Makefile makefile GNUmakefile; do \ 4596 if [ -f $(DEPS_DIR)/$1/$$f ]; then \ 4597 sed -i.bak s/'include *erlang.mk'/'include $$(if $$(ERLANG_MK_FILENAME),$$(ERLANG_MK_FILENAME),erlang.mk)'/ $(DEPS_DIR)/$1/$$f; \ 4598 fi \ 4599 done 4600 endef 4601 else 4602 define dep_autopatch_erlang_mk 4603 : 4604 endef 4605 endif 4606 4607 define dep_autopatch_gen 4608 printf "%s\n" \ 4609 "ERLC_OPTS = +debug_info" \ 4610 "include ../../erlang.mk" > $(DEPS_DIR)/$(1)/Makefile 4611 endef 4612 4613 # We use flock/lockf when available to avoid concurrency issues. 4614 define dep_autopatch_fetch_rebar 4615 if command -v flock >/dev/null; then \ 4616 flock $(ERLANG_MK_TMP)/rebar.lock sh -c "$(call dep_autopatch_fetch_rebar2)"; \ 4617 elif command -v lockf >/dev/null; then \ 4618 lockf $(ERLANG_MK_TMP)/rebar.lock sh -c "$(call dep_autopatch_fetch_rebar2)"; \ 4619 else \ 4620 $(call dep_autopatch_fetch_rebar2); \ 4621 fi 4622 endef 4623 4624 define dep_autopatch_fetch_rebar2 4625 if [ ! -d $(ERLANG_MK_TMP)/rebar ]; then \ 4626 git clone -q -n -- $(REBAR_GIT) $(ERLANG_MK_TMP)/rebar; \ 4627 cd $(ERLANG_MK_TMP)/rebar; \ 4628 git checkout -q $(REBAR_COMMIT); \ 4629 ./bootstrap; \ 4630 cd -; \ 4631 fi 4632 endef 4633 4634 define dep_autopatch_rebar 4635 if [ -f $(DEPS_DIR)/$(1)/Makefile ]; then \ 4636 mv $(DEPS_DIR)/$(1)/Makefile $(DEPS_DIR)/$(1)/Makefile.orig.mk; \ 4637 fi; \ 4638 $(call erlang,$(call dep_autopatch_rebar.erl,$(1))); \ 4639 rm -f $(DEPS_DIR)/$(1)/ebin/$(1).app 4640 endef 4641 4642 define dep_autopatch_rebar.erl 4643 application:load(rebar), 4644 application:set_env(rebar, log_level, debug), 4645 rmemo:start(), 4646 Conf1 = case file:consult("$(call core_native_path,$(DEPS_DIR)/$1/rebar.config)") of 4647 {ok, Conf0} -> Conf0; 4648 _ -> [] 4649 end, 4650 {Conf, OsEnv} = fun() -> 4651 case filelib:is_file("$(call core_native_path,$(DEPS_DIR)/$1/rebar.config.script)") of 4652 false -> {Conf1, []}; 4653 true -> 4654 Bindings0 = erl_eval:new_bindings(), 4655 Bindings1 = erl_eval:add_binding('CONFIG', Conf1, Bindings0), 4656 Bindings = erl_eval:add_binding('SCRIPT', "$(call core_native_path,$(DEPS_DIR)/$1/rebar.config.script)", Bindings1), 4657 Before = os:getenv(), 4658 {ok, Conf2} = file:script("$(call core_native_path,$(DEPS_DIR)/$1/rebar.config.script)", Bindings), 4659 {Conf2, lists:foldl(fun(E, Acc) -> lists:delete(E, Acc) end, os:getenv(), Before)} 4660 end 4661 end(), 4662 Write = fun (Text) -> 4663 file:write_file("$(call core_native_path,$(DEPS_DIR)/$1/Makefile)", Text, [append]) 4664 end, 4665 Escape = fun (Text) -> 4666 re:replace(Text, "\\\\$$", "\$$$$", [global, {return, list}]) 4667 end, 4668 Write("IGNORE_DEPS += edown eper eunit_formatters meck node_package " 4669 "rebar_lock_deps_plugin rebar_vsn_plugin reltool_util\n"), 4670 Write("C_SRC_DIR = /path/do/not/exist\n"), 4671 Write("C_SRC_TYPE = rebar\n"), 4672 Write("DRV_CFLAGS = -fPIC\nexport DRV_CFLAGS\n"), 4673 Write(["ERLANG_ARCH = ", rebar_utils:wordsize(), "\nexport ERLANG_ARCH\n"]), 4674 ToList = fun 4675 (V) when is_atom(V) -> atom_to_list(V); 4676 (V) when is_list(V) -> "'\\"" ++ V ++ "\\"'" 4677 end, 4678 fun() -> 4679 Write("ERLC_OPTS = +debug_info\nexport ERLC_OPTS\n"), 4680 case lists:keyfind(erl_opts, 1, Conf) of 4681 false -> ok; 4682 {_, ErlOpts} -> 4683 lists:foreach(fun 4684 ({d, D}) -> 4685 Write("ERLC_OPTS += -D" ++ ToList(D) ++ "=1\n"); 4686 ({d, DKey, DVal}) -> 4687 Write("ERLC_OPTS += -D" ++ ToList(DKey) ++ "=" ++ ToList(DVal) ++ "\n"); 4688 ({i, I}) -> 4689 Write(["ERLC_OPTS += -I ", I, "\n"]); 4690 ({platform_define, Regex, D}) -> 4691 case rebar_utils:is_arch(Regex) of 4692 true -> Write("ERLC_OPTS += -D" ++ ToList(D) ++ "=1\n"); 4693 false -> ok 4694 end; 4695 ({parse_transform, PT}) -> 4696 Write("ERLC_OPTS += +'{parse_transform, " ++ ToList(PT) ++ "}'\n"); 4697 (_) -> ok 4698 end, ErlOpts) 4699 end, 4700 Write("\n") 4701 end(), 4702 GetHexVsn = fun(N, NP) -> 4703 case file:consult("$(call core_native_path,$(DEPS_DIR)/$1/rebar.lock)") of 4704 {ok, Lock} -> 4705 io:format("~p~n", [Lock]), 4706 case lists:keyfind("1.1.0", 1, Lock) of 4707 {_, 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 _ -> 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 # @todo Handle errors. 5031 define dep_fetch_hex.erl 5032 {ok, _} = application:ensure_all_started(ssl), 5033 {ok, _} = application:ensure_all_started(inets), 5034 Config = hex_core:default_config(), 5035 {ok, {200, #{}, Tarball}} = hex_repo:get_tarball(Config, <<"$(strip $3)">>, <<"$(strip $2)">>), 5036 {ok, #{}} = hex_tarball:unpack(Tarball, "$(DEPS_DIR)/$1"), 5037 halt(0) 5038 endef 5039 5040 # Hex only has a package version. No need to look in the Erlang.mk packages. 5041 define dep_fetch_hex 5042 if [ ! -e $(DEPS_DIR)/hex_core ]; then \ 5043 echo "Error: Dependency hex_core missing. BUILD_DEPS += hex_core to fix." >&2; \ 5044 exit 81; \ 5045 fi; \ 5046 if [ ! -e $(DEPS_DIR)/hex_core/ebin/dep_built ]; then \ 5047 $(MAKE) -C $(DEPS_DIR)/hex_core IS_DEP=1; \ 5048 touch $(DEPS_DIR)/hex_core/ebin/dep_built; \ 5049 fi; \ 5050 $(call erlang,$(call dep_fetch_hex.erl,$1,$(word 2,$(dep_$1)),\ 5051 $(if $(word 3,$(dep_$1)),$(word 3,$(dep_$1)),$1))); 5052 endef 5053 5054 define dep_fetch_fail 5055 echo "Error: Unknown or invalid dependency: $(1)." >&2; \ 5056 exit 78; 5057 endef 5058 5059 # Kept for compatibility purposes with older Erlang.mk configuration. 5060 define dep_fetch_legacy 5061 $(warning WARNING: '$(1)' dependency configuration uses deprecated format.) \ 5062 git clone -q -n -- $(word 1,$(dep_$(1))) $(DEPS_DIR)/$(1); \ 5063 cd $(DEPS_DIR)/$(1) && git checkout -q $(if $(word 2,$(dep_$(1))),$(word 2,$(dep_$(1))),master); 5064 endef 5065 5066 define dep_target 5067 $(DEPS_DIR)/$(call dep_name,$1): | $(ERLANG_MK_TMP) 5068 $(eval DEP_NAME := $(call dep_name,$1)) 5069 $(eval DEP_STR := $(if $(filter $1,$(DEP_NAME)),$1,"$1 ($(DEP_NAME))")) 5070 $(verbose) if test -d $(APPS_DIR)/$(DEP_NAME); then \ 5071 echo "Error: Dependency" $(DEP_STR) "conflicts with application found in $(APPS_DIR)/$(DEP_NAME)." >&2; \ 5072 exit 17; \ 5073 fi 5074 $(verbose) mkdir -p $(DEPS_DIR) 5075 $(dep_verbose) $(call dep_fetch_$(strip $(call dep_fetch,$(1))),$(1)) 5076 $(verbose) if [ -f $(DEPS_DIR)/$(1)/configure.ac -o -f $(DEPS_DIR)/$(1)/configure.in ] \ 5077 && [ ! -f $(DEPS_DIR)/$(1)/configure ]; then \ 5078 echo " AUTO " $(DEP_STR); \ 5079 cd $(DEPS_DIR)/$(1) && autoreconf -Wall -vif -I m4; \ 5080 fi 5081 - $(verbose) if [ -f $(DEPS_DIR)/$(DEP_NAME)/configure ]; then \ 5082 echo " CONF " $(DEP_STR); \ 5083 cd $(DEPS_DIR)/$(DEP_NAME) && ./configure; \ 5084 fi 5085 ifeq ($(filter $(1),$(NO_AUTOPATCH)),) 5086 $(verbose) $$(MAKE) --no-print-directory autopatch-$(DEP_NAME) 5087 endif 5088 5089 .PHONY: autopatch-$(call dep_name,$1) 5090 5091 autopatch-$(call dep_name,$1):: 5092 $(verbose) if [ "$(1)" = "amqp_client" -a "$(RABBITMQ_CLIENT_PATCH)" ]; then \ 5093 if [ ! -d $(DEPS_DIR)/rabbitmq-codegen ]; then \ 5094 echo " PATCH Downloading rabbitmq-codegen"; \ 5095 git clone https://github.com/rabbitmq/rabbitmq-codegen.git $(DEPS_DIR)/rabbitmq-codegen; \ 5096 fi; \ 5097 if [ ! -d $(DEPS_DIR)/rabbitmq-server ]; then \ 5098 echo " PATCH Downloading rabbitmq-server"; \ 5099 git clone https://github.com/rabbitmq/rabbitmq-server.git $(DEPS_DIR)/rabbitmq-server; \ 5100 fi; \ 5101 ln -s $(DEPS_DIR)/amqp_client/deps/rabbit_common-0.0.0 $(DEPS_DIR)/rabbit_common; \ 5102 elif [ "$(1)" = "rabbit" -a "$(RABBITMQ_SERVER_PATCH)" ]; then \ 5103 if [ ! -d $(DEPS_DIR)/rabbitmq-codegen ]; then \ 5104 echo " PATCH Downloading rabbitmq-codegen"; \ 5105 git clone https://github.com/rabbitmq/rabbitmq-codegen.git $(DEPS_DIR)/rabbitmq-codegen; \ 5106 fi \ 5107 elif [ "$1" = "elixir" -a "$(ELIXIR_PATCH)" ]; then \ 5108 ln -s lib/elixir/ebin $(DEPS_DIR)/elixir/; \ 5109 else \ 5110 $$(call dep_autopatch,$(call dep_name,$1)) \ 5111 fi 5112 endef 5113 5114 $(foreach dep,$(BUILD_DEPS) $(DEPS),$(eval $(call dep_target,$(dep)))) 5115 5116 ifndef IS_APP 5117 clean:: clean-apps 5118 5119 clean-apps: 5120 $(verbose) set -e; for dep in $(ALL_APPS_DIRS) ; do \ 5121 $(MAKE) -C $$dep clean IS_APP=1; \ 5122 done 5123 5124 distclean:: distclean-apps 5125 5126 distclean-apps: 5127 $(verbose) set -e; for dep in $(ALL_APPS_DIRS) ; do \ 5128 $(MAKE) -C $$dep distclean IS_APP=1; \ 5129 done 5130 endif 5131 5132 ifndef SKIP_DEPS 5133 distclean:: distclean-deps 5134 5135 distclean-deps: 5136 $(gen_verbose) rm -rf $(DEPS_DIR) 5137 endif 5138 5139 # Forward-declare variables used in core/deps-tools.mk. This is required 5140 # in case plugins use them. 5141 5142 ERLANG_MK_RECURSIVE_DEPS_LIST = $(ERLANG_MK_TMP)/recursive-deps-list.log 5143 ERLANG_MK_RECURSIVE_DOC_DEPS_LIST = $(ERLANG_MK_TMP)/recursive-doc-deps-list.log 5144 ERLANG_MK_RECURSIVE_REL_DEPS_LIST = $(ERLANG_MK_TMP)/recursive-rel-deps-list.log 5145 ERLANG_MK_RECURSIVE_TEST_DEPS_LIST = $(ERLANG_MK_TMP)/recursive-test-deps-list.log 5146 ERLANG_MK_RECURSIVE_SHELL_DEPS_LIST = $(ERLANG_MK_TMP)/recursive-shell-deps-list.log 5147 5148 ERLANG_MK_QUERY_DEPS_FILE = $(ERLANG_MK_TMP)/query-deps.log 5149 ERLANG_MK_QUERY_DOC_DEPS_FILE = $(ERLANG_MK_TMP)/query-doc-deps.log 5150 ERLANG_MK_QUERY_REL_DEPS_FILE = $(ERLANG_MK_TMP)/query-rel-deps.log 5151 ERLANG_MK_QUERY_TEST_DEPS_FILE = $(ERLANG_MK_TMP)/query-test-deps.log 5152 ERLANG_MK_QUERY_SHELL_DEPS_FILE = $(ERLANG_MK_TMP)/query-shell-deps.log 5153 5154 # Copyright (c) 2013-2016, Loïc Hoguin <essen@ninenines.eu> 5155 # This file is part of erlang.mk and subject to the terms of the ISC License. 5156 5157 .PHONY: clean-app 5158 5159 # Configuration. 5160 5161 ERLC_OPTS ?= -Werror +debug_info +warn_export_vars +warn_shadow_vars \ 5162 +warn_obsolete_guard # +bin_opt_info +warn_export_all +warn_missing_spec 5163 COMPILE_FIRST ?= 5164 COMPILE_FIRST_PATHS = $(addprefix src/,$(addsuffix .erl,$(COMPILE_FIRST))) 5165 ERLC_EXCLUDE ?= 5166 ERLC_EXCLUDE_PATHS = $(addprefix src/,$(addsuffix .erl,$(ERLC_EXCLUDE))) 5167 5168 ERLC_ASN1_OPTS ?= 5169 5170 ERLC_MIB_OPTS ?= 5171 COMPILE_MIB_FIRST ?= 5172 COMPILE_MIB_FIRST_PATHS = $(addprefix mibs/,$(addsuffix .mib,$(COMPILE_MIB_FIRST))) 5173 5174 # Verbosity. 5175 5176 app_verbose_0 = @echo " APP " $(PROJECT); 5177 app_verbose_2 = set -x; 5178 app_verbose = $(app_verbose_$(V)) 5179 5180 appsrc_verbose_0 = @echo " APP " $(PROJECT).app.src; 5181 appsrc_verbose_2 = set -x; 5182 appsrc_verbose = $(appsrc_verbose_$(V)) 5183 5184 makedep_verbose_0 = @echo " DEPEND" $(PROJECT).d; 5185 makedep_verbose_2 = set -x; 5186 makedep_verbose = $(makedep_verbose_$(V)) 5187 5188 erlc_verbose_0 = @echo " ERLC " $(filter-out $(patsubst %,%.erl,$(ERLC_EXCLUDE)),\ 5189 $(filter %.erl %.core,$(?F))); 5190 erlc_verbose_2 = set -x; 5191 erlc_verbose = $(erlc_verbose_$(V)) 5192 5193 xyrl_verbose_0 = @echo " XYRL " $(filter %.xrl %.yrl,$(?F)); 5194 xyrl_verbose_2 = set -x; 5195 xyrl_verbose = $(xyrl_verbose_$(V)) 5196 5197 asn1_verbose_0 = @echo " ASN1 " $(filter %.asn1,$(?F)); 5198 asn1_verbose_2 = set -x; 5199 asn1_verbose = $(asn1_verbose_$(V)) 5200 5201 mib_verbose_0 = @echo " MIB " $(filter %.bin %.mib,$(?F)); 5202 mib_verbose_2 = set -x; 5203 mib_verbose = $(mib_verbose_$(V)) 5204 5205 ifneq ($(wildcard src/),) 5206 5207 # Targets. 5208 5209 app:: $(if $(wildcard ebin/test),clean) deps 5210 $(verbose) $(MAKE) --no-print-directory $(PROJECT).d 5211 $(verbose) $(MAKE) --no-print-directory app-build 5212 5213 ifeq ($(wildcard src/$(PROJECT_MOD).erl),) 5214 define app_file 5215 {application, '$(PROJECT)', [ 5216 {description, "$(PROJECT_DESCRIPTION)"}, 5217 {vsn, "$(PROJECT_VERSION)"},$(if $(IS_DEP), 5218 {id$(comma)$(space)"$(1)"}$(comma)) 5219 {modules, [$(call comma_list,$(2))]}, 5220 {registered, []}, 5221 {applications, [$(call comma_list,kernel stdlib $(OTP_DEPS) $(LOCAL_DEPS) $(foreach dep,$(DEPS),$(call dep_name,$(dep))))]}, 5222 {env, $(subst \,\\,$(PROJECT_ENV))}$(if $(findstring {,$(PROJECT_APP_EXTRA_KEYS)),$(comma)$(newline)$(tab)$(subst \,\\,$(PROJECT_APP_EXTRA_KEYS)),) 5223 ]}. 5224 endef 5225 else 5226 define app_file 5227 {application, '$(PROJECT)', [ 5228 {description, "$(PROJECT_DESCRIPTION)"}, 5229 {vsn, "$(PROJECT_VERSION)"},$(if $(IS_DEP), 5230 {id$(comma)$(space)"$(1)"}$(comma)) 5231 {modules, [$(call comma_list,$(2))]}, 5232 {registered, [$(call comma_list,$(PROJECT)_sup $(PROJECT_REGISTERED))]}, 5233 {applications, [$(call comma_list,kernel stdlib $(OTP_DEPS) $(LOCAL_DEPS) $(foreach dep,$(DEPS),$(call dep_name,$(dep))))]}, 5234 {mod, {$(PROJECT_MOD), []}}, 5235 {env, $(subst \,\\,$(PROJECT_ENV))}$(if $(findstring {,$(PROJECT_APP_EXTRA_KEYS)),$(comma)$(newline)$(tab)$(subst \,\\,$(PROJECT_APP_EXTRA_KEYS)),) 5236 ]}. 5237 endef 5238 endif 5239 5240 app-build: ebin/$(PROJECT).app 5241 $(verbose) : 5242 5243 # Source files. 5244 5245 ALL_SRC_FILES := $(sort $(call core_find,src/,*)) 5246 5247 ERL_FILES := $(filter %.erl,$(ALL_SRC_FILES)) 5248 CORE_FILES := $(filter %.core,$(ALL_SRC_FILES)) 5249 5250 # ASN.1 files. 5251 5252 ifneq ($(wildcard asn1/),) 5253 ASN1_FILES = $(sort $(call core_find,asn1/,*.asn1)) 5254 ERL_FILES += $(addprefix src/,$(patsubst %.asn1,%.erl,$(notdir $(ASN1_FILES)))) 5255 5256 define compile_asn1 5257 $(verbose) mkdir -p include/ 5258 $(asn1_verbose) erlc -v -I include/ -o asn1/ +noobj $(ERLC_ASN1_OPTS) $(1) 5259 $(verbose) mv asn1/*.erl src/ 5260 -$(verbose) mv asn1/*.hrl include/ 5261 $(verbose) mv asn1/*.asn1db include/ 5262 endef 5263 5264 $(PROJECT).d:: $(ASN1_FILES) 5265 $(if $(strip $?),$(call compile_asn1,$?)) 5266 endif 5267 5268 # SNMP MIB files. 5269 5270 ifneq ($(wildcard mibs/),) 5271 MIB_FILES = $(sort $(call core_find,mibs/,*.mib)) 5272 5273 $(PROJECT).d:: $(COMPILE_MIB_FIRST_PATHS) $(MIB_FILES) 5274 $(verbose) mkdir -p include/ priv/mibs/ 5275 $(mib_verbose) erlc -v $(ERLC_MIB_OPTS) -o priv/mibs/ -I priv/mibs/ $? 5276 $(mib_verbose) erlc -o include/ -- $(addprefix priv/mibs/,$(patsubst %.mib,%.bin,$(notdir $?))) 5277 endif 5278 5279 # Leex and Yecc files. 5280 5281 XRL_FILES := $(filter %.xrl,$(ALL_SRC_FILES)) 5282 XRL_ERL_FILES = $(addprefix src/,$(patsubst %.xrl,%.erl,$(notdir $(XRL_FILES)))) 5283 ERL_FILES += $(XRL_ERL_FILES) 5284 5285 YRL_FILES := $(filter %.yrl,$(ALL_SRC_FILES)) 5286 YRL_ERL_FILES = $(addprefix src/,$(patsubst %.yrl,%.erl,$(notdir $(YRL_FILES)))) 5287 ERL_FILES += $(YRL_ERL_FILES) 5288 5289 $(PROJECT).d:: $(XRL_FILES) $(YRL_FILES) 5290 $(if $(strip $?),$(xyrl_verbose) erlc -v -o src/ $(YRL_ERLC_OPTS) $?) 5291 5292 # Erlang and Core Erlang files. 5293 5294 define makedep.erl 5295 E = ets:new(makedep, [bag]), 5296 G = digraph:new([acyclic]), 5297 ErlFiles = lists:usort(string:tokens("$(ERL_FILES)", " ")), 5298 DepsDir = "$(call core_native_path,$(DEPS_DIR))", 5299 AppsDir = "$(call core_native_path,$(APPS_DIR))", 5300 DepsDirsSrc = "$(if $(wildcard $(DEPS_DIR)/*/src), $(call core_native_path,$(wildcard $(DEPS_DIR)/*/src)))", 5301 DepsDirsInc = "$(if $(wildcard $(DEPS_DIR)/*/include), $(call core_native_path,$(wildcard $(DEPS_DIR)/*/include)))", 5302 AppsDirsSrc = "$(if $(wildcard $(APPS_DIR)/*/src), $(call core_native_path,$(wildcard $(APPS_DIR)/*/src)))", 5303 AppsDirsInc = "$(if $(wildcard $(APPS_DIR)/*/include), $(call core_native_path,$(wildcard $(APPS_DIR)/*/include)))", 5304 DepsDirs = lists:usort(string:tokens(DepsDirsSrc++DepsDirsInc, " ")), 5305 AppsDirs = lists:usort(string:tokens(AppsDirsSrc++AppsDirsInc, " ")), 5306 Modules = [{list_to_atom(filename:basename(F, ".erl")), F} || F <- ErlFiles], 5307 Add = fun (Mod, Dep) -> 5308 case lists:keyfind(Dep, 1, Modules) of 5309 false -> ok; 5310 {_, DepFile} -> 5311 {_, ModFile} = lists:keyfind(Mod, 1, Modules), 5312 ets:insert(E, {ModFile, DepFile}), 5313 digraph:add_vertex(G, Mod), 5314 digraph:add_vertex(G, Dep), 5315 digraph:add_edge(G, Mod, Dep) 5316 end 5317 end, 5318 AddHd = fun (F, Mod, DepFile) -> 5319 case file:open(DepFile, [read]) of 5320 {error, enoent} -> 5321 ok; 5322 {ok, Fd} -> 5323 {_, ModFile} = lists:keyfind(Mod, 1, Modules), 5324 case ets:match(E, {ModFile, DepFile}) of 5325 [] -> 5326 ets:insert(E, {ModFile, DepFile}), 5327 F(F, Fd, Mod,0); 5328 _ -> ok 5329 end 5330 end 5331 end, 5332 SearchHrl = fun 5333 F(_Hrl, []) -> {error,enoent}; 5334 F(Hrl, [Dir|Dirs]) -> 5335 HrlF = filename:join([Dir,Hrl]), 5336 case filelib:is_file(HrlF) of 5337 true -> 5338 {ok, HrlF}; 5339 false -> F(Hrl,Dirs) 5340 end 5341 end, 5342 Attr = fun 5343 (_F, Mod, behavior, Dep) -> 5344 Add(Mod, Dep); 5345 (_F, Mod, behaviour, Dep) -> 5346 Add(Mod, Dep); 5347 (_F, Mod, compile, {parse_transform, Dep}) -> 5348 Add(Mod, Dep); 5349 (_F, Mod, compile, Opts) when is_list(Opts) -> 5350 case proplists:get_value(parse_transform, Opts) of 5351 undefined -> ok; 5352 Dep -> Add(Mod, Dep) 5353 end; 5354 (F, Mod, include, Hrl) -> 5355 case SearchHrl(Hrl, ["src", "include",AppsDir,DepsDir]++AppsDirs++DepsDirs) of 5356 {ok, FoundHrl} -> AddHd(F, Mod, FoundHrl); 5357 {error, _} -> false 5358 end; 5359 (F, Mod, include_lib, Hrl) -> 5360 case SearchHrl(Hrl, ["src", "include",AppsDir,DepsDir]++AppsDirs++DepsDirs) of 5361 {ok, FoundHrl} -> AddHd(F, Mod, FoundHrl); 5362 {error, _} -> false 5363 end; 5364 (F, Mod, import, {Imp, _}) -> 5365 IsFile = 5366 case lists:keyfind(Imp, 1, Modules) of 5367 false -> false; 5368 {_, FilePath} -> filelib:is_file(FilePath) 5369 end, 5370 case IsFile of 5371 false -> ok; 5372 true -> Add(Mod, Imp) 5373 end; 5374 (_, _, _, _) -> ok 5375 end, 5376 MakeDepend = fun 5377 (F, Fd, Mod, StartLocation) -> 5378 {ok, Filename} = file:pid2name(Fd), 5379 case io:parse_erl_form(Fd, undefined, StartLocation) of 5380 {ok, AbsData, EndLocation} -> 5381 case AbsData of 5382 {attribute, _, Key, Value} -> 5383 Attr(F, Mod, Key, Value), 5384 F(F, Fd, Mod, EndLocation); 5385 _ -> F(F, Fd, Mod, EndLocation) 5386 end; 5387 {eof, _ } -> file:close(Fd); 5388 {error, ErrorDescription } -> 5389 file:close(Fd); 5390 {error, ErrorInfo, ErrorLocation} -> 5391 F(F, Fd, Mod, ErrorLocation) 5392 end, 5393 ok 5394 end, 5395 [begin 5396 Mod = list_to_atom(filename:basename(F, ".erl")), 5397 case file:open(F, [read]) of 5398 {ok, Fd} -> MakeDepend(MakeDepend, Fd, Mod,0); 5399 {error, enoent} -> ok 5400 end 5401 end || F <- ErlFiles], 5402 Depend = sofs:to_external(sofs:relation_to_family(sofs:relation(ets:tab2list(E)))), 5403 CompileFirst = [X || X <- lists:reverse(digraph_utils:topsort(G)), [] =/= digraph:in_neighbours(G, X)], 5404 TargetPath = fun(Target) -> 5405 case lists:keyfind(Target, 1, Modules) of 5406 false -> ""; 5407 {_, DepFile} -> 5408 DirSubname = tl(string:tokens(filename:dirname(DepFile), "/")), 5409 string:join(DirSubname ++ [atom_to_list(Target)], "/") 5410 end 5411 end, 5412 Output0 = [ 5413 "# Generated by Erlang.mk. Edit at your own risk!\n\n", 5414 [[F, "::", [[" ", D] || D <- Deps], "; @touch \$$@\n"] || {F, Deps} <- Depend], 5415 "\nCOMPILE_FIRST +=", [[" ", TargetPath(CF)] || CF <- CompileFirst], "\n" 5416 ], 5417 Output = case "é" of 5418 [233] -> unicode:characters_to_binary(Output0); 5419 _ -> Output0 5420 end, 5421 ok = file:write_file("$(1)", Output), 5422 halt() 5423 endef 5424 5425 ifeq ($(if $(NO_MAKEDEP),$(wildcard $(PROJECT).d),),) 5426 $(PROJECT).d:: $(ERL_FILES) $(call core_find,include/,*.hrl) $(MAKEFILE_LIST) 5427 $(makedep_verbose) $(call erlang,$(call makedep.erl,$@)) 5428 endif 5429 5430 ifeq ($(IS_APP)$(IS_DEP),) 5431 ifneq ($(words $(ERL_FILES) $(CORE_FILES) $(ASN1_FILES) $(MIB_FILES) $(XRL_FILES) $(YRL_FILES)),0) 5432 # Rebuild everything when the Makefile changes. 5433 $(ERLANG_MK_TMP)/last-makefile-change: $(MAKEFILE_LIST) | $(ERLANG_MK_TMP) 5434 $(verbose) if test -f $@; then \ 5435 touch $(ERL_FILES) $(CORE_FILES) $(ASN1_FILES) $(MIB_FILES) $(XRL_FILES) $(YRL_FILES); \ 5436 touch -c $(PROJECT).d; \ 5437 fi 5438 $(verbose) touch $@ 5439 5440 $(ERL_FILES) $(CORE_FILES) $(ASN1_FILES) $(MIB_FILES) $(XRL_FILES) $(YRL_FILES):: $(ERLANG_MK_TMP)/last-makefile-change 5441 ebin/$(PROJECT).app:: $(ERLANG_MK_TMP)/last-makefile-change 5442 endif 5443 endif 5444 5445 $(PROJECT).d:: 5446 $(verbose) : 5447 5448 include $(wildcard $(PROJECT).d) 5449 5450 ebin/$(PROJECT).app:: ebin/ 5451 5452 ebin/: 5453 $(verbose) mkdir -p ebin/ 5454 5455 define compile_erl 5456 $(erlc_verbose) erlc -v $(if $(IS_DEP),$(filter-out -Werror,$(ERLC_OPTS)),$(ERLC_OPTS)) -o ebin/ \ 5457 -pa ebin/ -I include/ $(filter-out $(ERLC_EXCLUDE_PATHS),$(COMPILE_FIRST_PATHS) $(1)) 5458 endef 5459 5460 define validate_app_file 5461 case file:consult("ebin/$(PROJECT).app") of 5462 {ok, _} -> halt(); 5463 _ -> halt(1) 5464 end 5465 endef 5466 5467 ebin/$(PROJECT).app:: $(ERL_FILES) $(CORE_FILES) $(wildcard src/$(PROJECT).app.src) 5468 $(eval FILES_TO_COMPILE := $(filter-out src/$(PROJECT).app.src,$?)) 5469 $(if $(strip $(FILES_TO_COMPILE)),$(call compile_erl,$(FILES_TO_COMPILE))) 5470 # Older git versions do not have the --first-parent flag. Do without in that case. 5471 $(eval GITDESCRIBE := $(shell git describe --dirty --abbrev=7 --tags --always --first-parent 2>/dev/null \ 5472 || git describe --dirty --abbrev=7 --tags --always 2>/dev/null || true)) 5473 $(eval MODULES := $(patsubst %,'%',$(sort $(notdir $(basename \ 5474 $(filter-out $(ERLC_EXCLUDE_PATHS),$(ERL_FILES) $(CORE_FILES) $(BEAM_FILES))))))) 5475 ifeq ($(wildcard src/$(PROJECT).app.src),) 5476 $(app_verbose) printf '$(subst %,%%,$(subst $(newline),\n,$(subst ','\'',$(call app_file,$(GITDESCRIBE),$(MODULES)))))' \ 5477 > ebin/$(PROJECT).app 5478 $(verbose) if ! $(call erlang,$(call validate_app_file)); then \ 5479 echo "The .app file produced is invalid. Please verify the value of PROJECT_ENV." >&2; \ 5480 exit 1; \ 5481 fi 5482 else 5483 $(verbose) if [ -z "$$(grep -e '^[^%]*{\s*modules\s*,' src/$(PROJECT).app.src)" ]; then \ 5484 echo "Empty modules entry not found in $(PROJECT).app.src. Please consult the erlang.mk documentation for instructions." >&2; \ 5485 exit 1; \ 5486 fi 5487 $(appsrc_verbose) cat src/$(PROJECT).app.src \ 5488 | sed "s/{[[:space:]]*modules[[:space:]]*,[[:space:]]*\[\]}/{modules, \[$(call comma_list,$(MODULES))\]}/" \ 5489 | sed "s/{id,[[:space:]]*\"git\"}/{id, \"$(subst /,\/,$(GITDESCRIBE))\"}/" \ 5490 > ebin/$(PROJECT).app 5491 endif 5492 ifneq ($(wildcard src/$(PROJECT).appup),) 5493 $(verbose) cp src/$(PROJECT).appup ebin/ 5494 endif 5495 5496 clean:: clean-app 5497 5498 clean-app: 5499 $(gen_verbose) rm -rf $(PROJECT).d ebin/ priv/mibs/ $(XRL_ERL_FILES) $(YRL_ERL_FILES) \ 5500 $(addprefix include/,$(patsubst %.mib,%.hrl,$(notdir $(MIB_FILES)))) \ 5501 $(addprefix include/,$(patsubst %.asn1,%.hrl,$(notdir $(ASN1_FILES)))) \ 5502 $(addprefix include/,$(patsubst %.asn1,%.asn1db,$(notdir $(ASN1_FILES)))) \ 5503 $(addprefix src/,$(patsubst %.asn1,%.erl,$(notdir $(ASN1_FILES)))) 5504 5505 endif 5506 5507 # Copyright (c) 2016, Loïc Hoguin <essen@ninenines.eu> 5508 # Copyright (c) 2015, Viktor Söderqvist <viktor@zuiderkwast.se> 5509 # This file is part of erlang.mk and subject to the terms of the ISC License. 5510 5511 .PHONY: docs-deps 5512 5513 # Configuration. 5514 5515 ALL_DOC_DEPS_DIRS = $(addprefix $(DEPS_DIR)/,$(DOC_DEPS)) 5516 5517 # Targets. 5518 5519 $(foreach dep,$(DOC_DEPS),$(eval $(call dep_target,$(dep)))) 5520 5521 ifneq ($(SKIP_DEPS),) 5522 doc-deps: 5523 else 5524 doc-deps: $(ALL_DOC_DEPS_DIRS) 5525 $(verbose) set -e; for dep in $(ALL_DOC_DEPS_DIRS) ; do $(MAKE) -C $$dep IS_DEP=1; done 5526 endif 5527 5528 # Copyright (c) 2015-2016, Loïc Hoguin <essen@ninenines.eu> 5529 # This file is part of erlang.mk and subject to the terms of the ISC License. 5530 5531 .PHONY: rel-deps 5532 5533 # Configuration. 5534 5535 ALL_REL_DEPS_DIRS = $(addprefix $(DEPS_DIR)/,$(REL_DEPS)) 5536 5537 # Targets. 5538 5539 $(foreach dep,$(REL_DEPS),$(eval $(call dep_target,$(dep)))) 5540 5541 ifneq ($(SKIP_DEPS),) 5542 rel-deps: 5543 else 5544 rel-deps: $(ALL_REL_DEPS_DIRS) 5545 $(verbose) set -e; for dep in $(ALL_REL_DEPS_DIRS) ; do $(MAKE) -C $$dep; done 5546 endif 5547 5548 # Copyright (c) 2015-2016, Loïc Hoguin <essen@ninenines.eu> 5549 # This file is part of erlang.mk and subject to the terms of the ISC License. 5550 5551 .PHONY: test-deps test-dir test-build clean-test-dir 5552 5553 # Configuration. 5554 5555 TEST_DIR ?= $(CURDIR)/test 5556 5557 ALL_TEST_DEPS_DIRS = $(addprefix $(DEPS_DIR)/,$(TEST_DEPS)) 5558 5559 TEST_ERLC_OPTS ?= +debug_info +warn_export_vars +warn_shadow_vars +warn_obsolete_guard 5560 TEST_ERLC_OPTS += -DTEST=1 5561 5562 # Targets. 5563 5564 $(foreach dep,$(TEST_DEPS),$(eval $(call dep_target,$(dep)))) 5565 5566 ifneq ($(SKIP_DEPS),) 5567 test-deps: 5568 else 5569 test-deps: $(ALL_TEST_DEPS_DIRS) 5570 $(verbose) set -e; for dep in $(ALL_TEST_DEPS_DIRS) ; do \ 5571 if [ -z "$(strip $(FULL))" ] && [ ! -L $$dep ] && [ -f $$dep/ebin/dep_built ]; then \ 5572 :; \ 5573 else \ 5574 $(MAKE) -C $$dep IS_DEP=1; \ 5575 if [ ! -L $$dep ] && [ -d $$dep/ebin ]; then touch $$dep/ebin/dep_built; fi; \ 5576 fi \ 5577 done 5578 endif 5579 5580 ifneq ($(wildcard $(TEST_DIR)),) 5581 test-dir: $(ERLANG_MK_TMP)/$(PROJECT).last-testdir-build 5582 @: 5583 5584 test_erlc_verbose_0 = @echo " ERLC " $(filter-out $(patsubst %,%.erl,$(ERLC_EXCLUDE)),\ 5585 $(filter %.erl %.core,$(notdir $(FILES_TO_COMPILE)))); 5586 test_erlc_verbose_2 = set -x; 5587 test_erlc_verbose = $(test_erlc_verbose_$(V)) 5588 5589 define compile_test_erl 5590 $(test_erlc_verbose) erlc -v $(TEST_ERLC_OPTS) -o $(TEST_DIR) \ 5591 -pa ebin/ -I include/ $(1) 5592 endef 5593 5594 ERL_TEST_FILES = $(call core_find,$(TEST_DIR)/,*.erl) 5595 $(ERLANG_MK_TMP)/$(PROJECT).last-testdir-build: $(ERL_TEST_FILES) $(MAKEFILE_LIST) 5596 $(eval FILES_TO_COMPILE := $(if $(filter $(MAKEFILE_LIST),$?),$(filter $(ERL_TEST_FILES),$^),$?)) 5597 $(if $(strip $(FILES_TO_COMPILE)),$(call compile_test_erl,$(FILES_TO_COMPILE)) && touch $@) 5598 endif 5599 5600 test-build:: IS_TEST=1 5601 test-build:: ERLC_OPTS=$(TEST_ERLC_OPTS) 5602 test-build:: $(if $(wildcard src),$(if $(wildcard ebin/test),,clean)) $(if $(IS_APP),,deps test-deps) 5603 # We already compiled everything when IS_APP=1. 5604 ifndef IS_APP 5605 ifneq ($(wildcard src),) 5606 $(verbose) $(MAKE) --no-print-directory $(PROJECT).d ERLC_OPTS="$(call escape_dquotes,$(TEST_ERLC_OPTS))" 5607 $(verbose) $(MAKE) --no-print-directory app-build ERLC_OPTS="$(call escape_dquotes,$(TEST_ERLC_OPTS))" 5608 $(gen_verbose) touch ebin/test 5609 endif 5610 ifneq ($(wildcard $(TEST_DIR)),) 5611 $(verbose) $(MAKE) --no-print-directory test-dir ERLC_OPTS="$(call escape_dquotes,$(TEST_ERLC_OPTS))" 5612 endif 5613 endif 5614 5615 # Roughly the same as test-build, but when IS_APP=1. 5616 # We only care about compiling the current application. 5617 ifdef IS_APP 5618 test-build-app:: ERLC_OPTS=$(TEST_ERLC_OPTS) 5619 test-build-app:: deps test-deps 5620 ifneq ($(wildcard src),) 5621 $(verbose) $(MAKE) --no-print-directory $(PROJECT).d ERLC_OPTS="$(call escape_dquotes,$(TEST_ERLC_OPTS))" 5622 $(verbose) $(MAKE) --no-print-directory app-build ERLC_OPTS="$(call escape_dquotes,$(TEST_ERLC_OPTS))" 5623 $(gen_verbose) touch ebin/test 5624 endif 5625 ifneq ($(wildcard $(TEST_DIR)),) 5626 $(verbose) $(MAKE) --no-print-directory test-dir ERLC_OPTS="$(call escape_dquotes,$(TEST_ERLC_OPTS))" 5627 endif 5628 endif 5629 5630 clean:: clean-test-dir 5631 5632 clean-test-dir: 5633 ifneq ($(wildcard $(TEST_DIR)/*.beam),) 5634 $(gen_verbose) rm -f $(TEST_DIR)/*.beam $(ERLANG_MK_TMP)/$(PROJECT).last-testdir-build 5635 endif 5636 5637 # Copyright (c) 2015-2016, Loïc Hoguin <essen@ninenines.eu> 5638 # This file is part of erlang.mk and subject to the terms of the ISC License. 5639 5640 .PHONY: rebar.config 5641 5642 # We strip out -Werror because we don't want to fail due to 5643 # warnings when used as a dependency. 5644 5645 compat_prepare_erlc_opts = $(shell echo "$1" | sed 's/, */,/g') 5646 5647 define compat_convert_erlc_opts 5648 $(if $(filter-out -Werror,$1),\ 5649 $(if $(findstring +,$1),\ 5650 $(shell echo $1 | cut -b 2-))) 5651 endef 5652 5653 define compat_erlc_opts_to_list 5654 [$(call comma_list,$(foreach o,$(call compat_prepare_erlc_opts,$1),$(call compat_convert_erlc_opts,$o)))] 5655 endef 5656 5657 define compat_rebar_config 5658 {deps, [ 5659 $(call comma_list,$(foreach d,$(DEPS),\ 5660 $(if $(filter hex,$(call dep_fetch,$d)),\ 5661 {$(call dep_name,$d)$(comma)"$(call dep_repo,$d)"},\ 5662 {$(call dep_name,$d)$(comma)".*"$(comma){git,"$(call dep_repo,$d)"$(comma)"$(call dep_commit,$d)"}}))) 5663 ]}. 5664 {erl_opts, $(call compat_erlc_opts_to_list,$(ERLC_OPTS))}. 5665 endef 5666 5667 rebar.config: 5668 $(gen_verbose) $(call core_render,compat_rebar_config,rebar.config) 5669 5670 # Copyright (c) 2015-2016, Loïc Hoguin <essen@ninenines.eu> 5671 # This file is part of erlang.mk and subject to the terms of the ISC License. 5672 5673 ifeq ($(filter asciideck,$(DEPS) $(DOC_DEPS)),asciideck) 5674 5675 .PHONY: asciidoc asciidoc-guide asciidoc-manual install-asciidoc distclean-asciidoc-guide distclean-asciidoc-manual 5676 5677 # Core targets. 5678 5679 docs:: asciidoc 5680 5681 distclean:: distclean-asciidoc-guide distclean-asciidoc-manual 5682 5683 # Plugin-specific targets. 5684 5685 asciidoc: asciidoc-guide asciidoc-manual 5686 5687 # User guide. 5688 5689 ifeq ($(wildcard doc/src/guide/book.asciidoc),) 5690 asciidoc-guide: 5691 else 5692 asciidoc-guide: distclean-asciidoc-guide doc-deps 5693 a2x -v -f pdf doc/src/guide/book.asciidoc && mv doc/src/guide/book.pdf doc/guide.pdf 5694 a2x -v -f chunked doc/src/guide/book.asciidoc && mv doc/src/guide/book.chunked/ doc/html/ 5695 5696 distclean-asciidoc-guide: 5697 $(gen_verbose) rm -rf doc/html/ doc/guide.pdf 5698 endif 5699 5700 # Man pages. 5701 5702 ASCIIDOC_MANUAL_FILES := $(wildcard doc/src/manual/*.asciidoc) 5703 5704 ifeq ($(ASCIIDOC_MANUAL_FILES),) 5705 asciidoc-manual: 5706 else 5707 5708 # Configuration. 5709 5710 MAN_INSTALL_PATH ?= /usr/local/share/man 5711 MAN_SECTIONS ?= 3 7 5712 MAN_PROJECT ?= $(shell echo $(PROJECT) | sed 's/^./\U&\E/') 5713 MAN_VERSION ?= $(PROJECT_VERSION) 5714 5715 # Plugin-specific targets. 5716 5717 define asciidoc2man.erl 5718 try 5719 [begin 5720 io:format(" ADOC ~s~n", [F]), 5721 ok = asciideck:to_manpage(asciideck:parse_file(F), #{ 5722 compress => gzip, 5723 outdir => filename:dirname(F), 5724 extra2 => "$(MAN_PROJECT) $(MAN_VERSION)", 5725 extra3 => "$(MAN_PROJECT) Function Reference" 5726 }) 5727 end || F <- [$(shell echo $(addprefix $(comma)\",$(addsuffix \",$1)) | sed 's/^.//')]], 5728 halt(0) 5729 catch C:E -> 5730 io:format("Exception ~p:~p~nStacktrace: ~p~n", [C, E, erlang:get_stacktrace()]), 5731 halt(1) 5732 end. 5733 endef 5734 5735 asciidoc-manual:: doc-deps 5736 5737 asciidoc-manual:: $(ASCIIDOC_MANUAL_FILES) 5738 $(gen_verbose) $(call erlang,$(call asciidoc2man.erl,$?)) 5739 $(verbose) $(foreach s,$(MAN_SECTIONS),mkdir -p doc/man$s/ && mv doc/src/manual/*.$s.gz doc/man$s/;) 5740 5741 install-docs:: install-asciidoc 5742 5743 install-asciidoc: asciidoc-manual 5744 $(foreach s,$(MAN_SECTIONS),\ 5745 mkdir -p $(MAN_INSTALL_PATH)/man$s/ && \ 5746 install -g `id -g` -o `id -u` -m 0644 doc/man$s/*.gz $(MAN_INSTALL_PATH)/man$s/;) 5747 5748 distclean-asciidoc-manual: 5749 $(gen_verbose) rm -rf $(addprefix doc/man,$(MAN_SECTIONS)) 5750 endif 5751 endif 5752 5753 # Copyright (c) 2014-2016, Loïc Hoguin <essen@ninenines.eu> 5754 # This file is part of erlang.mk and subject to the terms of the ISC License. 5755 5756 .PHONY: bootstrap bootstrap-lib bootstrap-rel new list-templates 5757 5758 # Core targets. 5759 5760 help:: 5761 $(verbose) printf "%s\n" "" \ 5762 "Bootstrap targets:" \ 5763 " bootstrap Generate a skeleton of an OTP application" \ 5764 " bootstrap-lib Generate a skeleton of an OTP library" \ 5765 " bootstrap-rel Generate the files needed to build a release" \ 5766 " new-app in=NAME Create a new local OTP application NAME" \ 5767 " new-lib in=NAME Create a new local OTP library NAME" \ 5768 " new t=TPL n=NAME Generate a module NAME based on the template TPL" \ 5769 " new t=T n=N in=APP Generate a module NAME based on the template TPL in APP" \ 5770 " list-templates List available templates" 5771 5772 # Bootstrap templates. 5773 5774 define bs_appsrc 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 {mod, {$p_app, []}}, 5786 {env, []} 5787 ]}. 5788 endef 5789 5790 define bs_appsrc_lib 5791 {application, $p, [ 5792 {description, ""}, 5793 {vsn, "0.1.0"}, 5794 {id, "git"}, 5795 {modules, []}, 5796 {registered, []}, 5797 {applications, [ 5798 kernel, 5799 stdlib 5800 ]} 5801 ]}. 5802 endef 5803 5804 # To prevent autocompletion issues with ZSH, we add "include erlang.mk" 5805 # separately during the actual bootstrap. 5806 define bs_Makefile 5807 PROJECT = $p 5808 PROJECT_DESCRIPTION = New project 5809 PROJECT_VERSION = 0.1.0 5810 $(if $(SP), 5811 # Whitespace to be used when creating files from templates. 5812 SP = $(SP) 5813 ) 5814 endef 5815 5816 define bs_apps_Makefile 5817 PROJECT = $p 5818 PROJECT_DESCRIPTION = New project 5819 PROJECT_VERSION = 0.1.0 5820 $(if $(SP), 5821 # Whitespace to be used when creating files from templates. 5822 SP = $(SP) 5823 ) 5824 # Make sure we know where the applications are located. 5825 ROOT_DIR ?= $(call core_relpath,$(dir $(ERLANG_MK_FILENAME)),$(APPS_DIR)/app) 5826 APPS_DIR ?= .. 5827 DEPS_DIR ?= $(call core_relpath,$(DEPS_DIR),$(APPS_DIR)/app) 5828 5829 include $$(ROOT_DIR)/erlang.mk 5830 endef 5831 5832 define bs_app 5833 -module($p_app). 5834 -behaviour(application). 5835 5836 -export([start/2]). 5837 -export([stop/1]). 5838 5839 start(_Type, _Args) -> 5840 $p_sup:start_link(). 5841 5842 stop(_State) -> 5843 ok. 5844 endef 5845 5846 define bs_relx_config 5847 {release, {$p_release, "1"}, [$p, sasl, runtime_tools]}. 5848 {extended_start_script, true}. 5849 {sys_config, "config/sys.config"}. 5850 {vm_args, "config/vm.args"}. 5851 endef 5852 5853 define bs_sys_config 5854 [ 5855 ]. 5856 endef 5857 5858 define bs_vm_args 5859 -name $p@127.0.0.1 5860 -setcookie $p 5861 -heart 5862 endef 5863 5864 # Normal templates. 5865 5866 define tpl_supervisor 5867 -module($(n)). 5868 -behaviour(supervisor). 5869 5870 -export([start_link/0]). 5871 -export([init/1]). 5872 5873 start_link() -> 5874 supervisor:start_link({local, ?MODULE}, ?MODULE, []). 5875 5876 init([]) -> 5877 Procs = [], 5878 {ok, {{one_for_one, 1, 5}, Procs}}. 5879 endef 5880 5881 define tpl_gen_server 5882 -module($(n)). 5883 -behaviour(gen_server). 5884 5885 %% API. 5886 -export([start_link/0]). 5887 5888 %% gen_server. 5889 -export([init/1]). 5890 -export([handle_call/3]). 5891 -export([handle_cast/2]). 5892 -export([handle_info/2]). 5893 -export([terminate/2]). 5894 -export([code_change/3]). 5895 5896 -record(state, { 5897 }). 5898 5899 %% API. 5900 5901 -spec start_link() -> {ok, pid()}. 5902 start_link() -> 5903 gen_server:start_link(?MODULE, [], []). 5904 5905 %% gen_server. 5906 5907 init([]) -> 5908 {ok, #state{}}. 5909 5910 handle_call(_Request, _From, State) -> 5911 {reply, ignored, State}. 5912 5913 handle_cast(_Msg, State) -> 5914 {noreply, State}. 5915 5916 handle_info(_Info, State) -> 5917 {noreply, State}. 5918 5919 terminate(_Reason, _State) -> 5920 ok. 5921 5922 code_change(_OldVsn, State, _Extra) -> 5923 {ok, State}. 5924 endef 5925 5926 define tpl_module 5927 -module($(n)). 5928 -export([]). 5929 endef 5930 5931 define tpl_cowboy_http 5932 -module($(n)). 5933 -behaviour(cowboy_http_handler). 5934 5935 -export([init/3]). 5936 -export([handle/2]). 5937 -export([terminate/3]). 5938 5939 -record(state, { 5940 }). 5941 5942 init(_, Req, _Opts) -> 5943 {ok, Req, #state{}}. 5944 5945 handle(Req, State=#state{}) -> 5946 {ok, Req2} = cowboy_req:reply(200, Req), 5947 {ok, Req2, State}. 5948 5949 terminate(_Reason, _Req, _State) -> 5950 ok. 5951 endef 5952 5953 define tpl_gen_fsm 5954 -module($(n)). 5955 -behaviour(gen_fsm). 5956 5957 %% API. 5958 -export([start_link/0]). 5959 5960 %% gen_fsm. 5961 -export([init/1]). 5962 -export([state_name/2]). 5963 -export([handle_event/3]). 5964 -export([state_name/3]). 5965 -export([handle_sync_event/4]). 5966 -export([handle_info/3]). 5967 -export([terminate/3]). 5968 -export([code_change/4]). 5969 5970 -record(state, { 5971 }). 5972 5973 %% API. 5974 5975 -spec start_link() -> {ok, pid()}. 5976 start_link() -> 5977 gen_fsm:start_link(?MODULE, [], []). 5978 5979 %% gen_fsm. 5980 5981 init([]) -> 5982 {ok, state_name, #state{}}. 5983 5984 state_name(_Event, StateData) -> 5985 {next_state, state_name, StateData}. 5986 5987 handle_event(_Event, StateName, StateData) -> 5988 {next_state, StateName, StateData}. 5989 5990 state_name(_Event, _From, StateData) -> 5991 {reply, ignored, state_name, StateData}. 5992 5993 handle_sync_event(_Event, _From, StateName, StateData) -> 5994 {reply, ignored, StateName, StateData}. 5995 5996 handle_info(_Info, StateName, StateData) -> 5997 {next_state, StateName, StateData}. 5998 5999 terminate(_Reason, _StateName, _StateData) -> 6000 ok. 6001 6002 code_change(_OldVsn, StateName, StateData, _Extra) -> 6003 {ok, StateName, StateData}. 6004 endef 6005 6006 define tpl_gen_statem 6007 -module($(n)). 6008 -behaviour(gen_statem). 6009 6010 %% API. 6011 -export([start_link/0]). 6012 6013 %% gen_statem. 6014 -export([callback_mode/0]). 6015 -export([init/1]). 6016 -export([state_name/3]). 6017 -export([handle_event/4]). 6018 -export([terminate/3]). 6019 -export([code_change/4]). 6020 6021 -record(state, { 6022 }). 6023 6024 %% API. 6025 6026 -spec start_link() -> {ok, pid()}. 6027 start_link() -> 6028 gen_statem:start_link(?MODULE, [], []). 6029 6030 %% gen_statem. 6031 6032 callback_mode() -> 6033 state_functions. 6034 6035 init([]) -> 6036 {ok, state_name, #state{}}. 6037 6038 state_name(_EventType, _EventData, StateData) -> 6039 {next_state, state_name, StateData}. 6040 6041 handle_event(_EventType, _EventData, StateName, StateData) -> 6042 {next_state, StateName, StateData}. 6043 6044 terminate(_Reason, _StateName, _StateData) -> 6045 ok. 6046 6047 code_change(_OldVsn, StateName, StateData, _Extra) -> 6048 {ok, StateName, StateData}. 6049 endef 6050 6051 define tpl_cowboy_loop 6052 -module($(n)). 6053 -behaviour(cowboy_loop_handler). 6054 6055 -export([init/3]). 6056 -export([info/3]). 6057 -export([terminate/3]). 6058 6059 -record(state, { 6060 }). 6061 6062 init(_, Req, _Opts) -> 6063 {loop, Req, #state{}, 5000, hibernate}. 6064 6065 info(_Info, Req, State) -> 6066 {loop, Req, State, hibernate}. 6067 6068 terminate(_Reason, _Req, _State) -> 6069 ok. 6070 endef 6071 6072 define tpl_cowboy_rest 6073 -module($(n)). 6074 6075 -export([init/3]). 6076 -export([content_types_provided/2]). 6077 -export([get_html/2]). 6078 6079 init(_, _Req, _Opts) -> 6080 {upgrade, protocol, cowboy_rest}. 6081 6082 content_types_provided(Req, State) -> 6083 {[{{<<"text">>, <<"html">>, '*'}, get_html}], Req, State}. 6084 6085 get_html(Req, State) -> 6086 {<<"<html><body>This is REST!</body></html>">>, Req, State}. 6087 endef 6088 6089 define tpl_cowboy_ws 6090 -module($(n)). 6091 -behaviour(cowboy_websocket_handler). 6092 6093 -export([init/3]). 6094 -export([websocket_init/3]). 6095 -export([websocket_handle/3]). 6096 -export([websocket_info/3]). 6097 -export([websocket_terminate/3]). 6098 6099 -record(state, { 6100 }). 6101 6102 init(_, _, _) -> 6103 {upgrade, protocol, cowboy_websocket}. 6104 6105 websocket_init(_, Req, _Opts) -> 6106 Req2 = cowboy_req:compact(Req), 6107 {ok, Req2, #state{}}. 6108 6109 websocket_handle({text, Data}, Req, State) -> 6110 {reply, {text, Data}, Req, State}; 6111 websocket_handle({binary, Data}, Req, State) -> 6112 {reply, {binary, Data}, Req, State}; 6113 websocket_handle(_Frame, Req, State) -> 6114 {ok, Req, State}. 6115 6116 websocket_info(_Info, Req, State) -> 6117 {ok, Req, State}. 6118 6119 websocket_terminate(_Reason, _Req, _State) -> 6120 ok. 6121 endef 6122 6123 define tpl_ranch_protocol 6124 -module($(n)). 6125 -behaviour(ranch_protocol). 6126 6127 -export([start_link/4]). 6128 -export([init/4]). 6129 6130 -type opts() :: []. 6131 -export_type([opts/0]). 6132 6133 -record(state, { 6134 socket :: inet:socket(), 6135 transport :: module() 6136 }). 6137 6138 start_link(Ref, Socket, Transport, Opts) -> 6139 Pid = spawn_link(?MODULE, init, [Ref, Socket, Transport, Opts]), 6140 {ok, Pid}. 6141 6142 -spec init(ranch:ref(), inet:socket(), module(), opts()) -> ok. 6143 init(Ref, Socket, Transport, _Opts) -> 6144 ok = ranch:accept_ack(Ref), 6145 loop(#state{socket=Socket, transport=Transport}). 6146 6147 loop(State) -> 6148 loop(State). 6149 endef 6150 6151 # Plugin-specific targets. 6152 6153 ifndef WS 6154 ifdef SP 6155 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)) 6156 else 6157 WS = $(tab) 6158 endif 6159 endif 6160 6161 bootstrap: 6162 ifneq ($(wildcard src/),) 6163 $(error Error: src/ directory already exists) 6164 endif 6165 $(eval p := $(PROJECT)) 6166 $(if $(shell echo $p | LC_ALL=C grep -x "[a-z0-9_]*"),,\ 6167 $(error Error: Invalid characters in the application name)) 6168 $(eval n := $(PROJECT)_sup) 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,src/$(PROJECT).app.src) 6174 endif 6175 $(verbose) $(call core_render,bs_app,src/$(PROJECT)_app.erl) 6176 $(verbose) $(call core_render,tpl_supervisor,src/$(PROJECT)_sup.erl) 6177 6178 bootstrap-lib: 6179 ifneq ($(wildcard src/),) 6180 $(error Error: src/ directory already exists) 6181 endif 6182 $(eval p := $(PROJECT)) 6183 $(if $(shell echo $p | LC_ALL=C grep -x "[a-z0-9_]*"),,\ 6184 $(error Error: Invalid characters in the application name)) 6185 $(verbose) $(call core_render,bs_Makefile,Makefile) 6186 $(verbose) echo "include erlang.mk" >> Makefile 6187 $(verbose) mkdir src/ 6188 ifdef LEGACY 6189 $(verbose) $(call core_render,bs_appsrc_lib,src/$(PROJECT).app.src) 6190 endif 6191 6192 bootstrap-rel: 6193 ifneq ($(wildcard relx.config),) 6194 $(error Error: relx.config already exists) 6195 endif 6196 ifneq ($(wildcard config/),) 6197 $(error Error: config/ directory already exists) 6198 endif 6199 $(eval p := $(PROJECT)) 6200 $(verbose) $(call core_render,bs_relx_config,relx.config) 6201 $(verbose) mkdir config/ 6202 $(verbose) $(call core_render,bs_sys_config,config/sys.config) 6203 $(verbose) $(call core_render,bs_vm_args,config/vm.args) 6204 6205 new-app: 6206 ifndef in 6207 $(error Usage: $(MAKE) new-app in=APP) 6208 endif 6209 ifneq ($(wildcard $(APPS_DIR)/$in),) 6210 $(error Error: Application $in already exists) 6211 endif 6212 $(eval p := $(in)) 6213 $(if $(shell echo $p | LC_ALL=C grep -x "[a-z0-9_]*"),,\ 6214 $(error Error: Invalid characters in the application name)) 6215 $(eval n := $(in)_sup) 6216 $(verbose) mkdir -p $(APPS_DIR)/$p/src/ 6217 $(verbose) $(call core_render,bs_apps_Makefile,$(APPS_DIR)/$p/Makefile) 6218 ifdef LEGACY 6219 $(verbose) $(call core_render,bs_appsrc,$(APPS_DIR)/$p/src/$p.app.src) 6220 endif 6221 $(verbose) $(call core_render,bs_app,$(APPS_DIR)/$p/src/$p_app.erl) 6222 $(verbose) $(call core_render,tpl_supervisor,$(APPS_DIR)/$p/src/$p_sup.erl) 6223 6224 new-lib: 6225 ifndef in 6226 $(error Usage: $(MAKE) new-lib in=APP) 6227 endif 6228 ifneq ($(wildcard $(APPS_DIR)/$in),) 6229 $(error Error: Application $in already exists) 6230 endif 6231 $(eval p := $(in)) 6232 $(if $(shell echo $p | LC_ALL=C grep -x "[a-z0-9_]*"),,\ 6233 $(error Error: Invalid characters in the application name)) 6234 $(verbose) mkdir -p $(APPS_DIR)/$p/src/ 6235 $(verbose) $(call core_render,bs_apps_Makefile,$(APPS_DIR)/$p/Makefile) 6236 ifdef LEGACY 6237 $(verbose) $(call core_render,bs_appsrc_lib,$(APPS_DIR)/$p/src/$p.app.src) 6238 endif 6239 6240 new: 6241 ifeq ($(wildcard src/)$(in),) 6242 $(error Error: src/ directory does not exist) 6243 endif 6244 ifndef t 6245 $(error Usage: $(MAKE) new t=TEMPLATE n=NAME [in=APP]) 6246 endif 6247 ifndef n 6248 $(error Usage: $(MAKE) new t=TEMPLATE n=NAME [in=APP]) 6249 endif 6250 ifdef in 6251 $(verbose) $(call core_render,tpl_$(t),$(APPS_DIR)/$(in)/src/$(n).erl) 6252 else 6253 $(verbose) $(call core_render,tpl_$(t),src/$(n).erl) 6254 endif 6255 6256 list-templates: 6257 $(verbose) @echo Available templates: 6258 $(verbose) printf " %s\n" $(sort $(patsubst tpl_%,%,$(filter tpl_%,$(.VARIABLES)))) 6259 6260 # Copyright (c) 2014-2016, Loïc Hoguin <essen@ninenines.eu> 6261 # This file is part of erlang.mk and subject to the terms of the ISC License. 6262 6263 .PHONY: clean-c_src distclean-c_src-env 6264 6265 # Configuration. 6266 6267 C_SRC_DIR ?= $(CURDIR)/c_src 6268 C_SRC_ENV ?= $(C_SRC_DIR)/env.mk 6269 C_SRC_OUTPUT ?= $(CURDIR)/priv/$(PROJECT) 6270 C_SRC_TYPE ?= shared 6271 6272 # System type and C compiler/flags. 6273 6274 ifeq ($(PLATFORM),msys2) 6275 C_SRC_OUTPUT_EXECUTABLE_EXTENSION ?= .exe 6276 C_SRC_OUTPUT_SHARED_EXTENSION ?= .dll 6277 else 6278 C_SRC_OUTPUT_EXECUTABLE_EXTENSION ?= 6279 C_SRC_OUTPUT_SHARED_EXTENSION ?= .so 6280 endif 6281 6282 ifeq ($(C_SRC_TYPE),shared) 6283 C_SRC_OUTPUT_FILE = $(C_SRC_OUTPUT)$(C_SRC_OUTPUT_SHARED_EXTENSION) 6284 else 6285 C_SRC_OUTPUT_FILE = $(C_SRC_OUTPUT)$(C_SRC_OUTPUT_EXECUTABLE_EXTENSION) 6286 endif 6287 6288 ifeq ($(PLATFORM),msys2) 6289 # We hardcode the compiler used on MSYS2. The default CC=cc does 6290 # not produce working code. The "gcc" MSYS2 package also doesn't. 6291 CC = /mingw64/bin/gcc 6292 export CC 6293 CFLAGS ?= -O3 -std=c99 -finline-functions -Wall -Wmissing-prototypes 6294 CXXFLAGS ?= -O3 -finline-functions -Wall 6295 else ifeq ($(PLATFORM),darwin) 6296 CC ?= cc 6297 CFLAGS ?= -O3 -std=c99 -arch x86_64 -Wall -Wmissing-prototypes 6298 CXXFLAGS ?= -O3 -arch x86_64 -Wall 6299 LDFLAGS ?= -arch x86_64 -flat_namespace -undefined suppress 6300 else ifeq ($(PLATFORM),freebsd) 6301 CC ?= cc 6302 CFLAGS ?= -O3 -std=c99 -finline-functions -Wall -Wmissing-prototypes 6303 CXXFLAGS ?= -O3 -finline-functions -Wall 6304 else ifeq ($(PLATFORM),linux) 6305 CC ?= gcc 6306 CFLAGS ?= -O3 -std=c99 -finline-functions -Wall -Wmissing-prototypes 6307 CXXFLAGS ?= -O3 -finline-functions -Wall 6308 endif 6309 6310 ifneq ($(PLATFORM),msys2) 6311 CFLAGS += -fPIC 6312 CXXFLAGS += -fPIC 6313 endif 6314 6315 CFLAGS += -I"$(ERTS_INCLUDE_DIR)" -I"$(ERL_INTERFACE_INCLUDE_DIR)" 6316 CXXFLAGS += -I"$(ERTS_INCLUDE_DIR)" -I"$(ERL_INTERFACE_INCLUDE_DIR)" 6317 6318 LDLIBS += -L"$(ERL_INTERFACE_LIB_DIR)" -lei 6319 6320 # Verbosity. 6321 6322 c_verbose_0 = @echo " C " $(filter-out $(notdir $(MAKEFILE_LIST) $(C_SRC_ENV)),$(^F)); 6323 c_verbose = $(c_verbose_$(V)) 6324 6325 cpp_verbose_0 = @echo " CPP " $(filter-out $(notdir $(MAKEFILE_LIST) $(C_SRC_ENV)),$(^F)); 6326 cpp_verbose = $(cpp_verbose_$(V)) 6327 6328 link_verbose_0 = @echo " LD " $(@F); 6329 link_verbose = $(link_verbose_$(V)) 6330 6331 # Targets. 6332 6333 ifeq ($(wildcard $(C_SRC_DIR)),) 6334 else ifneq ($(wildcard $(C_SRC_DIR)/Makefile),) 6335 app:: app-c_src 6336 6337 test-build:: app-c_src 6338 6339 app-c_src: 6340 $(MAKE) -C $(C_SRC_DIR) 6341 6342 clean:: 6343 $(MAKE) -C $(C_SRC_DIR) clean 6344 6345 else 6346 6347 ifeq ($(SOURCES),) 6348 SOURCES := $(sort $(foreach pat,*.c *.C *.cc *.cpp,$(call core_find,$(C_SRC_DIR)/,$(pat)))) 6349 endif 6350 OBJECTS = $(addsuffix .o, $(basename $(SOURCES))) 6351 6352 COMPILE_C = $(c_verbose) $(CC) $(CFLAGS) $(CPPFLAGS) -c 6353 COMPILE_CPP = $(cpp_verbose) $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c 6354 6355 app:: $(C_SRC_ENV) $(C_SRC_OUTPUT_FILE) 6356 6357 test-build:: $(C_SRC_ENV) $(C_SRC_OUTPUT_FILE) 6358 6359 $(C_SRC_OUTPUT_FILE): $(OBJECTS) 6360 $(verbose) mkdir -p $(dir $@) 6361 $(link_verbose) $(CC) $(OBJECTS) \ 6362 $(LDFLAGS) $(if $(filter $(C_SRC_TYPE),shared),-shared) $(LDLIBS) \ 6363 -o $(C_SRC_OUTPUT_FILE) 6364 6365 $(OBJECTS): $(MAKEFILE_LIST) $(C_SRC_ENV) 6366 6367 %.o: %.c 6368 $(COMPILE_C) $(OUTPUT_OPTION) $< 6369 6370 %.o: %.cc 6371 $(COMPILE_CPP) $(OUTPUT_OPTION) $< 6372 6373 %.o: %.C 6374 $(COMPILE_CPP) $(OUTPUT_OPTION) $< 6375 6376 %.o: %.cpp 6377 $(COMPILE_CPP) $(OUTPUT_OPTION) $< 6378 6379 clean:: clean-c_src 6380 6381 clean-c_src: 6382 $(gen_verbose) rm -f $(C_SRC_OUTPUT_FILE) $(OBJECTS) 6383 6384 endif 6385 6386 ifneq ($(wildcard $(C_SRC_DIR)),) 6387 ERL_ERTS_DIR = $(shell $(ERL) -eval 'io:format("~s~n", [code:lib_dir(erts)]), halt().') 6388 6389 $(C_SRC_ENV): 6390 $(verbose) $(ERL) -eval "file:write_file(\"$(call core_native_path,$(C_SRC_ENV))\", \ 6391 io_lib:format( \ 6392 \"# Generated by Erlang.mk. Edit at your own risk!~n~n\" \ 6393 \"ERTS_INCLUDE_DIR ?= ~s/erts-~s/include/~n\" \ 6394 \"ERL_INTERFACE_INCLUDE_DIR ?= ~s~n\" \ 6395 \"ERL_INTERFACE_LIB_DIR ?= ~s~n\" \ 6396 \"ERTS_DIR ?= $(ERL_ERTS_DIR)~n\", \ 6397 [code:root_dir(), erlang:system_info(version), \ 6398 code:lib_dir(erl_interface, include), \ 6399 code:lib_dir(erl_interface, lib)])), \ 6400 halt()." 6401 6402 distclean:: distclean-c_src-env 6403 6404 distclean-c_src-env: 6405 $(gen_verbose) rm -f $(C_SRC_ENV) 6406 6407 -include $(C_SRC_ENV) 6408 6409 ifneq ($(ERL_ERTS_DIR),$(ERTS_DIR)) 6410 $(shell rm -f $(C_SRC_ENV)) 6411 endif 6412 endif 6413 6414 # Templates. 6415 6416 define bs_c_nif 6417 #include "erl_nif.h" 6418 6419 static int loads = 0; 6420 6421 static int load(ErlNifEnv* env, void** priv_data, ERL_NIF_TERM load_info) 6422 { 6423 /* Initialize private data. */ 6424 *priv_data = NULL; 6425 6426 loads++; 6427 6428 return 0; 6429 } 6430 6431 static int upgrade(ErlNifEnv* env, void** priv_data, void** old_priv_data, ERL_NIF_TERM load_info) 6432 { 6433 /* Convert the private data to the new version. */ 6434 *priv_data = *old_priv_data; 6435 6436 loads++; 6437 6438 return 0; 6439 } 6440 6441 static void unload(ErlNifEnv* env, void* priv_data) 6442 { 6443 if (loads == 1) { 6444 /* Destroy the private data. */ 6445 } 6446 6447 loads--; 6448 } 6449 6450 static ERL_NIF_TERM hello(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[]) 6451 { 6452 if (enif_is_atom(env, argv[0])) { 6453 return enif_make_tuple2(env, 6454 enif_make_atom(env, "hello"), 6455 argv[0]); 6456 } 6457 6458 return enif_make_tuple2(env, 6459 enif_make_atom(env, "error"), 6460 enif_make_atom(env, "badarg")); 6461 } 6462 6463 static ErlNifFunc nif_funcs[] = { 6464 {"hello", 1, hello} 6465 }; 6466 6467 ERL_NIF_INIT($n, nif_funcs, load, NULL, upgrade, unload) 6468 endef 6469 6470 define bs_erl_nif 6471 -module($n). 6472 6473 -export([hello/1]). 6474 6475 -on_load(on_load/0). 6476 on_load() -> 6477 PrivDir = case code:priv_dir(?MODULE) of 6478 {error, _} -> 6479 AppPath = filename:dirname(filename:dirname(code:which(?MODULE))), 6480 filename:join(AppPath, "priv"); 6481 Path -> 6482 Path 6483 end, 6484 erlang:load_nif(filename:join(PrivDir, atom_to_list(?MODULE)), 0). 6485 6486 hello(_) -> 6487 erlang:nif_error({not_loaded, ?MODULE}). 6488 endef 6489 6490 new-nif: 6491 ifneq ($(wildcard $(C_SRC_DIR)/$n.c),) 6492 $(error Error: $(C_SRC_DIR)/$n.c already exists) 6493 endif 6494 ifneq ($(wildcard src/$n.erl),) 6495 $(error Error: src/$n.erl already exists) 6496 endif 6497 ifndef n 6498 $(error Usage: $(MAKE) new-nif n=NAME [in=APP]) 6499 endif 6500 ifdef in 6501 $(verbose) $(MAKE) -C $(APPS_DIR)/$(in)/ new-nif n=$n in= 6502 else 6503 $(verbose) mkdir -p $(C_SRC_DIR) src/ 6504 $(verbose) $(call core_render,bs_c_nif,$(C_SRC_DIR)/$n.c) 6505 $(verbose) $(call core_render,bs_erl_nif,src/$n.erl) 6506 endif 6507 6508 # Copyright (c) 2015-2017, Loïc Hoguin <essen@ninenines.eu> 6509 # This file is part of erlang.mk and subject to the terms of the ISC License. 6510 6511 .PHONY: ci ci-prepare ci-setup 6512 6513 CI_OTP ?= 6514 CI_HIPE ?= 6515 CI_ERLLVM ?= 6516 6517 ifeq ($(CI_VM),native) 6518 ERLC_OPTS += +native 6519 TEST_ERLC_OPTS += +native 6520 else ifeq ($(CI_VM),erllvm) 6521 ERLC_OPTS += +native +'{hipe, [to_llvm]}' 6522 TEST_ERLC_OPTS += +native +'{hipe, [to_llvm]}' 6523 endif 6524 6525 ifeq ($(strip $(CI_OTP) $(CI_HIPE) $(CI_ERLLVM)),) 6526 ci:: 6527 else 6528 6529 ci:: $(addprefix ci-,$(CI_OTP) $(addsuffix -native,$(CI_HIPE)) $(addsuffix -erllvm,$(CI_ERLLVM))) 6530 6531 ci-prepare: $(addprefix $(KERL_INSTALL_DIR)/,$(CI_OTP) $(addsuffix -native,$(CI_HIPE))) 6532 6533 ci-setup:: 6534 $(verbose) : 6535 6536 ci-extra:: 6537 $(verbose) : 6538 6539 ci_verbose_0 = @echo " CI " $(1); 6540 ci_verbose = $(ci_verbose_$(V)) 6541 6542 define ci_target 6543 ci-$1: $(KERL_INSTALL_DIR)/$2 6544 $(verbose) $(MAKE) --no-print-directory clean 6545 $(ci_verbose) \ 6546 PATH="$(KERL_INSTALL_DIR)/$2/bin:$(PATH)" \ 6547 CI_OTP_RELEASE="$1" \ 6548 CT_OPTS="-label $1" \ 6549 CI_VM="$3" \ 6550 $(MAKE) ci-setup tests 6551 $(verbose) $(MAKE) --no-print-directory ci-extra 6552 endef 6553 6554 $(foreach otp,$(CI_OTP),$(eval $(call ci_target,$(otp),$(otp),otp))) 6555 $(foreach otp,$(CI_HIPE),$(eval $(call ci_target,$(otp)-native,$(otp)-native,native))) 6556 $(foreach otp,$(CI_ERLLVM),$(eval $(call ci_target,$(otp)-erllvm,$(otp)-native,erllvm))) 6557 6558 $(foreach otp,$(filter-out $(ERLANG_OTP),$(CI_OTP)),$(eval $(call kerl_otp_target,$(otp)))) 6559 $(foreach otp,$(filter-out $(ERLANG_HIPE),$(sort $(CI_HIPE) $(CI_ERLLLVM))),$(eval $(call kerl_hipe_target,$(otp)))) 6560 6561 help:: 6562 $(verbose) printf "%s\n" "" \ 6563 "Continuous Integration targets:" \ 6564 " ci Run '$(MAKE) tests' on all configured Erlang versions." \ 6565 "" \ 6566 "The CI_OTP variable must be defined with the Erlang versions" \ 6567 "that must be tested. For example: CI_OTP = OTP-17.3.4 OTP-17.5.3" 6568 6569 endif 6570 6571 # Copyright (c) 2020, Loïc Hoguin <essen@ninenines.eu> 6572 # This file is part of erlang.mk and subject to the terms of the ISC License. 6573 6574 ifdef CONCUERROR_TESTS 6575 6576 .PHONY: concuerror distclean-concuerror 6577 6578 # Configuration 6579 6580 CONCUERROR_LOGS_DIR ?= $(CURDIR)/logs 6581 CONCUERROR_OPTS ?= 6582 6583 # Core targets. 6584 6585 check:: concuerror 6586 6587 ifndef KEEP_LOGS 6588 distclean:: distclean-concuerror 6589 endif 6590 6591 # Plugin-specific targets. 6592 6593 $(ERLANG_MK_TMP)/Concuerror/bin/concuerror: | $(ERLANG_MK_TMP) 6594 $(verbose) git clone https://github.com/parapluu/Concuerror $(ERLANG_MK_TMP)/Concuerror 6595 $(verbose) $(MAKE) -C $(ERLANG_MK_TMP)/Concuerror 6596 6597 $(CONCUERROR_LOGS_DIR): 6598 $(verbose) mkdir -p $(CONCUERROR_LOGS_DIR) 6599 6600 define concuerror_html_report 6601 <!DOCTYPE html> 6602 <html lang="en"> 6603 <head> 6604 <meta charset="utf-8"> 6605 <title>Concuerror HTML report</title> 6606 </head> 6607 <body> 6608 <h1>Concuerror HTML report</h1> 6609 <p>Generated on $(concuerror_date)</p> 6610 <ul> 6611 $(foreach t,$(concuerror_targets),<li><a href="$(t).txt">$(t)</a></li>) 6612 </ul> 6613 </body> 6614 </html> 6615 endef 6616 6617 concuerror: $(addprefix concuerror-,$(subst :,-,$(CONCUERROR_TESTS))) 6618 $(eval concuerror_date := $(shell date)) 6619 $(eval concuerror_targets := $^) 6620 $(verbose) $(call core_render,concuerror_html_report,$(CONCUERROR_LOGS_DIR)/concuerror.html) 6621 6622 define concuerror_target 6623 .PHONY: concuerror-$1-$2 6624 6625 concuerror-$1-$2: test-build | $(ERLANG_MK_TMP)/Concuerror/bin/concuerror $(CONCUERROR_LOGS_DIR) 6626 $(ERLANG_MK_TMP)/Concuerror/bin/concuerror \ 6627 --pa $(CURDIR)/ebin --pa $(TEST_DIR) \ 6628 -o $(CONCUERROR_LOGS_DIR)/concuerror-$1-$2.txt \ 6629 $$(CONCUERROR_OPTS) -m $1 -t $2 6630 endef 6631 6632 $(foreach test,$(CONCUERROR_TESTS),$(eval $(call concuerror_target,$(firstword $(subst :, ,$(test))),$(lastword $(subst :, ,$(test)))))) 6633 6634 distclean-concuerror: 6635 $(gen_verbose) rm -rf $(CONCUERROR_LOGS_DIR) 6636 6637 endif 6638 6639 # Copyright (c) 2013-2016, Loïc Hoguin <essen@ninenines.eu> 6640 # This file is part of erlang.mk and subject to the terms of the ISC License. 6641 6642 .PHONY: ct apps-ct distclean-ct 6643 6644 # Configuration. 6645 6646 CT_OPTS ?= 6647 6648 ifneq ($(wildcard $(TEST_DIR)),) 6649 ifndef CT_SUITES 6650 CT_SUITES := $(sort $(subst _SUITE.erl,,$(notdir $(call core_find,$(TEST_DIR)/,*_SUITE.erl)))) 6651 endif 6652 endif 6653 CT_SUITES ?= 6654 CT_LOGS_DIR ?= $(CURDIR)/logs 6655 6656 # Core targets. 6657 6658 tests:: ct 6659 6660 ifndef KEEP_LOGS 6661 distclean:: distclean-ct 6662 endif 6663 6664 help:: 6665 $(verbose) printf "%s\n" "" \ 6666 "Common_test targets:" \ 6667 " ct Run all the common_test suites for this project" \ 6668 "" \ 6669 "All your common_test suites have their associated targets." \ 6670 "A suite named http_SUITE can be ran using the ct-http target." 6671 6672 # Plugin-specific targets. 6673 6674 CT_RUN = ct_run \ 6675 -no_auto_compile \ 6676 -noinput \ 6677 -pa $(CURDIR)/ebin $(TEST_DIR) \ 6678 -dir $(TEST_DIR) \ 6679 -logdir $(CT_LOGS_DIR) 6680 6681 ifeq ($(CT_SUITES),) 6682 ct: $(if $(IS_APP)$(ROOT_DIR),,apps-ct) 6683 else 6684 # We do not run tests if we are in an apps/* with no test directory. 6685 ifneq ($(IS_APP)$(wildcard $(TEST_DIR)),1) 6686 ct: test-build $(if $(IS_APP)$(ROOT_DIR),,apps-ct) 6687 $(verbose) mkdir -p $(CT_LOGS_DIR) 6688 $(gen_verbose) $(CT_RUN) -sname ct_$(PROJECT) -suite $(addsuffix _SUITE,$(CT_SUITES)) $(CT_OPTS) 6689 endif 6690 endif 6691 6692 ifneq ($(ALL_APPS_DIRS),) 6693 define ct_app_target 6694 apps-ct-$1: test-build 6695 $$(MAKE) -C $1 ct IS_APP=1 6696 endef 6697 6698 $(foreach app,$(ALL_APPS_DIRS),$(eval $(call ct_app_target,$(app)))) 6699 6700 apps-ct: $(addprefix apps-ct-,$(ALL_APPS_DIRS)) 6701 endif 6702 6703 ifdef t 6704 ifeq (,$(findstring :,$t)) 6705 CT_EXTRA = -group $t 6706 else 6707 t_words = $(subst :, ,$t) 6708 CT_EXTRA = -group $(firstword $(t_words)) -case $(lastword $(t_words)) 6709 endif 6710 else 6711 ifdef c 6712 CT_EXTRA = -case $c 6713 else 6714 CT_EXTRA = 6715 endif 6716 endif 6717 6718 define ct_suite_target 6719 ct-$(1): test-build 6720 $(verbose) mkdir -p $(CT_LOGS_DIR) 6721 $(gen_verbose_esc) $(CT_RUN) -sname ct_$(PROJECT) -suite $(addsuffix _SUITE,$(1)) $(CT_EXTRA) $(CT_OPTS) 6722 endef 6723 6724 $(foreach test,$(CT_SUITES),$(eval $(call ct_suite_target,$(test)))) 6725 6726 distclean-ct: 6727 $(gen_verbose) rm -rf $(CT_LOGS_DIR) 6728 6729 # Copyright (c) 2013-2016, Loïc Hoguin <essen@ninenines.eu> 6730 # This file is part of erlang.mk and subject to the terms of the ISC License. 6731 6732 .PHONY: plt distclean-plt dialyze 6733 6734 # Configuration. 6735 6736 DIALYZER_PLT ?= $(CURDIR)/.$(PROJECT).plt 6737 export DIALYZER_PLT 6738 6739 PLT_APPS ?= 6740 DIALYZER_DIRS ?= --src -r $(wildcard src) $(ALL_APPS_DIRS) 6741 DIALYZER_OPTS ?= -Werror_handling -Wrace_conditions -Wunmatched_returns # -Wunderspecs 6742 DIALYZER_PLT_OPTS ?= 6743 6744 # Core targets. 6745 6746 check:: dialyze 6747 6748 distclean:: distclean-plt 6749 6750 help:: 6751 $(verbose) printf "%s\n" "" \ 6752 "Dialyzer targets:" \ 6753 " plt Build a PLT file for this project" \ 6754 " dialyze Analyze the project using Dialyzer" 6755 6756 # Plugin-specific targets. 6757 6758 define filter_opts.erl 6759 Opts = init:get_plain_arguments(), 6760 {Filtered, _} = lists:foldl(fun 6761 (O, {Os, true}) -> {[O|Os], false}; 6762 (O = "-D", {Os, _}) -> {[O|Os], true}; 6763 (O = [\\$$-, \\$$D, _ | _], {Os, _}) -> {[O|Os], false}; 6764 (O = "-I", {Os, _}) -> {[O|Os], true}; 6765 (O = [\\$$-, \\$$I, _ | _], {Os, _}) -> {[O|Os], false}; 6766 (O = "-pa", {Os, _}) -> {[O|Os], true}; 6767 (_, Acc) -> Acc 6768 end, {[], false}, Opts), 6769 io:format("~s~n", [string:join(lists:reverse(Filtered), " ")]), 6770 halt(). 6771 endef 6772 6773 # DIALYZER_PLT is a variable understood directly by Dialyzer. 6774 # 6775 # We append the path to erts at the end of the PLT. This works 6776 # because the PLT file is in the external term format and the 6777 # function binary_to_term/1 ignores any trailing data. 6778 $(DIALYZER_PLT): deps app 6779 $(eval DEPS_LOG := $(shell test -f $(ERLANG_MK_TMP)/deps.log && \ 6780 while read p; do test -d $$p/ebin && echo $$p/ebin; done <$(ERLANG_MK_TMP)/deps.log)) 6781 $(verbose) dialyzer --build_plt $(DIALYZER_PLT_OPTS) --apps \ 6782 erts kernel stdlib $(PLT_APPS) $(OTP_DEPS) $(LOCAL_DEPS) $(DEPS_LOG) || test $$? -eq 2 6783 $(verbose) $(ERL) -eval 'io:format("~n~s~n", [code:lib_dir(erts)]), halt().' >> $@ 6784 6785 plt: $(DIALYZER_PLT) 6786 6787 distclean-plt: 6788 $(gen_verbose) rm -f $(DIALYZER_PLT) 6789 6790 ifneq ($(wildcard $(DIALYZER_PLT)),) 6791 dialyze: $(if $(filter --src,$(DIALYZER_DIRS)),,deps app) 6792 $(verbose) if ! tail -n1 $(DIALYZER_PLT) | \ 6793 grep -q "^`$(ERL) -eval 'io:format("~s", [code:lib_dir(erts)]), halt().'`$$"; then \ 6794 rm $(DIALYZER_PLT); \ 6795 $(MAKE) plt; \ 6796 fi 6797 else 6798 dialyze: $(DIALYZER_PLT) 6799 endif 6800 $(verbose) dialyzer --no_native `$(ERL) \ 6801 -eval "$(subst $(newline),,$(call escape_dquotes,$(call filter_opts.erl)))" \ 6802 -extra $(ERLC_OPTS)` $(DIALYZER_DIRS) $(DIALYZER_OPTS) $(if $(wildcard ebin/),-pa ebin/) 6803 6804 # Copyright (c) 2013-2016, Loïc Hoguin <essen@ninenines.eu> 6805 # This file is part of erlang.mk and subject to the terms of the ISC License. 6806 6807 .PHONY: distclean-edoc edoc 6808 6809 # Configuration. 6810 6811 EDOC_OPTS ?= 6812 EDOC_SRC_DIRS ?= 6813 EDOC_OUTPUT ?= doc 6814 6815 define edoc.erl 6816 SrcPaths = lists:foldl(fun(P, Acc) -> 6817 filelib:wildcard(atom_to_list(P) ++ "/{src,c_src}") ++ Acc 6818 end, [], [$(call comma_list,$(patsubst %,'%',$(call core_native_path,$(EDOC_SRC_DIRS))))]), 6819 DefaultOpts = [{dir, "$(EDOC_OUTPUT)"}, {source_path, SrcPaths}, {subpackages, false}], 6820 edoc:application($(1), ".", [$(2)] ++ DefaultOpts), 6821 halt(0). 6822 endef 6823 6824 # Core targets. 6825 6826 ifneq ($(strip $(EDOC_SRC_DIRS)$(wildcard doc/overview.edoc)),) 6827 docs:: edoc 6828 endif 6829 6830 distclean:: distclean-edoc 6831 6832 # Plugin-specific targets. 6833 6834 edoc: distclean-edoc doc-deps 6835 $(gen_verbose) $(call erlang,$(call edoc.erl,$(PROJECT),$(EDOC_OPTS))) 6836 6837 distclean-edoc: 6838 $(gen_verbose) rm -f $(EDOC_OUTPUT)/*.css $(EDOC_OUTPUT)/*.html $(EDOC_OUTPUT)/*.png $(EDOC_OUTPUT)/edoc-info 6839 6840 # Copyright (c) 2013-2016, Loïc Hoguin <essen@ninenines.eu> 6841 # This file is part of erlang.mk and subject to the terms of the ISC License. 6842 6843 # Configuration. 6844 6845 DTL_FULL_PATH ?= 6846 DTL_PATH ?= templates/ 6847 DTL_PREFIX ?= 6848 DTL_SUFFIX ?= _dtl 6849 DTL_OPTS ?= 6850 6851 # Verbosity. 6852 6853 dtl_verbose_0 = @echo " DTL " $(filter %.dtl,$(?F)); 6854 dtl_verbose = $(dtl_verbose_$(V)) 6855 6856 # Core targets. 6857 6858 DTL_PATH := $(abspath $(DTL_PATH)) 6859 DTL_FILES := $(sort $(call core_find,$(DTL_PATH),*.dtl)) 6860 6861 ifneq ($(DTL_FILES),) 6862 6863 DTL_NAMES = $(addprefix $(DTL_PREFIX),$(addsuffix $(DTL_SUFFIX),$(DTL_FILES:$(DTL_PATH)/%.dtl=%))) 6864 DTL_MODULES = $(if $(DTL_FULL_PATH),$(subst /,_,$(DTL_NAMES)),$(notdir $(DTL_NAMES))) 6865 BEAM_FILES += $(addsuffix .beam,$(addprefix ebin/,$(DTL_MODULES))) 6866 6867 ifneq ($(words $(DTL_FILES)),0) 6868 # Rebuild templates when the Makefile changes. 6869 $(ERLANG_MK_TMP)/last-makefile-change-erlydtl: $(MAKEFILE_LIST) | $(ERLANG_MK_TMP) 6870 $(verbose) if test -f $@; then \ 6871 touch $(DTL_FILES); \ 6872 fi 6873 $(verbose) touch $@ 6874 6875 ebin/$(PROJECT).app:: $(ERLANG_MK_TMP)/last-makefile-change-erlydtl 6876 endif 6877 6878 define erlydtl_compile.erl 6879 [begin 6880 Module0 = case "$(strip $(DTL_FULL_PATH))" of 6881 "" -> 6882 filename:basename(F, ".dtl"); 6883 _ -> 6884 "$(call core_native_path,$(DTL_PATH))/" ++ F2 = filename:rootname(F, ".dtl"), 6885 re:replace(F2, "/", "_", [{return, list}, global]) 6886 end, 6887 Module = list_to_atom("$(DTL_PREFIX)" ++ string:to_lower(Module0) ++ "$(DTL_SUFFIX)"), 6888 case erlydtl:compile(F, Module, [$(DTL_OPTS)] ++ [{out_dir, "ebin/"}, return_errors]) of 6889 ok -> ok; 6890 {ok, _} -> ok 6891 end 6892 end || F <- string:tokens("$(1)", " ")], 6893 halt(). 6894 endef 6895 6896 ebin/$(PROJECT).app:: $(DTL_FILES) | ebin/ 6897 $(if $(strip $?),\ 6898 $(dtl_verbose) $(call erlang,$(call erlydtl_compile.erl,$(call core_native_path,$?)),\ 6899 -pa ebin/)) 6900 6901 endif 6902 6903 # Copyright (c) 2016, Loïc Hoguin <essen@ninenines.eu> 6904 # Copyright (c) 2014, Dave Cottlehuber <dch@skunkwerks.at> 6905 # This file is part of erlang.mk and subject to the terms of the ISC License. 6906 6907 .PHONY: distclean-escript escript escript-zip 6908 6909 # Configuration. 6910 6911 ESCRIPT_NAME ?= $(PROJECT) 6912 ESCRIPT_FILE ?= $(ESCRIPT_NAME) 6913 6914 ESCRIPT_SHEBANG ?= /usr/bin/env escript 6915 ESCRIPT_COMMENT ?= This is an -*- erlang -*- file 6916 ESCRIPT_EMU_ARGS ?= -escript main $(ESCRIPT_NAME) 6917 6918 ESCRIPT_ZIP ?= 7z a -tzip -mx=9 -mtc=off $(if $(filter-out 0,$(V)),,> /dev/null) 6919 ESCRIPT_ZIP_FILE ?= $(ERLANG_MK_TMP)/escript.zip 6920 6921 # Core targets. 6922 6923 distclean:: distclean-escript 6924 6925 help:: 6926 $(verbose) printf "%s\n" "" \ 6927 "Escript targets:" \ 6928 " escript Build an executable escript archive" \ 6929 6930 # Plugin-specific targets. 6931 6932 escript-zip:: FULL=1 6933 escript-zip:: deps app 6934 $(verbose) mkdir -p $(dir $(ESCRIPT_ZIP)) 6935 $(verbose) rm -f $(ESCRIPT_ZIP_FILE) 6936 $(gen_verbose) cd .. && $(ESCRIPT_ZIP) $(ESCRIPT_ZIP_FILE) $(PROJECT)/ebin/* 6937 ifneq ($(DEPS),) 6938 $(verbose) cd $(DEPS_DIR) && $(ESCRIPT_ZIP) $(ESCRIPT_ZIP_FILE) \ 6939 $(subst $(DEPS_DIR)/,,$(addsuffix /*,$(wildcard \ 6940 $(addsuffix /ebin,$(shell cat $(ERLANG_MK_TMP)/deps.log))))) 6941 endif 6942 6943 escript:: escript-zip 6944 $(gen_verbose) printf "%s\n" \ 6945 "#!$(ESCRIPT_SHEBANG)" \ 6946 "%% $(ESCRIPT_COMMENT)" \ 6947 "%%! $(ESCRIPT_EMU_ARGS)" > $(ESCRIPT_FILE) 6948 $(verbose) cat $(ESCRIPT_ZIP_FILE) >> $(ESCRIPT_FILE) 6949 $(verbose) chmod +x $(ESCRIPT_FILE) 6950 6951 distclean-escript: 6952 $(gen_verbose) rm -f $(ESCRIPT_FILE) 6953 6954 # Copyright (c) 2015-2016, Loïc Hoguin <essen@ninenines.eu> 6955 # Copyright (c) 2014, Enrique Fernandez <enrique.fernandez@erlang-solutions.com> 6956 # This file is contributed to erlang.mk and subject to the terms of the ISC License. 6957 6958 .PHONY: eunit apps-eunit 6959 6960 # Configuration 6961 6962 EUNIT_OPTS ?= 6963 EUNIT_ERL_OPTS ?= 6964 6965 # Core targets. 6966 6967 tests:: eunit 6968 6969 help:: 6970 $(verbose) printf "%s\n" "" \ 6971 "EUnit targets:" \ 6972 " eunit Run all the EUnit tests for this project" 6973 6974 # Plugin-specific targets. 6975 6976 define eunit.erl 6977 $(call cover.erl) 6978 CoverSetup(), 6979 case eunit:test($1, [$(EUNIT_OPTS)]) of 6980 ok -> ok; 6981 error -> halt(2) 6982 end, 6983 CoverExport("$(call core_native_path,$(COVER_DATA_DIR))/eunit.coverdata"), 6984 halt() 6985 endef 6986 6987 EUNIT_ERL_OPTS += -pa $(TEST_DIR) $(CURDIR)/ebin 6988 6989 ifdef t 6990 ifeq (,$(findstring :,$(t))) 6991 eunit: test-build cover-data-dir 6992 $(gen_verbose) $(call erlang,$(call eunit.erl,['$(t)']),$(EUNIT_ERL_OPTS)) 6993 else 6994 eunit: test-build cover-data-dir 6995 $(gen_verbose) $(call erlang,$(call eunit.erl,fun $(t)/0),$(EUNIT_ERL_OPTS)) 6996 endif 6997 else 6998 EUNIT_EBIN_MODS = $(notdir $(basename $(ERL_FILES) $(BEAM_FILES))) 6999 EUNIT_TEST_MODS = $(notdir $(basename $(call core_find,$(TEST_DIR)/,*.erl))) 7000 7001 EUNIT_MODS = $(foreach mod,$(EUNIT_EBIN_MODS) $(filter-out \ 7002 $(patsubst %,%_tests,$(EUNIT_EBIN_MODS)),$(EUNIT_TEST_MODS)),'$(mod)') 7003 7004 eunit: test-build $(if $(IS_APP)$(ROOT_DIR),,apps-eunit) cover-data-dir 7005 ifneq ($(wildcard src/ $(TEST_DIR)),) 7006 $(gen_verbose) $(call erlang,$(call eunit.erl,[$(call comma_list,$(EUNIT_MODS))]),$(EUNIT_ERL_OPTS)) 7007 endif 7008 7009 ifneq ($(ALL_APPS_DIRS),) 7010 apps-eunit: test-build 7011 $(verbose) eunit_retcode=0 ; for app in $(ALL_APPS_DIRS); do $(MAKE) -C $$app eunit IS_APP=1; \ 7012 [ $$? -ne 0 ] && eunit_retcode=1 ; done ; \ 7013 exit $$eunit_retcode 7014 endif 7015 endif 7016 7017 # Copyright (c) 2020, Loïc Hoguin <essen@ninenines.eu> 7018 # This file is part of erlang.mk and subject to the terms of the ISC License. 7019 7020 # We automatically depend on hex_core when the project isn't already. 7021 $(if $(filter hex_core,$(DEPS) $(BUILD_DEPS) $(DOC_DEPS) $(REL_DEPS) $(TEST_DEPS)),,\ 7022 $(eval $(call dep_target,hex_core))) 7023 7024 hex-core: $(DEPS_DIR)/hex_core 7025 $(verbose) if [ ! -e $(DEPS_DIR)/hex_core/ebin/dep_built ]; then \ 7026 $(MAKE) -C $(DEPS_DIR)/hex_core IS_DEP=1; \ 7027 touch $(DEPS_DIR)/hex_core/ebin/dep_built; \ 7028 fi 7029 7030 # @todo This must also apply to fetching. 7031 HEX_CONFIG ?= 7032 7033 define hex_config.erl 7034 begin 7035 Config0 = hex_core:default_config(), 7036 Config0$(HEX_CONFIG) 7037 end 7038 endef 7039 7040 # @todo Something is wrong about the password I couldn't log into hex.pm. 7041 define hex_user_create.erl 7042 {ok, _} = application:ensure_all_started(ssl), 7043 {ok, _} = application:ensure_all_started(inets), 7044 Config = $(hex_config.erl), 7045 case hex_api_user:create(Config, <<"$(strip $1)">>, <<"$(strip $2)">>, <<"$(strip $3)">>) of 7046 {ok, {201, _, #{<<"email">> := Email, <<"url">> := URL, <<"username">> := Username}}} -> 7047 io:format("User ~s (~s) created at ~s~n" 7048 "Please check your inbox for a confirmation email.~n" 7049 "You must confirm before you are allowed to publish packages.~n", 7050 [Username, Email, URL]), 7051 halt(0); 7052 {ok, {Status, _, Errors}} -> 7053 io:format("Error ~b: ~0p~n", [Status, Errors]), 7054 halt(80) 7055 end 7056 endef 7057 7058 # The $(info ) call inserts a new line after the password prompt. 7059 hex-user-create: hex-core 7060 $(if $(HEX_USERNAME),,$(eval HEX_USERNAME := $(shell read -p "Username: " username; echo $$username))) 7061 $(if $(HEX_PASSWORD),,$(eval HEX_PASSWORD := $(shell stty -echo; read -p "Password: " password; stty echo; echo $$password) $(info ))) 7062 $(if $(HEX_EMAIL),,$(eval HEX_EMAIL := $(shell read -p "Email: " email; echo $$email))) 7063 $(gen_verbose) $(call erlang,$(call hex_user_create.erl,$(HEX_USERNAME),$(HEX_PASSWORD),$(HEX_EMAIL))) 7064 7065 define hex_key_add.erl 7066 {ok, _} = application:ensure_all_started(ssl), 7067 {ok, _} = application:ensure_all_started(inets), 7068 Config = $(hex_config.erl), 7069 ConfigF = Config#{api_key => iolist_to_binary([<<"Basic ">>, base64:encode(<<"$(strip $1):$(strip $2)">>)])}, 7070 Permissions = [ 7071 case string:split(P, <<":">>) of 7072 [D] -> #{domain => D}; 7073 [D, R] -> #{domain => D, resource => R} 7074 end 7075 || P <- string:split(<<"$(strip $4)">>, <<",">>, all)], 7076 case hex_api_key:add(ConfigF, <<"$(strip $3)">>, Permissions) of 7077 {ok, {201, _, #{<<"secret">> := Secret}}} -> 7078 io:format("Key ~s created for user ~s~nSecret: ~s~n" 7079 "Please store the secret in a secure location, such as a password store.~n" 7080 "The secret will be requested for most Hex-related operations.~n", 7081 [<<"$(strip $3)">>, <<"$(strip $1)">>, Secret]), 7082 halt(0); 7083 {ok, {Status, _, Errors}} -> 7084 io:format("Error ~b: ~0p~n", [Status, Errors]), 7085 halt(81) 7086 end 7087 endef 7088 7089 hex-key-add: hex-core 7090 $(if $(HEX_USERNAME),,$(eval HEX_USERNAME := $(shell read -p "Username: " username; echo $$username))) 7091 $(if $(HEX_PASSWORD),,$(eval HEX_PASSWORD := $(shell stty -echo; read -p "Password: " password; stty echo; echo $$password) $(info ))) 7092 $(gen_verbose) $(call erlang,$(call hex_key_add.erl,$(HEX_USERNAME),$(HEX_PASSWORD),\ 7093 $(if $(name),$(name),$(shell hostname)-erlang-mk),\ 7094 $(if $(perm),$(perm),api))) 7095 7096 HEX_TARBALL_EXTRA_METADATA ?= 7097 7098 # @todo Check that we can += files 7099 HEX_TARBALL_FILES ?= \ 7100 $(wildcard early-plugins.mk) \ 7101 $(wildcard ebin/$(PROJECT).app) \ 7102 $(wildcard ebin/$(PROJECT).appup) \ 7103 $(wildcard $(notdir $(ERLANG_MK_FILENAME))) \ 7104 $(call core_find,include/,*.hrl) \ 7105 $(wildcard LICENSE*) \ 7106 $(wildcard Makefile) \ 7107 $(wildcard plugins.mk) \ 7108 $(call core_find,priv/,*) \ 7109 $(wildcard README*) \ 7110 $(wildcard rebar.config) \ 7111 $(call core_find,src/,*) 7112 7113 HEX_TARBALL_OUTPUT_FILE ?= $(ERLANG_MK_TMP)/$(PROJECT).tar 7114 7115 # @todo Need to check for rebar.config and/or the absence of DEPS to know 7116 # whether a project will work with Rebar. 7117 # 7118 # @todo contributors licenses links in HEX_TARBALL_EXTRA_METADATA 7119 7120 # In order to build the requirements metadata we look into DEPS. 7121 # We do not require that the project use Hex dependencies, however 7122 # Hex.pm does require that the package name and version numbers 7123 # correspond to a real Hex package. 7124 define hex_tarball_create.erl 7125 Files0 = [$(call comma_list,$(patsubst %,"%",$(HEX_TARBALL_FILES)))], 7126 Requirements0 = #{ 7127 $(foreach d,$(DEPS), 7128 <<"$(if $(subst hex,,$(call query_fetch_method,$d)),$d,$(if $(word 3,$(dep_$d)),$(word 3,$(dep_$d)),$d))">> => #{ 7129 <<"app">> => <<"$d">>, 7130 <<"optional">> => false, 7131 <<"requirement">> => <<"$(call query_version,$d)">> 7132 },) 7133 $(if $(DEPS),dummy => dummy) 7134 }, 7135 Requirements = maps:remove(dummy, Requirements0), 7136 Metadata0 = #{ 7137 app => <<"$(strip $(PROJECT))">>, 7138 build_tools => [<<"make">>, <<"rebar3">>], 7139 description => <<"$(strip $(PROJECT_DESCRIPTION))">>, 7140 files => [unicode:characters_to_binary(F) || F <- Files0], 7141 name => <<"$(strip $(PROJECT))">>, 7142 requirements => Requirements, 7143 version => <<"$(strip $(PROJECT_VERSION))">> 7144 }, 7145 Metadata = Metadata0$(HEX_TARBALL_EXTRA_METADATA), 7146 Files = [case file:read_file(F) of 7147 {ok, Bin} -> 7148 {F, Bin}; 7149 {error, Reason} -> 7150 io:format("Error trying to open file ~0p: ~0p~n", [F, Reason]), 7151 halt(82) 7152 end || F <- Files0], 7153 case hex_tarball:create(Metadata, Files) of 7154 {ok, #{tarball := Tarball}} -> 7155 ok = file:write_file("$(strip $(HEX_TARBALL_OUTPUT_FILE))", Tarball), 7156 halt(0); 7157 {error, Reason} -> 7158 io:format("Error ~0p~n", [Reason]), 7159 halt(83) 7160 end 7161 endef 7162 7163 hex_tar_verbose_0 = @echo " TAR $(notdir $(ERLANG_MK_TMP))/$(@F)"; 7164 hex_tar_verbose_2 = set -x; 7165 hex_tar_verbose = $(hex_tar_verbose_$(V)) 7166 7167 $(HEX_TARBALL_OUTPUT_FILE): hex-core app 7168 $(hex_tar_verbose) $(call erlang,$(call hex_tarball_create.erl)) 7169 7170 hex-tarball-create: $(HEX_TARBALL_OUTPUT_FILE) 7171 7172 define hex_release_publish_summary.erl 7173 {ok, Tarball} = erl_tar:open("$(strip $(HEX_TARBALL_OUTPUT_FILE))", [read]), 7174 ok = erl_tar:extract(Tarball, [{cwd, "$(ERLANG_MK_TMP)"}, {files, ["metadata.config"]}]), 7175 {ok, Metadata} = file:consult("$(ERLANG_MK_TMP)/metadata.config"), 7176 #{ 7177 <<"name">> := Name, 7178 <<"version">> := Version, 7179 <<"files">> := Files, 7180 <<"requirements">> := Deps 7181 } = maps:from_list(Metadata), 7182 io:format("Publishing ~s ~s~n Dependencies:~n", [Name, Version]), 7183 case Deps of 7184 [] -> 7185 io:format(" (none)~n"); 7186 _ -> 7187 [begin 7188 #{<<"app">> := DA, <<"requirement">> := DR} = maps:from_list(D), 7189 io:format(" ~s ~s~n", [DA, DR]) 7190 end || {_, D} <- Deps] 7191 end, 7192 io:format(" Included files:~n"), 7193 [io:format(" ~s~n", [F]) || F <- Files], 7194 io:format("You may also review the contents of the tarball file.~n" 7195 "Please enter your secret key to proceed.~n"), 7196 halt(0) 7197 endef 7198 7199 define hex_release_publish.erl 7200 {ok, _} = application:ensure_all_started(ssl), 7201 {ok, _} = application:ensure_all_started(inets), 7202 Config = $(hex_config.erl), 7203 ConfigF = Config#{api_key => <<"$(strip $1)">>}, 7204 {ok, Tarball} = file:read_file("$(strip $(HEX_TARBALL_OUTPUT_FILE))"), 7205 case hex_api_release:publish(ConfigF, Tarball, [{replace, $2}]) of 7206 {ok, {200, _, #{}}} -> 7207 io:format("Release replaced~n"), 7208 halt(0); 7209 {ok, {201, _, #{}}} -> 7210 io:format("Release published~n"), 7211 halt(0); 7212 {ok, {Status, _, Errors}} -> 7213 io:format("Error ~b: ~0p~n", [Status, Errors]), 7214 halt(84) 7215 end 7216 endef 7217 7218 hex-release-tarball: hex-core $(HEX_TARBALL_OUTPUT_FILE) 7219 $(verbose) $(call erlang,$(call hex_release_publish_summary.erl)) 7220 7221 hex-release-publish: hex-core hex-release-tarball 7222 $(if $(HEX_SECRET),,$(eval HEX_SECRET := $(shell stty -echo; read -p "Secret: " secret; stty echo; echo $$secret) $(info ))) 7223 $(gen_verbose) $(call erlang,$(call hex_release_publish.erl,$(HEX_SECRET),false)) 7224 7225 hex-release-replace: hex-core hex-release-tarball 7226 $(if $(HEX_SECRET),,$(eval HEX_SECRET := $(shell stty -echo; read -p "Secret: " secret; stty echo; echo $$secret) $(info ))) 7227 $(gen_verbose) $(call erlang,$(call hex_release_publish.erl,$(HEX_SECRET),true)) 7228 7229 define hex_release_delete.erl 7230 {ok, _} = application:ensure_all_started(ssl), 7231 {ok, _} = application:ensure_all_started(inets), 7232 Config = $(hex_config.erl), 7233 ConfigF = Config#{api_key => <<"$(strip $1)">>}, 7234 case hex_api_release:delete(ConfigF, <<"$(strip $(PROJECT))">>, <<"$(strip $(PROJECT_VERSION))">>) of 7235 {ok, {204, _, _}} -> 7236 io:format("Release $(strip $(PROJECT_VERSION)) deleted~n"), 7237 halt(0); 7238 {ok, {Status, _, Errors}} -> 7239 io:format("Error ~b: ~0p~n", [Status, Errors]), 7240 halt(85) 7241 end 7242 endef 7243 7244 hex-release-delete: hex-core 7245 $(if $(HEX_SECRET),,$(eval HEX_SECRET := $(shell stty -echo; read -p "Secret: " secret; stty echo; echo $$secret) $(info ))) 7246 $(gen_verbose) $(call erlang,$(call hex_release_delete.erl,$(HEX_SECRET))) 7247 7248 define hex_release_retire.erl 7249 {ok, _} = application:ensure_all_started(ssl), 7250 {ok, _} = application:ensure_all_started(inets), 7251 Config = $(hex_config.erl), 7252 ConfigF = Config#{api_key => <<"$(strip $1)">>}, 7253 Params = #{<<"reason">> => <<"$(strip $3)">>, <<"message">> => <<"$(strip $4)">>}, 7254 case hex_api_release:retire(ConfigF, <<"$(strip $(PROJECT))">>, <<"$(strip $2)">>, Params) of 7255 {ok, {204, _, _}} -> 7256 io:format("Release $(strip $2) has been retired~n"), 7257 halt(0); 7258 {ok, {Status, _, Errors}} -> 7259 io:format("Error ~b: ~0p~n", [Status, Errors]), 7260 halt(86) 7261 end 7262 endef 7263 7264 hex-release-retire: hex-core 7265 $(if $(HEX_SECRET),,$(eval HEX_SECRET := $(shell stty -echo; read -p "Secret: " secret; stty echo; echo $$secret) $(info ))) 7266 $(gen_verbose) $(call erlang,$(call hex_release_retire.erl,$(HEX_SECRET),\ 7267 $(if $(HEX_VERSION),$(HEX_VERSION),$(PROJECT_VERSION)),\ 7268 $(if $(HEX_REASON),$(HEX_REASON),invalid),\ 7269 $(HEX_MESSAGE))) 7270 7271 define hex_release_unretire.erl 7272 {ok, _} = application:ensure_all_started(ssl), 7273 {ok, _} = application:ensure_all_started(inets), 7274 Config = $(hex_config.erl), 7275 ConfigF = Config#{api_key => <<"$(strip $1)">>}, 7276 case hex_api_release:unretire(ConfigF, <<"$(strip $(PROJECT))">>, <<"$(strip $2)">>) of 7277 {ok, {204, _, _}} -> 7278 io:format("Release $(strip $2) is not retired anymore~n"), 7279 halt(0); 7280 {ok, {Status, _, Errors}} -> 7281 io:format("Error ~b: ~0p~n", [Status, Errors]), 7282 halt(87) 7283 end 7284 endef 7285 7286 hex-release-unretire: hex-core 7287 $(if $(HEX_SECRET),,$(eval HEX_SECRET := $(shell stty -echo; read -p "Secret: " secret; stty echo; echo $$secret) $(info ))) 7288 $(gen_verbose) $(call erlang,$(call hex_release_unretire.erl,$(HEX_SECRET),\ 7289 $(if $(HEX_VERSION),$(HEX_VERSION),$(PROJECT_VERSION)))) 7290 7291 # Copyright (c) 2015-2017, Loïc Hoguin <essen@ninenines.eu> 7292 # This file is part of erlang.mk and subject to the terms of the ISC License. 7293 7294 ifeq ($(filter proper,$(DEPS) $(TEST_DEPS)),proper) 7295 .PHONY: proper 7296 7297 # Targets. 7298 7299 tests:: proper 7300 7301 define proper_check.erl 7302 $(call cover.erl) 7303 code:add_pathsa([ 7304 "$(call core_native_path,$(CURDIR)/ebin)", 7305 "$(call core_native_path,$(DEPS_DIR)/*/ebin)", 7306 "$(call core_native_path,$(TEST_DIR))"]), 7307 Module = fun(M) -> 7308 [true] =:= lists:usort([ 7309 case atom_to_list(F) of 7310 "prop_" ++ _ -> 7311 io:format("Testing ~p:~p/0~n", [M, F]), 7312 proper:quickcheck(M:F(), nocolors); 7313 _ -> 7314 true 7315 end 7316 || {F, 0} <- M:module_info(exports)]) 7317 end, 7318 try begin 7319 CoverSetup(), 7320 Res = case $(1) of 7321 all -> [true] =:= lists:usort([Module(M) || M <- [$(call comma_list,$(3))]]); 7322 module -> Module($(2)); 7323 function -> proper:quickcheck($(2), nocolors) 7324 end, 7325 CoverExport("$(COVER_DATA_DIR)/proper.coverdata"), 7326 Res 7327 end of 7328 true -> halt(0); 7329 _ -> halt(1) 7330 catch error:undef -> 7331 io:format("Undefined property or module?~n~p~n", [erlang:get_stacktrace()]), 7332 halt(0) 7333 end. 7334 endef 7335 7336 ifdef t 7337 ifeq (,$(findstring :,$(t))) 7338 proper: test-build cover-data-dir 7339 $(verbose) $(call erlang,$(call proper_check.erl,module,$(t))) 7340 else 7341 proper: test-build cover-data-dir 7342 $(verbose) echo Testing $(t)/0 7343 $(verbose) $(call erlang,$(call proper_check.erl,function,$(t)())) 7344 endif 7345 else 7346 proper: test-build cover-data-dir 7347 $(eval MODULES := $(patsubst %,'%',$(sort $(notdir $(basename \ 7348 $(wildcard ebin/*.beam) $(call core_find,$(TEST_DIR)/,*.beam)))))) 7349 $(gen_verbose) $(call erlang,$(call proper_check.erl,all,undefined,$(MODULES))) 7350 endif 7351 endif 7352 7353 # Copyright (c) 2015-2016, Loïc Hoguin <essen@ninenines.eu> 7354 # This file is part of erlang.mk and subject to the terms of the ISC License. 7355 7356 # Verbosity. 7357 7358 proto_verbose_0 = @echo " PROTO " $(filter %.proto,$(?F)); 7359 proto_verbose = $(proto_verbose_$(V)) 7360 7361 # Core targets. 7362 7363 ifneq ($(wildcard src/),) 7364 ifneq ($(filter gpb protobuffs,$(BUILD_DEPS) $(DEPS)),) 7365 PROTO_FILES := $(filter %.proto,$(ALL_SRC_FILES)) 7366 ERL_FILES += $(addprefix src/,$(patsubst %.proto,%_pb.erl,$(notdir $(PROTO_FILES)))) 7367 7368 ifeq ($(PROTO_FILES),) 7369 $(ERLANG_MK_TMP)/last-makefile-change-protobuffs: 7370 $(verbose) : 7371 else 7372 # Rebuild proto files when the Makefile changes. 7373 # We exclude $(PROJECT).d to avoid a circular dependency. 7374 $(ERLANG_MK_TMP)/last-makefile-change-protobuffs: $(filter-out $(PROJECT).d,$(MAKEFILE_LIST)) | $(ERLANG_MK_TMP) 7375 $(verbose) if test -f $@; then \ 7376 touch $(PROTO_FILES); \ 7377 fi 7378 $(verbose) touch $@ 7379 7380 $(PROJECT).d:: $(ERLANG_MK_TMP)/last-makefile-change-protobuffs 7381 endif 7382 7383 ifeq ($(filter gpb,$(BUILD_DEPS) $(DEPS)),) 7384 define compile_proto.erl 7385 [begin 7386 protobuffs_compile:generate_source(F, [ 7387 {output_include_dir, "./include"}, 7388 {output_src_dir, "./src"}]) 7389 end || F <- string:tokens("$1", " ")], 7390 halt(). 7391 endef 7392 else 7393 define compile_proto.erl 7394 [begin 7395 gpb_compile:file(F, [ 7396 {include_as_lib, true}, 7397 {module_name_suffix, "_pb"}, 7398 {o_hrl, "./include"}, 7399 {o_erl, "./src"}]) 7400 end || F <- string:tokens("$1", " ")], 7401 halt(). 7402 endef 7403 endif 7404 7405 ifneq ($(PROTO_FILES),) 7406 $(PROJECT).d:: $(PROTO_FILES) 7407 $(verbose) mkdir -p ebin/ include/ 7408 $(if $(strip $?),$(proto_verbose) $(call erlang,$(call compile_proto.erl,$?))) 7409 endif 7410 endif 7411 endif 7412 7413 # Copyright (c) 2013-2016, Loïc Hoguin <essen@ninenines.eu> 7414 # This file is part of erlang.mk and subject to the terms of the ISC License. 7415 7416 .PHONY: relx-rel relx-relup distclean-relx-rel run 7417 7418 # Configuration. 7419 7420 RELX ?= $(ERLANG_MK_TMP)/relx 7421 RELX_CONFIG ?= $(CURDIR)/relx.config 7422 7423 RELX_URL ?= https://erlang.mk/res/relx-v3.27.0 7424 RELX_OPTS ?= 7425 RELX_OUTPUT_DIR ?= _rel 7426 RELX_REL_EXT ?= 7427 RELX_TAR ?= 1 7428 7429 ifdef SFX 7430 RELX_TAR = 1 7431 endif 7432 7433 ifeq ($(firstword $(RELX_OPTS)),-o) 7434 RELX_OUTPUT_DIR = $(word 2,$(RELX_OPTS)) 7435 else 7436 RELX_OPTS += -o $(RELX_OUTPUT_DIR) 7437 endif 7438 7439 # Core targets. 7440 7441 ifeq ($(IS_DEP),) 7442 ifneq ($(wildcard $(RELX_CONFIG)),) 7443 rel:: relx-rel 7444 7445 relup:: relx-relup 7446 endif 7447 endif 7448 7449 distclean:: distclean-relx-rel 7450 7451 # Plugin-specific targets. 7452 7453 $(RELX): | $(ERLANG_MK_TMP) 7454 $(gen_verbose) $(call core_http_get,$(RELX),$(RELX_URL)) 7455 $(verbose) chmod +x $(RELX) 7456 7457 relx-rel: $(RELX) rel-deps app 7458 $(verbose) $(RELX) $(if $(filter 1,$V),-V 3) -c $(RELX_CONFIG) $(RELX_OPTS) release 7459 $(verbose) $(MAKE) relx-post-rel 7460 ifeq ($(RELX_TAR),1) 7461 $(verbose) $(RELX) $(if $(filter 1,$V),-V 3) -c $(RELX_CONFIG) $(RELX_OPTS) tar 7462 endif 7463 7464 relx-relup: $(RELX) rel-deps app 7465 $(verbose) $(RELX) $(if $(filter 1,$V),-V 3) -c $(RELX_CONFIG) $(RELX_OPTS) release 7466 $(MAKE) relx-post-rel 7467 $(verbose) $(RELX) $(if $(filter 1,$V),-V 3) -c $(RELX_CONFIG) $(RELX_OPTS) relup $(if $(filter 1,$(RELX_TAR)),tar) 7468 7469 distclean-relx-rel: 7470 $(gen_verbose) rm -rf $(RELX_OUTPUT_DIR) 7471 7472 # Default hooks. 7473 relx-post-rel:: 7474 $(verbose) : 7475 7476 # Run target. 7477 7478 ifeq ($(wildcard $(RELX_CONFIG)),) 7479 run:: 7480 else 7481 7482 define get_relx_release.erl 7483 {ok, Config} = file:consult("$(call core_native_path,$(RELX_CONFIG))"), 7484 {release, {Name, Vsn0}, _} = lists:keyfind(release, 1, Config), 7485 Vsn = case Vsn0 of 7486 {cmd, Cmd} -> os:cmd(Cmd); 7487 semver -> ""; 7488 {semver, _} -> ""; 7489 VsnStr -> Vsn0 7490 end, 7491 Extended = case lists:keyfind(extended_start_script, 1, Config) of 7492 {_, true} -> "1"; 7493 _ -> "" 7494 end, 7495 io:format("~s ~s ~s", [Name, Vsn, Extended]), 7496 halt(0). 7497 endef 7498 7499 RELX_REL := $(shell $(call erlang,$(get_relx_release.erl))) 7500 RELX_REL_NAME := $(word 1,$(RELX_REL)) 7501 RELX_REL_VSN := $(word 2,$(RELX_REL)) 7502 RELX_REL_CMD := $(if $(word 3,$(RELX_REL)),console) 7503 7504 ifeq ($(PLATFORM),msys2) 7505 RELX_REL_EXT := .cmd 7506 endif 7507 7508 run:: all 7509 $(verbose) $(RELX_OUTPUT_DIR)/$(RELX_REL_NAME)/bin/$(RELX_REL_NAME)$(RELX_REL_EXT) $(RELX_REL_CMD) 7510 7511 ifdef RELOAD 7512 rel:: 7513 $(verbose) $(RELX_OUTPUT_DIR)/$(RELX_REL_NAME)/bin/$(RELX_REL_NAME)$(RELX_REL_EXT) ping 7514 $(verbose) $(RELX_OUTPUT_DIR)/$(RELX_REL_NAME)/bin/$(RELX_REL_NAME)$(RELX_REL_EXT) \ 7515 eval "io:format(\"~p~n\", [c:lm()])" 7516 endif 7517 7518 help:: 7519 $(verbose) printf "%s\n" "" \ 7520 "Relx targets:" \ 7521 " run Compile the project, build the release and run it" 7522 7523 endif 7524 7525 # Copyright (c) 2015-2016, Loïc Hoguin <essen@ninenines.eu> 7526 # Copyright (c) 2014, M Robert Martin <rob@version2beta.com> 7527 # This file is contributed to erlang.mk and subject to the terms of the ISC License. 7528 7529 .PHONY: shell 7530 7531 # Configuration. 7532 7533 SHELL_ERL ?= erl 7534 SHELL_PATHS ?= $(CURDIR)/ebin $(TEST_DIR) 7535 SHELL_OPTS ?= 7536 7537 ALL_SHELL_DEPS_DIRS = $(addprefix $(DEPS_DIR)/,$(SHELL_DEPS)) 7538 7539 # Core targets 7540 7541 help:: 7542 $(verbose) printf "%s\n" "" \ 7543 "Shell targets:" \ 7544 " shell Run an erlang shell with SHELL_OPTS or reasonable default" 7545 7546 # Plugin-specific targets. 7547 7548 $(foreach dep,$(SHELL_DEPS),$(eval $(call dep_target,$(dep)))) 7549 7550 ifneq ($(SKIP_DEPS),) 7551 build-shell-deps: 7552 else 7553 build-shell-deps: $(ALL_SHELL_DEPS_DIRS) 7554 $(verbose) set -e; for dep in $(ALL_SHELL_DEPS_DIRS) ; do \ 7555 if [ -z "$(strip $(FULL))" ] && [ ! -L $$dep ] && [ -f $$dep/ebin/dep_built ]; then \ 7556 :; \ 7557 else \ 7558 $(MAKE) -C $$dep IS_DEP=1; \ 7559 if [ ! -L $$dep ] && [ -d $$dep/ebin ]; then touch $$dep/ebin/dep_built; fi; \ 7560 fi \ 7561 done 7562 endif 7563 7564 shell:: build-shell-deps 7565 $(gen_verbose) $(SHELL_ERL) -pa $(SHELL_PATHS) $(SHELL_OPTS) 7566 7567 # Copyright 2017, Stanislaw Klekot <dozzie@jarowit.net> 7568 # This file is part of erlang.mk and subject to the terms of the ISC License. 7569 7570 .PHONY: distclean-sphinx sphinx 7571 7572 # Configuration. 7573 7574 SPHINX_BUILD ?= sphinx-build 7575 SPHINX_SOURCE ?= doc 7576 SPHINX_CONFDIR ?= 7577 SPHINX_FORMATS ?= html 7578 SPHINX_DOCTREES ?= $(ERLANG_MK_TMP)/sphinx.doctrees 7579 SPHINX_OPTS ?= 7580 7581 #sphinx_html_opts = 7582 #sphinx_html_output = html 7583 #sphinx_man_opts = 7584 #sphinx_man_output = man 7585 #sphinx_latex_opts = 7586 #sphinx_latex_output = latex 7587 7588 # Helpers. 7589 7590 sphinx_build_0 = @echo " SPHINX" $1; $(SPHINX_BUILD) -N -q 7591 sphinx_build_1 = $(SPHINX_BUILD) -N 7592 sphinx_build_2 = set -x; $(SPHINX_BUILD) 7593 sphinx_build = $(sphinx_build_$(V)) 7594 7595 define sphinx.build 7596 $(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) 7597 7598 endef 7599 7600 define sphinx.output 7601 $(if $(sphinx_$1_output),$(sphinx_$1_output),$1) 7602 endef 7603 7604 # Targets. 7605 7606 ifneq ($(wildcard $(if $(SPHINX_CONFDIR),$(SPHINX_CONFDIR),$(SPHINX_SOURCE))/conf.py),) 7607 docs:: sphinx 7608 distclean:: distclean-sphinx 7609 endif 7610 7611 help:: 7612 $(verbose) printf "%s\n" "" \ 7613 "Sphinx targets:" \ 7614 " sphinx Generate Sphinx documentation." \ 7615 "" \ 7616 "ReST sources and 'conf.py' file are expected in directory pointed by" \ 7617 "SPHINX_SOURCE ('doc' by default). SPHINX_FORMATS lists formats to build (only" \ 7618 "'html' format is generated by default); target directory can be specified by" \ 7619 'setting sphinx_$${format}_output, for example: sphinx_html_output = output/html' \ 7620 "Additional Sphinx options can be set in SPHINX_OPTS." 7621 7622 # Plugin-specific targets. 7623 7624 sphinx: 7625 $(foreach F,$(SPHINX_FORMATS),$(call sphinx.build,$F)) 7626 7627 distclean-sphinx: 7628 $(gen_verbose) rm -rf $(filter-out $(SPHINX_SOURCE),$(foreach F,$(SPHINX_FORMATS),$(call sphinx.output,$F))) 7629 7630 # Copyright (c) 2017, Jean-Sébastien Pédron <jean-sebastien@rabbitmq.com> 7631 # This file is contributed to erlang.mk and subject to the terms of the ISC License. 7632 7633 .PHONY: show-ERL_LIBS show-ERLC_OPTS show-TEST_ERLC_OPTS 7634 7635 show-ERL_LIBS: 7636 @echo $(ERL_LIBS) 7637 7638 show-ERLC_OPTS: 7639 @$(foreach opt,$(ERLC_OPTS) -pa ebin -I include,echo "$(opt)";) 7640 7641 show-TEST_ERLC_OPTS: 7642 @$(foreach opt,$(TEST_ERLC_OPTS) -pa ebin -I include,echo "$(opt)";) 7643 7644 # Copyright (c) 2015-2016, Loïc Hoguin <essen@ninenines.eu> 7645 # This file is part of erlang.mk and subject to the terms of the ISC License. 7646 7647 ifeq ($(filter triq,$(DEPS) $(TEST_DEPS)),triq) 7648 .PHONY: triq 7649 7650 # Targets. 7651 7652 tests:: triq 7653 7654 define triq_check.erl 7655 $(call cover.erl) 7656 code:add_pathsa([ 7657 "$(call core_native_path,$(CURDIR)/ebin)", 7658 "$(call core_native_path,$(DEPS_DIR)/*/ebin)", 7659 "$(call core_native_path,$(TEST_DIR))"]), 7660 try begin 7661 CoverSetup(), 7662 Res = case $(1) of 7663 all -> [true] =:= lists:usort([triq:check(M) || M <- [$(call comma_list,$(3))]]); 7664 module -> triq:check($(2)); 7665 function -> triq:check($(2)) 7666 end, 7667 CoverExport("$(COVER_DATA_DIR)/triq.coverdata"), 7668 Res 7669 end of 7670 true -> halt(0); 7671 _ -> halt(1) 7672 catch error:undef -> 7673 io:format("Undefined property or module?~n~p~n", [erlang:get_stacktrace()]), 7674 halt(0) 7675 end. 7676 endef 7677 7678 ifdef t 7679 ifeq (,$(findstring :,$(t))) 7680 triq: test-build cover-data-dir 7681 $(verbose) $(call erlang,$(call triq_check.erl,module,$(t))) 7682 else 7683 triq: test-build cover-data-dir 7684 $(verbose) echo Testing $(t)/0 7685 $(verbose) $(call erlang,$(call triq_check.erl,function,$(t)())) 7686 endif 7687 else 7688 triq: test-build cover-data-dir 7689 $(eval MODULES := $(patsubst %,'%',$(sort $(notdir $(basename \ 7690 $(wildcard ebin/*.beam) $(call core_find,$(TEST_DIR)/,*.beam)))))) 7691 $(gen_verbose) $(call erlang,$(call triq_check.erl,all,undefined,$(MODULES))) 7692 endif 7693 endif 7694 7695 # Copyright (c) 2016, Loïc Hoguin <essen@ninenines.eu> 7696 # Copyright (c) 2015, Erlang Solutions Ltd. 7697 # This file is part of erlang.mk and subject to the terms of the ISC License. 7698 7699 .PHONY: xref distclean-xref 7700 7701 # Configuration. 7702 7703 ifeq ($(XREF_CONFIG),) 7704 XREFR_ARGS := 7705 else 7706 XREFR_ARGS := -c $(XREF_CONFIG) 7707 endif 7708 7709 XREFR ?= $(CURDIR)/xrefr 7710 export XREFR 7711 7712 XREFR_URL ?= https://github.com/inaka/xref_runner/releases/download/1.1.0/xrefr 7713 7714 # Core targets. 7715 7716 help:: 7717 $(verbose) printf '%s\n' '' \ 7718 'Xref targets:' \ 7719 ' xref Run Xrefr using $$XREF_CONFIG as config file if defined' 7720 7721 distclean:: distclean-xref 7722 7723 # Plugin-specific targets. 7724 7725 $(XREFR): 7726 $(gen_verbose) $(call core_http_get,$(XREFR),$(XREFR_URL)) 7727 $(verbose) chmod +x $(XREFR) 7728 7729 xref: deps app $(XREFR) 7730 $(gen_verbose) $(XREFR) $(XREFR_ARGS) 7731 7732 distclean-xref: 7733 $(gen_verbose) rm -rf $(XREFR) 7734 7735 # Copyright (c) 2016, Loïc Hoguin <essen@ninenines.eu> 7736 # Copyright (c) 2015, Viktor Söderqvist <viktor@zuiderkwast.se> 7737 # This file is part of erlang.mk and subject to the terms of the ISC License. 7738 7739 COVER_REPORT_DIR ?= cover 7740 COVER_DATA_DIR ?= $(COVER_REPORT_DIR) 7741 7742 ifdef COVER 7743 COVER_APPS ?= $(notdir $(ALL_APPS_DIRS)) 7744 COVER_DEPS ?= 7745 endif 7746 7747 # Code coverage for Common Test. 7748 7749 ifdef COVER 7750 ifdef CT_RUN 7751 ifneq ($(wildcard $(TEST_DIR)),) 7752 test-build:: $(TEST_DIR)/ct.cover.spec 7753 7754 $(TEST_DIR)/ct.cover.spec: cover-data-dir 7755 $(gen_verbose) printf "%s\n" \ 7756 "{incl_app, '$(PROJECT)', details}." \ 7757 "{incl_dirs, '$(PROJECT)', [\"$(call core_native_path,$(CURDIR)/ebin)\" \ 7758 $(foreach a,$(COVER_APPS),$(comma) \"$(call core_native_path,$(APPS_DIR)/$a/ebin)\") \ 7759 $(foreach d,$(COVER_DEPS),$(comma) \"$(call core_native_path,$(DEPS_DIR)/$d/ebin)\")]}." \ 7760 '{export,"$(call core_native_path,$(abspath $(COVER_DATA_DIR))/ct.coverdata)"}.' > $@ 7761 7762 CT_RUN += -cover $(TEST_DIR)/ct.cover.spec 7763 endif 7764 endif 7765 endif 7766 7767 # Code coverage for other tools. 7768 7769 ifdef COVER 7770 define cover.erl 7771 CoverSetup = fun() -> 7772 Dirs = ["$(call core_native_path,$(CURDIR)/ebin)" 7773 $(foreach a,$(COVER_APPS),$(comma) "$(call core_native_path,$(APPS_DIR)/$a/ebin)") 7774 $(foreach d,$(COVER_DEPS),$(comma) "$(call core_native_path,$(DEPS_DIR)/$d/ebin)")], 7775 [begin 7776 case filelib:is_dir(Dir) of 7777 false -> false; 7778 true -> 7779 case cover:compile_beam_directory(Dir) of 7780 {error, _} -> halt(1); 7781 _ -> true 7782 end 7783 end 7784 end || Dir <- Dirs] 7785 end, 7786 CoverExport = fun(Filename) -> cover:export(Filename) end, 7787 endef 7788 else 7789 define cover.erl 7790 CoverSetup = fun() -> ok end, 7791 CoverExport = fun(_) -> ok end, 7792 endef 7793 endif 7794 7795 # Core targets 7796 7797 ifdef COVER 7798 ifneq ($(COVER_REPORT_DIR),) 7799 tests:: 7800 $(verbose) $(MAKE) --no-print-directory cover-report 7801 endif 7802 7803 cover-data-dir: | $(COVER_DATA_DIR) 7804 7805 $(COVER_DATA_DIR): 7806 $(verbose) mkdir -p $(COVER_DATA_DIR) 7807 else 7808 cover-data-dir: 7809 endif 7810 7811 clean:: coverdata-clean 7812 7813 ifneq ($(COVER_REPORT_DIR),) 7814 distclean:: cover-report-clean 7815 endif 7816 7817 help:: 7818 $(verbose) printf "%s\n" "" \ 7819 "Cover targets:" \ 7820 " cover-report Generate a HTML coverage report from previously collected" \ 7821 " cover data." \ 7822 " all.coverdata Merge all coverdata files into all.coverdata." \ 7823 "" \ 7824 "If COVER=1 is set, coverage data is generated by the targets eunit and ct. The" \ 7825 "target tests additionally generates a HTML coverage report from the combined" \ 7826 "coverdata files from each of these testing tools. HTML reports can be disabled" \ 7827 "by setting COVER_REPORT_DIR to empty." 7828 7829 # Plugin specific targets 7830 7831 COVERDATA = $(filter-out $(COVER_DATA_DIR)/all.coverdata,$(wildcard $(COVER_DATA_DIR)/*.coverdata)) 7832 7833 .PHONY: coverdata-clean 7834 coverdata-clean: 7835 $(gen_verbose) rm -f $(COVER_DATA_DIR)/*.coverdata $(TEST_DIR)/ct.cover.spec 7836 7837 # Merge all coverdata files into one. 7838 define cover_export.erl 7839 $(foreach f,$(COVERDATA),cover:import("$(f)") == ok orelse halt(1),) 7840 cover:export("$(COVER_DATA_DIR)/$@"), halt(0). 7841 endef 7842 7843 all.coverdata: $(COVERDATA) cover-data-dir 7844 $(gen_verbose) $(call erlang,$(cover_export.erl)) 7845 7846 # These are only defined if COVER_REPORT_DIR is non-empty. Set COVER_REPORT_DIR to 7847 # empty if you want the coverdata files but not the HTML report. 7848 ifneq ($(COVER_REPORT_DIR),) 7849 7850 .PHONY: cover-report-clean cover-report 7851 7852 cover-report-clean: 7853 $(gen_verbose) rm -rf $(COVER_REPORT_DIR) 7854 ifneq ($(COVER_REPORT_DIR),$(COVER_DATA_DIR)) 7855 $(if $(shell ls -A $(COVER_DATA_DIR)/),,$(verbose) rmdir $(COVER_DATA_DIR)) 7856 endif 7857 7858 ifeq ($(COVERDATA),) 7859 cover-report: 7860 else 7861 7862 # Modules which include eunit.hrl always contain one line without coverage 7863 # because eunit defines test/0 which is never called. We compensate for this. 7864 EUNIT_HRL_MODS = $(subst $(space),$(comma),$(shell \ 7865 grep -H -e '^\s*-include.*include/eunit\.hrl"' src/*.erl \ 7866 | sed "s/^src\/\(.*\)\.erl:.*/'\1'/" | uniq)) 7867 7868 define cover_report.erl 7869 $(foreach f,$(COVERDATA),cover:import("$(f)") == ok orelse halt(1),) 7870 Ms = cover:imported_modules(), 7871 [cover:analyse_to_file(M, "$(COVER_REPORT_DIR)/" ++ atom_to_list(M) 7872 ++ ".COVER.html", [html]) || M <- Ms], 7873 Report = [begin {ok, R} = cover:analyse(M, module), R end || M <- Ms], 7874 EunitHrlMods = [$(EUNIT_HRL_MODS)], 7875 Report1 = [{M, {Y, case lists:member(M, EunitHrlMods) of 7876 true -> N - 1; false -> N end}} || {M, {Y, N}} <- Report], 7877 TotalY = lists:sum([Y || {_, {Y, _}} <- Report1]), 7878 TotalN = lists:sum([N || {_, {_, N}} <- Report1]), 7879 Perc = fun(Y, N) -> case Y + N of 0 -> 100; S -> round(100 * Y / S) end end, 7880 TotalPerc = Perc(TotalY, TotalN), 7881 {ok, F} = file:open("$(COVER_REPORT_DIR)/index.html", [write]), 7882 io:format(F, "<!DOCTYPE html><html>~n" 7883 "<head><meta charset=\"UTF-8\">~n" 7884 "<title>Coverage report</title></head>~n" 7885 "<body>~n", []), 7886 io:format(F, "<h1>Coverage</h1>~n<p>Total: ~p%</p>~n", [TotalPerc]), 7887 io:format(F, "<table><tr><th>Module</th><th>Coverage</th></tr>~n", []), 7888 [io:format(F, "<tr><td><a href=\"~p.COVER.html\">~p</a></td>" 7889 "<td>~p%</td></tr>~n", 7890 [M, M, Perc(Y, N)]) || {M, {Y, N}} <- Report1], 7891 How = "$(subst $(space),$(comma)$(space),$(basename $(COVERDATA)))", 7892 Date = "$(shell date -u "+%Y-%m-%dT%H:%M:%SZ")", 7893 io:format(F, "</table>~n" 7894 "<p>Generated using ~s and erlang.mk on ~s.</p>~n" 7895 "</body></html>", [How, Date]), 7896 halt(). 7897 endef 7898 7899 cover-report: 7900 $(verbose) mkdir -p $(COVER_REPORT_DIR) 7901 $(gen_verbose) $(call erlang,$(cover_report.erl)) 7902 7903 endif 7904 endif # ifneq ($(COVER_REPORT_DIR),) 7905 7906 # Copyright (c) 2016, Loïc Hoguin <essen@ninenines.eu> 7907 # This file is part of erlang.mk and subject to the terms of the ISC License. 7908 7909 .PHONY: sfx 7910 7911 ifdef RELX_REL 7912 ifdef SFX 7913 7914 # Configuration. 7915 7916 SFX_ARCHIVE ?= $(RELX_OUTPUT_DIR)/$(RELX_REL_NAME)/$(RELX_REL_NAME)-$(RELX_REL_VSN).tar.gz 7917 SFX_OUTPUT_FILE ?= $(RELX_OUTPUT_DIR)/$(RELX_REL_NAME).run 7918 7919 # Core targets. 7920 7921 rel:: sfx 7922 7923 # Plugin-specific targets. 7924 7925 define sfx_stub 7926 #!/bin/sh 7927 7928 TMPDIR=`mktemp -d` 7929 ARCHIVE=`awk '/^__ARCHIVE_BELOW__$$/ {print NR + 1; exit 0;}' $$0` 7930 FILENAME=$$(basename $$0) 7931 REL=$${FILENAME%.*} 7932 7933 tail -n+$$ARCHIVE $$0 | tar -xzf - -C $$TMPDIR 7934 7935 $$TMPDIR/bin/$$REL console 7936 RET=$$? 7937 7938 rm -rf $$TMPDIR 7939 7940 exit $$RET 7941 7942 __ARCHIVE_BELOW__ 7943 endef 7944 7945 sfx: 7946 $(verbose) $(call core_render,sfx_stub,$(SFX_OUTPUT_FILE)) 7947 $(gen_verbose) cat $(SFX_ARCHIVE) >> $(SFX_OUTPUT_FILE) 7948 $(verbose) chmod +x $(SFX_OUTPUT_FILE) 7949 7950 endif 7951 endif 7952 7953 # Copyright (c) 2013-2017, 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 # External plugins. 7957 7958 DEP_PLUGINS ?= 7959 7960 $(foreach p,$(DEP_PLUGINS),\ 7961 $(eval $(if $(findstring /,$p),\ 7962 $(call core_dep_plugin,$p,$(firstword $(subst /, ,$p))),\ 7963 $(call core_dep_plugin,$p/plugins.mk,$p)))) 7964 7965 help:: help-plugins 7966 7967 help-plugins:: 7968 $(verbose) : 7969 7970 # Copyright (c) 2013-2015, Loïc Hoguin <essen@ninenines.eu> 7971 # Copyright (c) 2015-2016, Jean-Sébastien Pédron <jean-sebastien@rabbitmq.com> 7972 # This file is part of erlang.mk and subject to the terms of the ISC License. 7973 7974 # Fetch dependencies recursively (without building them). 7975 7976 .PHONY: fetch-deps fetch-doc-deps fetch-rel-deps fetch-test-deps \ 7977 fetch-shell-deps 7978 7979 .PHONY: $(ERLANG_MK_RECURSIVE_DEPS_LIST) \ 7980 $(ERLANG_MK_RECURSIVE_DOC_DEPS_LIST) \ 7981 $(ERLANG_MK_RECURSIVE_REL_DEPS_LIST) \ 7982 $(ERLANG_MK_RECURSIVE_TEST_DEPS_LIST) \ 7983 $(ERLANG_MK_RECURSIVE_SHELL_DEPS_LIST) 7984 7985 fetch-deps: $(ERLANG_MK_RECURSIVE_DEPS_LIST) 7986 fetch-doc-deps: $(ERLANG_MK_RECURSIVE_DOC_DEPS_LIST) 7987 fetch-rel-deps: $(ERLANG_MK_RECURSIVE_REL_DEPS_LIST) 7988 fetch-test-deps: $(ERLANG_MK_RECURSIVE_TEST_DEPS_LIST) 7989 fetch-shell-deps: $(ERLANG_MK_RECURSIVE_SHELL_DEPS_LIST) 7990 7991 ifneq ($(SKIP_DEPS),) 7992 $(ERLANG_MK_RECURSIVE_DEPS_LIST) \ 7993 $(ERLANG_MK_RECURSIVE_DOC_DEPS_LIST) \ 7994 $(ERLANG_MK_RECURSIVE_REL_DEPS_LIST) \ 7995 $(ERLANG_MK_RECURSIVE_TEST_DEPS_LIST) \ 7996 $(ERLANG_MK_RECURSIVE_SHELL_DEPS_LIST): 7997 $(verbose) :> $@ 7998 else 7999 # By default, we fetch "normal" dependencies. They are also included no 8000 # matter the type of requested dependencies. 8001 # 8002 # $(ALL_DEPS_DIRS) includes $(BUILD_DEPS). 8003 8004 $(ERLANG_MK_RECURSIVE_DEPS_LIST): $(LOCAL_DEPS_DIRS) $(ALL_DEPS_DIRS) 8005 $(ERLANG_MK_RECURSIVE_DOC_DEPS_LIST): $(LOCAL_DEPS_DIRS) $(ALL_DEPS_DIRS) $(ALL_DOC_DEPS_DIRS) 8006 $(ERLANG_MK_RECURSIVE_REL_DEPS_LIST): $(LOCAL_DEPS_DIRS) $(ALL_DEPS_DIRS) $(ALL_REL_DEPS_DIRS) 8007 $(ERLANG_MK_RECURSIVE_TEST_DEPS_LIST): $(LOCAL_DEPS_DIRS) $(ALL_DEPS_DIRS) $(ALL_TEST_DEPS_DIRS) 8008 $(ERLANG_MK_RECURSIVE_SHELL_DEPS_LIST): $(LOCAL_DEPS_DIRS) $(ALL_DEPS_DIRS) $(ALL_SHELL_DEPS_DIRS) 8009 8010 # Allow to use fetch-deps and $(DEP_TYPES) to fetch multiple types of 8011 # dependencies with a single target. 8012 ifneq ($(filter doc,$(DEP_TYPES)),) 8013 $(ERLANG_MK_RECURSIVE_DEPS_LIST): $(ALL_DOC_DEPS_DIRS) 8014 endif 8015 ifneq ($(filter rel,$(DEP_TYPES)),) 8016 $(ERLANG_MK_RECURSIVE_DEPS_LIST): $(ALL_REL_DEPS_DIRS) 8017 endif 8018 ifneq ($(filter test,$(DEP_TYPES)),) 8019 $(ERLANG_MK_RECURSIVE_DEPS_LIST): $(ALL_TEST_DEPS_DIRS) 8020 endif 8021 ifneq ($(filter shell,$(DEP_TYPES)),) 8022 $(ERLANG_MK_RECURSIVE_DEPS_LIST): $(ALL_SHELL_DEPS_DIRS) 8023 endif 8024 8025 ERLANG_MK_RECURSIVE_TMP_LIST := $(abspath $(ERLANG_MK_TMP)/recursive-tmp-deps-$(shell echo $$PPID).log) 8026 8027 $(ERLANG_MK_RECURSIVE_DEPS_LIST) \ 8028 $(ERLANG_MK_RECURSIVE_DOC_DEPS_LIST) \ 8029 $(ERLANG_MK_RECURSIVE_REL_DEPS_LIST) \ 8030 $(ERLANG_MK_RECURSIVE_TEST_DEPS_LIST) \ 8031 $(ERLANG_MK_RECURSIVE_SHELL_DEPS_LIST): | $(ERLANG_MK_TMP) 8032 ifeq ($(IS_APP)$(IS_DEP),) 8033 $(verbose) rm -f $(ERLANG_MK_RECURSIVE_TMP_LIST) 8034 endif 8035 $(verbose) touch $(ERLANG_MK_RECURSIVE_TMP_LIST) 8036 $(verbose) set -e; for dep in $^ ; do \ 8037 if ! grep -qs ^$$dep$$ $(ERLANG_MK_RECURSIVE_TMP_LIST); then \ 8038 echo $$dep >> $(ERLANG_MK_RECURSIVE_TMP_LIST); \ 8039 if grep -qs -E "^[[:blank:]]*include[[:blank:]]+(erlang\.mk|.*/erlang\.mk|.*ERLANG_MK_FILENAME.*)$$" \ 8040 $$dep/GNUmakefile $$dep/makefile $$dep/Makefile; then \ 8041 $(MAKE) -C $$dep fetch-deps \ 8042 IS_DEP=1 \ 8043 ERLANG_MK_RECURSIVE_TMP_LIST=$(ERLANG_MK_RECURSIVE_TMP_LIST); \ 8044 fi \ 8045 fi \ 8046 done 8047 ifeq ($(IS_APP)$(IS_DEP),) 8048 $(verbose) sort < $(ERLANG_MK_RECURSIVE_TMP_LIST) | \ 8049 uniq > $(ERLANG_MK_RECURSIVE_TMP_LIST).sorted 8050 $(verbose) cmp -s $(ERLANG_MK_RECURSIVE_TMP_LIST).sorted $@ \ 8051 || mv $(ERLANG_MK_RECURSIVE_TMP_LIST).sorted $@ 8052 $(verbose) rm -f $(ERLANG_MK_RECURSIVE_TMP_LIST).sorted 8053 $(verbose) rm $(ERLANG_MK_RECURSIVE_TMP_LIST) 8054 endif 8055 endif # ifneq ($(SKIP_DEPS),) 8056 8057 # List dependencies recursively. 8058 8059 .PHONY: list-deps list-doc-deps list-rel-deps list-test-deps \ 8060 list-shell-deps 8061 8062 list-deps: $(ERLANG_MK_RECURSIVE_DEPS_LIST) 8063 list-doc-deps: $(ERLANG_MK_RECURSIVE_DOC_DEPS_LIST) 8064 list-rel-deps: $(ERLANG_MK_RECURSIVE_REL_DEPS_LIST) 8065 list-test-deps: $(ERLANG_MK_RECURSIVE_TEST_DEPS_LIST) 8066 list-shell-deps: $(ERLANG_MK_RECURSIVE_SHELL_DEPS_LIST) 8067 8068 list-deps list-doc-deps list-rel-deps list-test-deps list-shell-deps: 8069 $(verbose) cat $^ 8070 8071 # Query dependencies recursively. 8072 8073 .PHONY: query-deps query-doc-deps query-rel-deps query-test-deps \ 8074 query-shell-deps 8075 8076 QUERY ?= name fetch_method repo version 8077 8078 define query_target 8079 $(1): $(2) clean-tmp-query.log 8080 ifeq ($(IS_APP)$(IS_DEP),) 8081 $(verbose) rm -f $(4) 8082 endif 8083 $(verbose) $(foreach dep,$(3),\ 8084 echo $(PROJECT): $(foreach q,$(QUERY),$(call query_$(q),$(dep))) >> $(4) ;) 8085 $(if $(filter-out query-deps,$(1)),,\ 8086 $(verbose) set -e; for dep in $(3) ; do \ 8087 if grep -qs ^$$$$dep$$$$ $(ERLANG_MK_TMP)/query.log; then \ 8088 :; \ 8089 else \ 8090 echo $$$$dep >> $(ERLANG_MK_TMP)/query.log; \ 8091 $(MAKE) -C $(DEPS_DIR)/$$$$dep $$@ QUERY="$(QUERY)" IS_DEP=1 || true; \ 8092 fi \ 8093 done) 8094 ifeq ($(IS_APP)$(IS_DEP),) 8095 $(verbose) touch $(4) 8096 $(verbose) cat $(4) 8097 endif 8098 endef 8099 8100 clean-tmp-query.log: 8101 ifeq ($(IS_DEP),) 8102 $(verbose) rm -f $(ERLANG_MK_TMP)/query.log 8103 endif 8104 8105 $(eval $(call query_target,query-deps,$(ERLANG_MK_RECURSIVE_DEPS_LIST),$(BUILD_DEPS) $(DEPS),$(ERLANG_MK_QUERY_DEPS_FILE))) 8106 $(eval $(call query_target,query-doc-deps,$(ERLANG_MK_RECURSIVE_DOC_DEPS_LIST),$(DOC_DEPS),$(ERLANG_MK_QUERY_DOC_DEPS_FILE))) 8107 $(eval $(call query_target,query-rel-deps,$(ERLANG_MK_RECURSIVE_REL_DEPS_LIST),$(REL_DEPS),$(ERLANG_MK_QUERY_REL_DEPS_FILE))) 8108 $(eval $(call query_target,query-test-deps,$(ERLANG_MK_RECURSIVE_TEST_DEPS_LIST),$(TEST_DEPS),$(ERLANG_MK_QUERY_TEST_DEPS_FILE))) 8109 $(eval $(call query_target,query-shell-deps,$(ERLANG_MK_RECURSIVE_SHELL_DEPS_LIST),$(SHELL_DEPS),$(ERLANG_MK_QUERY_SHELL_DEPS_FILE)))