erlang.mk 251 KB

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