erlang.mk 248 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712
  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 = 2331c34
  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 += espec
  1394. pkg_espec_name = espec
  1395. pkg_espec_description = ESpec: Behaviour driven development framework for Erlang
  1396. pkg_espec_homepage = https://github.com/lucaspiller/espec
  1397. pkg_espec_fetch = git
  1398. pkg_espec_repo = https://github.com/lucaspiller/espec
  1399. pkg_espec_commit = master
  1400. PACKAGES += estatsd
  1401. pkg_estatsd_name = estatsd
  1402. pkg_estatsd_description = Erlang stats aggregation app that periodically flushes data to graphite
  1403. pkg_estatsd_homepage = https://github.com/RJ/estatsd
  1404. pkg_estatsd_fetch = git
  1405. pkg_estatsd_repo = https://github.com/RJ/estatsd
  1406. pkg_estatsd_commit = master
  1407. PACKAGES += etap
  1408. pkg_etap_name = etap
  1409. pkg_etap_description = etap is a simple erlang testing library that provides TAP compliant output.
  1410. pkg_etap_homepage = https://github.com/ngerakines/etap
  1411. pkg_etap_fetch = git
  1412. pkg_etap_repo = https://github.com/ngerakines/etap
  1413. pkg_etap_commit = master
  1414. PACKAGES += etest
  1415. pkg_etest_name = etest
  1416. pkg_etest_description = A lightweight, convention over configuration test framework for Erlang
  1417. pkg_etest_homepage = https://github.com/wooga/etest
  1418. pkg_etest_fetch = git
  1419. pkg_etest_repo = https://github.com/wooga/etest
  1420. pkg_etest_commit = master
  1421. PACKAGES += etest_http
  1422. pkg_etest_http_name = etest_http
  1423. pkg_etest_http_description = etest Assertions around HTTP (client-side)
  1424. pkg_etest_http_homepage = https://github.com/wooga/etest_http
  1425. pkg_etest_http_fetch = git
  1426. pkg_etest_http_repo = https://github.com/wooga/etest_http
  1427. pkg_etest_http_commit = master
  1428. PACKAGES += etoml
  1429. pkg_etoml_name = etoml
  1430. pkg_etoml_description = TOML language erlang parser
  1431. pkg_etoml_homepage = https://github.com/kalta/etoml
  1432. pkg_etoml_fetch = git
  1433. pkg_etoml_repo = https://github.com/kalta/etoml
  1434. pkg_etoml_commit = master
  1435. PACKAGES += eunit
  1436. pkg_eunit_name = eunit
  1437. pkg_eunit_description = The EUnit lightweight unit testing framework for Erlang - this is the canonical development repository.
  1438. pkg_eunit_homepage = https://github.com/richcarl/eunit
  1439. pkg_eunit_fetch = git
  1440. pkg_eunit_repo = https://github.com/richcarl/eunit
  1441. pkg_eunit_commit = master
  1442. PACKAGES += eunit_formatters
  1443. pkg_eunit_formatters_name = eunit_formatters
  1444. pkg_eunit_formatters_description = Because eunit's output sucks. Let's make it better.
  1445. pkg_eunit_formatters_homepage = https://github.com/seancribbs/eunit_formatters
  1446. pkg_eunit_formatters_fetch = git
  1447. pkg_eunit_formatters_repo = https://github.com/seancribbs/eunit_formatters
  1448. pkg_eunit_formatters_commit = master
  1449. PACKAGES += euthanasia
  1450. pkg_euthanasia_name = euthanasia
  1451. pkg_euthanasia_description = Merciful killer for your Erlang processes
  1452. pkg_euthanasia_homepage = https://github.com/doubleyou/euthanasia
  1453. pkg_euthanasia_fetch = git
  1454. pkg_euthanasia_repo = https://github.com/doubleyou/euthanasia
  1455. pkg_euthanasia_commit = master
  1456. PACKAGES += evum
  1457. pkg_evum_name = evum
  1458. pkg_evum_description = Spawn Linux VMs as Erlang processes in the Erlang VM
  1459. pkg_evum_homepage = https://github.com/msantos/evum
  1460. pkg_evum_fetch = git
  1461. pkg_evum_repo = https://github.com/msantos/evum
  1462. pkg_evum_commit = master
  1463. PACKAGES += exec
  1464. pkg_exec_name = erlexec
  1465. pkg_exec_description = Execute and control OS processes from Erlang/OTP.
  1466. pkg_exec_homepage = http://saleyn.github.com/erlexec
  1467. pkg_exec_fetch = git
  1468. pkg_exec_repo = https://github.com/saleyn/erlexec
  1469. pkg_exec_commit = master
  1470. PACKAGES += exml
  1471. pkg_exml_name = exml
  1472. pkg_exml_description = XML parsing library in Erlang
  1473. pkg_exml_homepage = https://github.com/paulgray/exml
  1474. pkg_exml_fetch = git
  1475. pkg_exml_repo = https://github.com/paulgray/exml
  1476. pkg_exml_commit = master
  1477. PACKAGES += exometer
  1478. pkg_exometer_name = exometer
  1479. pkg_exometer_description = Basic measurement objects and probe behavior
  1480. pkg_exometer_homepage = https://github.com/Feuerlabs/exometer
  1481. pkg_exometer_fetch = git
  1482. pkg_exometer_repo = https://github.com/Feuerlabs/exometer
  1483. pkg_exometer_commit = master
  1484. PACKAGES += exs1024
  1485. pkg_exs1024_name = exs1024
  1486. pkg_exs1024_description = Xorshift1024star pseudo random number generator for Erlang.
  1487. pkg_exs1024_homepage = https://github.com/jj1bdx/exs1024
  1488. pkg_exs1024_fetch = git
  1489. pkg_exs1024_repo = https://github.com/jj1bdx/exs1024
  1490. pkg_exs1024_commit = master
  1491. PACKAGES += exs64
  1492. pkg_exs64_name = exs64
  1493. pkg_exs64_description = Xorshift64star pseudo random number generator for Erlang.
  1494. pkg_exs64_homepage = https://github.com/jj1bdx/exs64
  1495. pkg_exs64_fetch = git
  1496. pkg_exs64_repo = https://github.com/jj1bdx/exs64
  1497. pkg_exs64_commit = master
  1498. PACKAGES += exsplus116
  1499. pkg_exsplus116_name = exsplus116
  1500. pkg_exsplus116_description = Xorshift116plus for Erlang
  1501. pkg_exsplus116_homepage = https://github.com/jj1bdx/exsplus116
  1502. pkg_exsplus116_fetch = git
  1503. pkg_exsplus116_repo = https://github.com/jj1bdx/exsplus116
  1504. pkg_exsplus116_commit = master
  1505. PACKAGES += exsplus128
  1506. pkg_exsplus128_name = exsplus128
  1507. pkg_exsplus128_description = Xorshift128plus pseudo random number generator for Erlang.
  1508. pkg_exsplus128_homepage = https://github.com/jj1bdx/exsplus128
  1509. pkg_exsplus128_fetch = git
  1510. pkg_exsplus128_repo = https://github.com/jj1bdx/exsplus128
  1511. pkg_exsplus128_commit = master
  1512. PACKAGES += ezmq
  1513. pkg_ezmq_name = ezmq
  1514. pkg_ezmq_description = zMQ implemented in Erlang
  1515. pkg_ezmq_homepage = https://github.com/RoadRunnr/ezmq
  1516. pkg_ezmq_fetch = git
  1517. pkg_ezmq_repo = https://github.com/RoadRunnr/ezmq
  1518. pkg_ezmq_commit = master
  1519. PACKAGES += ezmtp
  1520. pkg_ezmtp_name = ezmtp
  1521. pkg_ezmtp_description = ZMTP protocol in pure Erlang.
  1522. pkg_ezmtp_homepage = https://github.com/a13x/ezmtp
  1523. pkg_ezmtp_fetch = git
  1524. pkg_ezmtp_repo = https://github.com/a13x/ezmtp
  1525. pkg_ezmtp_commit = master
  1526. PACKAGES += fast_disk_log
  1527. pkg_fast_disk_log_name = fast_disk_log
  1528. pkg_fast_disk_log_description = Pool-based asynchronous Erlang disk logger
  1529. pkg_fast_disk_log_homepage = https://github.com/lpgauth/fast_disk_log
  1530. pkg_fast_disk_log_fetch = git
  1531. pkg_fast_disk_log_repo = https://github.com/lpgauth/fast_disk_log
  1532. pkg_fast_disk_log_commit = master
  1533. PACKAGES += feeder
  1534. pkg_feeder_name = feeder
  1535. pkg_feeder_description = Stream parse RSS and Atom formatted XML feeds.
  1536. pkg_feeder_homepage = https://github.com/michaelnisi/feeder
  1537. pkg_feeder_fetch = git
  1538. pkg_feeder_repo = https://github.com/michaelnisi/feeder
  1539. pkg_feeder_commit = master
  1540. PACKAGES += find_crate
  1541. pkg_find_crate_name = find_crate
  1542. pkg_find_crate_description = Find Rust libs and exes in Erlang application priv directory
  1543. pkg_find_crate_homepage = https://github.com/goertzenator/find_crate
  1544. pkg_find_crate_fetch = git
  1545. pkg_find_crate_repo = https://github.com/goertzenator/find_crate
  1546. pkg_find_crate_commit = master
  1547. PACKAGES += fix
  1548. pkg_fix_name = fix
  1549. pkg_fix_description = http://fixprotocol.org/ implementation.
  1550. pkg_fix_homepage = https://github.com/maxlapshin/fix
  1551. pkg_fix_fetch = git
  1552. pkg_fix_repo = https://github.com/maxlapshin/fix
  1553. pkg_fix_commit = master
  1554. PACKAGES += flower
  1555. pkg_flower_name = flower
  1556. pkg_flower_description = FlowER - a Erlang OpenFlow development platform
  1557. pkg_flower_homepage = https://github.com/travelping/flower
  1558. pkg_flower_fetch = git
  1559. pkg_flower_repo = https://github.com/travelping/flower
  1560. pkg_flower_commit = master
  1561. PACKAGES += fn
  1562. pkg_fn_name = fn
  1563. pkg_fn_description = Function utilities for Erlang
  1564. pkg_fn_homepage = https://github.com/reiddraper/fn
  1565. pkg_fn_fetch = git
  1566. pkg_fn_repo = https://github.com/reiddraper/fn
  1567. pkg_fn_commit = master
  1568. PACKAGES += folsom
  1569. pkg_folsom_name = folsom
  1570. pkg_folsom_description = Expose Erlang Events and Metrics
  1571. pkg_folsom_homepage = https://github.com/boundary/folsom
  1572. pkg_folsom_fetch = git
  1573. pkg_folsom_repo = https://github.com/boundary/folsom
  1574. pkg_folsom_commit = master
  1575. PACKAGES += folsom_cowboy
  1576. pkg_folsom_cowboy_name = folsom_cowboy
  1577. pkg_folsom_cowboy_description = A Cowboy based Folsom HTTP Wrapper.
  1578. pkg_folsom_cowboy_homepage = https://github.com/boundary/folsom_cowboy
  1579. pkg_folsom_cowboy_fetch = git
  1580. pkg_folsom_cowboy_repo = https://github.com/boundary/folsom_cowboy
  1581. pkg_folsom_cowboy_commit = master
  1582. PACKAGES += folsomite
  1583. pkg_folsomite_name = folsomite
  1584. pkg_folsomite_description = blow up your graphite / riemann server with folsom metrics
  1585. pkg_folsomite_homepage = https://github.com/campanja/folsomite
  1586. pkg_folsomite_fetch = git
  1587. pkg_folsomite_repo = https://github.com/campanja/folsomite
  1588. pkg_folsomite_commit = master
  1589. PACKAGES += fs
  1590. pkg_fs_name = fs
  1591. pkg_fs_description = Erlang FileSystem Listener
  1592. pkg_fs_homepage = https://github.com/synrc/fs
  1593. pkg_fs_fetch = git
  1594. pkg_fs_repo = https://github.com/synrc/fs
  1595. pkg_fs_commit = master
  1596. PACKAGES += fuse
  1597. pkg_fuse_name = fuse
  1598. pkg_fuse_description = A Circuit Breaker for Erlang
  1599. pkg_fuse_homepage = https://github.com/jlouis/fuse
  1600. pkg_fuse_fetch = git
  1601. pkg_fuse_repo = https://github.com/jlouis/fuse
  1602. pkg_fuse_commit = master
  1603. PACKAGES += gcm
  1604. pkg_gcm_name = gcm
  1605. pkg_gcm_description = An Erlang application for Google Cloud Messaging
  1606. pkg_gcm_homepage = https://github.com/pdincau/gcm-erlang
  1607. pkg_gcm_fetch = git
  1608. pkg_gcm_repo = https://github.com/pdincau/gcm-erlang
  1609. pkg_gcm_commit = master
  1610. PACKAGES += gcprof
  1611. pkg_gcprof_name = gcprof
  1612. pkg_gcprof_description = Garbage Collection profiler for Erlang
  1613. pkg_gcprof_homepage = https://github.com/knutin/gcprof
  1614. pkg_gcprof_fetch = git
  1615. pkg_gcprof_repo = https://github.com/knutin/gcprof
  1616. pkg_gcprof_commit = master
  1617. PACKAGES += geas
  1618. pkg_geas_name = geas
  1619. pkg_geas_description = Guess Erlang Application Scattering
  1620. pkg_geas_homepage = https://github.com/crownedgrouse/geas
  1621. pkg_geas_fetch = git
  1622. pkg_geas_repo = https://github.com/crownedgrouse/geas
  1623. pkg_geas_commit = master
  1624. PACKAGES += geef
  1625. pkg_geef_name = geef
  1626. pkg_geef_description = Git NEEEEF (Erlang NIF)
  1627. pkg_geef_homepage = https://github.com/carlosmn/geef
  1628. pkg_geef_fetch = git
  1629. pkg_geef_repo = https://github.com/carlosmn/geef
  1630. pkg_geef_commit = master
  1631. PACKAGES += gen_coap
  1632. pkg_gen_coap_name = gen_coap
  1633. pkg_gen_coap_description = Generic Erlang CoAP Client/Server
  1634. pkg_gen_coap_homepage = https://github.com/gotthardp/gen_coap
  1635. pkg_gen_coap_fetch = git
  1636. pkg_gen_coap_repo = https://github.com/gotthardp/gen_coap
  1637. pkg_gen_coap_commit = master
  1638. PACKAGES += gen_cycle
  1639. pkg_gen_cycle_name = gen_cycle
  1640. pkg_gen_cycle_description = Simple, generic OTP behaviour for recurring tasks
  1641. pkg_gen_cycle_homepage = https://github.com/aerosol/gen_cycle
  1642. pkg_gen_cycle_fetch = git
  1643. pkg_gen_cycle_repo = https://github.com/aerosol/gen_cycle
  1644. pkg_gen_cycle_commit = develop
  1645. PACKAGES += gen_icmp
  1646. pkg_gen_icmp_name = gen_icmp
  1647. pkg_gen_icmp_description = Erlang interface to ICMP sockets
  1648. pkg_gen_icmp_homepage = https://github.com/msantos/gen_icmp
  1649. pkg_gen_icmp_fetch = git
  1650. pkg_gen_icmp_repo = https://github.com/msantos/gen_icmp
  1651. pkg_gen_icmp_commit = master
  1652. PACKAGES += gen_leader
  1653. pkg_gen_leader_name = gen_leader
  1654. pkg_gen_leader_description = leader election behavior
  1655. pkg_gen_leader_homepage = https://github.com/garret-smith/gen_leader_revival
  1656. pkg_gen_leader_fetch = git
  1657. pkg_gen_leader_repo = https://github.com/garret-smith/gen_leader_revival
  1658. pkg_gen_leader_commit = master
  1659. PACKAGES += gen_nb_server
  1660. pkg_gen_nb_server_name = gen_nb_server
  1661. pkg_gen_nb_server_description = OTP behavior for writing non-blocking servers
  1662. pkg_gen_nb_server_homepage = https://github.com/kevsmith/gen_nb_server
  1663. pkg_gen_nb_server_fetch = git
  1664. pkg_gen_nb_server_repo = https://github.com/kevsmith/gen_nb_server
  1665. pkg_gen_nb_server_commit = master
  1666. PACKAGES += gen_paxos
  1667. pkg_gen_paxos_name = gen_paxos
  1668. pkg_gen_paxos_description = An Erlang/OTP-style implementation of the PAXOS distributed consensus protocol
  1669. pkg_gen_paxos_homepage = https://github.com/gburd/gen_paxos
  1670. pkg_gen_paxos_fetch = git
  1671. pkg_gen_paxos_repo = https://github.com/gburd/gen_paxos
  1672. pkg_gen_paxos_commit = master
  1673. PACKAGES += gen_rpc
  1674. pkg_gen_rpc_name = gen_rpc
  1675. pkg_gen_rpc_description = A scalable RPC library for Erlang-VM based languages
  1676. pkg_gen_rpc_homepage = https://github.com/priestjim/gen_rpc.git
  1677. pkg_gen_rpc_fetch = git
  1678. pkg_gen_rpc_repo = https://github.com/priestjim/gen_rpc.git
  1679. pkg_gen_rpc_commit = master
  1680. PACKAGES += gen_smtp
  1681. pkg_gen_smtp_name = gen_smtp
  1682. pkg_gen_smtp_description = A generic Erlang SMTP server and client that can be extended via callback modules
  1683. pkg_gen_smtp_homepage = https://github.com/Vagabond/gen_smtp
  1684. pkg_gen_smtp_fetch = git
  1685. pkg_gen_smtp_repo = https://github.com/Vagabond/gen_smtp
  1686. pkg_gen_smtp_commit = master
  1687. PACKAGES += gen_tracker
  1688. pkg_gen_tracker_name = gen_tracker
  1689. pkg_gen_tracker_description = supervisor with ets handling of children and their metadata
  1690. pkg_gen_tracker_homepage = https://github.com/erlyvideo/gen_tracker
  1691. pkg_gen_tracker_fetch = git
  1692. pkg_gen_tracker_repo = https://github.com/erlyvideo/gen_tracker
  1693. pkg_gen_tracker_commit = master
  1694. PACKAGES += gen_unix
  1695. pkg_gen_unix_name = gen_unix
  1696. pkg_gen_unix_description = Erlang Unix socket interface
  1697. pkg_gen_unix_homepage = https://github.com/msantos/gen_unix
  1698. pkg_gen_unix_fetch = git
  1699. pkg_gen_unix_repo = https://github.com/msantos/gen_unix
  1700. pkg_gen_unix_commit = master
  1701. PACKAGES += geode
  1702. pkg_geode_name = geode
  1703. pkg_geode_description = geohash/proximity lookup in pure, uncut erlang.
  1704. pkg_geode_homepage = https://github.com/bradfordw/geode
  1705. pkg_geode_fetch = git
  1706. pkg_geode_repo = https://github.com/bradfordw/geode
  1707. pkg_geode_commit = master
  1708. PACKAGES += getopt
  1709. pkg_getopt_name = getopt
  1710. pkg_getopt_description = Module to parse command line arguments using the GNU getopt syntax
  1711. pkg_getopt_homepage = https://github.com/jcomellas/getopt
  1712. pkg_getopt_fetch = git
  1713. pkg_getopt_repo = https://github.com/jcomellas/getopt
  1714. pkg_getopt_commit = master
  1715. PACKAGES += gettext
  1716. pkg_gettext_name = gettext
  1717. pkg_gettext_description = Erlang internationalization library.
  1718. pkg_gettext_homepage = https://github.com/etnt/gettext
  1719. pkg_gettext_fetch = git
  1720. pkg_gettext_repo = https://github.com/etnt/gettext
  1721. pkg_gettext_commit = master
  1722. PACKAGES += giallo
  1723. pkg_giallo_name = giallo
  1724. pkg_giallo_description = Small and flexible web framework on top of Cowboy
  1725. pkg_giallo_homepage = https://github.com/kivra/giallo
  1726. pkg_giallo_fetch = git
  1727. pkg_giallo_repo = https://github.com/kivra/giallo
  1728. pkg_giallo_commit = master
  1729. PACKAGES += gin
  1730. pkg_gin_name = gin
  1731. pkg_gin_description = The guards and for Erlang parse_transform
  1732. pkg_gin_homepage = https://github.com/mad-cocktail/gin
  1733. pkg_gin_fetch = git
  1734. pkg_gin_repo = https://github.com/mad-cocktail/gin
  1735. pkg_gin_commit = master
  1736. PACKAGES += gitty
  1737. pkg_gitty_name = gitty
  1738. pkg_gitty_description = Git access in erlang
  1739. pkg_gitty_homepage = https://github.com/maxlapshin/gitty
  1740. pkg_gitty_fetch = git
  1741. pkg_gitty_repo = https://github.com/maxlapshin/gitty
  1742. pkg_gitty_commit = master
  1743. PACKAGES += gold_fever
  1744. pkg_gold_fever_name = gold_fever
  1745. pkg_gold_fever_description = A Treasure Hunt for Erlangers
  1746. pkg_gold_fever_homepage = https://github.com/inaka/gold_fever
  1747. pkg_gold_fever_fetch = git
  1748. pkg_gold_fever_repo = https://github.com/inaka/gold_fever
  1749. pkg_gold_fever_commit = master
  1750. PACKAGES += gpb
  1751. pkg_gpb_name = gpb
  1752. pkg_gpb_description = A Google Protobuf implementation for Erlang
  1753. pkg_gpb_homepage = https://github.com/tomas-abrahamsson/gpb
  1754. pkg_gpb_fetch = git
  1755. pkg_gpb_repo = https://github.com/tomas-abrahamsson/gpb
  1756. pkg_gpb_commit = master
  1757. PACKAGES += gproc
  1758. pkg_gproc_name = gproc
  1759. pkg_gproc_description = Extended process registry for Erlang
  1760. pkg_gproc_homepage = https://github.com/uwiger/gproc
  1761. pkg_gproc_fetch = git
  1762. pkg_gproc_repo = https://github.com/uwiger/gproc
  1763. pkg_gproc_commit = master
  1764. PACKAGES += grapherl
  1765. pkg_grapherl_name = grapherl
  1766. pkg_grapherl_description = Create graphs of Erlang systems and programs
  1767. pkg_grapherl_homepage = https://github.com/eproxus/grapherl
  1768. pkg_grapherl_fetch = git
  1769. pkg_grapherl_repo = https://github.com/eproxus/grapherl
  1770. pkg_grapherl_commit = master
  1771. PACKAGES += grpc
  1772. pkg_grpc_name = grpc
  1773. pkg_grpc_description = gRPC server in Erlang
  1774. pkg_grpc_homepage = https://github.com/Bluehouse-Technology/grpc
  1775. pkg_grpc_fetch = git
  1776. pkg_grpc_repo = https://github.com/Bluehouse-Technology/grpc
  1777. pkg_grpc_commit = master
  1778. PACKAGES += grpc_client
  1779. pkg_grpc_client_name = grpc_client
  1780. pkg_grpc_client_description = gRPC client in Erlang
  1781. pkg_grpc_client_homepage = https://github.com/Bluehouse-Technology/grpc_client
  1782. pkg_grpc_client_fetch = git
  1783. pkg_grpc_client_repo = https://github.com/Bluehouse-Technology/grpc_client
  1784. pkg_grpc_client_commit = master
  1785. PACKAGES += gun
  1786. pkg_gun_name = gun
  1787. pkg_gun_description = Asynchronous SPDY, HTTP and Websocket client written in Erlang.
  1788. pkg_gun_homepage = http//ninenines.eu
  1789. pkg_gun_fetch = git
  1790. pkg_gun_repo = https://github.com/ninenines/gun
  1791. pkg_gun_commit = master
  1792. PACKAGES += gut
  1793. pkg_gut_name = gut
  1794. pkg_gut_description = gut is a template printing, aka scaffolding, tool for Erlang. Like rails generate or yeoman
  1795. pkg_gut_homepage = https://github.com/unbalancedparentheses/gut
  1796. pkg_gut_fetch = git
  1797. pkg_gut_repo = https://github.com/unbalancedparentheses/gut
  1798. pkg_gut_commit = master
  1799. PACKAGES += hackney
  1800. pkg_hackney_name = hackney
  1801. pkg_hackney_description = simple HTTP client in Erlang
  1802. pkg_hackney_homepage = https://github.com/benoitc/hackney
  1803. pkg_hackney_fetch = git
  1804. pkg_hackney_repo = https://github.com/benoitc/hackney
  1805. pkg_hackney_commit = master
  1806. PACKAGES += hamcrest
  1807. pkg_hamcrest_name = hamcrest
  1808. pkg_hamcrest_description = Erlang port of Hamcrest
  1809. pkg_hamcrest_homepage = https://github.com/hyperthunk/hamcrest-erlang
  1810. pkg_hamcrest_fetch = git
  1811. pkg_hamcrest_repo = https://github.com/hyperthunk/hamcrest-erlang
  1812. pkg_hamcrest_commit = master
  1813. PACKAGES += hanoidb
  1814. pkg_hanoidb_name = hanoidb
  1815. pkg_hanoidb_description = Erlang LSM BTree Storage
  1816. pkg_hanoidb_homepage = https://github.com/krestenkrab/hanoidb
  1817. pkg_hanoidb_fetch = git
  1818. pkg_hanoidb_repo = https://github.com/krestenkrab/hanoidb
  1819. pkg_hanoidb_commit = master
  1820. PACKAGES += hottub
  1821. pkg_hottub_name = hottub
  1822. pkg_hottub_description = Permanent Erlang Worker Pool
  1823. pkg_hottub_homepage = https://github.com/bfrog/hottub
  1824. pkg_hottub_fetch = git
  1825. pkg_hottub_repo = https://github.com/bfrog/hottub
  1826. pkg_hottub_commit = master
  1827. PACKAGES += hpack
  1828. pkg_hpack_name = hpack
  1829. pkg_hpack_description = HPACK Implementation for Erlang
  1830. pkg_hpack_homepage = https://github.com/joedevivo/hpack
  1831. pkg_hpack_fetch = git
  1832. pkg_hpack_repo = https://github.com/joedevivo/hpack
  1833. pkg_hpack_commit = master
  1834. PACKAGES += hyper
  1835. pkg_hyper_name = hyper
  1836. pkg_hyper_description = Erlang implementation of HyperLogLog
  1837. pkg_hyper_homepage = https://github.com/GameAnalytics/hyper
  1838. pkg_hyper_fetch = git
  1839. pkg_hyper_repo = https://github.com/GameAnalytics/hyper
  1840. pkg_hyper_commit = master
  1841. PACKAGES += i18n
  1842. pkg_i18n_name = i18n
  1843. pkg_i18n_description = International components for unicode from Erlang (unicode, date, string, number, format, locale, localization, transliteration, icu4e)
  1844. pkg_i18n_homepage = https://github.com/erlang-unicode/i18n
  1845. pkg_i18n_fetch = git
  1846. pkg_i18n_repo = https://github.com/erlang-unicode/i18n
  1847. pkg_i18n_commit = master
  1848. PACKAGES += ibrowse
  1849. pkg_ibrowse_name = ibrowse
  1850. pkg_ibrowse_description = Erlang HTTP client
  1851. pkg_ibrowse_homepage = https://github.com/cmullaparthi/ibrowse
  1852. pkg_ibrowse_fetch = git
  1853. pkg_ibrowse_repo = https://github.com/cmullaparthi/ibrowse
  1854. pkg_ibrowse_commit = master
  1855. PACKAGES += idna
  1856. pkg_idna_name = idna
  1857. pkg_idna_description = Erlang IDNA lib
  1858. pkg_idna_homepage = https://github.com/benoitc/erlang-idna
  1859. pkg_idna_fetch = git
  1860. pkg_idna_repo = https://github.com/benoitc/erlang-idna
  1861. pkg_idna_commit = master
  1862. PACKAGES += ierlang
  1863. pkg_ierlang_name = ierlang
  1864. pkg_ierlang_description = An Erlang language kernel for IPython.
  1865. pkg_ierlang_homepage = https://github.com/robbielynch/ierlang
  1866. pkg_ierlang_fetch = git
  1867. pkg_ierlang_repo = https://github.com/robbielynch/ierlang
  1868. pkg_ierlang_commit = master
  1869. PACKAGES += iota
  1870. pkg_iota_name = iota
  1871. pkg_iota_description = iota (Inter-dependency Objective Testing Apparatus) - a tool to enforce clean separation of responsibilities in Erlang code
  1872. pkg_iota_homepage = https://github.com/jpgneves/iota
  1873. pkg_iota_fetch = git
  1874. pkg_iota_repo = https://github.com/jpgneves/iota
  1875. pkg_iota_commit = master
  1876. PACKAGES += irc_lib
  1877. pkg_irc_lib_name = irc_lib
  1878. pkg_irc_lib_description = Erlang irc client library
  1879. pkg_irc_lib_homepage = https://github.com/OtpChatBot/irc_lib
  1880. pkg_irc_lib_fetch = git
  1881. pkg_irc_lib_repo = https://github.com/OtpChatBot/irc_lib
  1882. pkg_irc_lib_commit = master
  1883. PACKAGES += ircd
  1884. pkg_ircd_name = ircd
  1885. pkg_ircd_description = A pluggable IRC daemon application/library for Erlang.
  1886. pkg_ircd_homepage = https://github.com/tonyg/erlang-ircd
  1887. pkg_ircd_fetch = git
  1888. pkg_ircd_repo = https://github.com/tonyg/erlang-ircd
  1889. pkg_ircd_commit = master
  1890. PACKAGES += iris
  1891. pkg_iris_name = iris
  1892. pkg_iris_description = Iris Erlang binding
  1893. pkg_iris_homepage = https://github.com/project-iris/iris-erl
  1894. pkg_iris_fetch = git
  1895. pkg_iris_repo = https://github.com/project-iris/iris-erl
  1896. pkg_iris_commit = master
  1897. PACKAGES += iso8601
  1898. pkg_iso8601_name = iso8601
  1899. pkg_iso8601_description = Erlang ISO 8601 date formatter/parser
  1900. pkg_iso8601_homepage = https://github.com/seansawyer/erlang_iso8601
  1901. pkg_iso8601_fetch = git
  1902. pkg_iso8601_repo = https://github.com/seansawyer/erlang_iso8601
  1903. pkg_iso8601_commit = master
  1904. PACKAGES += jamdb_sybase
  1905. pkg_jamdb_sybase_name = jamdb_sybase
  1906. pkg_jamdb_sybase_description = Erlang driver for SAP Sybase ASE
  1907. pkg_jamdb_sybase_homepage = https://github.com/erlangbureau/jamdb_sybase
  1908. pkg_jamdb_sybase_fetch = git
  1909. pkg_jamdb_sybase_repo = https://github.com/erlangbureau/jamdb_sybase
  1910. pkg_jamdb_sybase_commit = master
  1911. PACKAGES += jerg
  1912. pkg_jerg_name = jerg
  1913. pkg_jerg_description = JSON Schema to Erlang Records Generator
  1914. pkg_jerg_homepage = https://github.com/ddossot/jerg
  1915. pkg_jerg_fetch = git
  1916. pkg_jerg_repo = https://github.com/ddossot/jerg
  1917. pkg_jerg_commit = master
  1918. PACKAGES += jesse
  1919. pkg_jesse_name = jesse
  1920. pkg_jesse_description = jesse (JSon Schema Erlang) is an implementation of a json schema validator for Erlang.
  1921. pkg_jesse_homepage = https://github.com/for-GET/jesse
  1922. pkg_jesse_fetch = git
  1923. pkg_jesse_repo = https://github.com/for-GET/jesse
  1924. pkg_jesse_commit = master
  1925. PACKAGES += jiffy
  1926. pkg_jiffy_name = jiffy
  1927. pkg_jiffy_description = JSON NIFs for Erlang.
  1928. pkg_jiffy_homepage = https://github.com/davisp/jiffy
  1929. pkg_jiffy_fetch = git
  1930. pkg_jiffy_repo = https://github.com/davisp/jiffy
  1931. pkg_jiffy_commit = master
  1932. PACKAGES += jiffy_v
  1933. pkg_jiffy_v_name = jiffy_v
  1934. pkg_jiffy_v_description = JSON validation utility
  1935. pkg_jiffy_v_homepage = https://github.com/shizzard/jiffy-v
  1936. pkg_jiffy_v_fetch = git
  1937. pkg_jiffy_v_repo = https://github.com/shizzard/jiffy-v
  1938. pkg_jiffy_v_commit = master
  1939. PACKAGES += jobs
  1940. pkg_jobs_name = jobs
  1941. pkg_jobs_description = a Job scheduler for load regulation
  1942. pkg_jobs_homepage = https://github.com/esl/jobs
  1943. pkg_jobs_fetch = git
  1944. pkg_jobs_repo = https://github.com/esl/jobs
  1945. pkg_jobs_commit = master
  1946. PACKAGES += joxa
  1947. pkg_joxa_name = joxa
  1948. pkg_joxa_description = A Modern Lisp for the Erlang VM
  1949. pkg_joxa_homepage = https://github.com/joxa/joxa
  1950. pkg_joxa_fetch = git
  1951. pkg_joxa_repo = https://github.com/joxa/joxa
  1952. pkg_joxa_commit = master
  1953. PACKAGES += json
  1954. pkg_json_name = json
  1955. pkg_json_description = a high level json library for erlang (17.0+)
  1956. pkg_json_homepage = https://github.com/talentdeficit/json
  1957. pkg_json_fetch = git
  1958. pkg_json_repo = https://github.com/talentdeficit/json
  1959. pkg_json_commit = master
  1960. PACKAGES += json_rec
  1961. pkg_json_rec_name = json_rec
  1962. pkg_json_rec_description = JSON to erlang record
  1963. pkg_json_rec_homepage = https://github.com/justinkirby/json_rec
  1964. pkg_json_rec_fetch = git
  1965. pkg_json_rec_repo = https://github.com/justinkirby/json_rec
  1966. pkg_json_rec_commit = master
  1967. PACKAGES += jsone
  1968. pkg_jsone_name = jsone
  1969. pkg_jsone_description = An Erlang library for encoding, decoding JSON data.
  1970. pkg_jsone_homepage = https://github.com/sile/jsone.git
  1971. pkg_jsone_fetch = git
  1972. pkg_jsone_repo = https://github.com/sile/jsone.git
  1973. pkg_jsone_commit = master
  1974. PACKAGES += jsonerl
  1975. pkg_jsonerl_name = jsonerl
  1976. pkg_jsonerl_description = yet another but slightly different erlang <-> json encoder/decoder
  1977. pkg_jsonerl_homepage = https://github.com/lambder/jsonerl
  1978. pkg_jsonerl_fetch = git
  1979. pkg_jsonerl_repo = https://github.com/lambder/jsonerl
  1980. pkg_jsonerl_commit = master
  1981. PACKAGES += jsonpath
  1982. pkg_jsonpath_name = jsonpath
  1983. pkg_jsonpath_description = Fast Erlang JSON data retrieval and updates via javascript-like notation
  1984. pkg_jsonpath_homepage = https://github.com/GeneStevens/jsonpath
  1985. pkg_jsonpath_fetch = git
  1986. pkg_jsonpath_repo = https://github.com/GeneStevens/jsonpath
  1987. pkg_jsonpath_commit = master
  1988. PACKAGES += jsonx
  1989. pkg_jsonx_name = jsonx
  1990. pkg_jsonx_description = JSONX is an Erlang library for efficient decode and encode JSON, written in C.
  1991. pkg_jsonx_homepage = https://github.com/iskra/jsonx
  1992. pkg_jsonx_fetch = git
  1993. pkg_jsonx_repo = https://github.com/iskra/jsonx
  1994. pkg_jsonx_commit = master
  1995. PACKAGES += jsx
  1996. pkg_jsx_name = jsx
  1997. pkg_jsx_description = An Erlang application for consuming, producing and manipulating JSON.
  1998. pkg_jsx_homepage = https://github.com/talentdeficit/jsx
  1999. pkg_jsx_fetch = git
  2000. pkg_jsx_repo = https://github.com/talentdeficit/jsx
  2001. pkg_jsx_commit = master
  2002. PACKAGES += kafka
  2003. pkg_kafka_name = kafka
  2004. pkg_kafka_description = Kafka consumer and producer in Erlang
  2005. pkg_kafka_homepage = https://github.com/wooga/kafka-erlang
  2006. pkg_kafka_fetch = git
  2007. pkg_kafka_repo = https://github.com/wooga/kafka-erlang
  2008. pkg_kafka_commit = master
  2009. PACKAGES += kafka_protocol
  2010. pkg_kafka_protocol_name = kafka_protocol
  2011. pkg_kafka_protocol_description = Kafka protocol Erlang library
  2012. pkg_kafka_protocol_homepage = https://github.com/klarna/kafka_protocol
  2013. pkg_kafka_protocol_fetch = git
  2014. pkg_kafka_protocol_repo = https://github.com/klarna/kafka_protocol.git
  2015. pkg_kafka_protocol_commit = master
  2016. PACKAGES += kai
  2017. pkg_kai_name = kai
  2018. pkg_kai_description = DHT storage by Takeshi Inoue
  2019. pkg_kai_homepage = https://github.com/synrc/kai
  2020. pkg_kai_fetch = git
  2021. pkg_kai_repo = https://github.com/synrc/kai
  2022. pkg_kai_commit = master
  2023. PACKAGES += katja
  2024. pkg_katja_name = katja
  2025. pkg_katja_description = A simple Riemann client written in Erlang.
  2026. pkg_katja_homepage = https://github.com/nifoc/katja
  2027. pkg_katja_fetch = git
  2028. pkg_katja_repo = https://github.com/nifoc/katja
  2029. pkg_katja_commit = master
  2030. PACKAGES += kdht
  2031. pkg_kdht_name = kdht
  2032. pkg_kdht_description = kdht is an erlang DHT implementation
  2033. pkg_kdht_homepage = https://github.com/kevinlynx/kdht
  2034. pkg_kdht_fetch = git
  2035. pkg_kdht_repo = https://github.com/kevinlynx/kdht
  2036. pkg_kdht_commit = master
  2037. PACKAGES += key2value
  2038. pkg_key2value_name = key2value
  2039. pkg_key2value_description = Erlang 2-way map
  2040. pkg_key2value_homepage = https://github.com/okeuday/key2value
  2041. pkg_key2value_fetch = git
  2042. pkg_key2value_repo = https://github.com/okeuday/key2value
  2043. pkg_key2value_commit = master
  2044. PACKAGES += keys1value
  2045. pkg_keys1value_name = keys1value
  2046. pkg_keys1value_description = Erlang set associative map for key lists
  2047. pkg_keys1value_homepage = https://github.com/okeuday/keys1value
  2048. pkg_keys1value_fetch = git
  2049. pkg_keys1value_repo = https://github.com/okeuday/keys1value
  2050. pkg_keys1value_commit = master
  2051. PACKAGES += kinetic
  2052. pkg_kinetic_name = kinetic
  2053. pkg_kinetic_description = Erlang Kinesis Client
  2054. pkg_kinetic_homepage = https://github.com/AdRoll/kinetic
  2055. pkg_kinetic_fetch = git
  2056. pkg_kinetic_repo = https://github.com/AdRoll/kinetic
  2057. pkg_kinetic_commit = master
  2058. PACKAGES += kjell
  2059. pkg_kjell_name = kjell
  2060. pkg_kjell_description = Erlang Shell
  2061. pkg_kjell_homepage = https://github.com/karlll/kjell
  2062. pkg_kjell_fetch = git
  2063. pkg_kjell_repo = https://github.com/karlll/kjell
  2064. pkg_kjell_commit = master
  2065. PACKAGES += kraken
  2066. pkg_kraken_name = kraken
  2067. pkg_kraken_description = Distributed Pubsub Server for Realtime Apps
  2068. pkg_kraken_homepage = https://github.com/Asana/kraken
  2069. pkg_kraken_fetch = git
  2070. pkg_kraken_repo = https://github.com/Asana/kraken
  2071. pkg_kraken_commit = master
  2072. PACKAGES += kucumberl
  2073. pkg_kucumberl_name = kucumberl
  2074. pkg_kucumberl_description = A pure-erlang, open-source, implementation of Cucumber
  2075. pkg_kucumberl_homepage = https://github.com/openshine/kucumberl
  2076. pkg_kucumberl_fetch = git
  2077. pkg_kucumberl_repo = https://github.com/openshine/kucumberl
  2078. pkg_kucumberl_commit = master
  2079. PACKAGES += kvc
  2080. pkg_kvc_name = kvc
  2081. pkg_kvc_description = KVC - Key Value Coding for Erlang data structures
  2082. pkg_kvc_homepage = https://github.com/etrepum/kvc
  2083. pkg_kvc_fetch = git
  2084. pkg_kvc_repo = https://github.com/etrepum/kvc
  2085. pkg_kvc_commit = master
  2086. PACKAGES += kvlists
  2087. pkg_kvlists_name = kvlists
  2088. pkg_kvlists_description = Lists of key-value pairs (decoded JSON) in Erlang
  2089. pkg_kvlists_homepage = https://github.com/jcomellas/kvlists
  2090. pkg_kvlists_fetch = git
  2091. pkg_kvlists_repo = https://github.com/jcomellas/kvlists
  2092. pkg_kvlists_commit = master
  2093. PACKAGES += kvs
  2094. pkg_kvs_name = kvs
  2095. pkg_kvs_description = Container and Iterator
  2096. pkg_kvs_homepage = https://github.com/synrc/kvs
  2097. pkg_kvs_fetch = git
  2098. pkg_kvs_repo = https://github.com/synrc/kvs
  2099. pkg_kvs_commit = master
  2100. PACKAGES += lager
  2101. pkg_lager_name = lager
  2102. pkg_lager_description = A logging framework for Erlang/OTP.
  2103. pkg_lager_homepage = https://github.com/erlang-lager/lager
  2104. pkg_lager_fetch = git
  2105. pkg_lager_repo = https://github.com/erlang-lager/lager
  2106. pkg_lager_commit = master
  2107. PACKAGES += lager_amqp_backend
  2108. pkg_lager_amqp_backend_name = lager_amqp_backend
  2109. pkg_lager_amqp_backend_description = AMQP RabbitMQ Lager backend
  2110. pkg_lager_amqp_backend_homepage = https://github.com/jbrisbin/lager_amqp_backend
  2111. pkg_lager_amqp_backend_fetch = git
  2112. pkg_lager_amqp_backend_repo = https://github.com/jbrisbin/lager_amqp_backend
  2113. pkg_lager_amqp_backend_commit = master
  2114. PACKAGES += lager_syslog
  2115. pkg_lager_syslog_name = lager_syslog
  2116. pkg_lager_syslog_description = Syslog backend for lager
  2117. pkg_lager_syslog_homepage = https://github.com/erlang-lager/lager_syslog
  2118. pkg_lager_syslog_fetch = git
  2119. pkg_lager_syslog_repo = https://github.com/erlang-lager/lager_syslog
  2120. pkg_lager_syslog_commit = master
  2121. PACKAGES += lambdapad
  2122. pkg_lambdapad_name = lambdapad
  2123. pkg_lambdapad_description = Static site generator using Erlang. Yes, Erlang.
  2124. pkg_lambdapad_homepage = https://github.com/gar1t/lambdapad
  2125. pkg_lambdapad_fetch = git
  2126. pkg_lambdapad_repo = https://github.com/gar1t/lambdapad
  2127. pkg_lambdapad_commit = master
  2128. PACKAGES += lasp
  2129. pkg_lasp_name = lasp
  2130. pkg_lasp_description = A Language for Distributed, Eventually Consistent Computations
  2131. pkg_lasp_homepage = http://lasp-lang.org/
  2132. pkg_lasp_fetch = git
  2133. pkg_lasp_repo = https://github.com/lasp-lang/lasp
  2134. pkg_lasp_commit = master
  2135. PACKAGES += lasse
  2136. pkg_lasse_name = lasse
  2137. pkg_lasse_description = SSE handler for Cowboy
  2138. pkg_lasse_homepage = https://github.com/inaka/lasse
  2139. pkg_lasse_fetch = git
  2140. pkg_lasse_repo = https://github.com/inaka/lasse
  2141. pkg_lasse_commit = master
  2142. PACKAGES += ldap
  2143. pkg_ldap_name = ldap
  2144. pkg_ldap_description = LDAP server written in Erlang
  2145. pkg_ldap_homepage = https://github.com/spawnproc/ldap
  2146. pkg_ldap_fetch = git
  2147. pkg_ldap_repo = https://github.com/spawnproc/ldap
  2148. pkg_ldap_commit = master
  2149. PACKAGES += lethink
  2150. pkg_lethink_name = lethink
  2151. pkg_lethink_description = erlang driver for rethinkdb
  2152. pkg_lethink_homepage = https://github.com/taybin/lethink
  2153. pkg_lethink_fetch = git
  2154. pkg_lethink_repo = https://github.com/taybin/lethink
  2155. pkg_lethink_commit = master
  2156. PACKAGES += lfe
  2157. pkg_lfe_name = lfe
  2158. pkg_lfe_description = Lisp Flavoured Erlang (LFE)
  2159. pkg_lfe_homepage = https://github.com/rvirding/lfe
  2160. pkg_lfe_fetch = git
  2161. pkg_lfe_repo = https://github.com/rvirding/lfe
  2162. pkg_lfe_commit = master
  2163. PACKAGES += ling
  2164. pkg_ling_name = ling
  2165. pkg_ling_description = Erlang on Xen
  2166. pkg_ling_homepage = https://github.com/cloudozer/ling
  2167. pkg_ling_fetch = git
  2168. pkg_ling_repo = https://github.com/cloudozer/ling
  2169. pkg_ling_commit = master
  2170. PACKAGES += live
  2171. pkg_live_name = live
  2172. pkg_live_description = Automated module and configuration reloader.
  2173. pkg_live_homepage = http://ninenines.eu
  2174. pkg_live_fetch = git
  2175. pkg_live_repo = https://github.com/ninenines/live
  2176. pkg_live_commit = master
  2177. PACKAGES += lmq
  2178. pkg_lmq_name = lmq
  2179. pkg_lmq_description = Lightweight Message Queue
  2180. pkg_lmq_homepage = https://github.com/iij/lmq
  2181. pkg_lmq_fetch = git
  2182. pkg_lmq_repo = https://github.com/iij/lmq
  2183. pkg_lmq_commit = master
  2184. PACKAGES += locker
  2185. pkg_locker_name = locker
  2186. pkg_locker_description = Atomic distributed 'check and set' for short-lived keys
  2187. pkg_locker_homepage = https://github.com/wooga/locker
  2188. pkg_locker_fetch = git
  2189. pkg_locker_repo = https://github.com/wooga/locker
  2190. pkg_locker_commit = master
  2191. PACKAGES += locks
  2192. pkg_locks_name = locks
  2193. pkg_locks_description = A scalable, deadlock-resolving resource locker
  2194. pkg_locks_homepage = https://github.com/uwiger/locks
  2195. pkg_locks_fetch = git
  2196. pkg_locks_repo = https://github.com/uwiger/locks
  2197. pkg_locks_commit = master
  2198. PACKAGES += log4erl
  2199. pkg_log4erl_name = log4erl
  2200. pkg_log4erl_description = A logger for erlang in the spirit of Log4J.
  2201. pkg_log4erl_homepage = https://github.com/ahmednawras/log4erl
  2202. pkg_log4erl_fetch = git
  2203. pkg_log4erl_repo = https://github.com/ahmednawras/log4erl
  2204. pkg_log4erl_commit = master
  2205. PACKAGES += lol
  2206. pkg_lol_name = lol
  2207. pkg_lol_description = Lisp on erLang, and programming is fun again
  2208. pkg_lol_homepage = https://github.com/b0oh/lol
  2209. pkg_lol_fetch = git
  2210. pkg_lol_repo = https://github.com/b0oh/lol
  2211. pkg_lol_commit = master
  2212. PACKAGES += lucid
  2213. pkg_lucid_name = lucid
  2214. pkg_lucid_description = HTTP/2 server written in Erlang
  2215. pkg_lucid_homepage = https://github.com/tatsuhiro-t/lucid
  2216. pkg_lucid_fetch = git
  2217. pkg_lucid_repo = https://github.com/tatsuhiro-t/lucid
  2218. pkg_lucid_commit = master
  2219. PACKAGES += luerl
  2220. pkg_luerl_name = luerl
  2221. pkg_luerl_description = Lua in Erlang
  2222. pkg_luerl_homepage = https://github.com/rvirding/luerl
  2223. pkg_luerl_fetch = git
  2224. pkg_luerl_repo = https://github.com/rvirding/luerl
  2225. pkg_luerl_commit = develop
  2226. PACKAGES += luwak
  2227. pkg_luwak_name = luwak
  2228. pkg_luwak_description = Large-object storage interface for Riak
  2229. pkg_luwak_homepage = https://github.com/basho/luwak
  2230. pkg_luwak_fetch = git
  2231. pkg_luwak_repo = https://github.com/basho/luwak
  2232. pkg_luwak_commit = master
  2233. PACKAGES += lux
  2234. pkg_lux_name = lux
  2235. pkg_lux_description = Lux (LUcid eXpect scripting) simplifies test automation and provides an Expect-style execution of commands
  2236. pkg_lux_homepage = https://github.com/hawk/lux
  2237. pkg_lux_fetch = git
  2238. pkg_lux_repo = https://github.com/hawk/lux
  2239. pkg_lux_commit = master
  2240. PACKAGES += machi
  2241. pkg_machi_name = machi
  2242. pkg_machi_description = Machi file store
  2243. pkg_machi_homepage = https://github.com/basho/machi
  2244. pkg_machi_fetch = git
  2245. pkg_machi_repo = https://github.com/basho/machi
  2246. pkg_machi_commit = master
  2247. PACKAGES += mad
  2248. pkg_mad_name = mad
  2249. pkg_mad_description = Small and Fast Rebar Replacement
  2250. pkg_mad_homepage = https://github.com/synrc/mad
  2251. pkg_mad_fetch = git
  2252. pkg_mad_repo = https://github.com/synrc/mad
  2253. pkg_mad_commit = master
  2254. PACKAGES += marina
  2255. pkg_marina_name = marina
  2256. pkg_marina_description = Non-blocking Erlang Cassandra CQL3 client
  2257. pkg_marina_homepage = https://github.com/lpgauth/marina
  2258. pkg_marina_fetch = git
  2259. pkg_marina_repo = https://github.com/lpgauth/marina
  2260. pkg_marina_commit = master
  2261. PACKAGES += mavg
  2262. pkg_mavg_name = mavg
  2263. pkg_mavg_description = Erlang :: Exponential moving average library
  2264. pkg_mavg_homepage = https://github.com/EchoTeam/mavg
  2265. pkg_mavg_fetch = git
  2266. pkg_mavg_repo = https://github.com/EchoTeam/mavg
  2267. pkg_mavg_commit = master
  2268. PACKAGES += mc_erl
  2269. pkg_mc_erl_name = mc_erl
  2270. pkg_mc_erl_description = mc-erl is a server for Minecraft 1.4.7 written in Erlang.
  2271. pkg_mc_erl_homepage = https://github.com/clonejo/mc-erl
  2272. pkg_mc_erl_fetch = git
  2273. pkg_mc_erl_repo = https://github.com/clonejo/mc-erl
  2274. pkg_mc_erl_commit = master
  2275. PACKAGES += mcd
  2276. pkg_mcd_name = mcd
  2277. pkg_mcd_description = Fast memcached protocol client in pure Erlang
  2278. pkg_mcd_homepage = https://github.com/EchoTeam/mcd
  2279. pkg_mcd_fetch = git
  2280. pkg_mcd_repo = https://github.com/EchoTeam/mcd
  2281. pkg_mcd_commit = master
  2282. PACKAGES += mcerlang
  2283. pkg_mcerlang_name = mcerlang
  2284. pkg_mcerlang_description = The McErlang model checker for Erlang
  2285. pkg_mcerlang_homepage = https://github.com/fredlund/McErlang
  2286. pkg_mcerlang_fetch = git
  2287. pkg_mcerlang_repo = https://github.com/fredlund/McErlang
  2288. pkg_mcerlang_commit = master
  2289. PACKAGES += meck
  2290. pkg_meck_name = meck
  2291. pkg_meck_description = A mocking library for Erlang
  2292. pkg_meck_homepage = https://github.com/eproxus/meck
  2293. pkg_meck_fetch = git
  2294. pkg_meck_repo = https://github.com/eproxus/meck
  2295. pkg_meck_commit = master
  2296. PACKAGES += mekao
  2297. pkg_mekao_name = mekao
  2298. pkg_mekao_description = SQL constructor
  2299. pkg_mekao_homepage = https://github.com/ddosia/mekao
  2300. pkg_mekao_fetch = git
  2301. pkg_mekao_repo = https://github.com/ddosia/mekao
  2302. pkg_mekao_commit = master
  2303. PACKAGES += memo
  2304. pkg_memo_name = memo
  2305. pkg_memo_description = Erlang memoization server
  2306. pkg_memo_homepage = https://github.com/tuncer/memo
  2307. pkg_memo_fetch = git
  2308. pkg_memo_repo = https://github.com/tuncer/memo
  2309. pkg_memo_commit = master
  2310. PACKAGES += merge_index
  2311. pkg_merge_index_name = merge_index
  2312. 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).
  2313. pkg_merge_index_homepage = https://github.com/basho/merge_index
  2314. pkg_merge_index_fetch = git
  2315. pkg_merge_index_repo = https://github.com/basho/merge_index
  2316. pkg_merge_index_commit = master
  2317. PACKAGES += merl
  2318. pkg_merl_name = merl
  2319. pkg_merl_description = Metaprogramming in Erlang
  2320. pkg_merl_homepage = https://github.com/richcarl/merl
  2321. pkg_merl_fetch = git
  2322. pkg_merl_repo = https://github.com/richcarl/merl
  2323. pkg_merl_commit = master
  2324. PACKAGES += mimerl
  2325. pkg_mimerl_name = mimerl
  2326. pkg_mimerl_description = library to handle mimetypes
  2327. pkg_mimerl_homepage = https://github.com/benoitc/mimerl
  2328. pkg_mimerl_fetch = git
  2329. pkg_mimerl_repo = https://github.com/benoitc/mimerl
  2330. pkg_mimerl_commit = master
  2331. PACKAGES += mimetypes
  2332. pkg_mimetypes_name = mimetypes
  2333. pkg_mimetypes_description = Erlang MIME types library
  2334. pkg_mimetypes_homepage = https://github.com/spawngrid/mimetypes
  2335. pkg_mimetypes_fetch = git
  2336. pkg_mimetypes_repo = https://github.com/spawngrid/mimetypes
  2337. pkg_mimetypes_commit = master
  2338. PACKAGES += mixer
  2339. pkg_mixer_name = mixer
  2340. pkg_mixer_description = Mix in functions from other modules
  2341. pkg_mixer_homepage = https://github.com/chef/mixer
  2342. pkg_mixer_fetch = git
  2343. pkg_mixer_repo = https://github.com/chef/mixer
  2344. pkg_mixer_commit = master
  2345. PACKAGES += mochiweb
  2346. pkg_mochiweb_name = mochiweb
  2347. pkg_mochiweb_description = MochiWeb is an Erlang library for building lightweight HTTP servers.
  2348. pkg_mochiweb_homepage = https://github.com/mochi/mochiweb
  2349. pkg_mochiweb_fetch = git
  2350. pkg_mochiweb_repo = https://github.com/mochi/mochiweb
  2351. pkg_mochiweb_commit = master
  2352. PACKAGES += mochiweb_xpath
  2353. pkg_mochiweb_xpath_name = mochiweb_xpath
  2354. pkg_mochiweb_xpath_description = XPath support for mochiweb's html parser
  2355. pkg_mochiweb_xpath_homepage = https://github.com/retnuh/mochiweb_xpath
  2356. pkg_mochiweb_xpath_fetch = git
  2357. pkg_mochiweb_xpath_repo = https://github.com/retnuh/mochiweb_xpath
  2358. pkg_mochiweb_xpath_commit = master
  2359. PACKAGES += mockgyver
  2360. pkg_mockgyver_name = mockgyver
  2361. pkg_mockgyver_description = A mocking library for Erlang
  2362. pkg_mockgyver_homepage = https://github.com/klajo/mockgyver
  2363. pkg_mockgyver_fetch = git
  2364. pkg_mockgyver_repo = https://github.com/klajo/mockgyver
  2365. pkg_mockgyver_commit = master
  2366. PACKAGES += modlib
  2367. pkg_modlib_name = modlib
  2368. pkg_modlib_description = Web framework based on Erlang's inets httpd
  2369. pkg_modlib_homepage = https://github.com/gar1t/modlib
  2370. pkg_modlib_fetch = git
  2371. pkg_modlib_repo = https://github.com/gar1t/modlib
  2372. pkg_modlib_commit = master
  2373. PACKAGES += mongodb
  2374. pkg_mongodb_name = mongodb
  2375. pkg_mongodb_description = MongoDB driver for Erlang
  2376. pkg_mongodb_homepage = https://github.com/comtihon/mongodb-erlang
  2377. pkg_mongodb_fetch = git
  2378. pkg_mongodb_repo = https://github.com/comtihon/mongodb-erlang
  2379. pkg_mongodb_commit = master
  2380. PACKAGES += mongooseim
  2381. pkg_mongooseim_name = mongooseim
  2382. pkg_mongooseim_description = Jabber / XMPP server with focus on performance and scalability, by Erlang Solutions
  2383. pkg_mongooseim_homepage = https://www.erlang-solutions.com/products/mongooseim-massively-scalable-ejabberd-platform
  2384. pkg_mongooseim_fetch = git
  2385. pkg_mongooseim_repo = https://github.com/esl/MongooseIM
  2386. pkg_mongooseim_commit = master
  2387. PACKAGES += moyo
  2388. pkg_moyo_name = moyo
  2389. pkg_moyo_description = Erlang utility functions library
  2390. pkg_moyo_homepage = https://github.com/dwango/moyo
  2391. pkg_moyo_fetch = git
  2392. pkg_moyo_repo = https://github.com/dwango/moyo
  2393. pkg_moyo_commit = master
  2394. PACKAGES += msgpack
  2395. pkg_msgpack_name = msgpack
  2396. pkg_msgpack_description = MessagePack (de)serializer implementation for Erlang
  2397. pkg_msgpack_homepage = https://github.com/msgpack/msgpack-erlang
  2398. pkg_msgpack_fetch = git
  2399. pkg_msgpack_repo = https://github.com/msgpack/msgpack-erlang
  2400. pkg_msgpack_commit = master
  2401. PACKAGES += mu2
  2402. pkg_mu2_name = mu2
  2403. pkg_mu2_description = Erlang mutation testing tool
  2404. pkg_mu2_homepage = https://github.com/ramsay-t/mu2
  2405. pkg_mu2_fetch = git
  2406. pkg_mu2_repo = https://github.com/ramsay-t/mu2
  2407. pkg_mu2_commit = master
  2408. PACKAGES += mustache
  2409. pkg_mustache_name = mustache
  2410. pkg_mustache_description = Mustache template engine for Erlang.
  2411. pkg_mustache_homepage = https://github.com/mojombo/mustache.erl
  2412. pkg_mustache_fetch = git
  2413. pkg_mustache_repo = https://github.com/mojombo/mustache.erl
  2414. pkg_mustache_commit = master
  2415. PACKAGES += myproto
  2416. pkg_myproto_name = myproto
  2417. pkg_myproto_description = MySQL Server Protocol in Erlang
  2418. pkg_myproto_homepage = https://github.com/altenwald/myproto
  2419. pkg_myproto_fetch = git
  2420. pkg_myproto_repo = https://github.com/altenwald/myproto
  2421. pkg_myproto_commit = master
  2422. PACKAGES += mysql
  2423. pkg_mysql_name = mysql
  2424. pkg_mysql_description = MySQL client library for Erlang/OTP
  2425. pkg_mysql_homepage = https://github.com/mysql-otp/mysql-otp
  2426. pkg_mysql_fetch = git
  2427. pkg_mysql_repo = https://github.com/mysql-otp/mysql-otp
  2428. pkg_mysql_commit = 1.5.1
  2429. PACKAGES += n2o
  2430. pkg_n2o_name = n2o
  2431. pkg_n2o_description = WebSocket Application Server
  2432. pkg_n2o_homepage = https://github.com/5HT/n2o
  2433. pkg_n2o_fetch = git
  2434. pkg_n2o_repo = https://github.com/5HT/n2o
  2435. pkg_n2o_commit = master
  2436. PACKAGES += nat_upnp
  2437. pkg_nat_upnp_name = nat_upnp
  2438. pkg_nat_upnp_description = Erlang library to map your internal port to an external using UNP IGD
  2439. pkg_nat_upnp_homepage = https://github.com/benoitc/nat_upnp
  2440. pkg_nat_upnp_fetch = git
  2441. pkg_nat_upnp_repo = https://github.com/benoitc/nat_upnp
  2442. pkg_nat_upnp_commit = master
  2443. PACKAGES += neo4j
  2444. pkg_neo4j_name = neo4j
  2445. pkg_neo4j_description = Erlang client library for Neo4J.
  2446. pkg_neo4j_homepage = https://github.com/dmitriid/neo4j-erlang
  2447. pkg_neo4j_fetch = git
  2448. pkg_neo4j_repo = https://github.com/dmitriid/neo4j-erlang
  2449. pkg_neo4j_commit = master
  2450. PACKAGES += neotoma
  2451. pkg_neotoma_name = neotoma
  2452. pkg_neotoma_description = Erlang library and packrat parser-generator for parsing expression grammars.
  2453. pkg_neotoma_homepage = https://github.com/seancribbs/neotoma
  2454. pkg_neotoma_fetch = git
  2455. pkg_neotoma_repo = https://github.com/seancribbs/neotoma
  2456. pkg_neotoma_commit = master
  2457. PACKAGES += newrelic
  2458. pkg_newrelic_name = newrelic
  2459. pkg_newrelic_description = Erlang library for sending metrics to New Relic
  2460. pkg_newrelic_homepage = https://github.com/wooga/newrelic-erlang
  2461. pkg_newrelic_fetch = git
  2462. pkg_newrelic_repo = https://github.com/wooga/newrelic-erlang
  2463. pkg_newrelic_commit = master
  2464. PACKAGES += nifty
  2465. pkg_nifty_name = nifty
  2466. pkg_nifty_description = Erlang NIF wrapper generator
  2467. pkg_nifty_homepage = https://github.com/parapluu/nifty
  2468. pkg_nifty_fetch = git
  2469. pkg_nifty_repo = https://github.com/parapluu/nifty
  2470. pkg_nifty_commit = master
  2471. PACKAGES += nitrogen_core
  2472. pkg_nitrogen_core_name = nitrogen_core
  2473. pkg_nitrogen_core_description = The core Nitrogen library.
  2474. pkg_nitrogen_core_homepage = http://nitrogenproject.com/
  2475. pkg_nitrogen_core_fetch = git
  2476. pkg_nitrogen_core_repo = https://github.com/nitrogen/nitrogen_core
  2477. pkg_nitrogen_core_commit = master
  2478. PACKAGES += nkbase
  2479. pkg_nkbase_name = nkbase
  2480. pkg_nkbase_description = NkBASE distributed database
  2481. pkg_nkbase_homepage = https://github.com/Nekso/nkbase
  2482. pkg_nkbase_fetch = git
  2483. pkg_nkbase_repo = https://github.com/Nekso/nkbase
  2484. pkg_nkbase_commit = develop
  2485. PACKAGES += nkdocker
  2486. pkg_nkdocker_name = nkdocker
  2487. pkg_nkdocker_description = Erlang Docker client
  2488. pkg_nkdocker_homepage = https://github.com/Nekso/nkdocker
  2489. pkg_nkdocker_fetch = git
  2490. pkg_nkdocker_repo = https://github.com/Nekso/nkdocker
  2491. pkg_nkdocker_commit = master
  2492. PACKAGES += nkpacket
  2493. pkg_nkpacket_name = nkpacket
  2494. pkg_nkpacket_description = Generic Erlang transport layer
  2495. pkg_nkpacket_homepage = https://github.com/Nekso/nkpacket
  2496. pkg_nkpacket_fetch = git
  2497. pkg_nkpacket_repo = https://github.com/Nekso/nkpacket
  2498. pkg_nkpacket_commit = master
  2499. PACKAGES += nksip
  2500. pkg_nksip_name = nksip
  2501. pkg_nksip_description = Erlang SIP application server
  2502. pkg_nksip_homepage = https://github.com/kalta/nksip
  2503. pkg_nksip_fetch = git
  2504. pkg_nksip_repo = https://github.com/kalta/nksip
  2505. pkg_nksip_commit = master
  2506. PACKAGES += nodefinder
  2507. pkg_nodefinder_name = nodefinder
  2508. pkg_nodefinder_description = automatic node discovery via UDP multicast
  2509. pkg_nodefinder_homepage = https://github.com/erlanger/nodefinder
  2510. pkg_nodefinder_fetch = git
  2511. pkg_nodefinder_repo = https://github.com/okeuday/nodefinder
  2512. pkg_nodefinder_commit = master
  2513. PACKAGES += nprocreg
  2514. pkg_nprocreg_name = nprocreg
  2515. pkg_nprocreg_description = Minimal Distributed Erlang Process Registry
  2516. pkg_nprocreg_homepage = http://nitrogenproject.com/
  2517. pkg_nprocreg_fetch = git
  2518. pkg_nprocreg_repo = https://github.com/nitrogen/nprocreg
  2519. pkg_nprocreg_commit = master
  2520. PACKAGES += oauth
  2521. pkg_oauth_name = oauth
  2522. pkg_oauth_description = An Erlang OAuth 1.0 implementation
  2523. pkg_oauth_homepage = https://github.com/tim/erlang-oauth
  2524. pkg_oauth_fetch = git
  2525. pkg_oauth_repo = https://github.com/tim/erlang-oauth
  2526. pkg_oauth_commit = master
  2527. PACKAGES += oauth2
  2528. pkg_oauth2_name = oauth2
  2529. pkg_oauth2_description = Erlang Oauth2 implementation
  2530. pkg_oauth2_homepage = https://github.com/kivra/oauth2
  2531. pkg_oauth2_fetch = git
  2532. pkg_oauth2_repo = https://github.com/kivra/oauth2
  2533. pkg_oauth2_commit = master
  2534. PACKAGES += observer_cli
  2535. pkg_observer_cli_name = observer_cli
  2536. pkg_observer_cli_description = Visualize Erlang/Elixir Nodes On The Command Line
  2537. pkg_observer_cli_homepage = http://zhongwencool.github.io/observer_cli
  2538. pkg_observer_cli_fetch = git
  2539. pkg_observer_cli_repo = https://github.com/zhongwencool/observer_cli
  2540. pkg_observer_cli_commit = master
  2541. PACKAGES += octopus
  2542. pkg_octopus_name = octopus
  2543. pkg_octopus_description = Small and flexible pool manager written in Erlang
  2544. pkg_octopus_homepage = https://github.com/erlangbureau/octopus
  2545. pkg_octopus_fetch = git
  2546. pkg_octopus_repo = https://github.com/erlangbureau/octopus
  2547. pkg_octopus_commit = master
  2548. PACKAGES += of_protocol
  2549. pkg_of_protocol_name = of_protocol
  2550. pkg_of_protocol_description = OpenFlow Protocol Library for Erlang
  2551. pkg_of_protocol_homepage = https://github.com/FlowForwarding/of_protocol
  2552. pkg_of_protocol_fetch = git
  2553. pkg_of_protocol_repo = https://github.com/FlowForwarding/of_protocol
  2554. pkg_of_protocol_commit = master
  2555. PACKAGES += opencouch
  2556. pkg_opencouch_name = couch
  2557. pkg_opencouch_description = A embeddable document oriented database compatible with Apache CouchDB
  2558. pkg_opencouch_homepage = https://github.com/benoitc/opencouch
  2559. pkg_opencouch_fetch = git
  2560. pkg_opencouch_repo = https://github.com/benoitc/opencouch
  2561. pkg_opencouch_commit = master
  2562. PACKAGES += openflow
  2563. pkg_openflow_name = openflow
  2564. pkg_openflow_description = An OpenFlow controller written in pure erlang
  2565. pkg_openflow_homepage = https://github.com/renatoaguiar/erlang-openflow
  2566. pkg_openflow_fetch = git
  2567. pkg_openflow_repo = https://github.com/renatoaguiar/erlang-openflow
  2568. pkg_openflow_commit = master
  2569. PACKAGES += openid
  2570. pkg_openid_name = openid
  2571. pkg_openid_description = Erlang OpenID
  2572. pkg_openid_homepage = https://github.com/brendonh/erl_openid
  2573. pkg_openid_fetch = git
  2574. pkg_openid_repo = https://github.com/brendonh/erl_openid
  2575. pkg_openid_commit = master
  2576. PACKAGES += openpoker
  2577. pkg_openpoker_name = openpoker
  2578. pkg_openpoker_description = Genesis Texas hold'em Game Server
  2579. pkg_openpoker_homepage = https://github.com/hpyhacking/openpoker
  2580. pkg_openpoker_fetch = git
  2581. pkg_openpoker_repo = https://github.com/hpyhacking/openpoker
  2582. pkg_openpoker_commit = master
  2583. PACKAGES += otpbp
  2584. pkg_otpbp_name = otpbp
  2585. pkg_otpbp_description = Parse transformer for use new OTP functions in old Erlang/OTP releases (R15, R16, 17, 18, 19)
  2586. pkg_otpbp_homepage = https://github.com/Ledest/otpbp
  2587. pkg_otpbp_fetch = git
  2588. pkg_otpbp_repo = https://github.com/Ledest/otpbp
  2589. pkg_otpbp_commit = master
  2590. PACKAGES += pal
  2591. pkg_pal_name = pal
  2592. pkg_pal_description = Pragmatic Authentication Library
  2593. pkg_pal_homepage = https://github.com/manifest/pal
  2594. pkg_pal_fetch = git
  2595. pkg_pal_repo = https://github.com/manifest/pal
  2596. pkg_pal_commit = master
  2597. PACKAGES += parse_trans
  2598. pkg_parse_trans_name = parse_trans
  2599. pkg_parse_trans_description = Parse transform utilities for Erlang
  2600. pkg_parse_trans_homepage = https://github.com/uwiger/parse_trans
  2601. pkg_parse_trans_fetch = git
  2602. pkg_parse_trans_repo = https://github.com/uwiger/parse_trans
  2603. pkg_parse_trans_commit = master
  2604. PACKAGES += parsexml
  2605. pkg_parsexml_name = parsexml
  2606. pkg_parsexml_description = Simple DOM XML parser with convenient and very simple API
  2607. pkg_parsexml_homepage = https://github.com/maxlapshin/parsexml
  2608. pkg_parsexml_fetch = git
  2609. pkg_parsexml_repo = https://github.com/maxlapshin/parsexml
  2610. pkg_parsexml_commit = master
  2611. PACKAGES += partisan
  2612. pkg_partisan_name = partisan
  2613. pkg_partisan_description = High-performance, high-scalability distributed computing with Erlang and Elixir.
  2614. pkg_partisan_homepage = http://partisan.cloud
  2615. pkg_partisan_fetch = git
  2616. pkg_partisan_repo = https://github.com/lasp-lang/partisan
  2617. pkg_partisan_commit = master
  2618. PACKAGES += pegjs
  2619. pkg_pegjs_name = pegjs
  2620. pkg_pegjs_description = An implementation of PEG.js grammar for Erlang.
  2621. pkg_pegjs_homepage = https://github.com/dmitriid/pegjs
  2622. pkg_pegjs_fetch = git
  2623. pkg_pegjs_repo = https://github.com/dmitriid/pegjs
  2624. pkg_pegjs_commit = master
  2625. PACKAGES += percept2
  2626. pkg_percept2_name = percept2
  2627. pkg_percept2_description = Concurrent profiling tool for Erlang
  2628. pkg_percept2_homepage = https://github.com/huiqing/percept2
  2629. pkg_percept2_fetch = git
  2630. pkg_percept2_repo = https://github.com/huiqing/percept2
  2631. pkg_percept2_commit = master
  2632. PACKAGES += pgo
  2633. pkg_pgo_name = pgo
  2634. pkg_pgo_description = Erlang Postgres client and connection pool
  2635. pkg_pgo_homepage = https://github.com/erleans/pgo.git
  2636. pkg_pgo_fetch = git
  2637. pkg_pgo_repo = https://github.com/erleans/pgo.git
  2638. pkg_pgo_commit = master
  2639. PACKAGES += pgsql
  2640. pkg_pgsql_name = pgsql
  2641. pkg_pgsql_description = Erlang PostgreSQL driver
  2642. pkg_pgsql_homepage = https://github.com/semiocast/pgsql
  2643. pkg_pgsql_fetch = git
  2644. pkg_pgsql_repo = https://github.com/semiocast/pgsql
  2645. pkg_pgsql_commit = master
  2646. PACKAGES += pkgx
  2647. pkg_pkgx_name = pkgx
  2648. pkg_pkgx_description = Build .deb packages from Erlang releases
  2649. pkg_pkgx_homepage = https://github.com/arjan/pkgx
  2650. pkg_pkgx_fetch = git
  2651. pkg_pkgx_repo = https://github.com/arjan/pkgx
  2652. pkg_pkgx_commit = master
  2653. PACKAGES += pkt
  2654. pkg_pkt_name = pkt
  2655. pkg_pkt_description = Erlang network protocol library
  2656. pkg_pkt_homepage = https://github.com/msantos/pkt
  2657. pkg_pkt_fetch = git
  2658. pkg_pkt_repo = https://github.com/msantos/pkt
  2659. pkg_pkt_commit = master
  2660. PACKAGES += plain_fsm
  2661. pkg_plain_fsm_name = plain_fsm
  2662. pkg_plain_fsm_description = A behaviour/support library for writing plain Erlang FSMs.
  2663. pkg_plain_fsm_homepage = https://github.com/uwiger/plain_fsm
  2664. pkg_plain_fsm_fetch = git
  2665. pkg_plain_fsm_repo = https://github.com/uwiger/plain_fsm
  2666. pkg_plain_fsm_commit = master
  2667. PACKAGES += plumtree
  2668. pkg_plumtree_name = plumtree
  2669. pkg_plumtree_description = Epidemic Broadcast Trees
  2670. pkg_plumtree_homepage = https://github.com/helium/plumtree
  2671. pkg_plumtree_fetch = git
  2672. pkg_plumtree_repo = https://github.com/helium/plumtree
  2673. pkg_plumtree_commit = master
  2674. PACKAGES += pmod_transform
  2675. pkg_pmod_transform_name = pmod_transform
  2676. pkg_pmod_transform_description = Parse transform for parameterized modules
  2677. pkg_pmod_transform_homepage = https://github.com/erlang/pmod_transform
  2678. pkg_pmod_transform_fetch = git
  2679. pkg_pmod_transform_repo = https://github.com/erlang/pmod_transform
  2680. pkg_pmod_transform_commit = master
  2681. PACKAGES += pobox
  2682. pkg_pobox_name = pobox
  2683. pkg_pobox_description = External buffer processes to protect against mailbox overflow in Erlang
  2684. pkg_pobox_homepage = https://github.com/ferd/pobox
  2685. pkg_pobox_fetch = git
  2686. pkg_pobox_repo = https://github.com/ferd/pobox
  2687. pkg_pobox_commit = master
  2688. PACKAGES += ponos
  2689. pkg_ponos_name = ponos
  2690. pkg_ponos_description = ponos is a simple yet powerful load generator written in erlang
  2691. pkg_ponos_homepage = https://github.com/klarna/ponos
  2692. pkg_ponos_fetch = git
  2693. pkg_ponos_repo = https://github.com/klarna/ponos
  2694. pkg_ponos_commit = master
  2695. PACKAGES += poolboy
  2696. pkg_poolboy_name = poolboy
  2697. pkg_poolboy_description = A hunky Erlang worker pool factory
  2698. pkg_poolboy_homepage = https://github.com/devinus/poolboy
  2699. pkg_poolboy_fetch = git
  2700. pkg_poolboy_repo = https://github.com/devinus/poolboy
  2701. pkg_poolboy_commit = master
  2702. PACKAGES += pooler
  2703. pkg_pooler_name = pooler
  2704. pkg_pooler_description = An OTP Process Pool Application
  2705. pkg_pooler_homepage = https://github.com/seth/pooler
  2706. pkg_pooler_fetch = git
  2707. pkg_pooler_repo = https://github.com/seth/pooler
  2708. pkg_pooler_commit = master
  2709. PACKAGES += pqueue
  2710. pkg_pqueue_name = pqueue
  2711. pkg_pqueue_description = Erlang Priority Queues
  2712. pkg_pqueue_homepage = https://github.com/okeuday/pqueue
  2713. pkg_pqueue_fetch = git
  2714. pkg_pqueue_repo = https://github.com/okeuday/pqueue
  2715. pkg_pqueue_commit = master
  2716. PACKAGES += procket
  2717. pkg_procket_name = procket
  2718. pkg_procket_description = Erlang interface to low level socket operations
  2719. pkg_procket_homepage = http://blog.listincomprehension.com/search/label/procket
  2720. pkg_procket_fetch = git
  2721. pkg_procket_repo = https://github.com/msantos/procket
  2722. pkg_procket_commit = master
  2723. PACKAGES += prometheus
  2724. pkg_prometheus_name = prometheus
  2725. pkg_prometheus_description = Prometheus.io client in Erlang
  2726. pkg_prometheus_homepage = https://github.com/deadtrickster/prometheus.erl
  2727. pkg_prometheus_fetch = git
  2728. pkg_prometheus_repo = https://github.com/deadtrickster/prometheus.erl
  2729. pkg_prometheus_commit = master
  2730. PACKAGES += prop
  2731. pkg_prop_name = prop
  2732. pkg_prop_description = An Erlang code scaffolding and generator system.
  2733. pkg_prop_homepage = https://github.com/nuex/prop
  2734. pkg_prop_fetch = git
  2735. pkg_prop_repo = https://github.com/nuex/prop
  2736. pkg_prop_commit = master
  2737. PACKAGES += proper
  2738. pkg_proper_name = proper
  2739. pkg_proper_description = PropEr: a QuickCheck-inspired property-based testing tool for Erlang.
  2740. pkg_proper_homepage = http://proper.softlab.ntua.gr
  2741. pkg_proper_fetch = git
  2742. pkg_proper_repo = https://github.com/manopapad/proper
  2743. pkg_proper_commit = master
  2744. PACKAGES += props
  2745. pkg_props_name = props
  2746. pkg_props_description = Property structure library
  2747. pkg_props_homepage = https://github.com/greyarea/props
  2748. pkg_props_fetch = git
  2749. pkg_props_repo = https://github.com/greyarea/props
  2750. pkg_props_commit = master
  2751. PACKAGES += protobuffs
  2752. pkg_protobuffs_name = protobuffs
  2753. pkg_protobuffs_description = An implementation of Google's Protocol Buffers for Erlang, based on ngerakines/erlang_protobuffs.
  2754. pkg_protobuffs_homepage = https://github.com/basho/erlang_protobuffs
  2755. pkg_protobuffs_fetch = git
  2756. pkg_protobuffs_repo = https://github.com/basho/erlang_protobuffs
  2757. pkg_protobuffs_commit = master
  2758. PACKAGES += psycho
  2759. pkg_psycho_name = psycho
  2760. pkg_psycho_description = HTTP server that provides a WSGI-like interface for applications and middleware.
  2761. pkg_psycho_homepage = https://github.com/gar1t/psycho
  2762. pkg_psycho_fetch = git
  2763. pkg_psycho_repo = https://github.com/gar1t/psycho
  2764. pkg_psycho_commit = master
  2765. PACKAGES += purity
  2766. pkg_purity_name = purity
  2767. pkg_purity_description = A side-effect analyzer for Erlang
  2768. pkg_purity_homepage = https://github.com/mpitid/purity
  2769. pkg_purity_fetch = git
  2770. pkg_purity_repo = https://github.com/mpitid/purity
  2771. pkg_purity_commit = master
  2772. PACKAGES += push_service
  2773. pkg_push_service_name = push_service
  2774. pkg_push_service_description = Push service
  2775. pkg_push_service_homepage = https://github.com/hairyhum/push_service
  2776. pkg_push_service_fetch = git
  2777. pkg_push_service_repo = https://github.com/hairyhum/push_service
  2778. pkg_push_service_commit = master
  2779. PACKAGES += qdate
  2780. pkg_qdate_name = qdate
  2781. pkg_qdate_description = Date, time, and timezone parsing, formatting, and conversion for Erlang.
  2782. pkg_qdate_homepage = https://github.com/choptastic/qdate
  2783. pkg_qdate_fetch = git
  2784. pkg_qdate_repo = https://github.com/choptastic/qdate
  2785. pkg_qdate_commit = master
  2786. PACKAGES += qrcode
  2787. pkg_qrcode_name = qrcode
  2788. pkg_qrcode_description = QR Code encoder in Erlang
  2789. pkg_qrcode_homepage = https://github.com/komone/qrcode
  2790. pkg_qrcode_fetch = git
  2791. pkg_qrcode_repo = https://github.com/komone/qrcode
  2792. pkg_qrcode_commit = master
  2793. PACKAGES += quest
  2794. pkg_quest_name = quest
  2795. pkg_quest_description = Learn Erlang through this set of challenges. An interactive system for getting to know Erlang.
  2796. pkg_quest_homepage = https://github.com/eriksoe/ErlangQuest
  2797. pkg_quest_fetch = git
  2798. pkg_quest_repo = https://github.com/eriksoe/ErlangQuest
  2799. pkg_quest_commit = master
  2800. PACKAGES += quickrand
  2801. pkg_quickrand_name = quickrand
  2802. pkg_quickrand_description = Quick Erlang Random Number Generation
  2803. pkg_quickrand_homepage = https://github.com/okeuday/quickrand
  2804. pkg_quickrand_fetch = git
  2805. pkg_quickrand_repo = https://github.com/okeuday/quickrand
  2806. pkg_quickrand_commit = master
  2807. PACKAGES += rabbit
  2808. pkg_rabbit_name = rabbit
  2809. pkg_rabbit_description = RabbitMQ Server
  2810. pkg_rabbit_homepage = https://www.rabbitmq.com/
  2811. pkg_rabbit_fetch = git
  2812. pkg_rabbit_repo = https://github.com/rabbitmq/rabbitmq-server.git
  2813. pkg_rabbit_commit = master
  2814. PACKAGES += rabbit_exchange_type_riak
  2815. pkg_rabbit_exchange_type_riak_name = rabbit_exchange_type_riak
  2816. pkg_rabbit_exchange_type_riak_description = Custom RabbitMQ exchange type for sticking messages in Riak
  2817. pkg_rabbit_exchange_type_riak_homepage = https://github.com/jbrisbin/riak-exchange
  2818. pkg_rabbit_exchange_type_riak_fetch = git
  2819. pkg_rabbit_exchange_type_riak_repo = https://github.com/jbrisbin/riak-exchange
  2820. pkg_rabbit_exchange_type_riak_commit = master
  2821. PACKAGES += rack
  2822. pkg_rack_name = rack
  2823. pkg_rack_description = Rack handler for erlang
  2824. pkg_rack_homepage = https://github.com/erlyvideo/rack
  2825. pkg_rack_fetch = git
  2826. pkg_rack_repo = https://github.com/erlyvideo/rack
  2827. pkg_rack_commit = master
  2828. PACKAGES += radierl
  2829. pkg_radierl_name = radierl
  2830. pkg_radierl_description = RADIUS protocol stack implemented in Erlang.
  2831. pkg_radierl_homepage = https://github.com/vances/radierl
  2832. pkg_radierl_fetch = git
  2833. pkg_radierl_repo = https://github.com/vances/radierl
  2834. pkg_radierl_commit = master
  2835. PACKAGES += rafter
  2836. pkg_rafter_name = rafter
  2837. pkg_rafter_description = An Erlang library application which implements the Raft consensus protocol
  2838. pkg_rafter_homepage = https://github.com/andrewjstone/rafter
  2839. pkg_rafter_fetch = git
  2840. pkg_rafter_repo = https://github.com/andrewjstone/rafter
  2841. pkg_rafter_commit = master
  2842. PACKAGES += ranch
  2843. pkg_ranch_name = ranch
  2844. pkg_ranch_description = Socket acceptor pool for TCP protocols.
  2845. pkg_ranch_homepage = http://ninenines.eu
  2846. pkg_ranch_fetch = git
  2847. pkg_ranch_repo = https://github.com/ninenines/ranch
  2848. pkg_ranch_commit = 1.2.1
  2849. PACKAGES += rbeacon
  2850. pkg_rbeacon_name = rbeacon
  2851. pkg_rbeacon_description = LAN discovery and presence in Erlang.
  2852. pkg_rbeacon_homepage = https://github.com/refuge/rbeacon
  2853. pkg_rbeacon_fetch = git
  2854. pkg_rbeacon_repo = https://github.com/refuge/rbeacon
  2855. pkg_rbeacon_commit = master
  2856. PACKAGES += rebar
  2857. pkg_rebar_name = rebar
  2858. pkg_rebar_description = Erlang build tool that makes it easy to compile and test Erlang applications, port drivers and releases.
  2859. pkg_rebar_homepage = http://www.rebar3.org
  2860. pkg_rebar_fetch = git
  2861. pkg_rebar_repo = https://github.com/rebar/rebar3
  2862. pkg_rebar_commit = master
  2863. PACKAGES += rebus
  2864. pkg_rebus_name = rebus
  2865. pkg_rebus_description = A stupid simple, internal, pub/sub event bus written in- and for Erlang.
  2866. pkg_rebus_homepage = https://github.com/olle/rebus
  2867. pkg_rebus_fetch = git
  2868. pkg_rebus_repo = https://github.com/olle/rebus
  2869. pkg_rebus_commit = master
  2870. PACKAGES += rec2json
  2871. pkg_rec2json_name = rec2json
  2872. pkg_rec2json_description = Compile erlang record definitions into modules to convert them to/from json easily.
  2873. pkg_rec2json_homepage = https://github.com/lordnull/rec2json
  2874. pkg_rec2json_fetch = git
  2875. pkg_rec2json_repo = https://github.com/lordnull/rec2json
  2876. pkg_rec2json_commit = master
  2877. PACKAGES += recon
  2878. pkg_recon_name = recon
  2879. pkg_recon_description = Collection of functions and scripts to debug Erlang in production.
  2880. pkg_recon_homepage = https://github.com/ferd/recon
  2881. pkg_recon_fetch = git
  2882. pkg_recon_repo = https://github.com/ferd/recon
  2883. pkg_recon_commit = master
  2884. PACKAGES += record_info
  2885. pkg_record_info_name = record_info
  2886. pkg_record_info_description = Convert between record and proplist
  2887. pkg_record_info_homepage = https://github.com/bipthelin/erlang-record_info
  2888. pkg_record_info_fetch = git
  2889. pkg_record_info_repo = https://github.com/bipthelin/erlang-record_info
  2890. pkg_record_info_commit = master
  2891. PACKAGES += redgrid
  2892. pkg_redgrid_name = redgrid
  2893. pkg_redgrid_description = automatic Erlang node discovery via redis
  2894. pkg_redgrid_homepage = https://github.com/jkvor/redgrid
  2895. pkg_redgrid_fetch = git
  2896. pkg_redgrid_repo = https://github.com/jkvor/redgrid
  2897. pkg_redgrid_commit = master
  2898. PACKAGES += redo
  2899. pkg_redo_name = redo
  2900. pkg_redo_description = pipelined erlang redis client
  2901. pkg_redo_homepage = https://github.com/jkvor/redo
  2902. pkg_redo_fetch = git
  2903. pkg_redo_repo = https://github.com/jkvor/redo
  2904. pkg_redo_commit = master
  2905. PACKAGES += reload_mk
  2906. pkg_reload_mk_name = reload_mk
  2907. pkg_reload_mk_description = Live reload plugin for erlang.mk.
  2908. pkg_reload_mk_homepage = https://github.com/bullno1/reload.mk
  2909. pkg_reload_mk_fetch = git
  2910. pkg_reload_mk_repo = https://github.com/bullno1/reload.mk
  2911. pkg_reload_mk_commit = master
  2912. PACKAGES += reltool_util
  2913. pkg_reltool_util_name = reltool_util
  2914. pkg_reltool_util_description = Erlang reltool utility functionality application
  2915. pkg_reltool_util_homepage = https://github.com/okeuday/reltool_util
  2916. pkg_reltool_util_fetch = git
  2917. pkg_reltool_util_repo = https://github.com/okeuday/reltool_util
  2918. pkg_reltool_util_commit = master
  2919. PACKAGES += relx
  2920. pkg_relx_name = relx
  2921. pkg_relx_description = Sane, simple release creation for Erlang
  2922. pkg_relx_homepage = https://github.com/erlware/relx
  2923. pkg_relx_fetch = git
  2924. pkg_relx_repo = https://github.com/erlware/relx
  2925. pkg_relx_commit = master
  2926. PACKAGES += resource_discovery
  2927. pkg_resource_discovery_name = resource_discovery
  2928. pkg_resource_discovery_description = An application used to dynamically discover resources present in an Erlang node cluster.
  2929. pkg_resource_discovery_homepage = http://erlware.org/
  2930. pkg_resource_discovery_fetch = git
  2931. pkg_resource_discovery_repo = https://github.com/erlware/resource_discovery
  2932. pkg_resource_discovery_commit = master
  2933. PACKAGES += restc
  2934. pkg_restc_name = restc
  2935. pkg_restc_description = Erlang Rest Client
  2936. pkg_restc_homepage = https://github.com/kivra/restclient
  2937. pkg_restc_fetch = git
  2938. pkg_restc_repo = https://github.com/kivra/restclient
  2939. pkg_restc_commit = master
  2940. PACKAGES += rfc4627_jsonrpc
  2941. pkg_rfc4627_jsonrpc_name = rfc4627_jsonrpc
  2942. pkg_rfc4627_jsonrpc_description = Erlang RFC4627 (JSON) codec and JSON-RPC server implementation.
  2943. pkg_rfc4627_jsonrpc_homepage = https://github.com/tonyg/erlang-rfc4627
  2944. pkg_rfc4627_jsonrpc_fetch = git
  2945. pkg_rfc4627_jsonrpc_repo = https://github.com/tonyg/erlang-rfc4627
  2946. pkg_rfc4627_jsonrpc_commit = master
  2947. PACKAGES += riak_control
  2948. pkg_riak_control_name = riak_control
  2949. pkg_riak_control_description = Webmachine-based administration interface for Riak.
  2950. pkg_riak_control_homepage = https://github.com/basho/riak_control
  2951. pkg_riak_control_fetch = git
  2952. pkg_riak_control_repo = https://github.com/basho/riak_control
  2953. pkg_riak_control_commit = master
  2954. PACKAGES += riak_core
  2955. pkg_riak_core_name = riak_core
  2956. pkg_riak_core_description = Distributed systems infrastructure used by Riak.
  2957. pkg_riak_core_homepage = https://github.com/basho/riak_core
  2958. pkg_riak_core_fetch = git
  2959. pkg_riak_core_repo = https://github.com/basho/riak_core
  2960. pkg_riak_core_commit = master
  2961. PACKAGES += riak_dt
  2962. pkg_riak_dt_name = riak_dt
  2963. pkg_riak_dt_description = Convergent replicated datatypes in Erlang
  2964. pkg_riak_dt_homepage = https://github.com/basho/riak_dt
  2965. pkg_riak_dt_fetch = git
  2966. pkg_riak_dt_repo = https://github.com/basho/riak_dt
  2967. pkg_riak_dt_commit = master
  2968. PACKAGES += riak_ensemble
  2969. pkg_riak_ensemble_name = riak_ensemble
  2970. pkg_riak_ensemble_description = Multi-Paxos framework in Erlang
  2971. pkg_riak_ensemble_homepage = https://github.com/basho/riak_ensemble
  2972. pkg_riak_ensemble_fetch = git
  2973. pkg_riak_ensemble_repo = https://github.com/basho/riak_ensemble
  2974. pkg_riak_ensemble_commit = master
  2975. PACKAGES += riak_kv
  2976. pkg_riak_kv_name = riak_kv
  2977. pkg_riak_kv_description = Riak Key/Value Store
  2978. pkg_riak_kv_homepage = https://github.com/basho/riak_kv
  2979. pkg_riak_kv_fetch = git
  2980. pkg_riak_kv_repo = https://github.com/basho/riak_kv
  2981. pkg_riak_kv_commit = master
  2982. PACKAGES += riak_pg
  2983. pkg_riak_pg_name = riak_pg
  2984. pkg_riak_pg_description = Distributed process groups with riak_core.
  2985. pkg_riak_pg_homepage = https://github.com/cmeiklejohn/riak_pg
  2986. pkg_riak_pg_fetch = git
  2987. pkg_riak_pg_repo = https://github.com/cmeiklejohn/riak_pg
  2988. pkg_riak_pg_commit = master
  2989. PACKAGES += riak_pipe
  2990. pkg_riak_pipe_name = riak_pipe
  2991. pkg_riak_pipe_description = Riak Pipelines
  2992. pkg_riak_pipe_homepage = https://github.com/basho/riak_pipe
  2993. pkg_riak_pipe_fetch = git
  2994. pkg_riak_pipe_repo = https://github.com/basho/riak_pipe
  2995. pkg_riak_pipe_commit = master
  2996. PACKAGES += riak_sysmon
  2997. pkg_riak_sysmon_name = riak_sysmon
  2998. pkg_riak_sysmon_description = Simple OTP app for managing Erlang VM system_monitor event messages
  2999. pkg_riak_sysmon_homepage = https://github.com/basho/riak_sysmon
  3000. pkg_riak_sysmon_fetch = git
  3001. pkg_riak_sysmon_repo = https://github.com/basho/riak_sysmon
  3002. pkg_riak_sysmon_commit = master
  3003. PACKAGES += riak_test
  3004. pkg_riak_test_name = riak_test
  3005. pkg_riak_test_description = I'm in your cluster, testing your riaks
  3006. pkg_riak_test_homepage = https://github.com/basho/riak_test
  3007. pkg_riak_test_fetch = git
  3008. pkg_riak_test_repo = https://github.com/basho/riak_test
  3009. pkg_riak_test_commit = master
  3010. PACKAGES += riakc
  3011. pkg_riakc_name = riakc
  3012. pkg_riakc_description = Erlang clients for Riak.
  3013. pkg_riakc_homepage = https://github.com/basho/riak-erlang-client
  3014. pkg_riakc_fetch = git
  3015. pkg_riakc_repo = https://github.com/basho/riak-erlang-client
  3016. pkg_riakc_commit = master
  3017. PACKAGES += riakhttpc
  3018. pkg_riakhttpc_name = riakhttpc
  3019. pkg_riakhttpc_description = Riak Erlang client using the HTTP interface
  3020. pkg_riakhttpc_homepage = https://github.com/basho/riak-erlang-http-client
  3021. pkg_riakhttpc_fetch = git
  3022. pkg_riakhttpc_repo = https://github.com/basho/riak-erlang-http-client
  3023. pkg_riakhttpc_commit = master
  3024. PACKAGES += riaknostic
  3025. pkg_riaknostic_name = riaknostic
  3026. pkg_riaknostic_description = A diagnostic tool for Riak installations, to find common errors asap
  3027. pkg_riaknostic_homepage = https://github.com/basho/riaknostic
  3028. pkg_riaknostic_fetch = git
  3029. pkg_riaknostic_repo = https://github.com/basho/riaknostic
  3030. pkg_riaknostic_commit = master
  3031. PACKAGES += riakpool
  3032. pkg_riakpool_name = riakpool
  3033. pkg_riakpool_description = erlang riak client pool
  3034. pkg_riakpool_homepage = https://github.com/dweldon/riakpool
  3035. pkg_riakpool_fetch = git
  3036. pkg_riakpool_repo = https://github.com/dweldon/riakpool
  3037. pkg_riakpool_commit = master
  3038. PACKAGES += rivus_cep
  3039. pkg_rivus_cep_name = rivus_cep
  3040. pkg_rivus_cep_description = Complex event processing in Erlang
  3041. pkg_rivus_cep_homepage = https://github.com/vascokk/rivus_cep
  3042. pkg_rivus_cep_fetch = git
  3043. pkg_rivus_cep_repo = https://github.com/vascokk/rivus_cep
  3044. pkg_rivus_cep_commit = master
  3045. PACKAGES += rlimit
  3046. pkg_rlimit_name = rlimit
  3047. pkg_rlimit_description = Magnus Klaar's rate limiter code from etorrent
  3048. pkg_rlimit_homepage = https://github.com/jlouis/rlimit
  3049. pkg_rlimit_fetch = git
  3050. pkg_rlimit_repo = https://github.com/jlouis/rlimit
  3051. pkg_rlimit_commit = master
  3052. PACKAGES += rust_mk
  3053. pkg_rust_mk_name = rust_mk
  3054. pkg_rust_mk_description = Build Rust crates in an Erlang application
  3055. pkg_rust_mk_homepage = https://github.com/goertzenator/rust.mk
  3056. pkg_rust_mk_fetch = git
  3057. pkg_rust_mk_repo = https://github.com/goertzenator/rust.mk
  3058. pkg_rust_mk_commit = master
  3059. PACKAGES += safetyvalve
  3060. pkg_safetyvalve_name = safetyvalve
  3061. pkg_safetyvalve_description = A safety valve for your erlang node
  3062. pkg_safetyvalve_homepage = https://github.com/jlouis/safetyvalve
  3063. pkg_safetyvalve_fetch = git
  3064. pkg_safetyvalve_repo = https://github.com/jlouis/safetyvalve
  3065. pkg_safetyvalve_commit = master
  3066. PACKAGES += seestar
  3067. pkg_seestar_name = seestar
  3068. pkg_seestar_description = The Erlang client for Cassandra 1.2+ binary protocol
  3069. pkg_seestar_homepage = https://github.com/iamaleksey/seestar
  3070. pkg_seestar_fetch = git
  3071. pkg_seestar_repo = https://github.com/iamaleksey/seestar
  3072. pkg_seestar_commit = master
  3073. PACKAGES += service
  3074. pkg_service_name = service
  3075. pkg_service_description = A minimal Erlang behavior for creating CloudI internal services
  3076. pkg_service_homepage = http://cloudi.org/
  3077. pkg_service_fetch = git
  3078. pkg_service_repo = https://github.com/CloudI/service
  3079. pkg_service_commit = master
  3080. PACKAGES += setup
  3081. pkg_setup_name = setup
  3082. pkg_setup_description = Generic setup utility for Erlang-based systems
  3083. pkg_setup_homepage = https://github.com/uwiger/setup
  3084. pkg_setup_fetch = git
  3085. pkg_setup_repo = https://github.com/uwiger/setup
  3086. pkg_setup_commit = master
  3087. PACKAGES += sext
  3088. pkg_sext_name = sext
  3089. pkg_sext_description = Sortable Erlang Term Serialization
  3090. pkg_sext_homepage = https://github.com/uwiger/sext
  3091. pkg_sext_fetch = git
  3092. pkg_sext_repo = https://github.com/uwiger/sext
  3093. pkg_sext_commit = master
  3094. PACKAGES += sfmt
  3095. pkg_sfmt_name = sfmt
  3096. pkg_sfmt_description = SFMT pseudo random number generator for Erlang.
  3097. pkg_sfmt_homepage = https://github.com/jj1bdx/sfmt-erlang
  3098. pkg_sfmt_fetch = git
  3099. pkg_sfmt_repo = https://github.com/jj1bdx/sfmt-erlang
  3100. pkg_sfmt_commit = master
  3101. PACKAGES += sgte
  3102. pkg_sgte_name = sgte
  3103. pkg_sgte_description = A simple Erlang Template Engine
  3104. pkg_sgte_homepage = https://github.com/filippo/sgte
  3105. pkg_sgte_fetch = git
  3106. pkg_sgte_repo = https://github.com/filippo/sgte
  3107. pkg_sgte_commit = master
  3108. PACKAGES += sheriff
  3109. pkg_sheriff_name = sheriff
  3110. pkg_sheriff_description = Parse transform for type based validation.
  3111. pkg_sheriff_homepage = http://ninenines.eu
  3112. pkg_sheriff_fetch = git
  3113. pkg_sheriff_repo = https://github.com/extend/sheriff
  3114. pkg_sheriff_commit = master
  3115. PACKAGES += shotgun
  3116. pkg_shotgun_name = shotgun
  3117. pkg_shotgun_description = better than just a gun
  3118. pkg_shotgun_homepage = https://github.com/inaka/shotgun
  3119. pkg_shotgun_fetch = git
  3120. pkg_shotgun_repo = https://github.com/inaka/shotgun
  3121. pkg_shotgun_commit = master
  3122. PACKAGES += sidejob
  3123. pkg_sidejob_name = sidejob
  3124. pkg_sidejob_description = Parallel worker and capacity limiting library for Erlang
  3125. pkg_sidejob_homepage = https://github.com/basho/sidejob
  3126. pkg_sidejob_fetch = git
  3127. pkg_sidejob_repo = https://github.com/basho/sidejob
  3128. pkg_sidejob_commit = master
  3129. PACKAGES += sieve
  3130. pkg_sieve_name = sieve
  3131. pkg_sieve_description = sieve is a simple TCP routing proxy (layer 7) in erlang
  3132. pkg_sieve_homepage = https://github.com/benoitc/sieve
  3133. pkg_sieve_fetch = git
  3134. pkg_sieve_repo = https://github.com/benoitc/sieve
  3135. pkg_sieve_commit = master
  3136. PACKAGES += sighandler
  3137. pkg_sighandler_name = sighandler
  3138. pkg_sighandler_description = Handle UNIX signals in Er lang
  3139. pkg_sighandler_homepage = https://github.com/jkingsbery/sighandler
  3140. pkg_sighandler_fetch = git
  3141. pkg_sighandler_repo = https://github.com/jkingsbery/sighandler
  3142. pkg_sighandler_commit = master
  3143. PACKAGES += simhash
  3144. pkg_simhash_name = simhash
  3145. pkg_simhash_description = Simhashing for Erlang -- hashing algorithm to find near-duplicates in binary data.
  3146. pkg_simhash_homepage = https://github.com/ferd/simhash
  3147. pkg_simhash_fetch = git
  3148. pkg_simhash_repo = https://github.com/ferd/simhash
  3149. pkg_simhash_commit = master
  3150. PACKAGES += simple_bridge
  3151. pkg_simple_bridge_name = simple_bridge
  3152. pkg_simple_bridge_description = A simple, standardized interface library to Erlang HTTP Servers.
  3153. pkg_simple_bridge_homepage = https://github.com/nitrogen/simple_bridge
  3154. pkg_simple_bridge_fetch = git
  3155. pkg_simple_bridge_repo = https://github.com/nitrogen/simple_bridge
  3156. pkg_simple_bridge_commit = master
  3157. PACKAGES += simple_oauth2
  3158. pkg_simple_oauth2_name = simple_oauth2
  3159. pkg_simple_oauth2_description = Simple erlang OAuth2 client module for any http server framework (Google, Facebook, Yandex, Vkontakte are preconfigured)
  3160. pkg_simple_oauth2_homepage = https://github.com/virtan/simple_oauth2
  3161. pkg_simple_oauth2_fetch = git
  3162. pkg_simple_oauth2_repo = https://github.com/virtan/simple_oauth2
  3163. pkg_simple_oauth2_commit = master
  3164. PACKAGES += skel
  3165. pkg_skel_name = skel
  3166. pkg_skel_description = A Streaming Process-based Skeleton Library for Erlang
  3167. pkg_skel_homepage = https://github.com/ParaPhrase/skel
  3168. pkg_skel_fetch = git
  3169. pkg_skel_repo = https://github.com/ParaPhrase/skel
  3170. pkg_skel_commit = master
  3171. PACKAGES += slack
  3172. pkg_slack_name = slack
  3173. pkg_slack_description = Minimal slack notification OTP library.
  3174. pkg_slack_homepage = https://github.com/DonBranson/slack
  3175. pkg_slack_fetch = git
  3176. pkg_slack_repo = https://github.com/DonBranson/slack.git
  3177. pkg_slack_commit = master
  3178. PACKAGES += smother
  3179. pkg_smother_name = smother
  3180. pkg_smother_description = Extended code coverage metrics for Erlang.
  3181. pkg_smother_homepage = https://ramsay-t.github.io/Smother/
  3182. pkg_smother_fetch = git
  3183. pkg_smother_repo = https://github.com/ramsay-t/Smother
  3184. pkg_smother_commit = master
  3185. PACKAGES += snappyer
  3186. pkg_snappyer_name = snappyer
  3187. pkg_snappyer_description = Snappy as nif for Erlang
  3188. pkg_snappyer_homepage = https://github.com/zmstone/snappyer
  3189. pkg_snappyer_fetch = git
  3190. pkg_snappyer_repo = https://github.com/zmstone/snappyer.git
  3191. pkg_snappyer_commit = master
  3192. PACKAGES += social
  3193. pkg_social_name = social
  3194. pkg_social_description = Cowboy handler for social login via OAuth2 providers
  3195. pkg_social_homepage = https://github.com/dvv/social
  3196. pkg_social_fetch = git
  3197. pkg_social_repo = https://github.com/dvv/social
  3198. pkg_social_commit = master
  3199. PACKAGES += spapi_router
  3200. pkg_spapi_router_name = spapi_router
  3201. pkg_spapi_router_description = Partially-connected Erlang clustering
  3202. pkg_spapi_router_homepage = https://github.com/spilgames/spapi-router
  3203. pkg_spapi_router_fetch = git
  3204. pkg_spapi_router_repo = https://github.com/spilgames/spapi-router
  3205. pkg_spapi_router_commit = master
  3206. PACKAGES += sqerl
  3207. pkg_sqerl_name = sqerl
  3208. pkg_sqerl_description = An Erlang-flavoured SQL DSL
  3209. pkg_sqerl_homepage = https://github.com/hairyhum/sqerl
  3210. pkg_sqerl_fetch = git
  3211. pkg_sqerl_repo = https://github.com/hairyhum/sqerl
  3212. pkg_sqerl_commit = master
  3213. PACKAGES += srly
  3214. pkg_srly_name = srly
  3215. pkg_srly_description = Native Erlang Unix serial interface
  3216. pkg_srly_homepage = https://github.com/msantos/srly
  3217. pkg_srly_fetch = git
  3218. pkg_srly_repo = https://github.com/msantos/srly
  3219. pkg_srly_commit = master
  3220. PACKAGES += sshrpc
  3221. pkg_sshrpc_name = sshrpc
  3222. pkg_sshrpc_description = Erlang SSH RPC module (experimental)
  3223. pkg_sshrpc_homepage = https://github.com/jj1bdx/sshrpc
  3224. pkg_sshrpc_fetch = git
  3225. pkg_sshrpc_repo = https://github.com/jj1bdx/sshrpc
  3226. pkg_sshrpc_commit = master
  3227. PACKAGES += stable
  3228. pkg_stable_name = stable
  3229. pkg_stable_description = Library of assorted helpers for Cowboy web server.
  3230. pkg_stable_homepage = https://github.com/dvv/stable
  3231. pkg_stable_fetch = git
  3232. pkg_stable_repo = https://github.com/dvv/stable
  3233. pkg_stable_commit = master
  3234. PACKAGES += statebox
  3235. pkg_statebox_name = statebox
  3236. pkg_statebox_description = Erlang state monad with merge/conflict-resolution capabilities. Useful for Riak.
  3237. pkg_statebox_homepage = https://github.com/mochi/statebox
  3238. pkg_statebox_fetch = git
  3239. pkg_statebox_repo = https://github.com/mochi/statebox
  3240. pkg_statebox_commit = master
  3241. PACKAGES += statebox_riak
  3242. pkg_statebox_riak_name = statebox_riak
  3243. 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.
  3244. pkg_statebox_riak_homepage = https://github.com/mochi/statebox_riak
  3245. pkg_statebox_riak_fetch = git
  3246. pkg_statebox_riak_repo = https://github.com/mochi/statebox_riak
  3247. pkg_statebox_riak_commit = master
  3248. PACKAGES += statman
  3249. pkg_statman_name = statman
  3250. pkg_statman_description = Efficiently collect massive volumes of metrics inside the Erlang VM
  3251. pkg_statman_homepage = https://github.com/knutin/statman
  3252. pkg_statman_fetch = git
  3253. pkg_statman_repo = https://github.com/knutin/statman
  3254. pkg_statman_commit = master
  3255. PACKAGES += statsderl
  3256. pkg_statsderl_name = statsderl
  3257. pkg_statsderl_description = StatsD client (erlang)
  3258. pkg_statsderl_homepage = https://github.com/lpgauth/statsderl
  3259. pkg_statsderl_fetch = git
  3260. pkg_statsderl_repo = https://github.com/lpgauth/statsderl
  3261. pkg_statsderl_commit = master
  3262. PACKAGES += stdinout_pool
  3263. pkg_stdinout_pool_name = stdinout_pool
  3264. pkg_stdinout_pool_description = stdinout_pool : stuff goes in, stuff goes out. there's never any miscommunication.
  3265. pkg_stdinout_pool_homepage = https://github.com/mattsta/erlang-stdinout-pool
  3266. pkg_stdinout_pool_fetch = git
  3267. pkg_stdinout_pool_repo = https://github.com/mattsta/erlang-stdinout-pool
  3268. pkg_stdinout_pool_commit = master
  3269. PACKAGES += stockdb
  3270. pkg_stockdb_name = stockdb
  3271. pkg_stockdb_description = Database for storing Stock Exchange quotes in erlang
  3272. pkg_stockdb_homepage = https://github.com/maxlapshin/stockdb
  3273. pkg_stockdb_fetch = git
  3274. pkg_stockdb_repo = https://github.com/maxlapshin/stockdb
  3275. pkg_stockdb_commit = master
  3276. PACKAGES += stripe
  3277. pkg_stripe_name = stripe
  3278. pkg_stripe_description = Erlang interface to the stripe.com API
  3279. pkg_stripe_homepage = https://github.com/mattsta/stripe-erlang
  3280. pkg_stripe_fetch = git
  3281. pkg_stripe_repo = https://github.com/mattsta/stripe-erlang
  3282. pkg_stripe_commit = v1
  3283. PACKAGES += subproc
  3284. pkg_subproc_name = subproc
  3285. pkg_subproc_description = unix subprocess manager with {active,once|false} modes
  3286. pkg_subproc_homepage = http://dozzie.jarowit.net/trac/wiki/subproc
  3287. pkg_subproc_fetch = git
  3288. pkg_subproc_repo = https://github.com/dozzie/subproc
  3289. pkg_subproc_commit = v0.1.0
  3290. PACKAGES += supervisor3
  3291. pkg_supervisor3_name = supervisor3
  3292. pkg_supervisor3_description = OTP supervisor with additional strategies
  3293. pkg_supervisor3_homepage = https://github.com/klarna/supervisor3
  3294. pkg_supervisor3_fetch = git
  3295. pkg_supervisor3_repo = https://github.com/klarna/supervisor3.git
  3296. pkg_supervisor3_commit = master
  3297. PACKAGES += surrogate
  3298. pkg_surrogate_name = surrogate
  3299. 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.
  3300. pkg_surrogate_homepage = https://github.com/skruger/Surrogate
  3301. pkg_surrogate_fetch = git
  3302. pkg_surrogate_repo = https://github.com/skruger/Surrogate
  3303. pkg_surrogate_commit = master
  3304. PACKAGES += swab
  3305. pkg_swab_name = swab
  3306. pkg_swab_description = General purpose buffer handling module
  3307. pkg_swab_homepage = https://github.com/crownedgrouse/swab
  3308. pkg_swab_fetch = git
  3309. pkg_swab_repo = https://github.com/crownedgrouse/swab
  3310. pkg_swab_commit = master
  3311. PACKAGES += swarm
  3312. pkg_swarm_name = swarm
  3313. pkg_swarm_description = Fast and simple acceptor pool for Erlang
  3314. pkg_swarm_homepage = https://github.com/jeremey/swarm
  3315. pkg_swarm_fetch = git
  3316. pkg_swarm_repo = https://github.com/jeremey/swarm
  3317. pkg_swarm_commit = master
  3318. PACKAGES += switchboard
  3319. pkg_switchboard_name = switchboard
  3320. pkg_switchboard_description = A framework for processing email using worker plugins.
  3321. pkg_switchboard_homepage = https://github.com/thusfresh/switchboard
  3322. pkg_switchboard_fetch = git
  3323. pkg_switchboard_repo = https://github.com/thusfresh/switchboard
  3324. pkg_switchboard_commit = master
  3325. PACKAGES += syn
  3326. pkg_syn_name = syn
  3327. pkg_syn_description = A global Process Registry and Process Group manager for Erlang.
  3328. pkg_syn_homepage = https://github.com/ostinelli/syn
  3329. pkg_syn_fetch = git
  3330. pkg_syn_repo = https://github.com/ostinelli/syn
  3331. pkg_syn_commit = master
  3332. PACKAGES += sync
  3333. pkg_sync_name = sync
  3334. pkg_sync_description = On-the-fly recompiling and reloading in Erlang.
  3335. pkg_sync_homepage = https://github.com/rustyio/sync
  3336. pkg_sync_fetch = git
  3337. pkg_sync_repo = https://github.com/rustyio/sync
  3338. pkg_sync_commit = master
  3339. PACKAGES += syntaxerl
  3340. pkg_syntaxerl_name = syntaxerl
  3341. pkg_syntaxerl_description = Syntax checker for Erlang
  3342. pkg_syntaxerl_homepage = https://github.com/ten0s/syntaxerl
  3343. pkg_syntaxerl_fetch = git
  3344. pkg_syntaxerl_repo = https://github.com/ten0s/syntaxerl
  3345. pkg_syntaxerl_commit = master
  3346. PACKAGES += syslog
  3347. pkg_syslog_name = syslog
  3348. pkg_syslog_description = Erlang port driver for interacting with syslog via syslog(3)
  3349. pkg_syslog_homepage = https://github.com/Vagabond/erlang-syslog
  3350. pkg_syslog_fetch = git
  3351. pkg_syslog_repo = https://github.com/Vagabond/erlang-syslog
  3352. pkg_syslog_commit = master
  3353. PACKAGES += taskforce
  3354. pkg_taskforce_name = taskforce
  3355. pkg_taskforce_description = Erlang worker pools for controlled parallelisation of arbitrary tasks.
  3356. pkg_taskforce_homepage = https://github.com/g-andrade/taskforce
  3357. pkg_taskforce_fetch = git
  3358. pkg_taskforce_repo = https://github.com/g-andrade/taskforce
  3359. pkg_taskforce_commit = master
  3360. PACKAGES += tddreloader
  3361. pkg_tddreloader_name = tddreloader
  3362. pkg_tddreloader_description = Shell utility for recompiling, reloading, and testing code as it changes
  3363. pkg_tddreloader_homepage = https://github.com/version2beta/tddreloader
  3364. pkg_tddreloader_fetch = git
  3365. pkg_tddreloader_repo = https://github.com/version2beta/tddreloader
  3366. pkg_tddreloader_commit = master
  3367. PACKAGES += tempo
  3368. pkg_tempo_name = tempo
  3369. pkg_tempo_description = NIF-based date and time parsing and formatting for Erlang.
  3370. pkg_tempo_homepage = https://github.com/selectel/tempo
  3371. pkg_tempo_fetch = git
  3372. pkg_tempo_repo = https://github.com/selectel/tempo
  3373. pkg_tempo_commit = master
  3374. PACKAGES += ticktick
  3375. pkg_ticktick_name = ticktick
  3376. pkg_ticktick_description = Ticktick is an id generator for message service.
  3377. pkg_ticktick_homepage = https://github.com/ericliang/ticktick
  3378. pkg_ticktick_fetch = git
  3379. pkg_ticktick_repo = https://github.com/ericliang/ticktick
  3380. pkg_ticktick_commit = master
  3381. PACKAGES += tinymq
  3382. pkg_tinymq_name = tinymq
  3383. pkg_tinymq_description = TinyMQ - a diminutive, in-memory message queue
  3384. pkg_tinymq_homepage = https://github.com/ChicagoBoss/tinymq
  3385. pkg_tinymq_fetch = git
  3386. pkg_tinymq_repo = https://github.com/ChicagoBoss/tinymq
  3387. pkg_tinymq_commit = master
  3388. PACKAGES += tinymt
  3389. pkg_tinymt_name = tinymt
  3390. pkg_tinymt_description = TinyMT pseudo random number generator for Erlang.
  3391. pkg_tinymt_homepage = https://github.com/jj1bdx/tinymt-erlang
  3392. pkg_tinymt_fetch = git
  3393. pkg_tinymt_repo = https://github.com/jj1bdx/tinymt-erlang
  3394. pkg_tinymt_commit = master
  3395. PACKAGES += tirerl
  3396. pkg_tirerl_name = tirerl
  3397. pkg_tirerl_description = Erlang interface to Elastic Search
  3398. pkg_tirerl_homepage = https://github.com/inaka/tirerl
  3399. pkg_tirerl_fetch = git
  3400. pkg_tirerl_repo = https://github.com/inaka/tirerl
  3401. pkg_tirerl_commit = master
  3402. PACKAGES += toml
  3403. pkg_toml_name = toml
  3404. pkg_toml_description = TOML (0.4.0) config parser
  3405. pkg_toml_homepage = http://dozzie.jarowit.net/trac/wiki/TOML
  3406. pkg_toml_fetch = git
  3407. pkg_toml_repo = https://github.com/dozzie/toml
  3408. pkg_toml_commit = v0.2.0
  3409. PACKAGES += traffic_tools
  3410. pkg_traffic_tools_name = traffic_tools
  3411. pkg_traffic_tools_description = Simple traffic limiting library
  3412. pkg_traffic_tools_homepage = https://github.com/systra/traffic_tools
  3413. pkg_traffic_tools_fetch = git
  3414. pkg_traffic_tools_repo = https://github.com/systra/traffic_tools
  3415. pkg_traffic_tools_commit = master
  3416. PACKAGES += trails
  3417. pkg_trails_name = trails
  3418. pkg_trails_description = A couple of improvements over Cowboy Routes
  3419. pkg_trails_homepage = http://inaka.github.io/cowboy-trails/
  3420. pkg_trails_fetch = git
  3421. pkg_trails_repo = https://github.com/inaka/cowboy-trails
  3422. pkg_trails_commit = master
  3423. PACKAGES += trane
  3424. pkg_trane_name = trane
  3425. pkg_trane_description = SAX style broken HTML parser in Erlang
  3426. pkg_trane_homepage = https://github.com/massemanet/trane
  3427. pkg_trane_fetch = git
  3428. pkg_trane_repo = https://github.com/massemanet/trane
  3429. pkg_trane_commit = master
  3430. PACKAGES += transit
  3431. pkg_transit_name = transit
  3432. pkg_transit_description = transit format for erlang
  3433. pkg_transit_homepage = https://github.com/isaiah/transit-erlang
  3434. pkg_transit_fetch = git
  3435. pkg_transit_repo = https://github.com/isaiah/transit-erlang
  3436. pkg_transit_commit = master
  3437. PACKAGES += trie
  3438. pkg_trie_name = trie
  3439. pkg_trie_description = Erlang Trie Implementation
  3440. pkg_trie_homepage = https://github.com/okeuday/trie
  3441. pkg_trie_fetch = git
  3442. pkg_trie_repo = https://github.com/okeuday/trie
  3443. pkg_trie_commit = master
  3444. PACKAGES += triq
  3445. pkg_triq_name = triq
  3446. pkg_triq_description = Trifork QuickCheck
  3447. pkg_triq_homepage = https://triq.gitlab.io
  3448. pkg_triq_fetch = git
  3449. pkg_triq_repo = https://gitlab.com/triq/triq.git
  3450. pkg_triq_commit = master
  3451. PACKAGES += tunctl
  3452. pkg_tunctl_name = tunctl
  3453. pkg_tunctl_description = Erlang TUN/TAP interface
  3454. pkg_tunctl_homepage = https://github.com/msantos/tunctl
  3455. pkg_tunctl_fetch = git
  3456. pkg_tunctl_repo = https://github.com/msantos/tunctl
  3457. pkg_tunctl_commit = master
  3458. PACKAGES += twerl
  3459. pkg_twerl_name = twerl
  3460. pkg_twerl_description = Erlang client for the Twitter Streaming API
  3461. pkg_twerl_homepage = https://github.com/lucaspiller/twerl
  3462. pkg_twerl_fetch = git
  3463. pkg_twerl_repo = https://github.com/lucaspiller/twerl
  3464. pkg_twerl_commit = oauth
  3465. PACKAGES += twitter_erlang
  3466. pkg_twitter_erlang_name = twitter_erlang
  3467. pkg_twitter_erlang_description = An Erlang twitter client
  3468. pkg_twitter_erlang_homepage = https://github.com/ngerakines/erlang_twitter
  3469. pkg_twitter_erlang_fetch = git
  3470. pkg_twitter_erlang_repo = https://github.com/ngerakines/erlang_twitter
  3471. pkg_twitter_erlang_commit = master
  3472. PACKAGES += ucol_nif
  3473. pkg_ucol_nif_name = ucol_nif
  3474. pkg_ucol_nif_description = ICU based collation Erlang module
  3475. pkg_ucol_nif_homepage = https://github.com/refuge/ucol_nif
  3476. pkg_ucol_nif_fetch = git
  3477. pkg_ucol_nif_repo = https://github.com/refuge/ucol_nif
  3478. pkg_ucol_nif_commit = master
  3479. PACKAGES += unicorn
  3480. pkg_unicorn_name = unicorn
  3481. pkg_unicorn_description = Generic configuration server
  3482. pkg_unicorn_homepage = https://github.com/shizzard/unicorn
  3483. pkg_unicorn_fetch = git
  3484. pkg_unicorn_repo = https://github.com/shizzard/unicorn
  3485. pkg_unicorn_commit = master
  3486. PACKAGES += unsplit
  3487. pkg_unsplit_name = unsplit
  3488. pkg_unsplit_description = Resolves conflicts in Mnesia after network splits
  3489. pkg_unsplit_homepage = https://github.com/uwiger/unsplit
  3490. pkg_unsplit_fetch = git
  3491. pkg_unsplit_repo = https://github.com/uwiger/unsplit
  3492. pkg_unsplit_commit = master
  3493. PACKAGES += uuid
  3494. pkg_uuid_name = uuid
  3495. pkg_uuid_description = Erlang UUID Implementation
  3496. pkg_uuid_homepage = https://github.com/okeuday/uuid
  3497. pkg_uuid_fetch = git
  3498. pkg_uuid_repo = https://github.com/okeuday/uuid
  3499. pkg_uuid_commit = master
  3500. PACKAGES += ux
  3501. pkg_ux_name = ux
  3502. pkg_ux_description = Unicode eXtention for Erlang (Strings, Collation)
  3503. pkg_ux_homepage = https://github.com/erlang-unicode/ux
  3504. pkg_ux_fetch = git
  3505. pkg_ux_repo = https://github.com/erlang-unicode/ux
  3506. pkg_ux_commit = master
  3507. PACKAGES += vert
  3508. pkg_vert_name = vert
  3509. pkg_vert_description = Erlang binding to libvirt virtualization API
  3510. pkg_vert_homepage = https://github.com/msantos/erlang-libvirt
  3511. pkg_vert_fetch = git
  3512. pkg_vert_repo = https://github.com/msantos/erlang-libvirt
  3513. pkg_vert_commit = master
  3514. PACKAGES += verx
  3515. pkg_verx_name = verx
  3516. pkg_verx_description = Erlang implementation of the libvirtd remote protocol
  3517. pkg_verx_homepage = https://github.com/msantos/verx
  3518. pkg_verx_fetch = git
  3519. pkg_verx_repo = https://github.com/msantos/verx
  3520. pkg_verx_commit = master
  3521. PACKAGES += vmq_acl
  3522. pkg_vmq_acl_name = vmq_acl
  3523. pkg_vmq_acl_description = Component of VerneMQ: A distributed MQTT message broker
  3524. pkg_vmq_acl_homepage = https://verne.mq/
  3525. pkg_vmq_acl_fetch = git
  3526. pkg_vmq_acl_repo = https://github.com/erlio/vmq_acl
  3527. pkg_vmq_acl_commit = master
  3528. PACKAGES += vmq_bridge
  3529. pkg_vmq_bridge_name = vmq_bridge
  3530. pkg_vmq_bridge_description = Component of VerneMQ: A distributed MQTT message broker
  3531. pkg_vmq_bridge_homepage = https://verne.mq/
  3532. pkg_vmq_bridge_fetch = git
  3533. pkg_vmq_bridge_repo = https://github.com/erlio/vmq_bridge
  3534. pkg_vmq_bridge_commit = master
  3535. PACKAGES += vmq_graphite
  3536. pkg_vmq_graphite_name = vmq_graphite
  3537. pkg_vmq_graphite_description = Component of VerneMQ: A distributed MQTT message broker
  3538. pkg_vmq_graphite_homepage = https://verne.mq/
  3539. pkg_vmq_graphite_fetch = git
  3540. pkg_vmq_graphite_repo = https://github.com/erlio/vmq_graphite
  3541. pkg_vmq_graphite_commit = master
  3542. PACKAGES += vmq_passwd
  3543. pkg_vmq_passwd_name = vmq_passwd
  3544. pkg_vmq_passwd_description = Component of VerneMQ: A distributed MQTT message broker
  3545. pkg_vmq_passwd_homepage = https://verne.mq/
  3546. pkg_vmq_passwd_fetch = git
  3547. pkg_vmq_passwd_repo = https://github.com/erlio/vmq_passwd
  3548. pkg_vmq_passwd_commit = master
  3549. PACKAGES += vmq_server
  3550. pkg_vmq_server_name = vmq_server
  3551. pkg_vmq_server_description = Component of VerneMQ: A distributed MQTT message broker
  3552. pkg_vmq_server_homepage = https://verne.mq/
  3553. pkg_vmq_server_fetch = git
  3554. pkg_vmq_server_repo = https://github.com/erlio/vmq_server
  3555. pkg_vmq_server_commit = master
  3556. PACKAGES += vmq_snmp
  3557. pkg_vmq_snmp_name = vmq_snmp
  3558. pkg_vmq_snmp_description = Component of VerneMQ: A distributed MQTT message broker
  3559. pkg_vmq_snmp_homepage = https://verne.mq/
  3560. pkg_vmq_snmp_fetch = git
  3561. pkg_vmq_snmp_repo = https://github.com/erlio/vmq_snmp
  3562. pkg_vmq_snmp_commit = master
  3563. PACKAGES += vmq_systree
  3564. pkg_vmq_systree_name = vmq_systree
  3565. pkg_vmq_systree_description = Component of VerneMQ: A distributed MQTT message broker
  3566. pkg_vmq_systree_homepage = https://verne.mq/
  3567. pkg_vmq_systree_fetch = git
  3568. pkg_vmq_systree_repo = https://github.com/erlio/vmq_systree
  3569. pkg_vmq_systree_commit = master
  3570. PACKAGES += vmstats
  3571. pkg_vmstats_name = vmstats
  3572. pkg_vmstats_description = tiny Erlang app that works in conjunction with statsderl in order to generate information on the Erlang VM for graphite logs.
  3573. pkg_vmstats_homepage = https://github.com/ferd/vmstats
  3574. pkg_vmstats_fetch = git
  3575. pkg_vmstats_repo = https://github.com/ferd/vmstats
  3576. pkg_vmstats_commit = master
  3577. PACKAGES += walrus
  3578. pkg_walrus_name = walrus
  3579. pkg_walrus_description = Walrus - Mustache-like Templating
  3580. pkg_walrus_homepage = https://github.com/devinus/walrus
  3581. pkg_walrus_fetch = git
  3582. pkg_walrus_repo = https://github.com/devinus/walrus
  3583. pkg_walrus_commit = master
  3584. PACKAGES += webmachine
  3585. pkg_webmachine_name = webmachine
  3586. pkg_webmachine_description = A REST-based system for building web applications.
  3587. pkg_webmachine_homepage = https://github.com/basho/webmachine
  3588. pkg_webmachine_fetch = git
  3589. pkg_webmachine_repo = https://github.com/basho/webmachine
  3590. pkg_webmachine_commit = master
  3591. PACKAGES += websocket_client
  3592. pkg_websocket_client_name = websocket_client
  3593. pkg_websocket_client_description = Erlang websocket client (ws and wss supported)
  3594. pkg_websocket_client_homepage = https://github.com/jeremyong/websocket_client
  3595. pkg_websocket_client_fetch = git
  3596. pkg_websocket_client_repo = https://github.com/jeremyong/websocket_client
  3597. pkg_websocket_client_commit = master
  3598. PACKAGES += worker_pool
  3599. pkg_worker_pool_name = worker_pool
  3600. pkg_worker_pool_description = a simple erlang worker pool
  3601. pkg_worker_pool_homepage = https://github.com/inaka/worker_pool
  3602. pkg_worker_pool_fetch = git
  3603. pkg_worker_pool_repo = https://github.com/inaka/worker_pool
  3604. pkg_worker_pool_commit = master
  3605. PACKAGES += wrangler
  3606. pkg_wrangler_name = wrangler
  3607. pkg_wrangler_description = Import of the Wrangler svn repository.
  3608. pkg_wrangler_homepage = http://www.cs.kent.ac.uk/projects/wrangler/Home.html
  3609. pkg_wrangler_fetch = git
  3610. pkg_wrangler_repo = https://github.com/RefactoringTools/wrangler
  3611. pkg_wrangler_commit = master
  3612. PACKAGES += wsock
  3613. pkg_wsock_name = wsock
  3614. pkg_wsock_description = Erlang library to build WebSocket clients and servers
  3615. pkg_wsock_homepage = https://github.com/madtrick/wsock
  3616. pkg_wsock_fetch = git
  3617. pkg_wsock_repo = https://github.com/madtrick/wsock
  3618. pkg_wsock_commit = master
  3619. PACKAGES += xhttpc
  3620. pkg_xhttpc_name = xhttpc
  3621. pkg_xhttpc_description = Extensible HTTP Client for Erlang
  3622. pkg_xhttpc_homepage = https://github.com/seriyps/xhttpc
  3623. pkg_xhttpc_fetch = git
  3624. pkg_xhttpc_repo = https://github.com/seriyps/xhttpc
  3625. pkg_xhttpc_commit = master
  3626. PACKAGES += xref_runner
  3627. pkg_xref_runner_name = xref_runner
  3628. pkg_xref_runner_description = Erlang Xref Runner (inspired in rebar xref)
  3629. pkg_xref_runner_homepage = https://github.com/inaka/xref_runner
  3630. pkg_xref_runner_fetch = git
  3631. pkg_xref_runner_repo = https://github.com/inaka/xref_runner
  3632. pkg_xref_runner_commit = master
  3633. PACKAGES += yamerl
  3634. pkg_yamerl_name = yamerl
  3635. pkg_yamerl_description = YAML 1.2 parser in pure Erlang
  3636. pkg_yamerl_homepage = https://github.com/yakaz/yamerl
  3637. pkg_yamerl_fetch = git
  3638. pkg_yamerl_repo = https://github.com/yakaz/yamerl
  3639. pkg_yamerl_commit = master
  3640. PACKAGES += yamler
  3641. pkg_yamler_name = yamler
  3642. pkg_yamler_description = libyaml-based yaml loader for Erlang
  3643. pkg_yamler_homepage = https://github.com/goertzenator/yamler
  3644. pkg_yamler_fetch = git
  3645. pkg_yamler_repo = https://github.com/goertzenator/yamler
  3646. pkg_yamler_commit = master
  3647. PACKAGES += yaws
  3648. pkg_yaws_name = yaws
  3649. pkg_yaws_description = Yaws webserver
  3650. pkg_yaws_homepage = http://yaws.hyber.org
  3651. pkg_yaws_fetch = git
  3652. pkg_yaws_repo = https://github.com/klacke/yaws
  3653. pkg_yaws_commit = master
  3654. PACKAGES += zab_engine
  3655. pkg_zab_engine_name = zab_engine
  3656. pkg_zab_engine_description = zab propotocol implement by erlang
  3657. pkg_zab_engine_homepage = https://github.com/xinmingyao/zab_engine
  3658. pkg_zab_engine_fetch = git
  3659. pkg_zab_engine_repo = https://github.com/xinmingyao/zab_engine
  3660. pkg_zab_engine_commit = master
  3661. PACKAGES += zabbix_sender
  3662. pkg_zabbix_sender_name = zabbix_sender
  3663. pkg_zabbix_sender_description = Zabbix trapper for sending data to Zabbix in pure Erlang
  3664. pkg_zabbix_sender_homepage = https://github.com/stalkermn/zabbix_sender
  3665. pkg_zabbix_sender_fetch = git
  3666. pkg_zabbix_sender_repo = https://github.com/stalkermn/zabbix_sender.git
  3667. pkg_zabbix_sender_commit = master
  3668. PACKAGES += zeta
  3669. pkg_zeta_name = zeta
  3670. pkg_zeta_description = HTTP access log parser in Erlang
  3671. pkg_zeta_homepage = https://github.com/s1n4/zeta
  3672. pkg_zeta_fetch = git
  3673. pkg_zeta_repo = https://github.com/s1n4/zeta
  3674. pkg_zeta_commit = master
  3675. PACKAGES += zippers
  3676. pkg_zippers_name = zippers
  3677. pkg_zippers_description = A library for functional zipper data structures in Erlang. Read more on zippers
  3678. pkg_zippers_homepage = https://github.com/ferd/zippers
  3679. pkg_zippers_fetch = git
  3680. pkg_zippers_repo = https://github.com/ferd/zippers
  3681. pkg_zippers_commit = master
  3682. PACKAGES += zlists
  3683. pkg_zlists_name = zlists
  3684. pkg_zlists_description = Erlang lazy lists library.
  3685. pkg_zlists_homepage = https://github.com/vjache/erlang-zlists
  3686. pkg_zlists_fetch = git
  3687. pkg_zlists_repo = https://github.com/vjache/erlang-zlists
  3688. pkg_zlists_commit = master
  3689. PACKAGES += zraft_lib
  3690. pkg_zraft_lib_name = zraft_lib
  3691. pkg_zraft_lib_description = Erlang raft consensus protocol implementation
  3692. pkg_zraft_lib_homepage = https://github.com/dreyk/zraft_lib
  3693. pkg_zraft_lib_fetch = git
  3694. pkg_zraft_lib_repo = https://github.com/dreyk/zraft_lib
  3695. pkg_zraft_lib_commit = master
  3696. PACKAGES += zucchini
  3697. pkg_zucchini_name = zucchini
  3698. pkg_zucchini_description = An Erlang INI parser
  3699. pkg_zucchini_homepage = https://github.com/devinus/zucchini
  3700. pkg_zucchini_fetch = git
  3701. pkg_zucchini_repo = https://github.com/devinus/zucchini
  3702. pkg_zucchini_commit = master
  3703. # Copyright (c) 2015-2016, Loïc Hoguin <essen@ninenines.eu>
  3704. # This file is part of erlang.mk and subject to the terms of the ISC License.
  3705. .PHONY: search
  3706. define pkg_print
  3707. $(verbose) printf "%s\n" \
  3708. $(if $(call core_eq,$(1),$(pkg_$(1)_name)),,"Pkg name: $(1)") \
  3709. "App name: $(pkg_$(1)_name)" \
  3710. "Description: $(pkg_$(1)_description)" \
  3711. "Home page: $(pkg_$(1)_homepage)" \
  3712. "Fetch with: $(pkg_$(1)_fetch)" \
  3713. "Repository: $(pkg_$(1)_repo)" \
  3714. "Commit: $(pkg_$(1)_commit)" \
  3715. ""
  3716. endef
  3717. search:
  3718. ifdef q
  3719. $(foreach p,$(PACKAGES), \
  3720. $(if $(findstring $(call core_lc,$(q)),$(call core_lc,$(pkg_$(p)_name) $(pkg_$(p)_description))), \
  3721. $(call pkg_print,$(p))))
  3722. else
  3723. $(foreach p,$(PACKAGES),$(call pkg_print,$(p)))
  3724. endif
  3725. # Copyright (c) 2013-2016, Loïc Hoguin <essen@ninenines.eu>
  3726. # This file is part of erlang.mk and subject to the terms of the ISC License.
  3727. .PHONY: distclean-deps clean-tmp-deps.log
  3728. # Configuration.
  3729. ifdef OTP_DEPS
  3730. $(warning The variable OTP_DEPS is deprecated in favor of LOCAL_DEPS.)
  3731. endif
  3732. IGNORE_DEPS ?=
  3733. export IGNORE_DEPS
  3734. APPS_DIR ?= $(CURDIR)/apps
  3735. export APPS_DIR
  3736. DEPS_DIR ?= $(CURDIR)/deps
  3737. export DEPS_DIR
  3738. REBAR_DEPS_DIR = $(DEPS_DIR)
  3739. export REBAR_DEPS_DIR
  3740. REBAR_GIT ?= https://github.com/rebar/rebar
  3741. REBAR_COMMIT ?= 576e12171ab8d69b048b827b92aa65d067deea01
  3742. # External "early" plugins (see core/plugins.mk for regular plugins).
  3743. # They both use the core_dep_plugin macro.
  3744. define core_dep_plugin
  3745. ifeq ($(2),$(PROJECT))
  3746. -include $$(patsubst $(PROJECT)/%,%,$(1))
  3747. else
  3748. -include $(DEPS_DIR)/$(1)
  3749. $(DEPS_DIR)/$(1): $(DEPS_DIR)/$(2) ;
  3750. endif
  3751. endef
  3752. DEP_EARLY_PLUGINS ?=
  3753. $(foreach p,$(DEP_EARLY_PLUGINS),\
  3754. $(eval $(if $(findstring /,$p),\
  3755. $(call core_dep_plugin,$p,$(firstword $(subst /, ,$p))),\
  3756. $(call core_dep_plugin,$p/early-plugins.mk,$p))))
  3757. # Query functions.
  3758. query_fetch_method = $(if $(dep_$(1)),$(call _qfm_dep,$(word 1,$(dep_$(1)))),$(call _qfm_pkg,$(1)))
  3759. _qfm_dep = $(if $(dep_fetch_$(1)),$(1),$(if $(IS_DEP),legacy,fail))
  3760. _qfm_pkg = $(if $(pkg_$(1)_fetch),$(pkg_$(1)_fetch),fail)
  3761. query_name = $(if $(dep_$(1)),$(1),$(if $(pkg_$(1)_name),$(pkg_$(1)_name),$(1)))
  3762. query_repo = $(call _qr,$(1),$(call query_fetch_method,$(1)))
  3763. _qr = $(if $(query_repo_$(2)),$(call query_repo_$(2),$(1)),$(call dep_repo,$(1)))
  3764. query_repo_default = $(if $(dep_$(1)),$(word 2,$(dep_$(1))),$(pkg_$(1)_repo))
  3765. query_repo_git = $(patsubst git://github.com/%,https://github.com/%,$(call query_repo_default,$(1)))
  3766. query_repo_git-subfolder = $(call query_repo_git,$(1))
  3767. query_repo_git-submodule = -
  3768. query_repo_hg = $(call query_repo_default,$(1))
  3769. query_repo_svn = $(call query_repo_default,$(1))
  3770. query_repo_cp = $(call query_repo_default,$(1))
  3771. query_repo_ln = $(call query_repo_default,$(1))
  3772. query_repo_hex = https://hex.pm/packages/$(if $(word 3,$(dep_$(1))),$(word 3,$(dep_$(1))),$(1))
  3773. query_repo_fail = -
  3774. query_repo_legacy = -
  3775. query_version = $(call _qv,$(1),$(call query_fetch_method,$(1)))
  3776. _qv = $(if $(query_version_$(2)),$(call query_version_$(2),$(1)),$(call dep_commit,$(1)))
  3777. query_version_default = $(if $(dep_$(1)_commit),$(dep_$(1)_commit),$(if $(dep_$(1)),$(word 3,$(dep_$(1))),$(pkg_$(1)_commit)))
  3778. query_version_git = $(call query_version_default,$(1))
  3779. query_version_git-subfolder = $(call query_version_git,$(1))
  3780. query_version_git-submodule = -
  3781. query_version_hg = $(call query_version_default,$(1))
  3782. query_version_svn = -
  3783. query_version_cp = -
  3784. query_version_ln = -
  3785. query_version_hex = $(if $(dep_$(1)_commit),$(dep_$(1)_commit),$(if $(dep_$(1)),$(word 2,$(dep_$(1))),$(pkg_$(1)_commit)))
  3786. query_version_fail = -
  3787. query_version_legacy = -
  3788. query_extra = $(call _qe,$(1),$(call query_fetch_method,$(1)))
  3789. _qe = $(if $(query_extra_$(2)),$(call query_extra_$(2),$(1)),-)
  3790. query_extra_git = -
  3791. query_extra_git-subfolder = $(if $(dep_$(1)),subfolder=$(word 4,$(dep_$(1))),-)
  3792. query_extra_git-submodule = -
  3793. query_extra_hg = -
  3794. query_extra_svn = -
  3795. query_extra_cp = -
  3796. query_extra_ln = -
  3797. query_extra_hex = $(if $(dep_$(1)),package-name=$(word 3,$(dep_$(1))),-)
  3798. query_extra_fail = -
  3799. query_extra_legacy = -
  3800. query_absolute_path = $(addprefix $(DEPS_DIR)/,$(call query_name,$(1)))
  3801. # Deprecated legacy query functions.
  3802. dep_fetch = $(call query_fetch_method,$(1))
  3803. dep_name = $(call query_name,$(1))
  3804. dep_repo = $(call query_repo_git,$(1))
  3805. 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)))
  3806. LOCAL_DEPS_DIRS = $(foreach a,$(LOCAL_DEPS),$(if $(wildcard $(APPS_DIR)/$(a)),$(APPS_DIR)/$(a)))
  3807. ALL_DEPS_DIRS = $(addprefix $(DEPS_DIR)/,$(foreach dep,$(filter-out $(IGNORE_DEPS),$(BUILD_DEPS) $(DEPS)),$(call dep_name,$(dep))))
  3808. # When we are calling an app directly we don't want to include it here
  3809. # otherwise it'll be treated both as an apps and a top-level project.
  3810. ALL_APPS_DIRS = $(if $(wildcard $(APPS_DIR)/),$(filter-out $(APPS_DIR),$(shell find $(APPS_DIR) -maxdepth 1 -type d)))
  3811. ifdef ROOT_DIR
  3812. ifndef IS_APP
  3813. ALL_APPS_DIRS := $(filter-out $(APPS_DIR)/$(notdir $(CURDIR)),$(ALL_APPS_DIRS))
  3814. endif
  3815. endif
  3816. ifeq ($(filter $(APPS_DIR) $(DEPS_DIR),$(subst :, ,$(ERL_LIBS))),)
  3817. ifeq ($(ERL_LIBS),)
  3818. ERL_LIBS = $(APPS_DIR):$(DEPS_DIR)
  3819. else
  3820. ERL_LIBS := $(ERL_LIBS):$(APPS_DIR):$(DEPS_DIR)
  3821. endif
  3822. endif
  3823. export ERL_LIBS
  3824. export NO_AUTOPATCH
  3825. # Verbosity.
  3826. dep_verbose_0 = @echo " DEP $1 ($(call dep_commit,$1))";
  3827. dep_verbose_2 = set -x;
  3828. dep_verbose = $(dep_verbose_$(V))
  3829. # Optimization: don't recompile deps unless truly necessary.
  3830. ifndef IS_DEP
  3831. ifneq ($(MAKELEVEL),0)
  3832. $(shell rm -f ebin/dep_built)
  3833. endif
  3834. endif
  3835. # Core targets.
  3836. ALL_APPS_DIRS_TO_BUILD = $(if $(LOCAL_DEPS_DIRS)$(IS_APP),$(LOCAL_DEPS_DIRS),$(ALL_APPS_DIRS))
  3837. apps:: $(ALL_APPS_DIRS) clean-tmp-deps.log | $(ERLANG_MK_TMP)
  3838. # Create ebin directory for all apps to make sure Erlang recognizes them
  3839. # as proper OTP applications when using -include_lib. This is a temporary
  3840. # fix, a proper fix would be to compile apps/* in the right order.
  3841. ifndef IS_APP
  3842. ifneq ($(ALL_APPS_DIRS),)
  3843. $(verbose) set -e; for dep in $(ALL_APPS_DIRS) ; do \
  3844. mkdir -p $$dep/ebin; \
  3845. done
  3846. endif
  3847. endif
  3848. # At the toplevel: if LOCAL_DEPS is defined with at least one local app, only
  3849. # compile that list of apps. Otherwise, compile everything.
  3850. # Within an app: compile all LOCAL_DEPS that are (uncompiled) local apps.
  3851. ifneq ($(ALL_APPS_DIRS_TO_BUILD),)
  3852. $(verbose) set -e; for dep in $(ALL_APPS_DIRS_TO_BUILD); do \
  3853. if grep -qs ^$$dep$$ $(ERLANG_MK_TMP)/apps.log; then \
  3854. :; \
  3855. else \
  3856. echo $$dep >> $(ERLANG_MK_TMP)/apps.log; \
  3857. $(MAKE) -C $$dep $(if $(IS_TEST),test-build-app) IS_APP=1; \
  3858. fi \
  3859. done
  3860. endif
  3861. clean-tmp-deps.log:
  3862. ifeq ($(IS_APP)$(IS_DEP),)
  3863. $(verbose) rm -f $(ERLANG_MK_TMP)/apps.log $(ERLANG_MK_TMP)/deps.log
  3864. endif
  3865. # Erlang.mk does not rebuild dependencies after they were compiled
  3866. # once. If a developer is working on the top-level project and some
  3867. # dependencies at the same time, he may want to change this behavior.
  3868. # There are two solutions:
  3869. # 1. Set `FULL=1` so that all dependencies are visited and
  3870. # recursively recompiled if necessary.
  3871. # 2. Set `FORCE_REBUILD=` to the specific list of dependencies that
  3872. # should be recompiled (instead of the whole set).
  3873. FORCE_REBUILD ?=
  3874. ifeq ($(origin FULL),undefined)
  3875. ifneq ($(strip $(force_rebuild_dep)$(FORCE_REBUILD)),)
  3876. define force_rebuild_dep
  3877. echo "$(FORCE_REBUILD)" | grep -qw "$$(basename "$1")"
  3878. endef
  3879. endif
  3880. endif
  3881. ifneq ($(SKIP_DEPS),)
  3882. deps::
  3883. else
  3884. deps:: $(ALL_DEPS_DIRS) apps clean-tmp-deps.log | $(ERLANG_MK_TMP)
  3885. ifneq ($(ALL_DEPS_DIRS),)
  3886. $(verbose) set -e; for dep in $(ALL_DEPS_DIRS); do \
  3887. if grep -qs ^$$dep$$ $(ERLANG_MK_TMP)/deps.log; then \
  3888. :; \
  3889. else \
  3890. echo $$dep >> $(ERLANG_MK_TMP)/deps.log; \
  3891. if [ -z "$(strip $(FULL))" ] $(if $(force_rebuild_dep),&& ! ($(call force_rebuild_dep,$$dep)),) && [ ! -L $$dep ] && [ -f $$dep/ebin/dep_built ]; then \
  3892. :; \
  3893. elif [ -f $$dep/GNUmakefile ] || [ -f $$dep/makefile ] || [ -f $$dep/Makefile ]; then \
  3894. $(MAKE) -C $$dep IS_DEP=1; \
  3895. if [ ! -L $$dep ] && [ -d $$dep/ebin ]; then touch $$dep/ebin/dep_built; fi; \
  3896. else \
  3897. echo "Error: No Makefile to build dependency $$dep." >&2; \
  3898. exit 2; \
  3899. fi \
  3900. fi \
  3901. done
  3902. endif
  3903. endif
  3904. # Deps related targets.
  3905. # @todo rename GNUmakefile and makefile into Makefile first, if they exist
  3906. # While Makefile file could be GNUmakefile or makefile,
  3907. # in practice only Makefile is needed so far.
  3908. define dep_autopatch
  3909. if [ -f $(DEPS_DIR)/$(1)/erlang.mk ]; then \
  3910. rm -rf $(DEPS_DIR)/$1/ebin/; \
  3911. $(call erlang,$(call dep_autopatch_appsrc.erl,$(1))); \
  3912. $(call dep_autopatch_erlang_mk,$(1)); \
  3913. elif [ -f $(DEPS_DIR)/$(1)/Makefile ]; then \
  3914. if [ -f $(DEPS_DIR)/$1/rebar.lock ]; then \
  3915. $(call dep_autopatch2,$1); \
  3916. elif [ 0 != `grep -c "include ../\w*\.mk" $(DEPS_DIR)/$(1)/Makefile` ]; then \
  3917. $(call dep_autopatch2,$(1)); \
  3918. elif [ 0 != `grep -ci "^[^#].*rebar" $(DEPS_DIR)/$(1)/Makefile` ]; then \
  3919. $(call dep_autopatch2,$(1)); \
  3920. elif [ -n "`find $(DEPS_DIR)/$(1)/ -type f -name \*.mk -not -name erlang.mk -exec grep -i "^[^#].*rebar" '{}' \;`" ]; then \
  3921. $(call dep_autopatch2,$(1)); \
  3922. fi \
  3923. else \
  3924. if [ ! -d $(DEPS_DIR)/$(1)/src/ ]; then \
  3925. $(call dep_autopatch_noop,$(1)); \
  3926. else \
  3927. $(call dep_autopatch2,$(1)); \
  3928. fi \
  3929. fi
  3930. endef
  3931. define dep_autopatch2
  3932. ! test -f $(DEPS_DIR)/$1/ebin/$1.app || \
  3933. mv -n $(DEPS_DIR)/$1/ebin/$1.app $(DEPS_DIR)/$1/src/$1.app.src; \
  3934. rm -f $(DEPS_DIR)/$1/ebin/$1.app; \
  3935. if [ -f $(DEPS_DIR)/$1/src/$1.app.src.script ]; then \
  3936. $(call erlang,$(call dep_autopatch_appsrc_script.erl,$(1))); \
  3937. fi; \
  3938. $(call erlang,$(call dep_autopatch_appsrc.erl,$(1))); \
  3939. 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 \
  3940. $(call dep_autopatch_fetch_rebar); \
  3941. $(call dep_autopatch_rebar,$(1)); \
  3942. else \
  3943. $(call dep_autopatch_gen,$(1)); \
  3944. fi
  3945. endef
  3946. define dep_autopatch_noop
  3947. printf "noop:\n" > $(DEPS_DIR)/$(1)/Makefile
  3948. endef
  3949. # Replace "include erlang.mk" with a line that will load the parent Erlang.mk
  3950. # if given. Do it for all 3 possible Makefile file names.
  3951. ifeq ($(NO_AUTOPATCH_ERLANG_MK),)
  3952. define dep_autopatch_erlang_mk
  3953. for f in Makefile makefile GNUmakefile; do \
  3954. if [ -f $(DEPS_DIR)/$1/$$f ]; then \
  3955. sed -i.bak s/'include *erlang.mk'/'include $$(if $$(ERLANG_MK_FILENAME),$$(ERLANG_MK_FILENAME),erlang.mk)'/ $(DEPS_DIR)/$1/$$f; \
  3956. fi \
  3957. done
  3958. endef
  3959. else
  3960. define dep_autopatch_erlang_mk
  3961. :
  3962. endef
  3963. endif
  3964. define dep_autopatch_gen
  3965. printf "%s\n" \
  3966. "ERLC_OPTS = +debug_info" \
  3967. "include ../../erlang.mk" > $(DEPS_DIR)/$(1)/Makefile
  3968. endef
  3969. # We use flock/lockf when available to avoid concurrency issues.
  3970. define dep_autopatch_fetch_rebar
  3971. if command -v flock >/dev/null; then \
  3972. flock $(ERLANG_MK_TMP)/rebar.lock sh -c "$(call dep_autopatch_fetch_rebar2)"; \
  3973. elif command -v lockf >/dev/null; then \
  3974. lockf $(ERLANG_MK_TMP)/rebar.lock sh -c "$(call dep_autopatch_fetch_rebar2)"; \
  3975. else \
  3976. $(call dep_autopatch_fetch_rebar2); \
  3977. fi
  3978. endef
  3979. define dep_autopatch_fetch_rebar2
  3980. if [ ! -d $(ERLANG_MK_TMP)/rebar ]; then \
  3981. git clone -q -n -- $(REBAR_GIT) $(ERLANG_MK_TMP)/rebar; \
  3982. cd $(ERLANG_MK_TMP)/rebar; \
  3983. git checkout -q $(REBAR_COMMIT); \
  3984. ./bootstrap; \
  3985. cd -; \
  3986. fi
  3987. endef
  3988. define dep_autopatch_rebar
  3989. if [ -f $(DEPS_DIR)/$(1)/Makefile ]; then \
  3990. mv $(DEPS_DIR)/$(1)/Makefile $(DEPS_DIR)/$(1)/Makefile.orig.mk; \
  3991. fi; \
  3992. $(call erlang,$(call dep_autopatch_rebar.erl,$(1))); \
  3993. rm -f $(DEPS_DIR)/$(1)/ebin/$(1).app
  3994. endef
  3995. define dep_autopatch_rebar.erl
  3996. application:load(rebar),
  3997. application:set_env(rebar, log_level, debug),
  3998. rmemo:start(),
  3999. Conf1 = case file:consult("$(call core_native_path,$(DEPS_DIR)/$1/rebar.config)") of
  4000. {ok, Conf0} -> Conf0;
  4001. _ -> []
  4002. end,
  4003. {Conf, OsEnv} = fun() ->
  4004. case filelib:is_file("$(call core_native_path,$(DEPS_DIR)/$1/rebar.config.script)") of
  4005. false -> {Conf1, []};
  4006. true ->
  4007. Bindings0 = erl_eval:new_bindings(),
  4008. Bindings1 = erl_eval:add_binding('CONFIG', Conf1, Bindings0),
  4009. Bindings = erl_eval:add_binding('SCRIPT', "$(call core_native_path,$(DEPS_DIR)/$1/rebar.config.script)", Bindings1),
  4010. Before = os:getenv(),
  4011. {ok, Conf2} = file:script("$(call core_native_path,$(DEPS_DIR)/$1/rebar.config.script)", Bindings),
  4012. {Conf2, lists:foldl(fun(E, Acc) -> lists:delete(E, Acc) end, os:getenv(), Before)}
  4013. end
  4014. end(),
  4015. Write = fun (Text) ->
  4016. file:write_file("$(call core_native_path,$(DEPS_DIR)/$1/Makefile)", Text, [append])
  4017. end,
  4018. Escape = fun (Text) ->
  4019. re:replace(Text, "\\\\$$", "\$$$$", [global, {return, list}])
  4020. end,
  4021. Write("IGNORE_DEPS += edown eper eunit_formatters meck node_package "
  4022. "rebar_lock_deps_plugin rebar_vsn_plugin reltool_util\n"),
  4023. Write("C_SRC_DIR = /path/do/not/exist\n"),
  4024. Write("C_SRC_TYPE = rebar\n"),
  4025. Write("DRV_CFLAGS = -fPIC\nexport DRV_CFLAGS\n"),
  4026. Write(["ERLANG_ARCH = ", rebar_utils:wordsize(), "\nexport ERLANG_ARCH\n"]),
  4027. ToList = fun
  4028. (V) when is_atom(V) -> atom_to_list(V);
  4029. (V) when is_list(V) -> "'\\"" ++ V ++ "\\"'"
  4030. end,
  4031. fun() ->
  4032. Write("ERLC_OPTS = +debug_info\nexport ERLC_OPTS\n"),
  4033. case lists:keyfind(erl_opts, 1, Conf) of
  4034. false -> ok;
  4035. {_, ErlOpts} ->
  4036. lists:foreach(fun
  4037. ({d, D}) ->
  4038. Write("ERLC_OPTS += -D" ++ ToList(D) ++ "=1\n");
  4039. ({d, DKey, DVal}) ->
  4040. Write("ERLC_OPTS += -D" ++ ToList(DKey) ++ "=" ++ ToList(DVal) ++ "\n");
  4041. ({i, I}) ->
  4042. Write(["ERLC_OPTS += -I ", I, "\n"]);
  4043. ({platform_define, Regex, D}) ->
  4044. case rebar_utils:is_arch(Regex) of
  4045. true -> Write("ERLC_OPTS += -D" ++ ToList(D) ++ "=1\n");
  4046. false -> ok
  4047. end;
  4048. ({parse_transform, PT}) ->
  4049. Write("ERLC_OPTS += +'{parse_transform, " ++ ToList(PT) ++ "}'\n");
  4050. (_) -> ok
  4051. end, ErlOpts)
  4052. end,
  4053. Write("\n")
  4054. end(),
  4055. GetHexVsn = fun(N, NP) ->
  4056. case file:consult("$(call core_native_path,$(DEPS_DIR)/$1/rebar.lock)") of
  4057. {ok, Lock} ->
  4058. io:format("~p~n", [Lock]),
  4059. case lists:keyfind("1.1.0", 1, Lock) of
  4060. {_, LockPkgs} ->
  4061. io:format("~p~n", [LockPkgs]),
  4062. case lists:keyfind(atom_to_binary(N, latin1), 1, LockPkgs) of
  4063. {_, {pkg, _, Vsn}, _} ->
  4064. io:format("~p~n", [Vsn]),
  4065. {N, {hex, NP, binary_to_list(Vsn)}};
  4066. _ ->
  4067. false
  4068. end;
  4069. _ ->
  4070. false
  4071. end;
  4072. _ ->
  4073. false
  4074. end
  4075. end,
  4076. SemVsn = fun
  4077. ("~>" ++ S0) ->
  4078. S = case S0 of
  4079. " " ++ S1 -> S1;
  4080. _ -> S0
  4081. end,
  4082. case length([ok || $$. <- S]) of
  4083. 0 -> S ++ ".0.0";
  4084. 1 -> S ++ ".0";
  4085. _ -> S
  4086. end;
  4087. (S) -> S
  4088. end,
  4089. fun() ->
  4090. File = case lists:keyfind(deps, 1, Conf) of
  4091. false -> [];
  4092. {_, Deps} ->
  4093. [begin case case Dep of
  4094. N when is_atom(N) -> GetHexVsn(N, N);
  4095. {N, S} when is_atom(N), is_list(S) -> {N, {hex, N, SemVsn(S)}};
  4096. {N, {pkg, NP}} when is_atom(N) -> GetHexVsn(N, NP);
  4097. {N, S, {pkg, NP}} -> {N, {hex, NP, S}};
  4098. {N, S} when is_tuple(S) -> {N, S};
  4099. {N, _, S} -> {N, S};
  4100. {N, _, S, _} -> {N, S};
  4101. _ -> false
  4102. end of
  4103. false -> ok;
  4104. {Name, Source} ->
  4105. {Method, Repo, Commit} = case Source of
  4106. {hex, NPV, V} -> {hex, V, NPV};
  4107. {git, R} -> {git, R, master};
  4108. {M, R, {branch, C}} -> {M, R, C};
  4109. {M, R, {ref, C}} -> {M, R, C};
  4110. {M, R, {tag, C}} -> {M, R, C};
  4111. {M, R, C} -> {M, R, C}
  4112. end,
  4113. Write(io_lib:format("DEPS += ~s\ndep_~s = ~s ~s ~s~n", [Name, Name, Method, Repo, Commit]))
  4114. end end || Dep <- Deps]
  4115. end
  4116. end(),
  4117. fun() ->
  4118. case lists:keyfind(erl_first_files, 1, Conf) of
  4119. false -> ok;
  4120. {_, Files} ->
  4121. Names = [[" ", case lists:reverse(F) of
  4122. "lre." ++ Elif -> lists:reverse(Elif);
  4123. "lrx." ++ Elif -> lists:reverse(Elif);
  4124. "lry." ++ Elif -> lists:reverse(Elif);
  4125. Elif -> lists:reverse(Elif)
  4126. end] || "src/" ++ F <- Files],
  4127. Write(io_lib:format("COMPILE_FIRST +=~s\n", [Names]))
  4128. end
  4129. end(),
  4130. Write("\n\nrebar_dep: preprocess pre-deps deps pre-app app\n"),
  4131. Write("\npreprocess::\n"),
  4132. Write("\npre-deps::\n"),
  4133. Write("\npre-app::\n"),
  4134. PatchHook = fun(Cmd) ->
  4135. Cmd2 = re:replace(Cmd, "^([g]?make)(.*)( -C.*)", "\\\\1\\\\3\\\\2", [{return, list}]),
  4136. case Cmd2 of
  4137. "make -C" ++ Cmd1 -> "$$\(MAKE) -C" ++ Escape(Cmd1);
  4138. "gmake -C" ++ Cmd1 -> "$$\(MAKE) -C" ++ Escape(Cmd1);
  4139. "make " ++ Cmd1 -> "$$\(MAKE) -f Makefile.orig.mk " ++ Escape(Cmd1);
  4140. "gmake " ++ Cmd1 -> "$$\(MAKE) -f Makefile.orig.mk " ++ Escape(Cmd1);
  4141. _ -> Escape(Cmd)
  4142. end
  4143. end,
  4144. fun() ->
  4145. case lists:keyfind(pre_hooks, 1, Conf) of
  4146. false -> ok;
  4147. {_, Hooks} ->
  4148. [case H of
  4149. {'get-deps', Cmd} ->
  4150. Write("\npre-deps::\n\t" ++ PatchHook(Cmd) ++ "\n");
  4151. {compile, Cmd} ->
  4152. Write("\npre-app::\n\tCC=$$\(CC) " ++ PatchHook(Cmd) ++ "\n");
  4153. {Regex, compile, Cmd} ->
  4154. case rebar_utils:is_arch(Regex) of
  4155. true -> Write("\npre-app::\n\tCC=$$\(CC) " ++ PatchHook(Cmd) ++ "\n");
  4156. false -> ok
  4157. end;
  4158. _ -> ok
  4159. end || H <- Hooks]
  4160. end
  4161. end(),
  4162. ShellToMk = fun(V0) ->
  4163. V1 = re:replace(V0, "[$$][(]", "$$\(shell ", [global]),
  4164. V = re:replace(V1, "([$$])(?![(])(\\\\w*)", "\\\\1(\\\\2)", [global]),
  4165. re:replace(V, "-Werror\\\\b", "", [{return, list}, global])
  4166. end,
  4167. PortSpecs = fun() ->
  4168. case lists:keyfind(port_specs, 1, Conf) of
  4169. false ->
  4170. case filelib:is_dir("$(call core_native_path,$(DEPS_DIR)/$1/c_src)") of
  4171. false -> [];
  4172. true ->
  4173. [{"priv/" ++ proplists:get_value(so_name, Conf, "$(1)_drv.so"),
  4174. proplists:get_value(port_sources, Conf, ["c_src/*.c"]), []}]
  4175. end;
  4176. {_, Specs} ->
  4177. lists:flatten([case S of
  4178. {Output, Input} -> {ShellToMk(Output), Input, []};
  4179. {Regex, Output, Input} ->
  4180. case rebar_utils:is_arch(Regex) of
  4181. true -> {ShellToMk(Output), Input, []};
  4182. false -> []
  4183. end;
  4184. {Regex, Output, Input, [{env, Env}]} ->
  4185. case rebar_utils:is_arch(Regex) of
  4186. true -> {ShellToMk(Output), Input, Env};
  4187. false -> []
  4188. end
  4189. end || S <- Specs])
  4190. end
  4191. end(),
  4192. PortSpecWrite = fun (Text) ->
  4193. file:write_file("$(call core_native_path,$(DEPS_DIR)/$1/c_src/Makefile.erlang.mk)", Text, [append])
  4194. end,
  4195. case PortSpecs of
  4196. [] -> ok;
  4197. _ ->
  4198. Write("\npre-app::\n\t@$$\(MAKE) --no-print-directory -f c_src/Makefile.erlang.mk\n"),
  4199. PortSpecWrite(io_lib:format("ERL_CFLAGS ?= -finline-functions -Wall -fPIC -I \\"~s/erts-~s/include\\" -I \\"~s\\"\n",
  4200. [code:root_dir(), erlang:system_info(version), code:lib_dir(erl_interface, include)])),
  4201. PortSpecWrite(io_lib:format("ERL_LDFLAGS ?= -L \\"~s\\" -lerl_interface -lei\n",
  4202. [code:lib_dir(erl_interface, lib)])),
  4203. [PortSpecWrite(["\n", E, "\n"]) || E <- OsEnv],
  4204. FilterEnv = fun(Env) ->
  4205. lists:flatten([case E of
  4206. {_, _} -> E;
  4207. {Regex, K, V} ->
  4208. case rebar_utils:is_arch(Regex) of
  4209. true -> {K, V};
  4210. false -> []
  4211. end
  4212. end || E <- Env])
  4213. end,
  4214. MergeEnv = fun(Env) ->
  4215. lists:foldl(fun ({K, V}, Acc) ->
  4216. case lists:keyfind(K, 1, Acc) of
  4217. false -> [{K, rebar_utils:expand_env_variable(V, K, "")}|Acc];
  4218. {_, V0} -> [{K, rebar_utils:expand_env_variable(V, K, V0)}|Acc]
  4219. end
  4220. end, [], Env)
  4221. end,
  4222. PortEnv = case lists:keyfind(port_env, 1, Conf) of
  4223. false -> [];
  4224. {_, PortEnv0} -> FilterEnv(PortEnv0)
  4225. end,
  4226. PortSpec = fun ({Output, Input0, Env}) ->
  4227. filelib:ensure_dir("$(call core_native_path,$(DEPS_DIR)/$1/)" ++ Output),
  4228. Input = [[" ", I] || I <- Input0],
  4229. PortSpecWrite([
  4230. [["\n", K, " = ", ShellToMk(V)] || {K, V} <- lists:reverse(MergeEnv(PortEnv))],
  4231. case $(PLATFORM) of
  4232. darwin -> "\n\nLDFLAGS += -flat_namespace -undefined suppress";
  4233. _ -> ""
  4234. end,
  4235. "\n\nall:: ", Output, "\n\t@:\n\n",
  4236. "%.o: %.c\n\t$$\(CC) -c -o $$\@ $$\< $$\(CFLAGS) $$\(ERL_CFLAGS) $$\(DRV_CFLAGS) $$\(EXE_CFLAGS)\n\n",
  4237. "%.o: %.C\n\t$$\(CXX) -c -o $$\@ $$\< $$\(CXXFLAGS) $$\(ERL_CFLAGS) $$\(DRV_CFLAGS) $$\(EXE_CFLAGS)\n\n",
  4238. "%.o: %.cc\n\t$$\(CXX) -c -o $$\@ $$\< $$\(CXXFLAGS) $$\(ERL_CFLAGS) $$\(DRV_CFLAGS) $$\(EXE_CFLAGS)\n\n",
  4239. "%.o: %.cpp\n\t$$\(CXX) -c -o $$\@ $$\< $$\(CXXFLAGS) $$\(ERL_CFLAGS) $$\(DRV_CFLAGS) $$\(EXE_CFLAGS)\n\n",
  4240. [[Output, ": ", K, " += ", ShellToMk(V), "\n"] || {K, V} <- lists:reverse(MergeEnv(FilterEnv(Env)))],
  4241. Output, ": $$\(foreach ext,.c .C .cc .cpp,",
  4242. "$$\(patsubst %$$\(ext),%.o,$$\(filter %$$\(ext),$$\(wildcard", Input, "))))\n",
  4243. "\t$$\(CC) -o $$\@ $$\? $$\(LDFLAGS) $$\(ERL_LDFLAGS) $$\(DRV_LDFLAGS) $$\(EXE_LDFLAGS)",
  4244. case {filename:extension(Output), $(PLATFORM)} of
  4245. {[], _} -> "\n";
  4246. {_, darwin} -> "\n";
  4247. _ -> " -shared\n"
  4248. end])
  4249. end,
  4250. [PortSpec(S) || S <- PortSpecs]
  4251. end,
  4252. fun() ->
  4253. case lists:keyfind(plugins, 1, Conf) of
  4254. false -> ok;
  4255. {_, Plugins0} ->
  4256. Plugins = [P || P <- Plugins0, is_tuple(P)],
  4257. case lists:keyfind('lfe-compile', 1, Plugins) of
  4258. false -> ok;
  4259. _ -> Write("\nBUILD_DEPS = lfe lfe.mk\ndep_lfe.mk = git https://github.com/ninenines/lfe.mk master\nDEP_PLUGINS = lfe.mk\n")
  4260. end
  4261. end
  4262. end(),
  4263. Write("\ninclude $$\(if $$\(ERLANG_MK_FILENAME),$$\(ERLANG_MK_FILENAME),erlang.mk)"),
  4264. RunPlugin = fun(Plugin, Step) ->
  4265. case erlang:function_exported(Plugin, Step, 2) of
  4266. false -> ok;
  4267. true ->
  4268. c:cd("$(call core_native_path,$(DEPS_DIR)/$1/)"),
  4269. Ret = Plugin:Step({config, "", Conf, dict:new(), dict:new(), dict:new(),
  4270. dict:store(base_dir, "", dict:new())}, undefined),
  4271. io:format("rebar plugin ~p step ~p ret ~p~n", [Plugin, Step, Ret])
  4272. end
  4273. end,
  4274. fun() ->
  4275. case lists:keyfind(plugins, 1, Conf) of
  4276. false -> ok;
  4277. {_, Plugins0} ->
  4278. Plugins = [P || P <- Plugins0, is_atom(P)],
  4279. [begin
  4280. case lists:keyfind(deps, 1, Conf) of
  4281. false -> ok;
  4282. {_, Deps} ->
  4283. case lists:keyfind(P, 1, Deps) of
  4284. false -> ok;
  4285. _ ->
  4286. Path = "$(call core_native_path,$(DEPS_DIR)/)" ++ atom_to_list(P),
  4287. io:format("~s", [os:cmd("$(MAKE) -C $(call core_native_path,$(DEPS_DIR)/$1) " ++ Path)]),
  4288. io:format("~s", [os:cmd("$(MAKE) -C " ++ Path ++ " IS_DEP=1")]),
  4289. code:add_patha(Path ++ "/ebin")
  4290. end
  4291. end
  4292. end || P <- Plugins],
  4293. [case code:load_file(P) of
  4294. {module, P} -> ok;
  4295. _ ->
  4296. case lists:keyfind(plugin_dir, 1, Conf) of
  4297. false -> ok;
  4298. {_, PluginsDir} ->
  4299. ErlFile = "$(call core_native_path,$(DEPS_DIR)/$1/)" ++ PluginsDir ++ "/" ++ atom_to_list(P) ++ ".erl",
  4300. {ok, P, Bin} = compile:file(ErlFile, [binary]),
  4301. {module, P} = code:load_binary(P, ErlFile, Bin)
  4302. end
  4303. end || P <- Plugins],
  4304. [RunPlugin(P, preprocess) || P <- Plugins],
  4305. [RunPlugin(P, pre_compile) || P <- Plugins],
  4306. [RunPlugin(P, compile) || P <- Plugins]
  4307. end
  4308. end(),
  4309. halt()
  4310. endef
  4311. define dep_autopatch_appsrc_script.erl
  4312. AppSrc = "$(call core_native_path,$(DEPS_DIR)/$1/src/$1.app.src)",
  4313. AppSrcScript = AppSrc ++ ".script",
  4314. {ok, Conf0} = file:consult(AppSrc),
  4315. Bindings0 = erl_eval:new_bindings(),
  4316. Bindings1 = erl_eval:add_binding('CONFIG', Conf0, Bindings0),
  4317. Bindings = erl_eval:add_binding('SCRIPT', AppSrcScript, Bindings1),
  4318. Conf = case file:script(AppSrcScript, Bindings) of
  4319. {ok, [C]} -> C;
  4320. {ok, C} -> C
  4321. end,
  4322. ok = file:write_file(AppSrc, io_lib:format("~p.~n", [Conf])),
  4323. halt()
  4324. endef
  4325. define dep_autopatch_appsrc.erl
  4326. AppSrcOut = "$(call core_native_path,$(DEPS_DIR)/$1/src/$1.app.src)",
  4327. AppSrcIn = case filelib:is_regular(AppSrcOut) of false -> "$(call core_native_path,$(DEPS_DIR)/$1/ebin/$1.app)"; true -> AppSrcOut end,
  4328. case filelib:is_regular(AppSrcIn) of
  4329. false -> ok;
  4330. true ->
  4331. {ok, [{application, $(1), L0}]} = file:consult(AppSrcIn),
  4332. L1 = lists:keystore(modules, 1, L0, {modules, []}),
  4333. L2 = case lists:keyfind(vsn, 1, L1) of
  4334. {_, git} -> lists:keyreplace(vsn, 1, L1, {vsn, lists:droplast(os:cmd("git -C $(DEPS_DIR)/$1 describe --dirty --tags --always"))});
  4335. {_, {cmd, _}} -> lists:keyreplace(vsn, 1, L1, {vsn, "cmd"});
  4336. _ -> L1
  4337. end,
  4338. L3 = case lists:keyfind(registered, 1, L2) of false -> [{registered, []}|L2]; _ -> L2 end,
  4339. ok = file:write_file(AppSrcOut, io_lib:format("~p.~n", [{application, $(1), L3}])),
  4340. case AppSrcOut of AppSrcIn -> ok; _ -> ok = file:delete(AppSrcIn) end
  4341. end,
  4342. halt()
  4343. endef
  4344. define dep_fetch_git
  4345. git clone -q -n -- $(call dep_repo,$(1)) $(DEPS_DIR)/$(call dep_name,$(1)); \
  4346. cd $(DEPS_DIR)/$(call dep_name,$(1)) && git checkout -q $(call dep_commit,$(1));
  4347. endef
  4348. define dep_fetch_git-subfolder
  4349. mkdir -p $(ERLANG_MK_TMP)/git-subfolder; \
  4350. git clone -q -n -- $(call dep_repo,$1) \
  4351. $(ERLANG_MK_TMP)/git-subfolder/$(call dep_name,$1); \
  4352. cd $(ERLANG_MK_TMP)/git-subfolder/$(call dep_name,$1) \
  4353. && git checkout -q $(call dep_commit,$1); \
  4354. ln -s $(ERLANG_MK_TMP)/git-subfolder/$(call dep_name,$1)/$(word 4,$(dep_$(1))) \
  4355. $(DEPS_DIR)/$(call dep_name,$1);
  4356. endef
  4357. define dep_fetch_git-submodule
  4358. git submodule update --init -- $(DEPS_DIR)/$1;
  4359. endef
  4360. define dep_fetch_hg
  4361. hg clone -q -U $(call dep_repo,$(1)) $(DEPS_DIR)/$(call dep_name,$(1)); \
  4362. cd $(DEPS_DIR)/$(call dep_name,$(1)) && hg update -q $(call dep_commit,$(1));
  4363. endef
  4364. define dep_fetch_svn
  4365. svn checkout -q $(call dep_repo,$(1)) $(DEPS_DIR)/$(call dep_name,$(1));
  4366. endef
  4367. define dep_fetch_cp
  4368. cp -R $(call dep_repo,$(1)) $(DEPS_DIR)/$(call dep_name,$(1));
  4369. endef
  4370. define dep_fetch_ln
  4371. ln -s $(call dep_repo,$(1)) $(DEPS_DIR)/$(call dep_name,$(1));
  4372. endef
  4373. # Hex only has a package version. No need to look in the Erlang.mk packages.
  4374. define dep_fetch_hex
  4375. mkdir -p $(ERLANG_MK_TMP)/hex $(DEPS_DIR)/$1; \
  4376. $(call core_http_get,$(ERLANG_MK_TMP)/hex/$1.tar,\
  4377. https://repo.hex.pm/tarballs/$(if $(word 3,$(dep_$1)),$(word 3,$(dep_$1)),$1)-$(strip $(word 2,$(dep_$1))).tar); \
  4378. tar -xOf $(ERLANG_MK_TMP)/hex/$1.tar contents.tar.gz | tar -C $(DEPS_DIR)/$1 -xzf -;
  4379. endef
  4380. define dep_fetch_fail
  4381. echo "Error: Unknown or invalid dependency: $(1)." >&2; \
  4382. exit 78;
  4383. endef
  4384. # Kept for compatibility purposes with older Erlang.mk configuration.
  4385. define dep_fetch_legacy
  4386. $(warning WARNING: '$(1)' dependency configuration uses deprecated format.) \
  4387. git clone -q -n -- $(word 1,$(dep_$(1))) $(DEPS_DIR)/$(1); \
  4388. cd $(DEPS_DIR)/$(1) && git checkout -q $(if $(word 2,$(dep_$(1))),$(word 2,$(dep_$(1))),master);
  4389. endef
  4390. define dep_target
  4391. $(DEPS_DIR)/$(call dep_name,$1): | $(ERLANG_MK_TMP)
  4392. $(eval DEP_NAME := $(call dep_name,$1))
  4393. $(eval DEP_STR := $(if $(filter $1,$(DEP_NAME)),$1,"$1 ($(DEP_NAME))"))
  4394. $(verbose) if test -d $(APPS_DIR)/$(DEP_NAME); then \
  4395. echo "Error: Dependency" $(DEP_STR) "conflicts with application found in $(APPS_DIR)/$(DEP_NAME)." >&2; \
  4396. exit 17; \
  4397. fi
  4398. $(verbose) mkdir -p $(DEPS_DIR)
  4399. $(dep_verbose) $(call dep_fetch_$(strip $(call dep_fetch,$(1))),$(1))
  4400. $(verbose) if [ -f $(DEPS_DIR)/$(1)/configure.ac -o -f $(DEPS_DIR)/$(1)/configure.in ] \
  4401. && [ ! -f $(DEPS_DIR)/$(1)/configure ]; then \
  4402. echo " AUTO " $(DEP_STR); \
  4403. cd $(DEPS_DIR)/$(1) && autoreconf -Wall -vif -I m4; \
  4404. fi
  4405. - $(verbose) if [ -f $(DEPS_DIR)/$(DEP_NAME)/configure ]; then \
  4406. echo " CONF " $(DEP_STR); \
  4407. cd $(DEPS_DIR)/$(DEP_NAME) && ./configure; \
  4408. fi
  4409. ifeq ($(filter $(1),$(NO_AUTOPATCH)),)
  4410. $(verbose) $$(MAKE) --no-print-directory autopatch-$(DEP_NAME)
  4411. endif
  4412. .PHONY: autopatch-$(call dep_name,$1)
  4413. autopatch-$(call dep_name,$1)::
  4414. $(verbose) if [ "$(1)" = "amqp_client" -a "$(RABBITMQ_CLIENT_PATCH)" ]; then \
  4415. if [ ! -d $(DEPS_DIR)/rabbitmq-codegen ]; then \
  4416. echo " PATCH Downloading rabbitmq-codegen"; \
  4417. git clone https://github.com/rabbitmq/rabbitmq-codegen.git $(DEPS_DIR)/rabbitmq-codegen; \
  4418. fi; \
  4419. if [ ! -d $(DEPS_DIR)/rabbitmq-server ]; then \
  4420. echo " PATCH Downloading rabbitmq-server"; \
  4421. git clone https://github.com/rabbitmq/rabbitmq-server.git $(DEPS_DIR)/rabbitmq-server; \
  4422. fi; \
  4423. ln -s $(DEPS_DIR)/amqp_client/deps/rabbit_common-0.0.0 $(DEPS_DIR)/rabbit_common; \
  4424. elif [ "$(1)" = "rabbit" -a "$(RABBITMQ_SERVER_PATCH)" ]; then \
  4425. if [ ! -d $(DEPS_DIR)/rabbitmq-codegen ]; then \
  4426. echo " PATCH Downloading rabbitmq-codegen"; \
  4427. git clone https://github.com/rabbitmq/rabbitmq-codegen.git $(DEPS_DIR)/rabbitmq-codegen; \
  4428. fi \
  4429. elif [ "$1" = "elixir" -a "$(ELIXIR_PATCH)" ]; then \
  4430. ln -s lib/elixir/ebin $(DEPS_DIR)/elixir/; \
  4431. else \
  4432. $$(call dep_autopatch,$(call dep_name,$1)) \
  4433. fi
  4434. endef
  4435. $(foreach dep,$(BUILD_DEPS) $(DEPS),$(eval $(call dep_target,$(dep))))
  4436. ifndef IS_APP
  4437. clean:: clean-apps
  4438. clean-apps:
  4439. $(verbose) set -e; for dep in $(ALL_APPS_DIRS) ; do \
  4440. $(MAKE) -C $$dep clean IS_APP=1; \
  4441. done
  4442. distclean:: distclean-apps
  4443. distclean-apps:
  4444. $(verbose) set -e; for dep in $(ALL_APPS_DIRS) ; do \
  4445. $(MAKE) -C $$dep distclean IS_APP=1; \
  4446. done
  4447. endif
  4448. ifndef SKIP_DEPS
  4449. distclean:: distclean-deps
  4450. distclean-deps:
  4451. $(gen_verbose) rm -rf $(DEPS_DIR)
  4452. endif
  4453. # Forward-declare variables used in core/deps-tools.mk. This is required
  4454. # in case plugins use them.
  4455. ERLANG_MK_RECURSIVE_DEPS_LIST = $(ERLANG_MK_TMP)/recursive-deps-list.log
  4456. ERLANG_MK_RECURSIVE_DOC_DEPS_LIST = $(ERLANG_MK_TMP)/recursive-doc-deps-list.log
  4457. ERLANG_MK_RECURSIVE_REL_DEPS_LIST = $(ERLANG_MK_TMP)/recursive-rel-deps-list.log
  4458. ERLANG_MK_RECURSIVE_TEST_DEPS_LIST = $(ERLANG_MK_TMP)/recursive-test-deps-list.log
  4459. ERLANG_MK_RECURSIVE_SHELL_DEPS_LIST = $(ERLANG_MK_TMP)/recursive-shell-deps-list.log
  4460. ERLANG_MK_QUERY_DEPS_FILE = $(ERLANG_MK_TMP)/query-deps.log
  4461. ERLANG_MK_QUERY_DOC_DEPS_FILE = $(ERLANG_MK_TMP)/query-doc-deps.log
  4462. ERLANG_MK_QUERY_REL_DEPS_FILE = $(ERLANG_MK_TMP)/query-rel-deps.log
  4463. ERLANG_MK_QUERY_TEST_DEPS_FILE = $(ERLANG_MK_TMP)/query-test-deps.log
  4464. ERLANG_MK_QUERY_SHELL_DEPS_FILE = $(ERLANG_MK_TMP)/query-shell-deps.log
  4465. # Copyright (c) 2013-2016, Loïc Hoguin <essen@ninenines.eu>
  4466. # This file is part of erlang.mk and subject to the terms of the ISC License.
  4467. .PHONY: clean-app
  4468. # Configuration.
  4469. ERLC_OPTS ?= -Werror +debug_info +warn_export_vars +warn_shadow_vars \
  4470. +warn_obsolete_guard # +bin_opt_info +warn_export_all +warn_missing_spec
  4471. COMPILE_FIRST ?=
  4472. COMPILE_FIRST_PATHS = $(addprefix src/,$(addsuffix .erl,$(COMPILE_FIRST)))
  4473. ERLC_EXCLUDE ?=
  4474. ERLC_EXCLUDE_PATHS = $(addprefix src/,$(addsuffix .erl,$(ERLC_EXCLUDE)))
  4475. ERLC_ASN1_OPTS ?=
  4476. ERLC_MIB_OPTS ?=
  4477. COMPILE_MIB_FIRST ?=
  4478. COMPILE_MIB_FIRST_PATHS = $(addprefix mibs/,$(addsuffix .mib,$(COMPILE_MIB_FIRST)))
  4479. # Verbosity.
  4480. app_verbose_0 = @echo " APP " $(PROJECT);
  4481. app_verbose_2 = set -x;
  4482. app_verbose = $(app_verbose_$(V))
  4483. appsrc_verbose_0 = @echo " APP " $(PROJECT).app.src;
  4484. appsrc_verbose_2 = set -x;
  4485. appsrc_verbose = $(appsrc_verbose_$(V))
  4486. makedep_verbose_0 = @echo " DEPEND" $(PROJECT).d;
  4487. makedep_verbose_2 = set -x;
  4488. makedep_verbose = $(makedep_verbose_$(V))
  4489. erlc_verbose_0 = @echo " ERLC " $(filter-out $(patsubst %,%.erl,$(ERLC_EXCLUDE)),\
  4490. $(filter %.erl %.core,$(?F)));
  4491. erlc_verbose_2 = set -x;
  4492. erlc_verbose = $(erlc_verbose_$(V))
  4493. xyrl_verbose_0 = @echo " XYRL " $(filter %.xrl %.yrl,$(?F));
  4494. xyrl_verbose_2 = set -x;
  4495. xyrl_verbose = $(xyrl_verbose_$(V))
  4496. asn1_verbose_0 = @echo " ASN1 " $(filter %.asn1,$(?F));
  4497. asn1_verbose_2 = set -x;
  4498. asn1_verbose = $(asn1_verbose_$(V))
  4499. mib_verbose_0 = @echo " MIB " $(filter %.bin %.mib,$(?F));
  4500. mib_verbose_2 = set -x;
  4501. mib_verbose = $(mib_verbose_$(V))
  4502. ifneq ($(wildcard src/),)
  4503. # Targets.
  4504. app:: $(if $(wildcard ebin/test),clean) deps
  4505. $(verbose) $(MAKE) --no-print-directory $(PROJECT).d
  4506. $(verbose) $(MAKE) --no-print-directory app-build
  4507. ifeq ($(wildcard src/$(PROJECT_MOD).erl),)
  4508. define app_file
  4509. {application, '$(PROJECT)', [
  4510. {description, "$(PROJECT_DESCRIPTION)"},
  4511. {vsn, "$(PROJECT_VERSION)"},$(if $(IS_DEP),
  4512. {id$(comma)$(space)"$(1)"}$(comma))
  4513. {modules, [$(call comma_list,$(2))]},
  4514. {registered, []},
  4515. {applications, [$(call comma_list,kernel stdlib $(OTP_DEPS) $(LOCAL_DEPS) $(foreach dep,$(DEPS),$(call dep_name,$(dep))))]},
  4516. {env, $(subst \,\\,$(PROJECT_ENV))}$(if $(findstring {,$(PROJECT_APP_EXTRA_KEYS)),$(comma)$(newline)$(tab)$(subst \,\\,$(PROJECT_APP_EXTRA_KEYS)),)
  4517. ]}.
  4518. endef
  4519. else
  4520. define app_file
  4521. {application, '$(PROJECT)', [
  4522. {description, "$(PROJECT_DESCRIPTION)"},
  4523. {vsn, "$(PROJECT_VERSION)"},$(if $(IS_DEP),
  4524. {id$(comma)$(space)"$(1)"}$(comma))
  4525. {modules, [$(call comma_list,$(2))]},
  4526. {registered, [$(call comma_list,$(PROJECT)_sup $(PROJECT_REGISTERED))]},
  4527. {applications, [$(call comma_list,kernel stdlib $(OTP_DEPS) $(LOCAL_DEPS) $(foreach dep,$(DEPS),$(call dep_name,$(dep))))]},
  4528. {mod, {$(PROJECT_MOD), []}},
  4529. {env, $(subst \,\\,$(PROJECT_ENV))}$(if $(findstring {,$(PROJECT_APP_EXTRA_KEYS)),$(comma)$(newline)$(tab)$(subst \,\\,$(PROJECT_APP_EXTRA_KEYS)),)
  4530. ]}.
  4531. endef
  4532. endif
  4533. app-build: ebin/$(PROJECT).app
  4534. $(verbose) :
  4535. # Source files.
  4536. ALL_SRC_FILES := $(sort $(call core_find,src/,*))
  4537. ERL_FILES := $(filter %.erl,$(ALL_SRC_FILES))
  4538. CORE_FILES := $(filter %.core,$(ALL_SRC_FILES))
  4539. # ASN.1 files.
  4540. ifneq ($(wildcard asn1/),)
  4541. ASN1_FILES = $(sort $(call core_find,asn1/,*.asn1))
  4542. ERL_FILES += $(addprefix src/,$(patsubst %.asn1,%.erl,$(notdir $(ASN1_FILES))))
  4543. define compile_asn1
  4544. $(verbose) mkdir -p include/
  4545. $(asn1_verbose) erlc -v -I include/ -o asn1/ +noobj $(ERLC_ASN1_OPTS) $(1)
  4546. $(verbose) mv asn1/*.erl src/
  4547. -$(verbose) mv asn1/*.hrl include/
  4548. $(verbose) mv asn1/*.asn1db include/
  4549. endef
  4550. $(PROJECT).d:: $(ASN1_FILES)
  4551. $(if $(strip $?),$(call compile_asn1,$?))
  4552. endif
  4553. # SNMP MIB files.
  4554. ifneq ($(wildcard mibs/),)
  4555. MIB_FILES = $(sort $(call core_find,mibs/,*.mib))
  4556. $(PROJECT).d:: $(COMPILE_MIB_FIRST_PATHS) $(MIB_FILES)
  4557. $(verbose) mkdir -p include/ priv/mibs/
  4558. $(mib_verbose) erlc -v $(ERLC_MIB_OPTS) -o priv/mibs/ -I priv/mibs/ $?
  4559. $(mib_verbose) erlc -o include/ -- $(addprefix priv/mibs/,$(patsubst %.mib,%.bin,$(notdir $?)))
  4560. endif
  4561. # Leex and Yecc files.
  4562. XRL_FILES := $(filter %.xrl,$(ALL_SRC_FILES))
  4563. XRL_ERL_FILES = $(addprefix src/,$(patsubst %.xrl,%.erl,$(notdir $(XRL_FILES))))
  4564. ERL_FILES += $(XRL_ERL_FILES)
  4565. YRL_FILES := $(filter %.yrl,$(ALL_SRC_FILES))
  4566. YRL_ERL_FILES = $(addprefix src/,$(patsubst %.yrl,%.erl,$(notdir $(YRL_FILES))))
  4567. ERL_FILES += $(YRL_ERL_FILES)
  4568. $(PROJECT).d:: $(XRL_FILES) $(YRL_FILES)
  4569. $(if $(strip $?),$(xyrl_verbose) erlc -v -o src/ $(YRL_ERLC_OPTS) $?)
  4570. # Erlang and Core Erlang files.
  4571. define makedep.erl
  4572. E = ets:new(makedep, [bag]),
  4573. G = digraph:new([acyclic]),
  4574. ErlFiles = lists:usort(string:tokens("$(ERL_FILES)", " ")),
  4575. DepsDir = "$(call core_native_path,$(DEPS_DIR))",
  4576. AppsDir = "$(call core_native_path,$(APPS_DIR))",
  4577. DepsDirsSrc = "$(if $(wildcard $(DEPS_DIR)/*/src), $(call core_native_path,$(wildcard $(DEPS_DIR)/*/src)))",
  4578. DepsDirsInc = "$(if $(wildcard $(DEPS_DIR)/*/include), $(call core_native_path,$(wildcard $(DEPS_DIR)/*/include)))",
  4579. AppsDirsSrc = "$(if $(wildcard $(APPS_DIR)/*/src), $(call core_native_path,$(wildcard $(APPS_DIR)/*/src)))",
  4580. AppsDirsInc = "$(if $(wildcard $(APPS_DIR)/*/include), $(call core_native_path,$(wildcard $(APPS_DIR)/*/include)))",
  4581. DepsDirs = lists:usort(string:tokens(DepsDirsSrc++DepsDirsInc, " ")),
  4582. AppsDirs = lists:usort(string:tokens(AppsDirsSrc++AppsDirsInc, " ")),
  4583. Modules = [{list_to_atom(filename:basename(F, ".erl")), F} || F <- ErlFiles],
  4584. Add = fun (Mod, Dep) ->
  4585. case lists:keyfind(Dep, 1, Modules) of
  4586. false -> ok;
  4587. {_, DepFile} ->
  4588. {_, ModFile} = lists:keyfind(Mod, 1, Modules),
  4589. ets:insert(E, {ModFile, DepFile}),
  4590. digraph:add_vertex(G, Mod),
  4591. digraph:add_vertex(G, Dep),
  4592. digraph:add_edge(G, Mod, Dep)
  4593. end
  4594. end,
  4595. AddHd = fun (F, Mod, DepFile) ->
  4596. case file:open(DepFile, [read]) of
  4597. {error, enoent} ->
  4598. ok;
  4599. {ok, Fd} ->
  4600. {_, ModFile} = lists:keyfind(Mod, 1, Modules),
  4601. case ets:match(E, {ModFile, DepFile}) of
  4602. [] ->
  4603. ets:insert(E, {ModFile, DepFile}),
  4604. F(F, Fd, Mod,0);
  4605. _ -> ok
  4606. end
  4607. end
  4608. end,
  4609. SearchHrl = fun
  4610. F(_Hrl, []) -> {error,enoent};
  4611. F(Hrl, [Dir|Dirs]) ->
  4612. HrlF = filename:join([Dir,Hrl]),
  4613. case filelib:is_file(HrlF) of
  4614. true ->
  4615. {ok, HrlF};
  4616. false -> F(Hrl,Dirs)
  4617. end
  4618. end,
  4619. Attr = fun
  4620. (_F, Mod, behavior, Dep) ->
  4621. Add(Mod, Dep);
  4622. (_F, Mod, behaviour, Dep) ->
  4623. Add(Mod, Dep);
  4624. (_F, Mod, compile, {parse_transform, Dep}) ->
  4625. Add(Mod, Dep);
  4626. (_F, Mod, compile, Opts) when is_list(Opts) ->
  4627. case proplists:get_value(parse_transform, Opts) of
  4628. undefined -> ok;
  4629. Dep -> Add(Mod, Dep)
  4630. end;
  4631. (F, Mod, include, Hrl) ->
  4632. case SearchHrl(Hrl, ["src", "include",AppsDir,DepsDir]++AppsDirs++DepsDirs) of
  4633. {ok, FoundHrl} -> AddHd(F, Mod, FoundHrl);
  4634. {error, _} -> false
  4635. end;
  4636. (F, Mod, include_lib, Hrl) ->
  4637. case SearchHrl(Hrl, ["src", "include",AppsDir,DepsDir]++AppsDirs++DepsDirs) of
  4638. {ok, FoundHrl} -> AddHd(F, Mod, FoundHrl);
  4639. {error, _} -> false
  4640. end;
  4641. (F, Mod, import, {Imp, _}) ->
  4642. IsFile =
  4643. case lists:keyfind(Imp, 1, Modules) of
  4644. false -> false;
  4645. {_, FilePath} -> filelib:is_file(FilePath)
  4646. end,
  4647. case IsFile of
  4648. false -> ok;
  4649. true -> Add(Mod, Imp)
  4650. end;
  4651. (_, _, _, _) -> ok
  4652. end,
  4653. MakeDepend = fun
  4654. (F, Fd, Mod, StartLocation) ->
  4655. {ok, Filename} = file:pid2name(Fd),
  4656. case io:parse_erl_form(Fd, undefined, StartLocation) of
  4657. {ok, AbsData, EndLocation} ->
  4658. case AbsData of
  4659. {attribute, _, Key, Value} ->
  4660. Attr(F, Mod, Key, Value),
  4661. F(F, Fd, Mod, EndLocation);
  4662. _ -> F(F, Fd, Mod, EndLocation)
  4663. end;
  4664. {eof, _ } -> file:close(Fd);
  4665. {error, ErrorDescription } ->
  4666. file:close(Fd);
  4667. {error, ErrorInfo, ErrorLocation} ->
  4668. F(F, Fd, Mod, ErrorLocation)
  4669. end,
  4670. ok
  4671. end,
  4672. [begin
  4673. Mod = list_to_atom(filename:basename(F, ".erl")),
  4674. case file:open(F, [read]) of
  4675. {ok, Fd} -> MakeDepend(MakeDepend, Fd, Mod,0);
  4676. {error, enoent} -> ok
  4677. end
  4678. end || F <- ErlFiles],
  4679. Depend = sofs:to_external(sofs:relation_to_family(sofs:relation(ets:tab2list(E)))),
  4680. CompileFirst = [X || X <- lists:reverse(digraph_utils:topsort(G)), [] =/= digraph:in_neighbours(G, X)],
  4681. TargetPath = fun(Target) ->
  4682. case lists:keyfind(Target, 1, Modules) of
  4683. false -> "";
  4684. {_, DepFile} ->
  4685. DirSubname = tl(string:tokens(filename:dirname(DepFile), "/")),
  4686. string:join(DirSubname ++ [atom_to_list(Target)], "/")
  4687. end
  4688. end,
  4689. ok = file:write_file("$(1)", unicode:characters_to_binary([
  4690. "# Generated by Erlang.mk. Edit at your own risk!\n\n",
  4691. [[F, "::", [[" ", D] || D <- Deps], "; @touch \$$@\n"] || {F, Deps} <- Depend],
  4692. "\nCOMPILE_FIRST +=", [[" ", TargetPath(CF)] || CF <- CompileFirst], "\n"
  4693. ])),
  4694. halt()
  4695. endef
  4696. ifeq ($(if $(NO_MAKEDEP),$(wildcard $(PROJECT).d),),)
  4697. $(PROJECT).d:: $(ERL_FILES) $(call core_find,include/,*.hrl) $(MAKEFILE_LIST)
  4698. $(makedep_verbose) $(call erlang,$(call makedep.erl,$@))
  4699. endif
  4700. ifeq ($(IS_APP)$(IS_DEP),)
  4701. ifneq ($(words $(ERL_FILES) $(CORE_FILES) $(ASN1_FILES) $(MIB_FILES) $(XRL_FILES) $(YRL_FILES)),0)
  4702. # Rebuild everything when the Makefile changes.
  4703. $(ERLANG_MK_TMP)/last-makefile-change: $(MAKEFILE_LIST) | $(ERLANG_MK_TMP)
  4704. $(verbose) if test -f $@; then \
  4705. touch $(ERL_FILES) $(CORE_FILES) $(ASN1_FILES) $(MIB_FILES) $(XRL_FILES) $(YRL_FILES); \
  4706. touch -c $(PROJECT).d; \
  4707. fi
  4708. $(verbose) touch $@
  4709. $(ERL_FILES) $(CORE_FILES) $(ASN1_FILES) $(MIB_FILES) $(XRL_FILES) $(YRL_FILES):: $(ERLANG_MK_TMP)/last-makefile-change
  4710. ebin/$(PROJECT).app:: $(ERLANG_MK_TMP)/last-makefile-change
  4711. endif
  4712. endif
  4713. $(PROJECT).d::
  4714. $(verbose) :
  4715. include $(wildcard $(PROJECT).d)
  4716. ebin/$(PROJECT).app:: ebin/
  4717. ebin/:
  4718. $(verbose) mkdir -p ebin/
  4719. define compile_erl
  4720. $(erlc_verbose) erlc -v $(if $(IS_DEP),$(filter-out -Werror,$(ERLC_OPTS)),$(ERLC_OPTS)) -o ebin/ \
  4721. -pa ebin/ -I include/ $(filter-out $(ERLC_EXCLUDE_PATHS),$(COMPILE_FIRST_PATHS) $(1))
  4722. endef
  4723. define validate_app_file
  4724. case file:consult("ebin/$(PROJECT).app") of
  4725. {ok, _} -> halt();
  4726. _ -> halt(1)
  4727. end
  4728. endef
  4729. ebin/$(PROJECT).app:: $(ERL_FILES) $(CORE_FILES) $(wildcard src/$(PROJECT).app.src)
  4730. $(eval FILES_TO_COMPILE := $(filter-out src/$(PROJECT).app.src,$?))
  4731. $(if $(strip $(FILES_TO_COMPILE)),$(call compile_erl,$(FILES_TO_COMPILE)))
  4732. # Older git versions do not have the --first-parent flag. Do without in that case.
  4733. $(eval GITDESCRIBE := $(shell git describe --dirty --abbrev=7 --tags --always --first-parent 2>/dev/null \
  4734. || git describe --dirty --abbrev=7 --tags --always 2>/dev/null || true))
  4735. $(eval MODULES := $(patsubst %,'%',$(sort $(notdir $(basename \
  4736. $(filter-out $(ERLC_EXCLUDE_PATHS),$(ERL_FILES) $(CORE_FILES) $(BEAM_FILES)))))))
  4737. ifeq ($(wildcard src/$(PROJECT).app.src),)
  4738. $(app_verbose) printf '$(subst %,%%,$(subst $(newline),\n,$(subst ','\'',$(call app_file,$(GITDESCRIBE),$(MODULES)))))' \
  4739. > ebin/$(PROJECT).app
  4740. $(verbose) if ! $(call erlang,$(call validate_app_file)); then \
  4741. echo "The .app file produced is invalid. Please verify the value of PROJECT_ENV." >&2; \
  4742. exit 1; \
  4743. fi
  4744. else
  4745. $(verbose) if [ -z "$$(grep -e '^[^%]*{\s*modules\s*,' src/$(PROJECT).app.src)" ]; then \
  4746. echo "Empty modules entry not found in $(PROJECT).app.src. Please consult the erlang.mk documentation for instructions." >&2; \
  4747. exit 1; \
  4748. fi
  4749. $(appsrc_verbose) cat src/$(PROJECT).app.src \
  4750. | sed "s/{[[:space:]]*modules[[:space:]]*,[[:space:]]*\[\]}/{modules, \[$(call comma_list,$(MODULES))\]}/" \
  4751. | sed "s/{id,[[:space:]]*\"git\"}/{id, \"$(subst /,\/,$(GITDESCRIBE))\"}/" \
  4752. > ebin/$(PROJECT).app
  4753. endif
  4754. ifneq ($(wildcard src/$(PROJECT).appup),)
  4755. $(verbose) cp src/$(PROJECT).appup ebin/
  4756. endif
  4757. clean:: clean-app
  4758. clean-app:
  4759. $(gen_verbose) rm -rf $(PROJECT).d ebin/ priv/mibs/ $(XRL_ERL_FILES) $(YRL_ERL_FILES) \
  4760. $(addprefix include/,$(patsubst %.mib,%.hrl,$(notdir $(MIB_FILES)))) \
  4761. $(addprefix include/,$(patsubst %.asn1,%.hrl,$(notdir $(ASN1_FILES)))) \
  4762. $(addprefix include/,$(patsubst %.asn1,%.asn1db,$(notdir $(ASN1_FILES)))) \
  4763. $(addprefix src/,$(patsubst %.asn1,%.erl,$(notdir $(ASN1_FILES))))
  4764. endif
  4765. # Copyright (c) 2016, Loïc Hoguin <essen@ninenines.eu>
  4766. # Copyright (c) 2015, Viktor Söderqvist <viktor@zuiderkwast.se>
  4767. # This file is part of erlang.mk and subject to the terms of the ISC License.
  4768. .PHONY: docs-deps
  4769. # Configuration.
  4770. ALL_DOC_DEPS_DIRS = $(addprefix $(DEPS_DIR)/,$(DOC_DEPS))
  4771. # Targets.
  4772. $(foreach dep,$(DOC_DEPS),$(eval $(call dep_target,$(dep))))
  4773. ifneq ($(SKIP_DEPS),)
  4774. doc-deps:
  4775. else
  4776. doc-deps: $(ALL_DOC_DEPS_DIRS)
  4777. $(verbose) set -e; for dep in $(ALL_DOC_DEPS_DIRS) ; do $(MAKE) -C $$dep IS_DEP=1; done
  4778. endif
  4779. # Copyright (c) 2015-2016, Loïc Hoguin <essen@ninenines.eu>
  4780. # This file is part of erlang.mk and subject to the terms of the ISC License.
  4781. .PHONY: rel-deps
  4782. # Configuration.
  4783. ALL_REL_DEPS_DIRS = $(addprefix $(DEPS_DIR)/,$(REL_DEPS))
  4784. # Targets.
  4785. $(foreach dep,$(REL_DEPS),$(eval $(call dep_target,$(dep))))
  4786. ifneq ($(SKIP_DEPS),)
  4787. rel-deps:
  4788. else
  4789. rel-deps: $(ALL_REL_DEPS_DIRS)
  4790. $(verbose) set -e; for dep in $(ALL_REL_DEPS_DIRS) ; do $(MAKE) -C $$dep; done
  4791. endif
  4792. # Copyright (c) 2015-2016, Loïc Hoguin <essen@ninenines.eu>
  4793. # This file is part of erlang.mk and subject to the terms of the ISC License.
  4794. .PHONY: test-deps test-dir test-build clean-test-dir
  4795. # Configuration.
  4796. TEST_DIR ?= $(CURDIR)/test
  4797. ALL_TEST_DEPS_DIRS = $(addprefix $(DEPS_DIR)/,$(TEST_DEPS))
  4798. TEST_ERLC_OPTS ?= +debug_info +warn_export_vars +warn_shadow_vars +warn_obsolete_guard
  4799. TEST_ERLC_OPTS += -DTEST=1
  4800. # Targets.
  4801. $(foreach dep,$(TEST_DEPS),$(eval $(call dep_target,$(dep))))
  4802. ifneq ($(SKIP_DEPS),)
  4803. test-deps:
  4804. else
  4805. test-deps: $(ALL_TEST_DEPS_DIRS)
  4806. $(verbose) set -e; for dep in $(ALL_TEST_DEPS_DIRS) ; do \
  4807. if [ -z "$(strip $(FULL))" ] && [ ! -L $$dep ] && [ -f $$dep/ebin/dep_built ]; then \
  4808. :; \
  4809. else \
  4810. $(MAKE) -C $$dep IS_DEP=1; \
  4811. if [ ! -L $$dep ] && [ -d $$dep/ebin ]; then touch $$dep/ebin/dep_built; fi; \
  4812. fi \
  4813. done
  4814. endif
  4815. ifneq ($(wildcard $(TEST_DIR)),)
  4816. test-dir:
  4817. $(gen_verbose) erlc -v $(TEST_ERLC_OPTS) -o $(TEST_DIR) \
  4818. -pa ebin/ -I include/ $(call core_find,$(TEST_DIR)/,*.erl)
  4819. endif
  4820. test-build:: IS_TEST=1
  4821. test-build:: ERLC_OPTS=$(TEST_ERLC_OPTS)
  4822. test-build:: $(if $(wildcard src),$(if $(wildcard ebin/test),,clean)) $(if $(IS_APP),,deps test-deps)
  4823. # We already compiled everything when IS_APP=1.
  4824. ifndef IS_APP
  4825. ifneq ($(wildcard $(TEST_DIR)),)
  4826. $(verbose) $(MAKE) --no-print-directory test-dir ERLC_OPTS="$(call escape_dquotes,$(TEST_ERLC_OPTS))"
  4827. endif
  4828. ifneq ($(wildcard src),)
  4829. $(verbose) $(MAKE) --no-print-directory $(PROJECT).d ERLC_OPTS="$(call escape_dquotes,$(TEST_ERLC_OPTS))"
  4830. $(verbose) $(MAKE) --no-print-directory app-build ERLC_OPTS="$(call escape_dquotes,$(TEST_ERLC_OPTS))"
  4831. $(gen_verbose) touch ebin/test
  4832. endif
  4833. endif
  4834. # Roughly the same as test-build, but when IS_APP=1.
  4835. # We only care about compiling the current application.
  4836. ifdef IS_APP
  4837. test-build-app:: ERLC_OPTS=$(TEST_ERLC_OPTS)
  4838. test-build-app:: deps test-deps
  4839. ifneq ($(wildcard $(TEST_DIR)),)
  4840. $(verbose) $(MAKE) --no-print-directory test-dir ERLC_OPTS="$(call escape_dquotes,$(TEST_ERLC_OPTS))"
  4841. endif
  4842. ifneq ($(wildcard src),)
  4843. $(verbose) $(MAKE) --no-print-directory $(PROJECT).d ERLC_OPTS="$(call escape_dquotes,$(TEST_ERLC_OPTS))"
  4844. $(verbose) $(MAKE) --no-print-directory app-build ERLC_OPTS="$(call escape_dquotes,$(TEST_ERLC_OPTS))"
  4845. $(gen_verbose) touch ebin/test
  4846. endif
  4847. endif
  4848. clean:: clean-test-dir
  4849. clean-test-dir:
  4850. ifneq ($(wildcard $(TEST_DIR)/*.beam),)
  4851. $(gen_verbose) rm -f $(TEST_DIR)/*.beam
  4852. endif
  4853. # Copyright (c) 2015-2016, Loïc Hoguin <essen@ninenines.eu>
  4854. # This file is part of erlang.mk and subject to the terms of the ISC License.
  4855. .PHONY: rebar.config
  4856. # We strip out -Werror because we don't want to fail due to
  4857. # warnings when used as a dependency.
  4858. compat_prepare_erlc_opts = $(shell echo "$1" | sed 's/, */,/g')
  4859. define compat_convert_erlc_opts
  4860. $(if $(filter-out -Werror,$1),\
  4861. $(if $(findstring +,$1),\
  4862. $(shell echo $1 | cut -b 2-)))
  4863. endef
  4864. define compat_erlc_opts_to_list
  4865. [$(call comma_list,$(foreach o,$(call compat_prepare_erlc_opts,$1),$(call compat_convert_erlc_opts,$o)))]
  4866. endef
  4867. define compat_rebar_config
  4868. {deps, [
  4869. $(call comma_list,$(foreach d,$(DEPS),\
  4870. $(if $(filter hex,$(call dep_fetch,$d)),\
  4871. {$(call dep_name,$d)$(comma)"$(call dep_repo,$d)"},\
  4872. {$(call dep_name,$d)$(comma)".*"$(comma){git,"$(call dep_repo,$d)"$(comma)"$(call dep_commit,$d)"}})))
  4873. ]}.
  4874. {erl_opts, $(call compat_erlc_opts_to_list,$(ERLC_OPTS))}.
  4875. endef
  4876. rebar.config:
  4877. $(gen_verbose) $(call core_render,compat_rebar_config,rebar.config)
  4878. # Copyright (c) 2015-2016, Loïc Hoguin <essen@ninenines.eu>
  4879. # This file is part of erlang.mk and subject to the terms of the ISC License.
  4880. ifeq ($(filter asciideck,$(DEPS) $(DOC_DEPS)),asciideck)
  4881. .PHONY: asciidoc asciidoc-guide asciidoc-manual install-asciidoc distclean-asciidoc-guide distclean-asciidoc-manual
  4882. # Core targets.
  4883. docs:: asciidoc
  4884. distclean:: distclean-asciidoc-guide distclean-asciidoc-manual
  4885. # Plugin-specific targets.
  4886. asciidoc: asciidoc-guide asciidoc-manual
  4887. # User guide.
  4888. ifeq ($(wildcard doc/src/guide/book.asciidoc),)
  4889. asciidoc-guide:
  4890. else
  4891. asciidoc-guide: distclean-asciidoc-guide doc-deps
  4892. a2x -v -f pdf doc/src/guide/book.asciidoc && mv doc/src/guide/book.pdf doc/guide.pdf
  4893. a2x -v -f chunked doc/src/guide/book.asciidoc && mv doc/src/guide/book.chunked/ doc/html/
  4894. distclean-asciidoc-guide:
  4895. $(gen_verbose) rm -rf doc/html/ doc/guide.pdf
  4896. endif
  4897. # Man pages.
  4898. ASCIIDOC_MANUAL_FILES := $(wildcard doc/src/manual/*.asciidoc)
  4899. ifeq ($(ASCIIDOC_MANUAL_FILES),)
  4900. asciidoc-manual:
  4901. else
  4902. # Configuration.
  4903. MAN_INSTALL_PATH ?= /usr/local/share/man
  4904. MAN_SECTIONS ?= 3 7
  4905. MAN_PROJECT ?= $(shell echo $(PROJECT) | sed 's/^./\U&\E/')
  4906. MAN_VERSION ?= $(PROJECT_VERSION)
  4907. # Plugin-specific targets.
  4908. define asciidoc2man.erl
  4909. try
  4910. [begin
  4911. io:format(" ADOC ~s~n", [F]),
  4912. ok = asciideck:to_manpage(asciideck:parse_file(F), #{
  4913. compress => gzip,
  4914. outdir => filename:dirname(F),
  4915. extra2 => "$(MAN_PROJECT) $(MAN_VERSION)",
  4916. extra3 => "$(MAN_PROJECT) Function Reference"
  4917. })
  4918. end || F <- [$(shell echo $(addprefix $(comma)\",$(addsuffix \",$1)) | sed 's/^.//')]],
  4919. halt(0)
  4920. catch C:E ->
  4921. io:format("Exception ~p:~p~nStacktrace: ~p~n", [C, E, erlang:get_stacktrace()]),
  4922. halt(1)
  4923. end.
  4924. endef
  4925. asciidoc-manual:: doc-deps
  4926. asciidoc-manual:: $(ASCIIDOC_MANUAL_FILES)
  4927. $(gen_verbose) $(call erlang,$(call asciidoc2man.erl,$?))
  4928. $(verbose) $(foreach s,$(MAN_SECTIONS),mkdir -p doc/man$s/ && mv doc/src/manual/*.$s.gz doc/man$s/;)
  4929. install-docs:: install-asciidoc
  4930. install-asciidoc: asciidoc-manual
  4931. $(foreach s,$(MAN_SECTIONS),\
  4932. mkdir -p $(MAN_INSTALL_PATH)/man$s/ && \
  4933. install -g `id -g` -o `id -u` -m 0644 doc/man$s/*.gz $(MAN_INSTALL_PATH)/man$s/;)
  4934. distclean-asciidoc-manual:
  4935. $(gen_verbose) rm -rf $(addprefix doc/man,$(MAN_SECTIONS))
  4936. endif
  4937. endif
  4938. # Copyright (c) 2014-2016, Loïc Hoguin <essen@ninenines.eu>
  4939. # This file is part of erlang.mk and subject to the terms of the ISC License.
  4940. .PHONY: bootstrap bootstrap-lib bootstrap-rel new list-templates
  4941. # Core targets.
  4942. help::
  4943. $(verbose) printf "%s\n" "" \
  4944. "Bootstrap targets:" \
  4945. " bootstrap Generate a skeleton of an OTP application" \
  4946. " bootstrap-lib Generate a skeleton of an OTP library" \
  4947. " bootstrap-rel Generate the files needed to build a release" \
  4948. " new-app in=NAME Create a new local OTP application NAME" \
  4949. " new-lib in=NAME Create a new local OTP library NAME" \
  4950. " new t=TPL n=NAME Generate a module NAME based on the template TPL" \
  4951. " new t=T n=N in=APP Generate a module NAME based on the template TPL in APP" \
  4952. " list-templates List available templates"
  4953. # Bootstrap templates.
  4954. define bs_appsrc
  4955. {application, $p, [
  4956. {description, ""},
  4957. {vsn, "0.1.0"},
  4958. {id, "git"},
  4959. {modules, []},
  4960. {registered, []},
  4961. {applications, [
  4962. kernel,
  4963. stdlib
  4964. ]},
  4965. {mod, {$p_app, []}},
  4966. {env, []}
  4967. ]}.
  4968. endef
  4969. define bs_appsrc_lib
  4970. {application, $p, [
  4971. {description, ""},
  4972. {vsn, "0.1.0"},
  4973. {id, "git"},
  4974. {modules, []},
  4975. {registered, []},
  4976. {applications, [
  4977. kernel,
  4978. stdlib
  4979. ]}
  4980. ]}.
  4981. endef
  4982. # To prevent autocompletion issues with ZSH, we add "include erlang.mk"
  4983. # separately during the actual bootstrap.
  4984. define bs_Makefile
  4985. PROJECT = $p
  4986. PROJECT_DESCRIPTION = New project
  4987. PROJECT_VERSION = 0.1.0
  4988. $(if $(SP),
  4989. # Whitespace to be used when creating files from templates.
  4990. SP = $(SP)
  4991. )
  4992. endef
  4993. define bs_apps_Makefile
  4994. PROJECT = $p
  4995. PROJECT_DESCRIPTION = New project
  4996. PROJECT_VERSION = 0.1.0
  4997. $(if $(SP),
  4998. # Whitespace to be used when creating files from templates.
  4999. SP = $(SP)
  5000. )
  5001. # Make sure we know where the applications are located.
  5002. ROOT_DIR ?= $(call core_relpath,$(dir $(ERLANG_MK_FILENAME)),$(APPS_DIR)/app)
  5003. APPS_DIR ?= ..
  5004. DEPS_DIR ?= $(call core_relpath,$(DEPS_DIR),$(APPS_DIR)/app)
  5005. include $$(ROOT_DIR)/erlang.mk
  5006. endef
  5007. define bs_app
  5008. -module($p_app).
  5009. -behaviour(application).
  5010. -export([start/2]).
  5011. -export([stop/1]).
  5012. start(_Type, _Args) ->
  5013. $p_sup:start_link().
  5014. stop(_State) ->
  5015. ok.
  5016. endef
  5017. define bs_relx_config
  5018. {release, {$p_release, "1"}, [$p, sasl, runtime_tools]}.
  5019. {extended_start_script, true}.
  5020. {sys_config, "config/sys.config"}.
  5021. {vm_args, "config/vm.args"}.
  5022. endef
  5023. define bs_sys_config
  5024. [
  5025. ].
  5026. endef
  5027. define bs_vm_args
  5028. -name $p@127.0.0.1
  5029. -setcookie $p
  5030. -heart
  5031. endef
  5032. # Normal templates.
  5033. define tpl_supervisor
  5034. -module($(n)).
  5035. -behaviour(supervisor).
  5036. -export([start_link/0]).
  5037. -export([init/1]).
  5038. start_link() ->
  5039. supervisor:start_link({local, ?MODULE}, ?MODULE, []).
  5040. init([]) ->
  5041. Procs = [],
  5042. {ok, {{one_for_one, 1, 5}, Procs}}.
  5043. endef
  5044. define tpl_gen_server
  5045. -module($(n)).
  5046. -behaviour(gen_server).
  5047. %% API.
  5048. -export([start_link/0]).
  5049. %% gen_server.
  5050. -export([init/1]).
  5051. -export([handle_call/3]).
  5052. -export([handle_cast/2]).
  5053. -export([handle_info/2]).
  5054. -export([terminate/2]).
  5055. -export([code_change/3]).
  5056. -record(state, {
  5057. }).
  5058. %% API.
  5059. -spec start_link() -> {ok, pid()}.
  5060. start_link() ->
  5061. gen_server:start_link(?MODULE, [], []).
  5062. %% gen_server.
  5063. init([]) ->
  5064. {ok, #state{}}.
  5065. handle_call(_Request, _From, State) ->
  5066. {reply, ignored, State}.
  5067. handle_cast(_Msg, State) ->
  5068. {noreply, State}.
  5069. handle_info(_Info, State) ->
  5070. {noreply, State}.
  5071. terminate(_Reason, _State) ->
  5072. ok.
  5073. code_change(_OldVsn, State, _Extra) ->
  5074. {ok, State}.
  5075. endef
  5076. define tpl_module
  5077. -module($(n)).
  5078. -export([]).
  5079. endef
  5080. define tpl_cowboy_http
  5081. -module($(n)).
  5082. -behaviour(cowboy_http_handler).
  5083. -export([init/3]).
  5084. -export([handle/2]).
  5085. -export([terminate/3]).
  5086. -record(state, {
  5087. }).
  5088. init(_, Req, _Opts) ->
  5089. {ok, Req, #state{}}.
  5090. handle(Req, State=#state{}) ->
  5091. {ok, Req2} = cowboy_req:reply(200, Req),
  5092. {ok, Req2, State}.
  5093. terminate(_Reason, _Req, _State) ->
  5094. ok.
  5095. endef
  5096. define tpl_gen_fsm
  5097. -module($(n)).
  5098. -behaviour(gen_fsm).
  5099. %% API.
  5100. -export([start_link/0]).
  5101. %% gen_fsm.
  5102. -export([init/1]).
  5103. -export([state_name/2]).
  5104. -export([handle_event/3]).
  5105. -export([state_name/3]).
  5106. -export([handle_sync_event/4]).
  5107. -export([handle_info/3]).
  5108. -export([terminate/3]).
  5109. -export([code_change/4]).
  5110. -record(state, {
  5111. }).
  5112. %% API.
  5113. -spec start_link() -> {ok, pid()}.
  5114. start_link() ->
  5115. gen_fsm:start_link(?MODULE, [], []).
  5116. %% gen_fsm.
  5117. init([]) ->
  5118. {ok, state_name, #state{}}.
  5119. state_name(_Event, StateData) ->
  5120. {next_state, state_name, StateData}.
  5121. handle_event(_Event, StateName, StateData) ->
  5122. {next_state, StateName, StateData}.
  5123. state_name(_Event, _From, StateData) ->
  5124. {reply, ignored, state_name, StateData}.
  5125. handle_sync_event(_Event, _From, StateName, StateData) ->
  5126. {reply, ignored, StateName, StateData}.
  5127. handle_info(_Info, StateName, StateData) ->
  5128. {next_state, StateName, StateData}.
  5129. terminate(_Reason, _StateName, _StateData) ->
  5130. ok.
  5131. code_change(_OldVsn, StateName, StateData, _Extra) ->
  5132. {ok, StateName, StateData}.
  5133. endef
  5134. define tpl_gen_statem
  5135. -module($(n)).
  5136. -behaviour(gen_statem).
  5137. %% API.
  5138. -export([start_link/0]).
  5139. %% gen_statem.
  5140. -export([callback_mode/0]).
  5141. -export([init/1]).
  5142. -export([state_name/3]).
  5143. -export([handle_event/4]).
  5144. -export([terminate/3]).
  5145. -export([code_change/4]).
  5146. -record(state, {
  5147. }).
  5148. %% API.
  5149. -spec start_link() -> {ok, pid()}.
  5150. start_link() ->
  5151. gen_statem:start_link(?MODULE, [], []).
  5152. %% gen_statem.
  5153. callback_mode() ->
  5154. state_functions.
  5155. init([]) ->
  5156. {ok, state_name, #state{}}.
  5157. state_name(_EventType, _EventData, StateData) ->
  5158. {next_state, state_name, StateData}.
  5159. handle_event(_EventType, _EventData, StateName, StateData) ->
  5160. {next_state, StateName, StateData}.
  5161. terminate(_Reason, _StateName, _StateData) ->
  5162. ok.
  5163. code_change(_OldVsn, StateName, StateData, _Extra) ->
  5164. {ok, StateName, StateData}.
  5165. endef
  5166. define tpl_cowboy_loop
  5167. -module($(n)).
  5168. -behaviour(cowboy_loop_handler).
  5169. -export([init/3]).
  5170. -export([info/3]).
  5171. -export([terminate/3]).
  5172. -record(state, {
  5173. }).
  5174. init(_, Req, _Opts) ->
  5175. {loop, Req, #state{}, 5000, hibernate}.
  5176. info(_Info, Req, State) ->
  5177. {loop, Req, State, hibernate}.
  5178. terminate(_Reason, _Req, _State) ->
  5179. ok.
  5180. endef
  5181. define tpl_cowboy_rest
  5182. -module($(n)).
  5183. -export([init/3]).
  5184. -export([content_types_provided/2]).
  5185. -export([get_html/2]).
  5186. init(_, _Req, _Opts) ->
  5187. {upgrade, protocol, cowboy_rest}.
  5188. content_types_provided(Req, State) ->
  5189. {[{{<<"text">>, <<"html">>, '*'}, get_html}], Req, State}.
  5190. get_html(Req, State) ->
  5191. {<<"<html><body>This is REST!</body></html>">>, Req, State}.
  5192. endef
  5193. define tpl_cowboy_ws
  5194. -module($(n)).
  5195. -behaviour(cowboy_websocket_handler).
  5196. -export([init/3]).
  5197. -export([websocket_init/3]).
  5198. -export([websocket_handle/3]).
  5199. -export([websocket_info/3]).
  5200. -export([websocket_terminate/3]).
  5201. -record(state, {
  5202. }).
  5203. init(_, _, _) ->
  5204. {upgrade, protocol, cowboy_websocket}.
  5205. websocket_init(_, Req, _Opts) ->
  5206. Req2 = cowboy_req:compact(Req),
  5207. {ok, Req2, #state{}}.
  5208. websocket_handle({text, Data}, Req, State) ->
  5209. {reply, {text, Data}, Req, State};
  5210. websocket_handle({binary, Data}, Req, State) ->
  5211. {reply, {binary, Data}, Req, State};
  5212. websocket_handle(_Frame, Req, State) ->
  5213. {ok, Req, State}.
  5214. websocket_info(_Info, Req, State) ->
  5215. {ok, Req, State}.
  5216. websocket_terminate(_Reason, _Req, _State) ->
  5217. ok.
  5218. endef
  5219. define tpl_ranch_protocol
  5220. -module($(n)).
  5221. -behaviour(ranch_protocol).
  5222. -export([start_link/4]).
  5223. -export([init/4]).
  5224. -type opts() :: [].
  5225. -export_type([opts/0]).
  5226. -record(state, {
  5227. socket :: inet:socket(),
  5228. transport :: module()
  5229. }).
  5230. start_link(Ref, Socket, Transport, Opts) ->
  5231. Pid = spawn_link(?MODULE, init, [Ref, Socket, Transport, Opts]),
  5232. {ok, Pid}.
  5233. -spec init(ranch:ref(), inet:socket(), module(), opts()) -> ok.
  5234. init(Ref, Socket, Transport, _Opts) ->
  5235. ok = ranch:accept_ack(Ref),
  5236. loop(#state{socket=Socket, transport=Transport}).
  5237. loop(State) ->
  5238. loop(State).
  5239. endef
  5240. # Plugin-specific targets.
  5241. ifndef WS
  5242. ifdef SP
  5243. 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))
  5244. else
  5245. WS = $(tab)
  5246. endif
  5247. endif
  5248. bootstrap:
  5249. ifneq ($(wildcard src/),)
  5250. $(error Error: src/ directory already exists)
  5251. endif
  5252. $(eval p := $(PROJECT))
  5253. $(if $(shell echo $p | LC_ALL=C grep -x "[a-z0-9_]*"),,\
  5254. $(error Error: Invalid characters in the application name))
  5255. $(eval n := $(PROJECT)_sup)
  5256. $(verbose) $(call core_render,bs_Makefile,Makefile)
  5257. $(verbose) echo "include erlang.mk" >> Makefile
  5258. $(verbose) mkdir src/
  5259. ifdef LEGACY
  5260. $(verbose) $(call core_render,bs_appsrc,src/$(PROJECT).app.src)
  5261. endif
  5262. $(verbose) $(call core_render,bs_app,src/$(PROJECT)_app.erl)
  5263. $(verbose) $(call core_render,tpl_supervisor,src/$(PROJECT)_sup.erl)
  5264. bootstrap-lib:
  5265. ifneq ($(wildcard src/),)
  5266. $(error Error: src/ directory already exists)
  5267. endif
  5268. $(eval p := $(PROJECT))
  5269. $(if $(shell echo $p | LC_ALL=C grep -x "[a-z0-9_]*"),,\
  5270. $(error Error: Invalid characters in the application name))
  5271. $(verbose) $(call core_render,bs_Makefile,Makefile)
  5272. $(verbose) echo "include erlang.mk" >> Makefile
  5273. $(verbose) mkdir src/
  5274. ifdef LEGACY
  5275. $(verbose) $(call core_render,bs_appsrc_lib,src/$(PROJECT).app.src)
  5276. endif
  5277. bootstrap-rel:
  5278. ifneq ($(wildcard relx.config),)
  5279. $(error Error: relx.config already exists)
  5280. endif
  5281. ifneq ($(wildcard config/),)
  5282. $(error Error: config/ directory already exists)
  5283. endif
  5284. $(eval p := $(PROJECT))
  5285. $(verbose) $(call core_render,bs_relx_config,relx.config)
  5286. $(verbose) mkdir config/
  5287. $(verbose) $(call core_render,bs_sys_config,config/sys.config)
  5288. $(verbose) $(call core_render,bs_vm_args,config/vm.args)
  5289. new-app:
  5290. ifndef in
  5291. $(error Usage: $(MAKE) new-app in=APP)
  5292. endif
  5293. ifneq ($(wildcard $(APPS_DIR)/$in),)
  5294. $(error Error: Application $in already exists)
  5295. endif
  5296. $(eval p := $(in))
  5297. $(if $(shell echo $p | LC_ALL=C grep -x "[a-z0-9_]*"),,\
  5298. $(error Error: Invalid characters in the application name))
  5299. $(eval n := $(in)_sup)
  5300. $(verbose) mkdir -p $(APPS_DIR)/$p/src/
  5301. $(verbose) $(call core_render,bs_apps_Makefile,$(APPS_DIR)/$p/Makefile)
  5302. ifdef LEGACY
  5303. $(verbose) $(call core_render,bs_appsrc,$(APPS_DIR)/$p/src/$p.app.src)
  5304. endif
  5305. $(verbose) $(call core_render,bs_app,$(APPS_DIR)/$p/src/$p_app.erl)
  5306. $(verbose) $(call core_render,tpl_supervisor,$(APPS_DIR)/$p/src/$p_sup.erl)
  5307. new-lib:
  5308. ifndef in
  5309. $(error Usage: $(MAKE) new-lib in=APP)
  5310. endif
  5311. ifneq ($(wildcard $(APPS_DIR)/$in),)
  5312. $(error Error: Application $in already exists)
  5313. endif
  5314. $(eval p := $(in))
  5315. $(if $(shell echo $p | LC_ALL=C grep -x "[a-z0-9_]*"),,\
  5316. $(error Error: Invalid characters in the application name))
  5317. $(verbose) mkdir -p $(APPS_DIR)/$p/src/
  5318. $(verbose) $(call core_render,bs_apps_Makefile,$(APPS_DIR)/$p/Makefile)
  5319. ifdef LEGACY
  5320. $(verbose) $(call core_render,bs_appsrc_lib,$(APPS_DIR)/$p/src/$p.app.src)
  5321. endif
  5322. new:
  5323. ifeq ($(wildcard src/)$(in),)
  5324. $(error Error: src/ directory does not exist)
  5325. endif
  5326. ifndef t
  5327. $(error Usage: $(MAKE) new t=TEMPLATE n=NAME [in=APP])
  5328. endif
  5329. ifndef n
  5330. $(error Usage: $(MAKE) new t=TEMPLATE n=NAME [in=APP])
  5331. endif
  5332. ifdef in
  5333. $(verbose) $(call core_render,tpl_$(t),$(APPS_DIR)/$(in)/src/$(n).erl)
  5334. else
  5335. $(verbose) $(call core_render,tpl_$(t),src/$(n).erl)
  5336. endif
  5337. list-templates:
  5338. $(verbose) @echo Available templates:
  5339. $(verbose) printf " %s\n" $(sort $(patsubst tpl_%,%,$(filter tpl_%,$(.VARIABLES))))
  5340. # Copyright (c) 2014-2016, Loïc Hoguin <essen@ninenines.eu>
  5341. # This file is part of erlang.mk and subject to the terms of the ISC License.
  5342. .PHONY: clean-c_src distclean-c_src-env
  5343. # Configuration.
  5344. C_SRC_DIR ?= $(CURDIR)/c_src
  5345. C_SRC_ENV ?= $(C_SRC_DIR)/env.mk
  5346. C_SRC_OUTPUT ?= $(CURDIR)/priv/$(PROJECT)
  5347. C_SRC_TYPE ?= shared
  5348. # System type and C compiler/flags.
  5349. ifeq ($(PLATFORM),msys2)
  5350. C_SRC_OUTPUT_EXECUTABLE_EXTENSION ?= .exe
  5351. C_SRC_OUTPUT_SHARED_EXTENSION ?= .dll
  5352. else
  5353. C_SRC_OUTPUT_EXECUTABLE_EXTENSION ?=
  5354. C_SRC_OUTPUT_SHARED_EXTENSION ?= .so
  5355. endif
  5356. ifeq ($(C_SRC_TYPE),shared)
  5357. C_SRC_OUTPUT_FILE = $(C_SRC_OUTPUT)$(C_SRC_OUTPUT_SHARED_EXTENSION)
  5358. else
  5359. C_SRC_OUTPUT_FILE = $(C_SRC_OUTPUT)$(C_SRC_OUTPUT_EXECUTABLE_EXTENSION)
  5360. endif
  5361. ifeq ($(PLATFORM),msys2)
  5362. # We hardcode the compiler used on MSYS2. The default CC=cc does
  5363. # not produce working code. The "gcc" MSYS2 package also doesn't.
  5364. CC = /mingw64/bin/gcc
  5365. export CC
  5366. CFLAGS ?= -O3 -std=c99 -finline-functions -Wall -Wmissing-prototypes
  5367. CXXFLAGS ?= -O3 -finline-functions -Wall
  5368. else ifeq ($(PLATFORM),darwin)
  5369. CC ?= cc
  5370. CFLAGS ?= -O3 -std=c99 -arch x86_64 -Wall -Wmissing-prototypes
  5371. CXXFLAGS ?= -O3 -arch x86_64 -Wall
  5372. LDFLAGS ?= -arch x86_64 -flat_namespace -undefined suppress
  5373. else ifeq ($(PLATFORM),freebsd)
  5374. CC ?= cc
  5375. CFLAGS ?= -O3 -std=c99 -finline-functions -Wall -Wmissing-prototypes
  5376. CXXFLAGS ?= -O3 -finline-functions -Wall
  5377. else ifeq ($(PLATFORM),linux)
  5378. CC ?= gcc
  5379. CFLAGS ?= -O3 -std=c99 -finline-functions -Wall -Wmissing-prototypes
  5380. CXXFLAGS ?= -O3 -finline-functions -Wall
  5381. endif
  5382. ifneq ($(PLATFORM),msys2)
  5383. CFLAGS += -fPIC
  5384. CXXFLAGS += -fPIC
  5385. endif
  5386. CFLAGS += -I"$(ERTS_INCLUDE_DIR)" -I"$(ERL_INTERFACE_INCLUDE_DIR)"
  5387. CXXFLAGS += -I"$(ERTS_INCLUDE_DIR)" -I"$(ERL_INTERFACE_INCLUDE_DIR)"
  5388. LDLIBS += -L"$(ERL_INTERFACE_LIB_DIR)" -lei
  5389. # Verbosity.
  5390. c_verbose_0 = @echo " C " $(?F);
  5391. c_verbose = $(c_verbose_$(V))
  5392. cpp_verbose_0 = @echo " CPP " $(?F);
  5393. cpp_verbose = $(cpp_verbose_$(V))
  5394. link_verbose_0 = @echo " LD " $(@F);
  5395. link_verbose = $(link_verbose_$(V))
  5396. # Targets.
  5397. ifeq ($(wildcard $(C_SRC_DIR)),)
  5398. else ifneq ($(wildcard $(C_SRC_DIR)/Makefile),)
  5399. app:: app-c_src
  5400. test-build:: app-c_src
  5401. app-c_src:
  5402. $(MAKE) -C $(C_SRC_DIR)
  5403. clean::
  5404. $(MAKE) -C $(C_SRC_DIR) clean
  5405. else
  5406. ifeq ($(SOURCES),)
  5407. SOURCES := $(sort $(foreach pat,*.c *.C *.cc *.cpp,$(call core_find,$(C_SRC_DIR)/,$(pat))))
  5408. endif
  5409. OBJECTS = $(addsuffix .o, $(basename $(SOURCES)))
  5410. COMPILE_C = $(c_verbose) $(CC) $(CFLAGS) $(CPPFLAGS) -c
  5411. COMPILE_CPP = $(cpp_verbose) $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c
  5412. app:: $(C_SRC_ENV) $(C_SRC_OUTPUT_FILE)
  5413. test-build:: $(C_SRC_ENV) $(C_SRC_OUTPUT_FILE)
  5414. $(C_SRC_OUTPUT_FILE): $(OBJECTS)
  5415. $(verbose) mkdir -p $(dir $@)
  5416. $(link_verbose) $(CC) $(OBJECTS) \
  5417. $(LDFLAGS) $(if $(filter $(C_SRC_TYPE),shared),-shared) $(LDLIBS) \
  5418. -o $(C_SRC_OUTPUT_FILE)
  5419. $(OBJECTS): $(MAKEFILE_LIST) $(C_SRC_ENV)
  5420. %.o: %.c
  5421. $(COMPILE_C) $(OUTPUT_OPTION) $<
  5422. %.o: %.cc
  5423. $(COMPILE_CPP) $(OUTPUT_OPTION) $<
  5424. %.o: %.C
  5425. $(COMPILE_CPP) $(OUTPUT_OPTION) $<
  5426. %.o: %.cpp
  5427. $(COMPILE_CPP) $(OUTPUT_OPTION) $<
  5428. clean:: clean-c_src
  5429. clean-c_src:
  5430. $(gen_verbose) rm -f $(C_SRC_OUTPUT_FILE) $(OBJECTS)
  5431. endif
  5432. ifneq ($(wildcard $(C_SRC_DIR)),)
  5433. ERL_ERTS_DIR = $(shell $(ERL) -eval 'io:format("~s~n", [code:lib_dir(erts)]), halt().')
  5434. $(C_SRC_ENV):
  5435. $(verbose) $(ERL) -eval "file:write_file(\"$(call core_native_path,$(C_SRC_ENV))\", \
  5436. io_lib:format( \
  5437. \"# Generated by Erlang.mk. Edit at your own risk!~n~n\" \
  5438. \"ERTS_INCLUDE_DIR ?= ~s/erts-~s/include/~n\" \
  5439. \"ERL_INTERFACE_INCLUDE_DIR ?= ~s~n\" \
  5440. \"ERL_INTERFACE_LIB_DIR ?= ~s~n\" \
  5441. \"ERTS_DIR ?= $(ERL_ERTS_DIR)~n\", \
  5442. [code:root_dir(), erlang:system_info(version), \
  5443. code:lib_dir(erl_interface, include), \
  5444. code:lib_dir(erl_interface, lib)])), \
  5445. halt()."
  5446. distclean:: distclean-c_src-env
  5447. distclean-c_src-env:
  5448. $(gen_verbose) rm -f $(C_SRC_ENV)
  5449. -include $(C_SRC_ENV)
  5450. ifneq ($(ERL_ERTS_DIR),$(ERTS_DIR))
  5451. $(shell rm -f $(C_SRC_ENV))
  5452. endif
  5453. endif
  5454. # Templates.
  5455. define bs_c_nif
  5456. #include "erl_nif.h"
  5457. static int loads = 0;
  5458. static int load(ErlNifEnv* env, void** priv_data, ERL_NIF_TERM load_info)
  5459. {
  5460. /* Initialize private data. */
  5461. *priv_data = NULL;
  5462. loads++;
  5463. return 0;
  5464. }
  5465. static int upgrade(ErlNifEnv* env, void** priv_data, void** old_priv_data, ERL_NIF_TERM load_info)
  5466. {
  5467. /* Convert the private data to the new version. */
  5468. *priv_data = *old_priv_data;
  5469. loads++;
  5470. return 0;
  5471. }
  5472. static void unload(ErlNifEnv* env, void* priv_data)
  5473. {
  5474. if (loads == 1) {
  5475. /* Destroy the private data. */
  5476. }
  5477. loads--;
  5478. }
  5479. static ERL_NIF_TERM hello(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[])
  5480. {
  5481. if (enif_is_atom(env, argv[0])) {
  5482. return enif_make_tuple2(env,
  5483. enif_make_atom(env, "hello"),
  5484. argv[0]);
  5485. }
  5486. return enif_make_tuple2(env,
  5487. enif_make_atom(env, "error"),
  5488. enif_make_atom(env, "badarg"));
  5489. }
  5490. static ErlNifFunc nif_funcs[] = {
  5491. {"hello", 1, hello}
  5492. };
  5493. ERL_NIF_INIT($n, nif_funcs, load, NULL, upgrade, unload)
  5494. endef
  5495. define bs_erl_nif
  5496. -module($n).
  5497. -export([hello/1]).
  5498. -on_load(on_load/0).
  5499. on_load() ->
  5500. PrivDir = case code:priv_dir(?MODULE) of
  5501. {error, _} ->
  5502. AppPath = filename:dirname(filename:dirname(code:which(?MODULE))),
  5503. filename:join(AppPath, "priv");
  5504. Path ->
  5505. Path
  5506. end,
  5507. erlang:load_nif(filename:join(PrivDir, atom_to_list(?MODULE)), 0).
  5508. hello(_) ->
  5509. erlang:nif_error({not_loaded, ?MODULE}).
  5510. endef
  5511. new-nif:
  5512. ifneq ($(wildcard $(C_SRC_DIR)/$n.c),)
  5513. $(error Error: $(C_SRC_DIR)/$n.c already exists)
  5514. endif
  5515. ifneq ($(wildcard src/$n.erl),)
  5516. $(error Error: src/$n.erl already exists)
  5517. endif
  5518. ifndef n
  5519. $(error Usage: $(MAKE) new-nif n=NAME [in=APP])
  5520. endif
  5521. ifdef in
  5522. $(verbose) $(MAKE) -C $(APPS_DIR)/$(in)/ new-nif n=$n in=
  5523. else
  5524. $(verbose) mkdir -p $(C_SRC_DIR) src/
  5525. $(verbose) $(call core_render,bs_c_nif,$(C_SRC_DIR)/$n.c)
  5526. $(verbose) $(call core_render,bs_erl_nif,src/$n.erl)
  5527. endif
  5528. # Copyright (c) 2015-2017, Loïc Hoguin <essen@ninenines.eu>
  5529. # This file is part of erlang.mk and subject to the terms of the ISC License.
  5530. .PHONY: ci ci-prepare ci-setup
  5531. CI_OTP ?=
  5532. CI_HIPE ?=
  5533. CI_ERLLVM ?=
  5534. ifeq ($(CI_VM),native)
  5535. ERLC_OPTS += +native
  5536. TEST_ERLC_OPTS += +native
  5537. else ifeq ($(CI_VM),erllvm)
  5538. ERLC_OPTS += +native +'{hipe, [to_llvm]}'
  5539. TEST_ERLC_OPTS += +native +'{hipe, [to_llvm]}'
  5540. endif
  5541. ifeq ($(strip $(CI_OTP) $(CI_HIPE) $(CI_ERLLVM)),)
  5542. ci::
  5543. else
  5544. ci:: $(addprefix ci-,$(CI_OTP) $(addsuffix -native,$(CI_HIPE)) $(addsuffix -erllvm,$(CI_ERLLVM)))
  5545. ci-prepare: $(addprefix $(KERL_INSTALL_DIR)/,$(CI_OTP) $(addsuffix -native,$(CI_HIPE)))
  5546. ci-setup::
  5547. $(verbose) :
  5548. ci-extra::
  5549. $(verbose) :
  5550. ci_verbose_0 = @echo " CI " $(1);
  5551. ci_verbose = $(ci_verbose_$(V))
  5552. define ci_target
  5553. ci-$1: $(KERL_INSTALL_DIR)/$2
  5554. $(verbose) $(MAKE) --no-print-directory clean
  5555. $(ci_verbose) \
  5556. PATH="$(KERL_INSTALL_DIR)/$2/bin:$(PATH)" \
  5557. CI_OTP_RELEASE="$1" \
  5558. CT_OPTS="-label $1" \
  5559. CI_VM="$3" \
  5560. $(MAKE) ci-setup tests
  5561. $(verbose) $(MAKE) --no-print-directory ci-extra
  5562. endef
  5563. $(foreach otp,$(CI_OTP),$(eval $(call ci_target,$(otp),$(otp),otp)))
  5564. $(foreach otp,$(CI_HIPE),$(eval $(call ci_target,$(otp)-native,$(otp)-native,native)))
  5565. $(foreach otp,$(CI_ERLLVM),$(eval $(call ci_target,$(otp)-erllvm,$(otp)-native,erllvm)))
  5566. $(foreach otp,$(filter-out $(ERLANG_OTP),$(CI_OTP)),$(eval $(call kerl_otp_target,$(otp))))
  5567. $(foreach otp,$(filter-out $(ERLANG_HIPE),$(sort $(CI_HIPE) $(CI_ERLLLVM))),$(eval $(call kerl_hipe_target,$(otp))))
  5568. help::
  5569. $(verbose) printf "%s\n" "" \
  5570. "Continuous Integration targets:" \
  5571. " ci Run '$(MAKE) tests' on all configured Erlang versions." \
  5572. "" \
  5573. "The CI_OTP variable must be defined with the Erlang versions" \
  5574. "that must be tested. For example: CI_OTP = OTP-17.3.4 OTP-17.5.3"
  5575. endif
  5576. # Copyright (c) 2013-2016, Loïc Hoguin <essen@ninenines.eu>
  5577. # This file is part of erlang.mk and subject to the terms of the ISC License.
  5578. .PHONY: ct apps-ct distclean-ct
  5579. # Configuration.
  5580. CT_OPTS ?=
  5581. ifneq ($(wildcard $(TEST_DIR)),)
  5582. ifndef CT_SUITES
  5583. CT_SUITES := $(sort $(subst _SUITE.erl,,$(notdir $(call core_find,$(TEST_DIR)/,*_SUITE.erl))))
  5584. endif
  5585. endif
  5586. CT_SUITES ?=
  5587. CT_LOGS_DIR ?= $(CURDIR)/logs
  5588. # Core targets.
  5589. tests:: ct
  5590. ifndef KEEP_LOGS
  5591. distclean:: distclean-ct
  5592. endif
  5593. help::
  5594. $(verbose) printf "%s\n" "" \
  5595. "Common_test targets:" \
  5596. " ct Run all the common_test suites for this project" \
  5597. "" \
  5598. "All your common_test suites have their associated targets." \
  5599. "A suite named http_SUITE can be ran using the ct-http target."
  5600. # Plugin-specific targets.
  5601. CT_RUN = ct_run \
  5602. -no_auto_compile \
  5603. -noinput \
  5604. -pa $(CURDIR)/ebin $(TEST_DIR) \
  5605. -dir $(TEST_DIR) \
  5606. -logdir $(CT_LOGS_DIR)
  5607. ifeq ($(CT_SUITES),)
  5608. ct: $(if $(IS_APP)$(ROOT_DIR),,apps-ct)
  5609. else
  5610. # We do not run tests if we are in an apps/* with no test directory.
  5611. ifneq ($(IS_APP)$(wildcard $(TEST_DIR)),1)
  5612. ct: test-build $(if $(IS_APP)$(ROOT_DIR),,apps-ct)
  5613. $(verbose) mkdir -p $(CT_LOGS_DIR)
  5614. $(gen_verbose) $(CT_RUN) -sname ct_$(PROJECT) -suite $(addsuffix _SUITE,$(CT_SUITES)) $(CT_OPTS)
  5615. endif
  5616. endif
  5617. ifneq ($(ALL_APPS_DIRS),)
  5618. define ct_app_target
  5619. apps-ct-$1: test-build
  5620. $$(MAKE) -C $1 ct IS_APP=1
  5621. endef
  5622. $(foreach app,$(ALL_APPS_DIRS),$(eval $(call ct_app_target,$(app))))
  5623. apps-ct: $(addprefix apps-ct-,$(ALL_APPS_DIRS))
  5624. endif
  5625. ifdef t
  5626. ifeq (,$(findstring :,$t))
  5627. CT_EXTRA = -group $t
  5628. else
  5629. t_words = $(subst :, ,$t)
  5630. CT_EXTRA = -group $(firstword $(t_words)) -case $(lastword $(t_words))
  5631. endif
  5632. else
  5633. ifdef c
  5634. CT_EXTRA = -case $c
  5635. else
  5636. CT_EXTRA =
  5637. endif
  5638. endif
  5639. define ct_suite_target
  5640. ct-$(1): test-build
  5641. $(verbose) mkdir -p $(CT_LOGS_DIR)
  5642. $(gen_verbose_esc) $(CT_RUN) -sname ct_$(PROJECT) -suite $(addsuffix _SUITE,$(1)) $(CT_EXTRA) $(CT_OPTS)
  5643. endef
  5644. $(foreach test,$(CT_SUITES),$(eval $(call ct_suite_target,$(test))))
  5645. distclean-ct:
  5646. $(gen_verbose) rm -rf $(CT_LOGS_DIR)
  5647. # Copyright (c) 2013-2016, Loïc Hoguin <essen@ninenines.eu>
  5648. # This file is part of erlang.mk and subject to the terms of the ISC License.
  5649. .PHONY: plt distclean-plt dialyze
  5650. # Configuration.
  5651. DIALYZER_PLT ?= $(CURDIR)/.$(PROJECT).plt
  5652. export DIALYZER_PLT
  5653. PLT_APPS ?=
  5654. DIALYZER_DIRS ?= --src -r $(wildcard src) $(ALL_APPS_DIRS)
  5655. DIALYZER_OPTS ?= -Werror_handling -Wrace_conditions -Wunmatched_returns # -Wunderspecs
  5656. DIALYZER_PLT_OPTS ?=
  5657. # Core targets.
  5658. check:: dialyze
  5659. distclean:: distclean-plt
  5660. help::
  5661. $(verbose) printf "%s\n" "" \
  5662. "Dialyzer targets:" \
  5663. " plt Build a PLT file for this project" \
  5664. " dialyze Analyze the project using Dialyzer"
  5665. # Plugin-specific targets.
  5666. define filter_opts.erl
  5667. Opts = init:get_plain_arguments(),
  5668. {Filtered, _} = lists:foldl(fun
  5669. (O, {Os, true}) -> {[O|Os], false};
  5670. (O = "-D", {Os, _}) -> {[O|Os], true};
  5671. (O = [\\$$-, \\$$D, _ | _], {Os, _}) -> {[O|Os], false};
  5672. (O = "-I", {Os, _}) -> {[O|Os], true};
  5673. (O = [\\$$-, \\$$I, _ | _], {Os, _}) -> {[O|Os], false};
  5674. (O = "-pa", {Os, _}) -> {[O|Os], true};
  5675. (_, Acc) -> Acc
  5676. end, {[], false}, Opts),
  5677. io:format("~s~n", [string:join(lists:reverse(Filtered), " ")]),
  5678. halt().
  5679. endef
  5680. # DIALYZER_PLT is a variable understood directly by Dialyzer.
  5681. #
  5682. # We append the path to erts at the end of the PLT. This works
  5683. # because the PLT file is in the external term format and the
  5684. # function binary_to_term/1 ignores any trailing data.
  5685. $(DIALYZER_PLT): deps app
  5686. $(eval DEPS_LOG := $(shell test -f $(ERLANG_MK_TMP)/deps.log && \
  5687. while read p; do test -d $$p/ebin && echo $$p/ebin; done <$(ERLANG_MK_TMP)/deps.log))
  5688. $(verbose) dialyzer --build_plt $(DIALYZER_PLT_OPTS) --apps \
  5689. erts kernel stdlib $(PLT_APPS) $(OTP_DEPS) $(LOCAL_DEPS) $(DEPS_LOG) || test $$? -eq 2
  5690. $(verbose) $(ERL) -eval 'io:format("~n~s~n", [code:lib_dir(erts)]), halt().' >> $@
  5691. plt: $(DIALYZER_PLT)
  5692. distclean-plt:
  5693. $(gen_verbose) rm -f $(DIALYZER_PLT)
  5694. ifneq ($(wildcard $(DIALYZER_PLT)),)
  5695. dialyze: $(if $(filter --src,$(DIALYZER_DIRS)),,deps app)
  5696. $(verbose) if ! tail -n1 $(DIALYZER_PLT) | \
  5697. grep -q "^`$(ERL) -eval 'io:format("~s", [code:lib_dir(erts)]), halt().'`$$"; then \
  5698. rm $(DIALYZER_PLT); \
  5699. $(MAKE) plt; \
  5700. fi
  5701. else
  5702. dialyze: $(DIALYZER_PLT)
  5703. endif
  5704. $(verbose) dialyzer --no_native `$(ERL) \
  5705. -eval "$(subst $(newline),,$(call escape_dquotes,$(call filter_opts.erl)))" \
  5706. -extra $(ERLC_OPTS)` $(DIALYZER_DIRS) $(DIALYZER_OPTS) $(if $(wildcard ebin/),-pa ebin/)
  5707. # Copyright (c) 2013-2016, Loïc Hoguin <essen@ninenines.eu>
  5708. # This file is part of erlang.mk and subject to the terms of the ISC License.
  5709. .PHONY: distclean-edoc edoc
  5710. # Configuration.
  5711. EDOC_OPTS ?=
  5712. EDOC_SRC_DIRS ?=
  5713. EDOC_OUTPUT ?= doc
  5714. define edoc.erl
  5715. SrcPaths = lists:foldl(fun(P, Acc) ->
  5716. filelib:wildcard(atom_to_list(P) ++ "/{src,c_src}") ++ Acc
  5717. end, [], [$(call comma_list,$(patsubst %,'%',$(call core_native_path,$(EDOC_SRC_DIRS))))]),
  5718. DefaultOpts = [{dir, "$(EDOC_OUTPUT)"}, {source_path, SrcPaths}, {subpackages, false}],
  5719. edoc:application($(1), ".", [$(2)] ++ DefaultOpts),
  5720. halt(0).
  5721. endef
  5722. # Core targets.
  5723. ifneq ($(strip $(EDOC_SRC_DIRS)$(wildcard doc/overview.edoc)),)
  5724. docs:: edoc
  5725. endif
  5726. distclean:: distclean-edoc
  5727. # Plugin-specific targets.
  5728. edoc: distclean-edoc doc-deps
  5729. $(gen_verbose) $(call erlang,$(call edoc.erl,$(PROJECT),$(EDOC_OPTS)))
  5730. distclean-edoc:
  5731. $(gen_verbose) rm -f $(EDOC_OUTPUT)/*.css $(EDOC_OUTPUT)/*.html $(EDOC_OUTPUT)/*.png $(EDOC_OUTPUT)/edoc-info
  5732. # Copyright (c) 2013-2016, Loïc Hoguin <essen@ninenines.eu>
  5733. # This file is part of erlang.mk and subject to the terms of the ISC License.
  5734. # Configuration.
  5735. DTL_FULL_PATH ?=
  5736. DTL_PATH ?= templates/
  5737. DTL_PREFIX ?=
  5738. DTL_SUFFIX ?= _dtl
  5739. DTL_OPTS ?=
  5740. # Verbosity.
  5741. dtl_verbose_0 = @echo " DTL " $(filter %.dtl,$(?F));
  5742. dtl_verbose = $(dtl_verbose_$(V))
  5743. # Core targets.
  5744. DTL_PATH := $(abspath $(DTL_PATH))
  5745. DTL_FILES := $(sort $(call core_find,$(DTL_PATH),*.dtl))
  5746. ifneq ($(DTL_FILES),)
  5747. DTL_NAMES = $(addprefix $(DTL_PREFIX),$(addsuffix $(DTL_SUFFIX),$(DTL_FILES:$(DTL_PATH)/%.dtl=%)))
  5748. DTL_MODULES = $(if $(DTL_FULL_PATH),$(subst /,_,$(DTL_NAMES)),$(notdir $(DTL_NAMES)))
  5749. BEAM_FILES += $(addsuffix .beam,$(addprefix ebin/,$(DTL_MODULES)))
  5750. ifneq ($(words $(DTL_FILES)),0)
  5751. # Rebuild templates when the Makefile changes.
  5752. $(ERLANG_MK_TMP)/last-makefile-change-erlydtl: $(MAKEFILE_LIST) | $(ERLANG_MK_TMP)
  5753. $(verbose) if test -f $@; then \
  5754. touch $(DTL_FILES); \
  5755. fi
  5756. $(verbose) touch $@
  5757. ebin/$(PROJECT).app:: $(ERLANG_MK_TMP)/last-makefile-change-erlydtl
  5758. endif
  5759. define erlydtl_compile.erl
  5760. [begin
  5761. Module0 = case "$(strip $(DTL_FULL_PATH))" of
  5762. "" ->
  5763. filename:basename(F, ".dtl");
  5764. _ ->
  5765. "$(call core_native_path,$(DTL_PATH))/" ++ F2 = filename:rootname(F, ".dtl"),
  5766. re:replace(F2, "/", "_", [{return, list}, global])
  5767. end,
  5768. Module = list_to_atom("$(DTL_PREFIX)" ++ string:to_lower(Module0) ++ "$(DTL_SUFFIX)"),
  5769. case erlydtl:compile(F, Module, [$(DTL_OPTS)] ++ [{out_dir, "ebin/"}, return_errors]) of
  5770. ok -> ok;
  5771. {ok, _} -> ok
  5772. end
  5773. end || F <- string:tokens("$(1)", " ")],
  5774. halt().
  5775. endef
  5776. ebin/$(PROJECT).app:: $(DTL_FILES) | ebin/
  5777. $(if $(strip $?),\
  5778. $(dtl_verbose) $(call erlang,$(call erlydtl_compile.erl,$(call core_native_path,$?)),\
  5779. -pa ebin/))
  5780. endif
  5781. # Copyright (c) 2016, Loïc Hoguin <essen@ninenines.eu>
  5782. # Copyright (c) 2014, Dave Cottlehuber <dch@skunkwerks.at>
  5783. # This file is part of erlang.mk and subject to the terms of the ISC License.
  5784. .PHONY: distclean-escript escript escript-zip
  5785. # Configuration.
  5786. ESCRIPT_NAME ?= $(PROJECT)
  5787. ESCRIPT_FILE ?= $(ESCRIPT_NAME)
  5788. ESCRIPT_SHEBANG ?= /usr/bin/env escript
  5789. ESCRIPT_COMMENT ?= This is an -*- erlang -*- file
  5790. ESCRIPT_EMU_ARGS ?= -escript main $(ESCRIPT_NAME)
  5791. ESCRIPT_ZIP ?= 7z a -tzip -mx=9 -mtc=off $(if $(filter-out 0,$(V)),,> /dev/null)
  5792. ESCRIPT_ZIP_FILE ?= $(ERLANG_MK_TMP)/escript.zip
  5793. # Core targets.
  5794. distclean:: distclean-escript
  5795. help::
  5796. $(verbose) printf "%s\n" "" \
  5797. "Escript targets:" \
  5798. " escript Build an executable escript archive" \
  5799. # Plugin-specific targets.
  5800. escript-zip:: FULL=1
  5801. escript-zip:: deps app
  5802. $(verbose) mkdir -p $(dir $(ESCRIPT_ZIP))
  5803. $(verbose) rm -f $(ESCRIPT_ZIP_FILE)
  5804. $(gen_verbose) cd .. && $(ESCRIPT_ZIP) $(ESCRIPT_ZIP_FILE) $(PROJECT)/ebin/*
  5805. ifneq ($(DEPS),)
  5806. $(verbose) cd $(DEPS_DIR) && $(ESCRIPT_ZIP) $(ESCRIPT_ZIP_FILE) \
  5807. $(subst $(DEPS_DIR)/,,$(addsuffix /*,$(wildcard \
  5808. $(addsuffix /ebin,$(shell cat $(ERLANG_MK_TMP)/deps.log)))))
  5809. endif
  5810. escript:: escript-zip
  5811. $(gen_verbose) printf "%s\n" \
  5812. "#!$(ESCRIPT_SHEBANG)" \
  5813. "%% $(ESCRIPT_COMMENT)" \
  5814. "%%! $(ESCRIPT_EMU_ARGS)" > $(ESCRIPT_FILE)
  5815. $(verbose) cat $(ESCRIPT_ZIP_FILE) >> $(ESCRIPT_FILE)
  5816. $(verbose) chmod +x $(ESCRIPT_FILE)
  5817. distclean-escript:
  5818. $(gen_verbose) rm -f $(ESCRIPT_FILE)
  5819. # Copyright (c) 2015-2016, Loïc Hoguin <essen@ninenines.eu>
  5820. # Copyright (c) 2014, Enrique Fernandez <enrique.fernandez@erlang-solutions.com>
  5821. # This file is contributed to erlang.mk and subject to the terms of the ISC License.
  5822. .PHONY: eunit apps-eunit
  5823. # Configuration
  5824. EUNIT_OPTS ?=
  5825. EUNIT_ERL_OPTS ?=
  5826. # Core targets.
  5827. tests:: eunit
  5828. help::
  5829. $(verbose) printf "%s\n" "" \
  5830. "EUnit targets:" \
  5831. " eunit Run all the EUnit tests for this project"
  5832. # Plugin-specific targets.
  5833. define eunit.erl
  5834. $(call cover.erl)
  5835. CoverSetup(),
  5836. case eunit:test($1, [$(EUNIT_OPTS)]) of
  5837. ok -> ok;
  5838. error -> halt(2)
  5839. end,
  5840. CoverExport("$(call core_native_path,$(COVER_DATA_DIR))/eunit.coverdata"),
  5841. halt()
  5842. endef
  5843. EUNIT_ERL_OPTS += -pa $(TEST_DIR) $(CURDIR)/ebin
  5844. ifdef t
  5845. ifeq (,$(findstring :,$(t)))
  5846. eunit: test-build cover-data-dir
  5847. $(gen_verbose) $(call erlang,$(call eunit.erl,['$(t)']),$(EUNIT_ERL_OPTS))
  5848. else
  5849. eunit: test-build cover-data-dir
  5850. $(gen_verbose) $(call erlang,$(call eunit.erl,fun $(t)/0),$(EUNIT_ERL_OPTS))
  5851. endif
  5852. else
  5853. EUNIT_EBIN_MODS = $(notdir $(basename $(ERL_FILES) $(BEAM_FILES)))
  5854. EUNIT_TEST_MODS = $(notdir $(basename $(call core_find,$(TEST_DIR)/,*.erl)))
  5855. EUNIT_MODS = $(foreach mod,$(EUNIT_EBIN_MODS) $(filter-out \
  5856. $(patsubst %,%_tests,$(EUNIT_EBIN_MODS)),$(EUNIT_TEST_MODS)),'$(mod)')
  5857. eunit: test-build $(if $(IS_APP)$(ROOT_DIR),,apps-eunit) cover-data-dir
  5858. ifneq ($(wildcard src/ $(TEST_DIR)),)
  5859. $(gen_verbose) $(call erlang,$(call eunit.erl,[$(call comma_list,$(EUNIT_MODS))]),$(EUNIT_ERL_OPTS))
  5860. endif
  5861. ifneq ($(ALL_APPS_DIRS),)
  5862. apps-eunit: test-build
  5863. $(verbose) eunit_retcode=0 ; for app in $(ALL_APPS_DIRS); do $(MAKE) -C $$app eunit IS_APP=1; \
  5864. [ $$? -ne 0 ] && eunit_retcode=1 ; done ; \
  5865. exit $$eunit_retcode
  5866. endif
  5867. endif
  5868. # Copyright (c) 2015-2017, Loïc Hoguin <essen@ninenines.eu>
  5869. # This file is part of erlang.mk and subject to the terms of the ISC License.
  5870. ifeq ($(filter proper,$(DEPS) $(TEST_DEPS)),proper)
  5871. .PHONY: proper
  5872. # Targets.
  5873. tests:: proper
  5874. define proper_check.erl
  5875. $(call cover.erl)
  5876. code:add_pathsa([
  5877. "$(call core_native_path,$(CURDIR)/ebin)",
  5878. "$(call core_native_path,$(DEPS_DIR)/*/ebin)",
  5879. "$(call core_native_path,$(TEST_DIR))"]),
  5880. Module = fun(M) ->
  5881. [true] =:= lists:usort([
  5882. case atom_to_list(F) of
  5883. "prop_" ++ _ ->
  5884. io:format("Testing ~p:~p/0~n", [M, F]),
  5885. proper:quickcheck(M:F(), nocolors);
  5886. _ ->
  5887. true
  5888. end
  5889. || {F, 0} <- M:module_info(exports)])
  5890. end,
  5891. try begin
  5892. CoverSetup(),
  5893. Res = case $(1) of
  5894. all -> [true] =:= lists:usort([Module(M) || M <- [$(call comma_list,$(3))]]);
  5895. module -> Module($(2));
  5896. function -> proper:quickcheck($(2), nocolors)
  5897. end,
  5898. CoverExport("$(COVER_DATA_DIR)/proper.coverdata"),
  5899. Res
  5900. end of
  5901. true -> halt(0);
  5902. _ -> halt(1)
  5903. catch error:undef ->
  5904. io:format("Undefined property or module?~n~p~n", [erlang:get_stacktrace()]),
  5905. halt(0)
  5906. end.
  5907. endef
  5908. ifdef t
  5909. ifeq (,$(findstring :,$(t)))
  5910. proper: test-build cover-data-dir
  5911. $(verbose) $(call erlang,$(call proper_check.erl,module,$(t)))
  5912. else
  5913. proper: test-build cover-data-dir
  5914. $(verbose) echo Testing $(t)/0
  5915. $(verbose) $(call erlang,$(call proper_check.erl,function,$(t)()))
  5916. endif
  5917. else
  5918. proper: test-build cover-data-dir
  5919. $(eval MODULES := $(patsubst %,'%',$(sort $(notdir $(basename \
  5920. $(wildcard ebin/*.beam) $(call core_find,$(TEST_DIR)/,*.beam))))))
  5921. $(gen_verbose) $(call erlang,$(call proper_check.erl,all,undefined,$(MODULES)))
  5922. endif
  5923. endif
  5924. # Copyright (c) 2015-2016, Loïc Hoguin <essen@ninenines.eu>
  5925. # This file is part of erlang.mk and subject to the terms of the ISC License.
  5926. # Verbosity.
  5927. proto_verbose_0 = @echo " PROTO " $(filter %.proto,$(?F));
  5928. proto_verbose = $(proto_verbose_$(V))
  5929. # Core targets.
  5930. ifneq ($(wildcard src/),)
  5931. ifneq ($(filter gpb protobuffs,$(BUILD_DEPS) $(DEPS)),)
  5932. PROTO_FILES := $(filter %.proto,$(ALL_SRC_FILES))
  5933. ERL_FILES += $(addprefix src/,$(patsubst %.proto,%_pb.erl,$(notdir $(PROTO_FILES))))
  5934. ifeq ($(PROTO_FILES),)
  5935. $(ERLANG_MK_TMP)/last-makefile-change-protobuffs:
  5936. $(verbose) :
  5937. else
  5938. # Rebuild proto files when the Makefile changes.
  5939. # We exclude $(PROJECT).d to avoid a circular dependency.
  5940. $(ERLANG_MK_TMP)/last-makefile-change-protobuffs: $(filter-out $(PROJECT).d,$(MAKEFILE_LIST)) | $(ERLANG_MK_TMP)
  5941. $(verbose) if test -f $@; then \
  5942. touch $(PROTO_FILES); \
  5943. fi
  5944. $(verbose) touch $@
  5945. $(PROJECT).d:: $(ERLANG_MK_TMP)/last-makefile-change-protobuffs
  5946. endif
  5947. ifeq ($(filter gpb,$(BUILD_DEPS) $(DEPS)),)
  5948. define compile_proto.erl
  5949. [begin
  5950. protobuffs_compile:generate_source(F, [
  5951. {output_include_dir, "./include"},
  5952. {output_src_dir, "./src"}])
  5953. end || F <- string:tokens("$1", " ")],
  5954. halt().
  5955. endef
  5956. else
  5957. define compile_proto.erl
  5958. [begin
  5959. gpb_compile:file(F, [
  5960. {include_as_lib, true},
  5961. {module_name_suffix, "_pb"},
  5962. {o_hrl, "./include"},
  5963. {o_erl, "./src"}])
  5964. end || F <- string:tokens("$1", " ")],
  5965. halt().
  5966. endef
  5967. endif
  5968. ifneq ($(PROTO_FILES),)
  5969. $(PROJECT).d:: $(PROTO_FILES)
  5970. $(verbose) mkdir -p ebin/ include/
  5971. $(if $(strip $?),$(proto_verbose) $(call erlang,$(call compile_proto.erl,$?)))
  5972. endif
  5973. endif
  5974. endif
  5975. # Copyright (c) 2013-2016, Loïc Hoguin <essen@ninenines.eu>
  5976. # This file is part of erlang.mk and subject to the terms of the ISC License.
  5977. .PHONY: relx-rel relx-relup distclean-relx-rel run
  5978. # Configuration.
  5979. RELX ?= $(ERLANG_MK_TMP)/relx
  5980. RELX_CONFIG ?= $(CURDIR)/relx.config
  5981. RELX_URL ?= https://erlang.mk/res/relx-v3.27.0
  5982. RELX_OPTS ?=
  5983. RELX_OUTPUT_DIR ?= _rel
  5984. RELX_REL_EXT ?=
  5985. RELX_TAR ?= 1
  5986. ifdef SFX
  5987. RELX_TAR = 1
  5988. endif
  5989. ifeq ($(firstword $(RELX_OPTS)),-o)
  5990. RELX_OUTPUT_DIR = $(word 2,$(RELX_OPTS))
  5991. else
  5992. RELX_OPTS += -o $(RELX_OUTPUT_DIR)
  5993. endif
  5994. # Core targets.
  5995. ifeq ($(IS_DEP),)
  5996. ifneq ($(wildcard $(RELX_CONFIG)),)
  5997. rel:: relx-rel
  5998. relup:: relx-relup
  5999. endif
  6000. endif
  6001. distclean:: distclean-relx-rel
  6002. # Plugin-specific targets.
  6003. $(RELX): | $(ERLANG_MK_TMP)
  6004. $(gen_verbose) $(call core_http_get,$(RELX),$(RELX_URL))
  6005. $(verbose) chmod +x $(RELX)
  6006. relx-rel: $(RELX) rel-deps app
  6007. $(verbose) $(RELX) $(if $(filter 1,$V),-V 3) -c $(RELX_CONFIG) $(RELX_OPTS) release
  6008. $(verbose) $(MAKE) relx-post-rel
  6009. ifeq ($(RELX_TAR),1)
  6010. $(verbose) $(RELX) $(if $(filter 1,$V),-V 3) -c $(RELX_CONFIG) $(RELX_OPTS) tar
  6011. endif
  6012. relx-relup: $(RELX) rel-deps app
  6013. $(verbose) $(RELX) $(if $(filter 1,$V),-V 3) -c $(RELX_CONFIG) $(RELX_OPTS) release
  6014. $(MAKE) relx-post-rel
  6015. $(verbose) $(RELX) $(if $(filter 1,$V),-V 3) -c $(RELX_CONFIG) $(RELX_OPTS) relup $(if $(filter 1,$(RELX_TAR)),tar)
  6016. distclean-relx-rel:
  6017. $(gen_verbose) rm -rf $(RELX_OUTPUT_DIR)
  6018. # Default hooks.
  6019. relx-post-rel::
  6020. $(verbose) :
  6021. # Run target.
  6022. ifeq ($(wildcard $(RELX_CONFIG)),)
  6023. run::
  6024. else
  6025. define get_relx_release.erl
  6026. {ok, Config} = file:consult("$(call core_native_path,$(RELX_CONFIG))"),
  6027. {release, {Name, Vsn0}, _} = lists:keyfind(release, 1, Config),
  6028. Vsn = case Vsn0 of
  6029. {cmd, Cmd} -> os:cmd(Cmd);
  6030. semver -> "";
  6031. {semver, _} -> "";
  6032. VsnStr -> Vsn0
  6033. end,
  6034. Extended = case lists:keyfind(extended_start_script, 1, Config) of
  6035. {_, true} -> "1";
  6036. _ -> ""
  6037. end,
  6038. io:format("~s ~s ~s", [Name, Vsn, Extended]),
  6039. halt(0).
  6040. endef
  6041. RELX_REL := $(shell $(call erlang,$(get_relx_release.erl)))
  6042. RELX_REL_NAME := $(word 1,$(RELX_REL))
  6043. RELX_REL_VSN := $(word 2,$(RELX_REL))
  6044. RELX_REL_CMD := $(if $(word 3,$(RELX_REL)),console)
  6045. ifeq ($(PLATFORM),msys2)
  6046. RELX_REL_EXT := .cmd
  6047. endif
  6048. run:: all
  6049. $(verbose) $(RELX_OUTPUT_DIR)/$(RELX_REL_NAME)/bin/$(RELX_REL_NAME)$(RELX_REL_EXT) $(RELX_REL_CMD)
  6050. ifdef RELOAD
  6051. rel::
  6052. $(verbose) $(RELX_OUTPUT_DIR)/$(RELX_REL_NAME)/bin/$(RELX_REL_NAME)$(RELX_REL_EXT) ping
  6053. $(verbose) $(RELX_OUTPUT_DIR)/$(RELX_REL_NAME)/bin/$(RELX_REL_NAME)$(RELX_REL_EXT) \
  6054. eval "io:format(\"~p~n\", [c:lm()])"
  6055. endif
  6056. help::
  6057. $(verbose) printf "%s\n" "" \
  6058. "Relx targets:" \
  6059. " run Compile the project, build the release and run it"
  6060. endif
  6061. # Copyright (c) 2015-2016, Loïc Hoguin <essen@ninenines.eu>
  6062. # Copyright (c) 2014, M Robert Martin <rob@version2beta.com>
  6063. # This file is contributed to erlang.mk and subject to the terms of the ISC License.
  6064. .PHONY: shell
  6065. # Configuration.
  6066. SHELL_ERL ?= erl
  6067. SHELL_PATHS ?= $(CURDIR)/ebin $(TEST_DIR)
  6068. SHELL_OPTS ?=
  6069. ALL_SHELL_DEPS_DIRS = $(addprefix $(DEPS_DIR)/,$(SHELL_DEPS))
  6070. # Core targets
  6071. help::
  6072. $(verbose) printf "%s\n" "" \
  6073. "Shell targets:" \
  6074. " shell Run an erlang shell with SHELL_OPTS or reasonable default"
  6075. # Plugin-specific targets.
  6076. $(foreach dep,$(SHELL_DEPS),$(eval $(call dep_target,$(dep))))
  6077. ifneq ($(SKIP_DEPS),)
  6078. build-shell-deps:
  6079. else
  6080. build-shell-deps: $(ALL_SHELL_DEPS_DIRS)
  6081. $(verbose) set -e; for dep in $(ALL_SHELL_DEPS_DIRS) ; do \
  6082. if [ -z "$(strip $(FULL))" ] && [ ! -L $$dep ] && [ -f $$dep/ebin/dep_built ]; then \
  6083. :; \
  6084. else \
  6085. $(MAKE) -C $$dep IS_DEP=1; \
  6086. if [ ! -L $$dep ] && [ -d $$dep/ebin ]; then touch $$dep/ebin/dep_built; fi; \
  6087. fi \
  6088. done
  6089. endif
  6090. shell:: build-shell-deps
  6091. $(gen_verbose) $(SHELL_ERL) -pa $(SHELL_PATHS) $(SHELL_OPTS)
  6092. # Copyright 2017, Stanislaw Klekot <dozzie@jarowit.net>
  6093. # This file is part of erlang.mk and subject to the terms of the ISC License.
  6094. .PHONY: distclean-sphinx sphinx
  6095. # Configuration.
  6096. SPHINX_BUILD ?= sphinx-build
  6097. SPHINX_SOURCE ?= doc
  6098. SPHINX_CONFDIR ?=
  6099. SPHINX_FORMATS ?= html
  6100. SPHINX_DOCTREES ?= $(ERLANG_MK_TMP)/sphinx.doctrees
  6101. SPHINX_OPTS ?=
  6102. #sphinx_html_opts =
  6103. #sphinx_html_output = html
  6104. #sphinx_man_opts =
  6105. #sphinx_man_output = man
  6106. #sphinx_latex_opts =
  6107. #sphinx_latex_output = latex
  6108. # Helpers.
  6109. sphinx_build_0 = @echo " SPHINX" $1; $(SPHINX_BUILD) -N -q
  6110. sphinx_build_1 = $(SPHINX_BUILD) -N
  6111. sphinx_build_2 = set -x; $(SPHINX_BUILD)
  6112. sphinx_build = $(sphinx_build_$(V))
  6113. define sphinx.build
  6114. $(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)
  6115. endef
  6116. define sphinx.output
  6117. $(if $(sphinx_$1_output),$(sphinx_$1_output),$1)
  6118. endef
  6119. # Targets.
  6120. ifneq ($(wildcard $(if $(SPHINX_CONFDIR),$(SPHINX_CONFDIR),$(SPHINX_SOURCE))/conf.py),)
  6121. docs:: sphinx
  6122. distclean:: distclean-sphinx
  6123. endif
  6124. help::
  6125. $(verbose) printf "%s\n" "" \
  6126. "Sphinx targets:" \
  6127. " sphinx Generate Sphinx documentation." \
  6128. "" \
  6129. "ReST sources and 'conf.py' file are expected in directory pointed by" \
  6130. "SPHINX_SOURCE ('doc' by default). SPHINX_FORMATS lists formats to build (only" \
  6131. "'html' format is generated by default); target directory can be specified by" \
  6132. 'setting sphinx_$${format}_output, for example: sphinx_html_output = output/html' \
  6133. "Additional Sphinx options can be set in SPHINX_OPTS."
  6134. # Plugin-specific targets.
  6135. sphinx:
  6136. $(foreach F,$(SPHINX_FORMATS),$(call sphinx.build,$F))
  6137. distclean-sphinx:
  6138. $(gen_verbose) rm -rf $(filter-out $(SPHINX_SOURCE),$(foreach F,$(SPHINX_FORMATS),$(call sphinx.output,$F)))
  6139. # Copyright (c) 2017, Jean-Sébastien Pédron <jean-sebastien@rabbitmq.com>
  6140. # This file is contributed to erlang.mk and subject to the terms of the ISC License.
  6141. .PHONY: show-ERL_LIBS show-ERLC_OPTS show-TEST_ERLC_OPTS
  6142. show-ERL_LIBS:
  6143. @echo $(ERL_LIBS)
  6144. show-ERLC_OPTS:
  6145. @$(foreach opt,$(ERLC_OPTS) -pa ebin -I include,echo "$(opt)";)
  6146. show-TEST_ERLC_OPTS:
  6147. @$(foreach opt,$(TEST_ERLC_OPTS) -pa ebin -I include,echo "$(opt)";)
  6148. # Copyright (c) 2015-2016, Loïc Hoguin <essen@ninenines.eu>
  6149. # This file is part of erlang.mk and subject to the terms of the ISC License.
  6150. ifeq ($(filter triq,$(DEPS) $(TEST_DEPS)),triq)
  6151. .PHONY: triq
  6152. # Targets.
  6153. tests:: triq
  6154. define triq_check.erl
  6155. $(call cover.erl)
  6156. code:add_pathsa([
  6157. "$(call core_native_path,$(CURDIR)/ebin)",
  6158. "$(call core_native_path,$(DEPS_DIR)/*/ebin)",
  6159. "$(call core_native_path,$(TEST_DIR))"]),
  6160. try begin
  6161. CoverSetup(),
  6162. Res = case $(1) of
  6163. all -> [true] =:= lists:usort([triq:check(M) || M <- [$(call comma_list,$(3))]]);
  6164. module -> triq:check($(2));
  6165. function -> triq:check($(2))
  6166. end,
  6167. CoverExport("$(COVER_DATA_DIR)/triq.coverdata"),
  6168. Res
  6169. end of
  6170. true -> halt(0);
  6171. _ -> halt(1)
  6172. catch error:undef ->
  6173. io:format("Undefined property or module?~n~p~n", [erlang:get_stacktrace()]),
  6174. halt(0)
  6175. end.
  6176. endef
  6177. ifdef t
  6178. ifeq (,$(findstring :,$(t)))
  6179. triq: test-build cover-data-dir
  6180. $(verbose) $(call erlang,$(call triq_check.erl,module,$(t)))
  6181. else
  6182. triq: test-build cover-data-dir
  6183. $(verbose) echo Testing $(t)/0
  6184. $(verbose) $(call erlang,$(call triq_check.erl,function,$(t)()))
  6185. endif
  6186. else
  6187. triq: test-build cover-data-dir
  6188. $(eval MODULES := $(patsubst %,'%',$(sort $(notdir $(basename \
  6189. $(wildcard ebin/*.beam) $(call core_find,$(TEST_DIR)/,*.beam))))))
  6190. $(gen_verbose) $(call erlang,$(call triq_check.erl,all,undefined,$(MODULES)))
  6191. endif
  6192. endif
  6193. # Copyright (c) 2016, Loïc Hoguin <essen@ninenines.eu>
  6194. # Copyright (c) 2015, Erlang Solutions Ltd.
  6195. # This file is part of erlang.mk and subject to the terms of the ISC License.
  6196. .PHONY: xref distclean-xref
  6197. # Configuration.
  6198. ifeq ($(XREF_CONFIG),)
  6199. XREFR_ARGS :=
  6200. else
  6201. XREFR_ARGS := -c $(XREF_CONFIG)
  6202. endif
  6203. XREFR ?= $(CURDIR)/xrefr
  6204. export XREFR
  6205. XREFR_URL ?= https://github.com/inaka/xref_runner/releases/download/1.1.0/xrefr
  6206. # Core targets.
  6207. help::
  6208. $(verbose) printf '%s\n' '' \
  6209. 'Xref targets:' \
  6210. ' xref Run Xrefr using $$XREF_CONFIG as config file if defined'
  6211. distclean:: distclean-xref
  6212. # Plugin-specific targets.
  6213. $(XREFR):
  6214. $(gen_verbose) $(call core_http_get,$(XREFR),$(XREFR_URL))
  6215. $(verbose) chmod +x $(XREFR)
  6216. xref: deps app $(XREFR)
  6217. $(gen_verbose) $(XREFR) $(XREFR_ARGS)
  6218. distclean-xref:
  6219. $(gen_verbose) rm -rf $(XREFR)
  6220. # Copyright (c) 2016, Loïc Hoguin <essen@ninenines.eu>
  6221. # Copyright (c) 2015, Viktor Söderqvist <viktor@zuiderkwast.se>
  6222. # This file is part of erlang.mk and subject to the terms of the ISC License.
  6223. COVER_REPORT_DIR ?= cover
  6224. COVER_DATA_DIR ?= $(COVER_REPORT_DIR)
  6225. ifdef COVER
  6226. COVER_APPS ?= $(notdir $(ALL_APPS_DIRS))
  6227. COVER_DEPS ?=
  6228. endif
  6229. # Code coverage for Common Test.
  6230. ifdef COVER
  6231. ifdef CT_RUN
  6232. ifneq ($(wildcard $(TEST_DIR)),)
  6233. test-build:: $(TEST_DIR)/ct.cover.spec
  6234. $(TEST_DIR)/ct.cover.spec: cover-data-dir
  6235. $(gen_verbose) printf "%s\n" \
  6236. "{incl_app, '$(PROJECT)', details}." \
  6237. "{incl_dirs, '$(PROJECT)', [\"$(call core_native_path,$(CURDIR)/ebin)\" \
  6238. $(foreach a,$(COVER_APPS),$(comma) \"$(call core_native_path,$(APPS_DIR)/$a/ebin)\") \
  6239. $(foreach d,$(COVER_DEPS),$(comma) \"$(call core_native_path,$(DEPS_DIR)/$d/ebin)\")]}." \
  6240. '{export,"$(call core_native_path,$(abspath $(COVER_DATA_DIR))/ct.coverdata)"}.' > $@
  6241. CT_RUN += -cover $(TEST_DIR)/ct.cover.spec
  6242. endif
  6243. endif
  6244. endif
  6245. # Code coverage for other tools.
  6246. ifdef COVER
  6247. define cover.erl
  6248. CoverSetup = fun() ->
  6249. Dirs = ["$(call core_native_path,$(CURDIR)/ebin)"
  6250. $(foreach a,$(COVER_APPS),$(comma) "$(call core_native_path,$(APPS_DIR)/$a/ebin)")
  6251. $(foreach d,$(COVER_DEPS),$(comma) "$(call core_native_path,$(DEPS_DIR)/$d/ebin)")],
  6252. [begin
  6253. case filelib:is_dir(Dir) of
  6254. false -> false;
  6255. true ->
  6256. case cover:compile_beam_directory(Dir) of
  6257. {error, _} -> halt(1);
  6258. _ -> true
  6259. end
  6260. end
  6261. end || Dir <- Dirs]
  6262. end,
  6263. CoverExport = fun(Filename) -> cover:export(Filename) end,
  6264. endef
  6265. else
  6266. define cover.erl
  6267. CoverSetup = fun() -> ok end,
  6268. CoverExport = fun(_) -> ok end,
  6269. endef
  6270. endif
  6271. # Core targets
  6272. ifdef COVER
  6273. ifneq ($(COVER_REPORT_DIR),)
  6274. tests::
  6275. $(verbose) $(MAKE) --no-print-directory cover-report
  6276. endif
  6277. cover-data-dir: | $(COVER_DATA_DIR)
  6278. $(COVER_DATA_DIR):
  6279. $(verbose) mkdir -p $(COVER_DATA_DIR)
  6280. else
  6281. cover-data-dir:
  6282. endif
  6283. clean:: coverdata-clean
  6284. ifneq ($(COVER_REPORT_DIR),)
  6285. distclean:: cover-report-clean
  6286. endif
  6287. help::
  6288. $(verbose) printf "%s\n" "" \
  6289. "Cover targets:" \
  6290. " cover-report Generate a HTML coverage report from previously collected" \
  6291. " cover data." \
  6292. " all.coverdata Merge all coverdata files into all.coverdata." \
  6293. "" \
  6294. "If COVER=1 is set, coverage data is generated by the targets eunit and ct. The" \
  6295. "target tests additionally generates a HTML coverage report from the combined" \
  6296. "coverdata files from each of these testing tools. HTML reports can be disabled" \
  6297. "by setting COVER_REPORT_DIR to empty."
  6298. # Plugin specific targets
  6299. COVERDATA = $(filter-out $(COVER_DATA_DIR)/all.coverdata,$(wildcard $(COVER_DATA_DIR)/*.coverdata))
  6300. .PHONY: coverdata-clean
  6301. coverdata-clean:
  6302. $(gen_verbose) rm -f $(COVER_DATA_DIR)/*.coverdata $(TEST_DIR)/ct.cover.spec
  6303. # Merge all coverdata files into one.
  6304. define cover_export.erl
  6305. $(foreach f,$(COVERDATA),cover:import("$(f)") == ok orelse halt(1),)
  6306. cover:export("$(COVER_DATA_DIR)/$@"), halt(0).
  6307. endef
  6308. all.coverdata: $(COVERDATA) cover-data-dir
  6309. $(gen_verbose) $(call erlang,$(cover_export.erl))
  6310. # These are only defined if COVER_REPORT_DIR is non-empty. Set COVER_REPORT_DIR to
  6311. # empty if you want the coverdata files but not the HTML report.
  6312. ifneq ($(COVER_REPORT_DIR),)
  6313. .PHONY: cover-report-clean cover-report
  6314. cover-report-clean:
  6315. $(gen_verbose) rm -rf $(COVER_REPORT_DIR)
  6316. ifneq ($(COVER_REPORT_DIR),$(COVER_DATA_DIR))
  6317. $(if $(shell ls -A $(COVER_DATA_DIR)/),,$(verbose) rmdir $(COVER_DATA_DIR))
  6318. endif
  6319. ifeq ($(COVERDATA),)
  6320. cover-report:
  6321. else
  6322. # Modules which include eunit.hrl always contain one line without coverage
  6323. # because eunit defines test/0 which is never called. We compensate for this.
  6324. EUNIT_HRL_MODS = $(subst $(space),$(comma),$(shell \
  6325. grep -H -e '^\s*-include.*include/eunit\.hrl"' src/*.erl \
  6326. | sed "s/^src\/\(.*\)\.erl:.*/'\1'/" | uniq))
  6327. define cover_report.erl
  6328. $(foreach f,$(COVERDATA),cover:import("$(f)") == ok orelse halt(1),)
  6329. Ms = cover:imported_modules(),
  6330. [cover:analyse_to_file(M, "$(COVER_REPORT_DIR)/" ++ atom_to_list(M)
  6331. ++ ".COVER.html", [html]) || M <- Ms],
  6332. Report = [begin {ok, R} = cover:analyse(M, module), R end || M <- Ms],
  6333. EunitHrlMods = [$(EUNIT_HRL_MODS)],
  6334. Report1 = [{M, {Y, case lists:member(M, EunitHrlMods) of
  6335. true -> N - 1; false -> N end}} || {M, {Y, N}} <- Report],
  6336. TotalY = lists:sum([Y || {_, {Y, _}} <- Report1]),
  6337. TotalN = lists:sum([N || {_, {_, N}} <- Report1]),
  6338. Perc = fun(Y, N) -> case Y + N of 0 -> 100; S -> round(100 * Y / S) end end,
  6339. TotalPerc = Perc(TotalY, TotalN),
  6340. {ok, F} = file:open("$(COVER_REPORT_DIR)/index.html", [write]),
  6341. io:format(F, "<!DOCTYPE html><html>~n"
  6342. "<head><meta charset=\"UTF-8\">~n"
  6343. "<title>Coverage report</title></head>~n"
  6344. "<body>~n", []),
  6345. io:format(F, "<h1>Coverage</h1>~n<p>Total: ~p%</p>~n", [TotalPerc]),
  6346. io:format(F, "<table><tr><th>Module</th><th>Coverage</th></tr>~n", []),
  6347. [io:format(F, "<tr><td><a href=\"~p.COVER.html\">~p</a></td>"
  6348. "<td>~p%</td></tr>~n",
  6349. [M, M, Perc(Y, N)]) || {M, {Y, N}} <- Report1],
  6350. How = "$(subst $(space),$(comma)$(space),$(basename $(COVERDATA)))",
  6351. Date = "$(shell date -u "+%Y-%m-%dT%H:%M:%SZ")",
  6352. io:format(F, "</table>~n"
  6353. "<p>Generated using ~s and erlang.mk on ~s.</p>~n"
  6354. "</body></html>", [How, Date]),
  6355. halt().
  6356. endef
  6357. cover-report:
  6358. $(verbose) mkdir -p $(COVER_REPORT_DIR)
  6359. $(gen_verbose) $(call erlang,$(cover_report.erl))
  6360. endif
  6361. endif # ifneq ($(COVER_REPORT_DIR),)
  6362. # Copyright (c) 2016, Loïc Hoguin <essen@ninenines.eu>
  6363. # This file is part of erlang.mk and subject to the terms of the ISC License.
  6364. .PHONY: sfx
  6365. ifdef RELX_REL
  6366. ifdef SFX
  6367. # Configuration.
  6368. SFX_ARCHIVE ?= $(RELX_OUTPUT_DIR)/$(RELX_REL_NAME)/$(RELX_REL_NAME)-$(RELX_REL_VSN).tar.gz
  6369. SFX_OUTPUT_FILE ?= $(RELX_OUTPUT_DIR)/$(RELX_REL_NAME).run
  6370. # Core targets.
  6371. rel:: sfx
  6372. # Plugin-specific targets.
  6373. define sfx_stub
  6374. #!/bin/sh
  6375. TMPDIR=`mktemp -d`
  6376. ARCHIVE=`awk '/^__ARCHIVE_BELOW__$$/ {print NR + 1; exit 0;}' $$0`
  6377. FILENAME=$$(basename $$0)
  6378. REL=$${FILENAME%.*}
  6379. tail -n+$$ARCHIVE $$0 | tar -xzf - -C $$TMPDIR
  6380. $$TMPDIR/bin/$$REL console
  6381. RET=$$?
  6382. rm -rf $$TMPDIR
  6383. exit $$RET
  6384. __ARCHIVE_BELOW__
  6385. endef
  6386. sfx:
  6387. $(verbose) $(call core_render,sfx_stub,$(SFX_OUTPUT_FILE))
  6388. $(gen_verbose) cat $(SFX_ARCHIVE) >> $(SFX_OUTPUT_FILE)
  6389. $(verbose) chmod +x $(SFX_OUTPUT_FILE)
  6390. endif
  6391. endif
  6392. # Copyright (c) 2013-2017, Loïc Hoguin <essen@ninenines.eu>
  6393. # This file is part of erlang.mk and subject to the terms of the ISC License.
  6394. # External plugins.
  6395. DEP_PLUGINS ?=
  6396. $(foreach p,$(DEP_PLUGINS),\
  6397. $(eval $(if $(findstring /,$p),\
  6398. $(call core_dep_plugin,$p,$(firstword $(subst /, ,$p))),\
  6399. $(call core_dep_plugin,$p/plugins.mk,$p))))
  6400. help:: help-plugins
  6401. help-plugins::
  6402. $(verbose) :
  6403. # Copyright (c) 2013-2015, Loïc Hoguin <essen@ninenines.eu>
  6404. # Copyright (c) 2015-2016, Jean-Sébastien Pédron <jean-sebastien@rabbitmq.com>
  6405. # This file is part of erlang.mk and subject to the terms of the ISC License.
  6406. # Fetch dependencies recursively (without building them).
  6407. .PHONY: fetch-deps fetch-doc-deps fetch-rel-deps fetch-test-deps \
  6408. fetch-shell-deps
  6409. .PHONY: $(ERLANG_MK_RECURSIVE_DEPS_LIST) \
  6410. $(ERLANG_MK_RECURSIVE_DOC_DEPS_LIST) \
  6411. $(ERLANG_MK_RECURSIVE_REL_DEPS_LIST) \
  6412. $(ERLANG_MK_RECURSIVE_TEST_DEPS_LIST) \
  6413. $(ERLANG_MK_RECURSIVE_SHELL_DEPS_LIST)
  6414. fetch-deps: $(ERLANG_MK_RECURSIVE_DEPS_LIST)
  6415. fetch-doc-deps: $(ERLANG_MK_RECURSIVE_DOC_DEPS_LIST)
  6416. fetch-rel-deps: $(ERLANG_MK_RECURSIVE_REL_DEPS_LIST)
  6417. fetch-test-deps: $(ERLANG_MK_RECURSIVE_TEST_DEPS_LIST)
  6418. fetch-shell-deps: $(ERLANG_MK_RECURSIVE_SHELL_DEPS_LIST)
  6419. ifneq ($(SKIP_DEPS),)
  6420. $(ERLANG_MK_RECURSIVE_DEPS_LIST) \
  6421. $(ERLANG_MK_RECURSIVE_DOC_DEPS_LIST) \
  6422. $(ERLANG_MK_RECURSIVE_REL_DEPS_LIST) \
  6423. $(ERLANG_MK_RECURSIVE_TEST_DEPS_LIST) \
  6424. $(ERLANG_MK_RECURSIVE_SHELL_DEPS_LIST):
  6425. $(verbose) :> $@
  6426. else
  6427. # By default, we fetch "normal" dependencies. They are also included no
  6428. # matter the type of requested dependencies.
  6429. #
  6430. # $(ALL_DEPS_DIRS) includes $(BUILD_DEPS).
  6431. $(ERLANG_MK_RECURSIVE_DEPS_LIST): $(LOCAL_DEPS_DIRS) $(ALL_DEPS_DIRS)
  6432. $(ERLANG_MK_RECURSIVE_DOC_DEPS_LIST): $(LOCAL_DEPS_DIRS) $(ALL_DEPS_DIRS) $(ALL_DOC_DEPS_DIRS)
  6433. $(ERLANG_MK_RECURSIVE_REL_DEPS_LIST): $(LOCAL_DEPS_DIRS) $(ALL_DEPS_DIRS) $(ALL_REL_DEPS_DIRS)
  6434. $(ERLANG_MK_RECURSIVE_TEST_DEPS_LIST): $(LOCAL_DEPS_DIRS) $(ALL_DEPS_DIRS) $(ALL_TEST_DEPS_DIRS)
  6435. $(ERLANG_MK_RECURSIVE_SHELL_DEPS_LIST): $(LOCAL_DEPS_DIRS) $(ALL_DEPS_DIRS) $(ALL_SHELL_DEPS_DIRS)
  6436. # Allow to use fetch-deps and $(DEP_TYPES) to fetch multiple types of
  6437. # dependencies with a single target.
  6438. ifneq ($(filter doc,$(DEP_TYPES)),)
  6439. $(ERLANG_MK_RECURSIVE_DEPS_LIST): $(ALL_DOC_DEPS_DIRS)
  6440. endif
  6441. ifneq ($(filter rel,$(DEP_TYPES)),)
  6442. $(ERLANG_MK_RECURSIVE_DEPS_LIST): $(ALL_REL_DEPS_DIRS)
  6443. endif
  6444. ifneq ($(filter test,$(DEP_TYPES)),)
  6445. $(ERLANG_MK_RECURSIVE_DEPS_LIST): $(ALL_TEST_DEPS_DIRS)
  6446. endif
  6447. ifneq ($(filter shell,$(DEP_TYPES)),)
  6448. $(ERLANG_MK_RECURSIVE_DEPS_LIST): $(ALL_SHELL_DEPS_DIRS)
  6449. endif
  6450. ERLANG_MK_RECURSIVE_TMP_LIST := $(abspath $(ERLANG_MK_TMP)/recursive-tmp-deps-$(shell echo $$PPID).log)
  6451. $(ERLANG_MK_RECURSIVE_DEPS_LIST) \
  6452. $(ERLANG_MK_RECURSIVE_DOC_DEPS_LIST) \
  6453. $(ERLANG_MK_RECURSIVE_REL_DEPS_LIST) \
  6454. $(ERLANG_MK_RECURSIVE_TEST_DEPS_LIST) \
  6455. $(ERLANG_MK_RECURSIVE_SHELL_DEPS_LIST): | $(ERLANG_MK_TMP)
  6456. ifeq ($(IS_APP)$(IS_DEP),)
  6457. $(verbose) rm -f $(ERLANG_MK_RECURSIVE_TMP_LIST)
  6458. endif
  6459. $(verbose) set -e; for dep in $^ ; do \
  6460. if ! grep -qs ^$$dep$$ $(ERLANG_MK_RECURSIVE_TMP_LIST); then \
  6461. echo $$dep >> $(ERLANG_MK_RECURSIVE_TMP_LIST); \
  6462. if grep -qs -E "^[[:blank:]]*include[[:blank:]]+(erlang\.mk|.*/erlang\.mk|.*ERLANG_MK_FILENAME.*)$$" \
  6463. $$dep/GNUmakefile $$dep/makefile $$dep/Makefile; then \
  6464. $(MAKE) -C $$dep fetch-deps \
  6465. IS_DEP=1 \
  6466. ERLANG_MK_RECURSIVE_TMP_LIST=$(ERLANG_MK_RECURSIVE_TMP_LIST); \
  6467. fi \
  6468. fi \
  6469. done
  6470. ifeq ($(IS_APP)$(IS_DEP),)
  6471. $(verbose) sort < $(ERLANG_MK_RECURSIVE_TMP_LIST) | \
  6472. uniq > $(ERLANG_MK_RECURSIVE_TMP_LIST).sorted
  6473. $(verbose) cmp -s $(ERLANG_MK_RECURSIVE_TMP_LIST).sorted $@ \
  6474. || mv $(ERLANG_MK_RECURSIVE_TMP_LIST).sorted $@
  6475. $(verbose) rm -f $(ERLANG_MK_RECURSIVE_TMP_LIST).sorted
  6476. $(verbose) rm $(ERLANG_MK_RECURSIVE_TMP_LIST)
  6477. endif
  6478. endif # ifneq ($(SKIP_DEPS),)
  6479. # List dependencies recursively.
  6480. .PHONY: list-deps list-doc-deps list-rel-deps list-test-deps \
  6481. list-shell-deps
  6482. list-deps: $(ERLANG_MK_RECURSIVE_DEPS_LIST)
  6483. list-doc-deps: $(ERLANG_MK_RECURSIVE_DOC_DEPS_LIST)
  6484. list-rel-deps: $(ERLANG_MK_RECURSIVE_REL_DEPS_LIST)
  6485. list-test-deps: $(ERLANG_MK_RECURSIVE_TEST_DEPS_LIST)
  6486. list-shell-deps: $(ERLANG_MK_RECURSIVE_SHELL_DEPS_LIST)
  6487. list-deps list-doc-deps list-rel-deps list-test-deps list-shell-deps:
  6488. $(verbose) cat $^
  6489. # Query dependencies recursively.
  6490. .PHONY: query-deps query-doc-deps query-rel-deps query-test-deps \
  6491. query-shell-deps
  6492. QUERY ?= name fetch_method repo version
  6493. define query_target
  6494. $(1): $(2) clean-tmp-query.log
  6495. ifeq ($(IS_APP)$(IS_DEP),)
  6496. $(verbose) rm -f $(4)
  6497. endif
  6498. $(verbose) $(foreach dep,$(3),\
  6499. echo $(PROJECT): $(foreach q,$(QUERY),$(call query_$(q),$(dep))) >> $(4) ;)
  6500. $(if $(filter-out query-deps,$(1)),,\
  6501. $(verbose) set -e; for dep in $(3) ; do \
  6502. if grep -qs ^$$$$dep$$$$ $(ERLANG_MK_TMP)/query.log; then \
  6503. :; \
  6504. else \
  6505. echo $$$$dep >> $(ERLANG_MK_TMP)/query.log; \
  6506. $(MAKE) -C $(DEPS_DIR)/$$$$dep $$@ QUERY="$(QUERY)" IS_DEP=1 || true; \
  6507. fi \
  6508. done)
  6509. ifeq ($(IS_APP)$(IS_DEP),)
  6510. $(verbose) touch $(4)
  6511. $(verbose) cat $(4)
  6512. endif
  6513. endef
  6514. clean-tmp-query.log:
  6515. ifeq ($(IS_DEP),)
  6516. $(verbose) rm -f $(ERLANG_MK_TMP)/query.log
  6517. endif
  6518. $(eval $(call query_target,query-deps,$(ERLANG_MK_RECURSIVE_DEPS_LIST),$(BUILD_DEPS) $(DEPS),$(ERLANG_MK_QUERY_DEPS_FILE)))
  6519. $(eval $(call query_target,query-doc-deps,$(ERLANG_MK_RECURSIVE_DOC_DEPS_LIST),$(DOC_DEPS),$(ERLANG_MK_QUERY_DOC_DEPS_FILE)))
  6520. $(eval $(call query_target,query-rel-deps,$(ERLANG_MK_RECURSIVE_REL_DEPS_LIST),$(REL_DEPS),$(ERLANG_MK_QUERY_REL_DEPS_FILE)))
  6521. $(eval $(call query_target,query-test-deps,$(ERLANG_MK_RECURSIVE_TEST_DEPS_LIST),$(TEST_DEPS),$(ERLANG_MK_QUERY_TEST_DEPS_FILE)))
  6522. $(eval $(call query_target,query-shell-deps,$(ERLANG_MK_RECURSIVE_SHELL_DEPS_LIST),$(SHELL_DEPS),$(ERLANG_MK_QUERY_SHELL_DEPS_FILE)))