From 0f784da7264c35fda5191c7d93c0fca822f3ddf9 Mon Sep 17 00:00:00 2001 From: ILMostro Date: Fri, 22 Jun 2018 22:55:56 -0500 Subject: net-libs/zeromq asciidoc --> asciidoctor --- net-libs/zeromq/Manifest | 27 ++++++ .../files/zeromq-3.2.3-unused-variable.patch | 105 +++++++++++++++++++++ .../zeromq/files/zeromq-4.2.0-dl-backport.patch | 25 +++++ ...able-experimental-zmq_poll-implementation.patch | 35 +++++++ .../files/zeromq-4.2.2-optional-libunwind.patch | 70 ++++++++++++++ net-libs/zeromq/metadata.xml | 43 +++++++++ net-libs/zeromq/zeromq-2.2.0.ebuild | 51 ++++++++++ net-libs/zeromq/zeromq-3.2.3.ebuild | 61 ++++++++++++ net-libs/zeromq/zeromq-3.2.5.ebuild | 60 ++++++++++++ net-libs/zeromq/zeromq-4.1.1.ebuild | 49 ++++++++++ net-libs/zeromq/zeromq-4.1.6.ebuild | 55 +++++++++++ net-libs/zeromq/zeromq-4.2.0-r1.ebuild | 59 ++++++++++++ net-libs/zeromq/zeromq-4.2.1.ebuild | 55 +++++++++++ net-libs/zeromq/zeromq-4.2.2-r1.ebuild | 57 +++++++++++ net-libs/zeromq/zeromq-4.2.2-r2.ebuild | 63 +++++++++++++ net-libs/zeromq/zeromq-4.2.2.ebuild | 55 +++++++++++ net-libs/zeromq/zeromq-4.2.3.ebuild | 62 ++++++++++++ net-libs/zeromq/zeromq-4.2.5.ebuild | 62 ++++++++++++ 18 files changed, 994 insertions(+) create mode 100644 net-libs/zeromq/Manifest create mode 100644 net-libs/zeromq/files/zeromq-3.2.3-unused-variable.patch create mode 100644 net-libs/zeromq/files/zeromq-4.2.0-dl-backport.patch create mode 100644 net-libs/zeromq/files/zeromq-4.2.1-disable-experimental-zmq_poll-implementation.patch create mode 100644 net-libs/zeromq/files/zeromq-4.2.2-optional-libunwind.patch create mode 100644 net-libs/zeromq/metadata.xml create mode 100644 net-libs/zeromq/zeromq-2.2.0.ebuild create mode 100644 net-libs/zeromq/zeromq-3.2.3.ebuild create mode 100644 net-libs/zeromq/zeromq-3.2.5.ebuild create mode 100644 net-libs/zeromq/zeromq-4.1.1.ebuild create mode 100644 net-libs/zeromq/zeromq-4.1.6.ebuild create mode 100644 net-libs/zeromq/zeromq-4.2.0-r1.ebuild create mode 100644 net-libs/zeromq/zeromq-4.2.1.ebuild create mode 100644 net-libs/zeromq/zeromq-4.2.2-r1.ebuild create mode 100644 net-libs/zeromq/zeromq-4.2.2-r2.ebuild create mode 100644 net-libs/zeromq/zeromq-4.2.2.ebuild create mode 100644 net-libs/zeromq/zeromq-4.2.3.ebuild create mode 100644 net-libs/zeromq/zeromq-4.2.5.ebuild diff --git a/net-libs/zeromq/Manifest b/net-libs/zeromq/Manifest new file mode 100644 index 0000000..e555c2d --- /dev/null +++ b/net-libs/zeromq/Manifest @@ -0,0 +1,27 @@ +AUX zeromq-3.2.3-unused-variable.patch 4012 BLAKE2B 8ce02ae0eb5696977e65ee28687418ff929268ab93ea0e7207b3aa8c0ce38205d2ac3cb33cd4758811f99ab64b0efbfb276a0d3b4546f48475e763bc7b6d32be SHA512 c54ee2ff1d11c33c734b7696a3fa98be8e0a5025678ac31599c652a4f0e2b507f41de3aae8d6808086bbe72fd0d485945ed2b822f984c2053f1f6f69b62a7b1f +AUX zeromq-4.2.0-dl-backport.patch 897 BLAKE2B 50f413fe321240146a6d27e1aa9cc27220984720d2dc41724cf2cc11a322be5d1d37764e52963c0d1b0de7bb754223d4c3102771f9d014c4a9593f6e83097b97 SHA512 db7ef6485040e158aabd2e5f5c49fbc02ba918415b3cd670baf7287a35ec67a8dd4d3509c30f7a00c88582e544f3cef886f99ecf218656cc8c3cd285fb221256 +AUX zeromq-4.2.1-disable-experimental-zmq_poll-implementation.patch 1317 BLAKE2B 70fe7193f858b58c05b64a98db8f93f6c468293098abab21fac4e0aa5c003c3803823447e05c01c01eecb12c01fa9945913b2ee31179355d733ce0477372fdd0 SHA512 d75375a201e98be533d04cd29997cf28e81d3af958fad91acf5e8d9284c7b3d3d7d7b6a593fc752f6b50048c21d1fb9a7fd99d449f155e509fef9d35260f7188 +AUX zeromq-4.2.2-optional-libunwind.patch 2246 BLAKE2B 7a9eeb5ec8c5d0dd1f8a8d7832aae5c54e9b9f6e8757b3defae513f0c7b7f689b79c58da397631c4a93324033f363de54b563466eda814e5bd4887714d2533d3 SHA512 275175d2ed21654a224b55b7508dbee9e362929fa31fc33e8c20f303f6280a8416275143896e3541492b8d6187a559c805a38b31eae5ac14083905a50d5b8bdc +DIST zeromq-2.2.0.tar.gz 1899104 BLAKE2B 1c02629e33151db11c529d538ce519dae7f3426ee13f8a2b840960779cd7514f7cc3257983704f2c392a00ad62f4a955bc33fcbdadb8bada3858753a1790ab41 SHA512 fb3cf421b2dc48c31956b3e3ee4ab6ebc743deec3bf626c2238a1996c8c51be87260bd6aa662793a1f0c34dcda9b3146763777bb162dfad6fec4ca7acc403b2e +DIST zeromq-3.2.3.tar.gz 2072758 BLAKE2B ee295219e4709396f5a7e2774f8f6e53ad081c8b83302d9fe163d5523b6060401251c9ecc0bd423168ccbe156d6a0e26454515cf50780e5c8a07f9f6f4d50ee5 SHA512 34ffb6aa645f62bd1158a8f2888bf92929ccf90917a6c50ed51ed1240732f498522e164d1536f26480c87ad5457fe614a93bf0e15f2f89b0b168e64a30de68ca +DIST zeromq-3.2.5.tar.gz 2082960 BLAKE2B 88fe3b3206f0e59acb3cf370964c9e40df2dceb5e40aef85ae8cd8fedef4c655fd2698a7f81431e34550b5156814a75c0b1a738393e7c44acbfefe96acc4c4bc SHA512 3682204e5a47824d149968e62fbf9768134370e4f7debbbf8f2bfa24bdd0a781e50c4a9b4231af8a0c4bab61839169100525a91472448ef180a9672342e10a3f +DIST zeromq-4.1.1.tar.gz 1383196 BLAKE2B f0c5e05a11288f28b97a27894479287652c1152d12906764f060372e7a4c7e6a70daea047d7f07ec2ac919d61ba04b65b1f8e316a474e93164c0dba86c3b7ac7 SHA512 6f626c89e573900d3b094ea6058693dee290eb9e4039a8a03d61d41b1d8976ed5596027ca76a43f371dbf86820edfbd56a84ecfab6864adfeee73035df7b5353 +DIST zeromq-4.1.6.tar.gz 799771 BLAKE2B 91ecc39122199846bfe0d9ea49c2acc076d0f827cee55c1b35fcb9d56a8bc1d174789829d5e672bba77fee442f996ca56f69385ece156fb759c363b1dc38cf43 SHA512 c04a6bb7a719687d8e8e5e8a103f93ab75ead3fcd3516e6089959e4f02cff7c18e9d7a8696af4245d434b45e6aa6e2ca8f73d98db058df621bca3def97bf7af1 +DIST zeromq-4.2.0.tar.gz 1046254 BLAKE2B d14bad19861cef7bfd58f571118e5dce89afecf1b80c05c6089f7669b702c38a93825e736e73988cae3f2ce90ab4a3fc28dc34b5ca2e6ff0a12707eb238bc05e SHA512 3b6f0a1869fb1663ea40b3c3aa088b81399a35c051e4ade2b30bbac60bfceefe6b4403248a4635fb31d33767c1e478342f61c47b0ffdb4501419c13590ebeb96 +DIST zeromq-4.2.1.tar.gz 1243428 BLAKE2B 2112f127d5e9624861adad455e77c21b17db09123adbe6473e86575a63ca1c21634078cce9af13e9ea1cc24e68658ae56172d98f24478161c14c5be56a922739 SHA512 6ef52edff930be34451e81bd21a7e23f08e135c8e10e006d0a6146e7fa4171e9dcf9065f77c33cb0c0db4c16cff4a50cab2a9d612e306490a02bc6a4a913ba6a +DIST zeromq-4.2.2.tar.gz 1236437 BLAKE2B 7104f8ad28cc00f1ba6d6cb5dbb9aa466971c73a513e206eee77db293f4e4845106910d539363dc0c21de7e83885056453a530c941c38e19c5ec1fa836e1bca0 SHA512 d78813a61ce3311a1f8c230f7da0f5aedc97ef4b792afb6d398c5710da239348c0c7a67bdfeb38a7ab0282af498f1ed173649aff4add1bc35f0ef1b66f965443 +DIST zeromq-4.2.3.tar.gz 1326780 BLAKE2B f76ff6461e5a180221b1fff471e795a457fe4f26ec1ca725438aff4e240be7da80e42b2aea49845b5712e1d63590f64bc681f9a793bcf4d32fe0ee08bcab482c SHA512 8ac588a7a4db9d65586dd7b501999edac151e1d03056c1014d7ded6cd4bcf5bb4f81252b47d89d60c3ad7d527685218992bf5853b4656c0702e0f64c2d77712b +DIST zeromq-4.2.5.tar.gz 1409447 BLAKE2B 9309cff20192c4e0d9e34992cc3168c219ae63e8258362483d15f3315436324454603739393d2fa2628fb4cf7a94954c1643de07c3a28e86933fcd53aa2e0fac SHA512 4556cb50d05a6d133015a0ba804d6d951a47479a33fa29561eaeecb93d48b7bb6477365d0986c38b779f500cadaf08522c4a7aa13f5510303bd923f794d37036 +EBUILD zeromq-2.2.0.ebuild 1290 BLAKE2B 41766c48411cb623c574f20b72d9190877c0f4a53708c132863986059b620f0175a46fa3ed840dcc38298419642f186124289db64bbc9c092dfd896788c26eb7 SHA512 83c7f2b4f30aa15b44c2761c879762cb8cef3e19ba84f9bc95ab6e8f7bb0e3d01c0fbf91688be12ac662c231929793544d7769f2dafcec718f2e22764b76b9a0 +EBUILD zeromq-3.2.3.ebuild 1520 BLAKE2B 81d008fa3fab31485ee72e5669479f7a730b14c2f20af29dd51e9bda168ee4dba9057a43214addec88f6b6c5960899898351b234f352464854a63a79b0d0fbe7 SHA512 1bb6da7c444a4377fe716d6a0702d12b2e23128418cd38820d2093da7bf0b14d9a3d7e85b17e283ec49bdedf5f5214d6723b23869d431c8fff82b816d3499fc4 +EBUILD zeromq-3.2.5.ebuild 1469 BLAKE2B 0c63cffa55d6ce54d430dfd3f4997f1426a80aec72e5778cdb3ba833c383d2c5d487824bda6ab413c7750de790755f266d3c69b79f8cdf6ae982fde417fb95d9 SHA512 85a0a5c8184dcafaa29d93e59568fb569ef015fc2f1cd7c26bd5c66f0333050c04505587e6922691641d43b679c34eac13dd7ced4cd2955a5c2e926ad559bfbc +EBUILD zeromq-4.1.1.ebuild 1029 BLAKE2B baa98f925563fd8c7a4e41bc8193c6f05ba3338c3e28cbf6e91a12cfdc05d8eb648f222d4bbaa926b1ab30ff7dd1c3c4976cc3cd54870d39cfabf3837107ac7b SHA512 0d18a5049611229103db0b20936c097717d092968d21e0967823e8984bddd2bb22a99c5e3217c00ea5418c20be772597ed00151380857105edf54e7386d8782a +EBUILD zeromq-4.1.6.ebuild 1154 BLAKE2B ffd8644f36d38741f6b26d833a22424c0b1d24b5caebdc56a8519fe1b9668c57a4f3df3d3528b3fd1665a8964f31049ee32cf1ce9e31022c6a3fd22acb943931 SHA512 4c4c93f58c4ecf5ba82264198c1e40e265120c294761e348457830897201e89dfc50bfad4c5424bfe71eea9adb22cb105402485dbc31d49f1c20f5de80e86cd7 +EBUILD zeromq-4.2.0-r1.ebuild 1268 BLAKE2B 0d2da48e27b0c84c45772307e24502f0a66eafe75e384b4977d28e5dfb500ba07a32179b48b0795dcbc76227892849bcc2d571e1f97e0a4f8dca6bf120dd13f8 SHA512 e899d165a43f8d07a1f653e046483219f1dc1827e946c48490af8ce7a156e229a7041a4051076a3584d3768fbc80f8220d8453e7f5e8c0129abf86f411c098a1 +EBUILD zeromq-4.2.1.ebuild 1209 BLAKE2B 88a85bc62cedded0176d93e46d231cea694faf27efce8f8d30912937418e0cec4e8faff3d5150d5f6edd8c57d61be2d07cb76eefcccd269c4f9fd64dd77920d5 SHA512 d748d27548088f9121f1b3143fed334f5d69527a2868f46d6a1cc74daf0e6164801573d2c4065b9383245ec686680245dc46a036e1e6432d7f138f7a39136154 +EBUILD zeromq-4.2.2-r1.ebuild 1380 BLAKE2B 30394e0c22a77aeae94d990f688ab2fc13663be68bcd8ae10e48ceb7316a75a5b1fa15528f5e92f02e9315e8ca536ae591d08671754b0bc6577fdf8bddb4082e SHA512 5ce25d3196c4be51420af99b4590d54c79b687d74a3b64ee44b1322bbce829e3e04b99ea5cb840f1f991f36cc12f9080806aa91666ba183372dee6963442b7d9 +EBUILD zeromq-4.2.2-r2.ebuild 1552 BLAKE2B d1191b9f59fa5aafd1a0520d5a342db4241c937805212ff3fa8b6362192bf9359bbec45eab998138ec736614ca05a105c4170f9efcf24725771970196ffb2e9e SHA512 54b30057196c0231e7979ffbf5862be9a78d95cba0a2d860a0bd2e2120d538694d5e960a622968fb7cb994fdfe8c948222299e13c9997fe9012ecd3bb43b62ec +EBUILD zeromq-4.2.2.ebuild 1217 BLAKE2B 9de51f8af0843322ca7aead2aca32e7b6b862b0299e62ab2678d2893740ccc964db6e1be93554469af84f9f97502b9bdfb36f61c4075d32d2fa2c5f571b5b350 SHA512 097c10c8db5d2526d8eb5b0958d92be09c842373aad9b22dfa4c8d26cc6fa982440d28b8ac1ddabf1bce0e4a8f5e71ba16ebeecd7de02304ccdf2e5509da655c +EBUILD zeromq-4.2.3.ebuild 1424 BLAKE2B 54e88a28c33f082e5bf06ec2e09ee13bd4a90569b50e6e30924a923d9b0f2ca511f566431c029dd891abe3d361823454deafe8f3e387b8d2e58044c315dc4859 SHA512 1dbe5809ffd456465d44ec2d2cd24aa3ac0a1f3874ac1ba412626dcea13a041bed003bf569b85d4a1b3a802f04e40cf3b3e0984962a1e032532e0ff5f7b209bf +EBUILD zeromq-4.2.5.ebuild 1424 BLAKE2B 54e88a28c33f082e5bf06ec2e09ee13bd4a90569b50e6e30924a923d9b0f2ca511f566431c029dd891abe3d361823454deafe8f3e387b8d2e58044c315dc4859 SHA512 1dbe5809ffd456465d44ec2d2cd24aa3ac0a1f3874ac1ba412626dcea13a041bed003bf569b85d4a1b3a802f04e40cf3b3e0984962a1e032532e0ff5f7b209bf +MISC metadata.xml 1503 BLAKE2B ce5679ad6407da1acaf9d260dd7afcebc9ca03b8df118df2848e7592ca7bb681f6dd649f05b18a467ab3ebeb099a51016faf6bdc96ed249f852c328ae2dfddca SHA512 879a3b484d68ac7dc82f82c24284d353f3c730f1ffc2f1badf3fbb0de42a2cd2223686578b91843ca244f8d7b75986c3edf9428f2620a1d4d19747edb3693f7b diff --git a/net-libs/zeromq/files/zeromq-3.2.3-unused-variable.patch b/net-libs/zeromq/files/zeromq-3.2.3-unused-variable.patch new file mode 100644 index 0000000..9fb86fa --- /dev/null +++ b/net-libs/zeromq/files/zeromq-3.2.3-unused-variable.patch @@ -0,0 +1,105 @@ +Fix building with -Wall. + +Description from upstream repo: + Author: Pieter Hintjens + Date: Wed Jan 30 23:53:23 2013 +0100 + + Various cleanups to test programs + + - Patch applied using git am from libzmq commit 5f009e52 + - tests/test_raw_sock.cpp doesn't exist in zeromq3-x, so that + file was manually removed from the patch before 'git am' + + Signed-off-by: AJ Lewis +X-GENTOO-BUG: 483318 +X-GENTOO-BUG-URL: https://bugs.gentoo.org/show_bug.cgi?id=483318 +X-UPSTREAM-URL: https://github.com/zeromq/zeromq3-x/commit/bdd72826c96fa7cb6a8d2e5cf688c973a8e8d42f + +--- a/tests/test_connect_delay.cpp ++++ b/tests/test_connect_delay.cpp +@@ -61,12 +61,12 @@ int main (void) + assert(from); + + val = 0; +- zmq_setsockopt (from, ZMQ_LINGER, &val, sizeof(val)); ++ zmq_setsockopt (from, ZMQ_LINGER, &val, sizeof (val)); + // This pipe will not connect + rc = zmq_connect (from, "tcp://localhost:5556"); + assert (rc == 0); + // This pipe will +- rc = zmq_connect (from, "tcp://localhost:5555"); ++ rc = zmq_connect (from, "tcp://localhost:6555"); + assert (rc == 0); + + // We send 10 messages, 5 should just get stuck in the queue +@@ -112,7 +112,6 @@ int main (void) + // cause the pipe attachment to be delayed until the connection + // succeeds. + context = zmq_ctx_new(); +- fprintf (stderr, " Rerunning with DELAY_ATTACH_ON_CONNECT\n"); + + // Bind the valid socket + to = zmq_socket (context, ZMQ_PULL); +@@ -182,7 +181,6 @@ int main (void) + // block. Then we reconnect and verify messages flow again. + context = zmq_ctx_new(); + void *context2 = zmq_ctx_new(); +- fprintf (stderr, " Running DELAY_ATTACH_ON_CONNECT with disconnect\n"); + + to = zmq_socket (context2, ZMQ_PULL); + assert (to); +diff --git a/tests/test_disconnect_inproc.cpp b/tests/test_disconnect_inproc.cpp +index 7875083..d6b68c6 100644 +--- a/tests/test_disconnect_inproc.cpp ++++ b/tests/test_disconnect_inproc.cpp +@@ -40,16 +40,14 @@ int main(int argc, char** argv) { + zmq_msg_t msg; + zmq_msg_init (&msg); + zmq_msg_recv (&msg, pubSocket, 0); +- int msgSize = zmq_msg_size(&msg); + char* buffer = (char*)zmq_msg_data(&msg); + + if (buffer[0] == 0) { + assert(isSubscribed); +- printf("unsubscribing from '%s'\n", strndup(buffer + 1, msgSize - 1)); + isSubscribed = false; +- } else { ++ } ++ else { + assert(!isSubscribed); +- printf("subscribing on '%s'\n", strndup(buffer + 1, msgSize - 1)); + isSubscribed = true; + } + +@@ -66,11 +64,6 @@ int main(int argc, char** argv) { + zmq_msg_t msg; + zmq_msg_init (&msg); + zmq_msg_recv (&msg, subSocket, 0); +- int msgSize = zmq_msg_size(&msg); +- char* buffer = (char*)zmq_msg_data(&msg); +- +- printf("received on subscriber '%s'\n", strndup(buffer, msgSize)); +- + zmq_getsockopt (subSocket, ZMQ_RCVMORE, &more, &more_size); + zmq_msg_close (&msg); + +diff --git a/tests/test_last_endpoint.cpp b/tests/test_last_endpoint.cpp +index 5f121c4..ef3230b 100644 +--- a/tests/test_last_endpoint.cpp ++++ b/tests/test_last_endpoint.cpp +@@ -29,11 +29,10 @@ static void do_bind_and_verify (void *s, const char *endpoint) + { + int rc = zmq_bind (s, endpoint); + assert (rc == 0); +- +- char test [255]; +- size_t siz = 255; +- rc = zmq_getsockopt (s, ZMQ_LAST_ENDPOINT, test, &siz); +- assert (rc == 0 && strcmp (test, endpoint) == 0); ++ char reported [255]; ++ size_t size = 255; ++ rc = zmq_getsockopt (s, ZMQ_LAST_ENDPOINT, reported, &size); ++ assert (rc == 0 && strcmp (reported, endpoint) == 0); + } + + int main (void) diff --git a/net-libs/zeromq/files/zeromq-4.2.0-dl-backport.patch b/net-libs/zeromq/files/zeromq-4.2.0-dl-backport.patch new file mode 100644 index 0000000..c00001d --- /dev/null +++ b/net-libs/zeromq/files/zeromq-4.2.0-dl-backport.patch @@ -0,0 +1,25 @@ +From 1b3fcbd3eead8f1f59f3e9472319d58ce6b52bb7 Mon Sep 17 00:00:00 2001 +From: Luca Boccassi +Date: Thu, 10 Nov 2016 22:49:41 +0000 +Subject: [PATCH] Problem: linker fails looking for dladdr + +Solution: search and add it via AC_CHECK_LIB when building with +libunwind, as the backtrace function uses dladdr. This problem +only appears on some distributions and with some compiler/toolchain +versions. +--- + configure.ac | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/configure.ac b/configure.ac +index 4fb2757..d548f9f 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -650,6 +650,7 @@ PKG_CHECK_MODULES(LIBUNWIND, [libunwind], + AC_DEFINE(HAVE_LIBUNWIND, 1, [The libunwind library is to be used]) + AC_SUBST([LIBUNWIND_CFLAGS]) + AC_SUBST([LIBUNWIND_LIBS]) ++ AC_CHECK_LIB([dl], [dladdr]) + ], + [ + AC_MSG_WARN([Cannot find libunwind]) diff --git a/net-libs/zeromq/files/zeromq-4.2.1-disable-experimental-zmq_poll-implementation.patch b/net-libs/zeromq/files/zeromq-4.2.1-disable-experimental-zmq_poll-implementation.patch new file mode 100644 index 0000000..3efe215 --- /dev/null +++ b/net-libs/zeromq/files/zeromq-4.2.1-disable-experimental-zmq_poll-implementation.patch @@ -0,0 +1,35 @@ +From 90c76fbd6069b8e1e98236f31317ed22792ab739 Mon Sep 17 00:00:00 2001 +From: Luca Boccassi +Date: Fri, 28 Apr 2017 16:08:46 +0100 +Subject: [PATCH] Problem: new zmq_poller used by zmq_poll without DRAFTs + +Solution: do not define ZMQ_HAVE_POLLER in src/zmq_drafts.h otherwise +src/zmq.cpp will implement zmq_poll using the new poller classes. +Same for ZMQ_HAVE_TIMERS, even though it has no internal effect, but +to be safe against future development. +--- + src/zmq_draft.h | 4 ---- + 1 file changed, 4 deletions(-) + +diff --git a/src/zmq_draft.h b/src/zmq_draft.h +index bfbf9e3..9aed6dd 100644 +--- a/src/zmq_draft.h ++++ b/src/zmq_draft.h +@@ -67,8 +67,6 @@ const char *zmq_msg_group(zmq_msg_t *msg); + /* Poller polling on sockets,fd and thread-safe sockets */ + /******************************************************************************/ + +-#define ZMQ_HAVE_POLLER +- + typedef struct zmq_poller_event_t + { + void *socket; +@@ -103,8 +101,6 @@ int zmq_poller_remove_fd (void *poller, int fd); + /* Scheduling timers */ + /******************************************************************************/ + +-#define ZMQ_HAVE_TIMERS +- + typedef void (zmq_timer_fn)(int timer_id, void *arg); + + void *zmq_timers_new (void); diff --git a/net-libs/zeromq/files/zeromq-4.2.2-optional-libunwind.patch b/net-libs/zeromq/files/zeromq-4.2.2-optional-libunwind.patch new file mode 100644 index 0000000..36a5f66 --- /dev/null +++ b/net-libs/zeromq/files/zeromq-4.2.2-optional-libunwind.patch @@ -0,0 +1,70 @@ +Accepted upstream as: https://github.com/zeromq/libzmq/pull/2625 + +From 88487e7da3e0412abde30af2855a667ab973f9fc Mon Sep 17 00:00:00 2001 +From: Sergei Trofimovich +Date: Fri, 14 Jul 2017 21:44:30 +0100 +Subject: [PATCH] configure.ac: allow user to disable libunwind discovery via + --disable-libunwind + +on ia64 architecture libunwind comes with gcc. Unfortunately +libunwind is not directly usable as-is and fails at link time: + +``` + ia64-unknown-linux-gnu-g++ -o perf/.libs/local_lat perf/local_lat.o src/.libs/libzmq.so -lsodium -lrt -lpthread -ldl + src/.libs/libzmq.so: undefined reference to `_ULia64_step' +``` + +The change adds --{enable,disable}-libunwind flag to control +automatic dependency. The default is unchanged: use if available. + +Signed-off-by: Sergei Trofimovich +--- + configure.ac | 32 ++++++++++++++++++++++---------- + 1 file changed, 22 insertions(+), 10 deletions(-) + +diff --git a/configure.ac b/configure.ac +index c10f8445..ad193871 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -721,16 +721,28 @@ else + AC_SUBST(pkg_config_defines, "") + fi + +-PKG_CHECK_MODULES(LIBUNWIND, [libunwind], +- [ +- AC_DEFINE(HAVE_LIBUNWIND, 1, [The libunwind library is to be used]) +- AC_SUBST([LIBUNWIND_CFLAGS]) +- AC_SUBST([LIBUNWIND_LIBS]) +- AC_CHECK_LIB([dl], [dladdr]) +- ], +- [ +- AC_MSG_WARN([Cannot find libunwind]) +- ]) ++AC_ARG_ENABLE([libunwind], ++ [AS_HELP_STRING([--enable-libunwind], ++ [enable libunwind [default=auto]])], ++ [enable_libunwind=$enableval], ++ [enable_libunwind="auto"]) ++ ++if test "x$enable_libunwind" != "xno"; then ++ PKG_CHECK_MODULES(LIBUNWIND, [libunwind], ++ [ ++ AC_DEFINE(HAVE_LIBUNWIND, 1, [The libunwind library is to be used]) ++ AC_SUBST([LIBUNWIND_CFLAGS]) ++ AC_SUBST([LIBUNWIND_LIBS]) ++ AC_CHECK_LIB([dl], [dladdr]) ++ ], ++ [ ++ if test "x$enable_libunwind" = "xyes"; then ++ AC_MSG_ERROR([Cannot find libunwind]) ++ else ++ AC_MSG_WARN([Cannot find libunwind]) ++ fi ++ ]) ++fi + + # Subst LIBZMQ_EXTRA_CFLAGS & CXXFLAGS & LDFLAGS + AC_SUBST(LIBZMQ_EXTRA_CFLAGS) +-- +2.13.3 + diff --git a/net-libs/zeromq/metadata.xml b/net-libs/zeromq/metadata.xml new file mode 100644 index 0000000..8d747a4 --- /dev/null +++ b/net-libs/zeromq/metadata.xml @@ -0,0 +1,43 @@ + + + + + whissi@gentoo.org + Thomas Deutschmann + + + + sustrik@fastmq.com + Martin Sustrik + + http://zguide.zeromq.org/page:all + https://github.com/zeromq/libzmq/issues + zeromq/zeromq4-1 + zeromq/libzmq + + + The 0MQ lightweight messaging kernel is a library which + extends the standard socket interfaces with features + traditionally provided by specialised messaging middleware + products. 0MQ sockets provide an abstraction of asynchronous + message queues, multiple messaging patterns, message filtering + (subscriptions), seamless access to multiple transport protocols + and more. + + + Reflect ABI of libzmq.so. + + + + Build draft API, which may change at any time without any notice, and + is therefore not recommended for normal use. + + + Build PGM (Pragmatic General Multicast)extention, a protocol for reliable + multicast transport of data over IP networks. + + + Use dev-libs/libsodium for cryptography + + + diff --git a/net-libs/zeromq/zeromq-2.2.0.ebuild b/net-libs/zeromq/zeromq-2.2.0.ebuild new file mode 100644 index 0000000..30d5fa3 --- /dev/null +++ b/net-libs/zeromq/zeromq-2.2.0.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +# NOTES: +# 1- use flag 'pgm' (OpenPGM support) must be masked by profiles for ARM archs; + +EAPI=4 + +inherit autotools + +DESCRIPTION="ZeroMQ is a brokerless messaging kernel with extremely high performance" +HOMEPAGE="http://www.zeromq.org" +SRC_URI="http://download.zeromq.org/${P}.tar.gz" + +LICENSE="LGPL-3" +SLOT="0" +KEYWORDS="amd64 hppa ppc ppc64 x86 ~x86-fbsd ~amd64-linux ~x86-linux" +IUSE="pgm test static-libs" + +RDEPEND="!net-libs/cppzmq" +DEPEND="pgm? ( + virtual/pkgconfig + ~net-libs/openpgm-5.1.118 + ) + || ( sys-apps/util-linux sys-freebsd/freebsd-lib )" + +src_prepare() { + einfo "Removing bundled OpenPGM library" + rm -r "${S}"/foreign/openpgm/libpgm* || die + eautoreconf +} + +src_configure() { + local myconf + use pgm && myconf="--with-system-pgm" || myconf="--without-pgm" + econf \ + $(use_enable static-libs static) \ + $myconf +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + dodoc NEWS README AUTHORS ChangeLog || die "dodoc failed" + doman doc/*.[1-9] || die "doman failed" + + # remove useless .la files + find "${D}" -name '*.la' -delete + + # remove useless .a (only for non static compilation) + use static-libs || find "${D}" -name '*.a' -delete +} diff --git a/net-libs/zeromq/zeromq-3.2.3.ebuild b/net-libs/zeromq/zeromq-3.2.3.ebuild new file mode 100644 index 0000000..1f5b774 --- /dev/null +++ b/net-libs/zeromq/zeromq-3.2.3.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit autotools eutils + +DESCRIPTION="ZeroMQ is a brokerless kernel" +HOMEPAGE="http://www.zeromq.org/" +SRC_URI="http://download.zeromq.org/${P}.tar.gz" + +LICENSE="LGPL-3" +SLOT="0" +KEYWORDS="amd64 arm hppa ppc ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" +IUSE="pgm test static-libs elibc_glibc" + +DEPEND=" + || ( sys-devel/gcc sys-devel/gcc-apple ) + pgm? ( + virtual/pkgconfig + ~net-libs/openpgm-5.1.118 + ) + elibc_glibc? ( sys-apps/util-linux )" +RDEPEND="" + +src_prepare() { + epatch "${FILESDIR}"/${P}-unused-variable.patch + einfo "Removing bundled OpenPGM library" + sed -i 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/g' configure.in || die + rm -r "${S}"/foreign/openpgm/libpgm* || die + # apply effective bit of below commit to fix compilation on Darwin + # https://github.com/zeromq/zeromq3-x/commit/400cbc208a768c4df5039f401dd2688eede6e1ca + sed -i -e '/strndup/d' tests/test_disconnect_inproc.cpp || die + mv configure.{in,ac} || die + eautoreconf +} + +src_configure() { + local myconf + use pgm && myconf="--with-system-pgm" || myconf="--without-pgm" + econf \ + $(use_enable static-libs static) \ + ${myconf} +} + +src_test() { + emake -j1 check +} + +src_install() { + default + doman doc/*.[1-9] + + # remove useless .la files + find "${ED}" -name '*.la' -delete || die + + # remove useless .a (only for non static compilation) + if ! use static-libs; then + find "${ED}" -name '*.a' -delete || die + fi +} diff --git a/net-libs/zeromq/zeromq-3.2.5.ebuild b/net-libs/zeromq/zeromq-3.2.5.ebuild new file mode 100644 index 0000000..4f3efab --- /dev/null +++ b/net-libs/zeromq/zeromq-3.2.5.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit autotools + +DESCRIPTION="ZeroMQ is a brokerless kernel" +HOMEPAGE="http://www.zeromq.org/" +SRC_URI="http://download.zeromq.org/${P}.tar.gz" + +LICENSE="LGPL-3" +SLOT="0/3" +KEYWORDS="amd64 arm hppa ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" +IUSE="pgm test static-libs elibc_glibc" + +DEPEND=" + || ( sys-devel/gcc sys-devel/gcc-apple ) + pgm? ( + virtual/pkgconfig + >=net-libs/openpgm-5.2 + ) + elibc_glibc? ( sys-apps/util-linux )" +RDEPEND="" + +src_prepare() { + einfo "Removing bundled OpenPGM library" + sed -i 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/g' configure.in || die + rm -r "${S}"/foreign/openpgm/libpgm* || die + # apply effective bit of below commit to fix compilation on Darwin + # https://github.com/zeromq/zeromq3-x/commit/400cbc208a768c4df5039f401dd2688eede6e1ca + sed -i -e '/strndup/d' tests/test_disconnect_inproc.cpp || die + mv configure.{in,ac} || die + eautoreconf +} + +src_configure() { + local myconf + use pgm && myconf="--with-system-pgm" || myconf="--without-pgm" + econf \ + $(use_enable static-libs static) \ + ${myconf} +} + +src_test() { + emake -j1 check +} + +src_install() { + default + doman doc/*.[1-9] + + # remove useless .la files + find "${ED}" -name '*.la' -delete || die + + # remove useless .a (only for non static compilation) + if ! use static-libs; then + find "${ED}" -name '*.a' -delete || die + fi +} diff --git a/net-libs/zeromq/zeromq-4.1.1.ebuild b/net-libs/zeromq/zeromq-4.1.1.ebuild new file mode 100644 index 0000000..f1bcf9d --- /dev/null +++ b/net-libs/zeromq/zeromq-4.1.1.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +AUTOTOOLS_AUTORECONF=true + +inherit autotools-utils + +DESCRIPTION="A brokerless kernel" +HOMEPAGE="http://www.zeromq.org/" +SRC_URI="http://download.zeromq.org/${P}.tar.gz" + +LICENSE="LGPL-3" +SLOT="0/4" +KEYWORDS="amd64 arm hppa ia64 ~mips ppc ppc64 x86 ~amd64-linux ~x86-linux" +IUSE="pgm static-libs test" + +RDEPEND=" + dev-libs/libsodium:= + pgm? ( =net-libs/openpgm-5.2.122 )" +DEPEND="${RDEPEND} + sys-apps/util-linux + pgm? ( virtual/pkgconfig )" + +src_prepare() { + einfo "Removing bundled OpenPGM library" + rm -fr "${S}"/foreign/openpgm/libpgm* || die + sed \ + -e '/libzmq_werror=/s:yes:no:g' \ + -i configure.ac || die + autotools-utils_src_prepare +} + +src_configure() { + local myeconfargs=() + use pgm && myeconfargs+=( --with-system-pgm ) || myeconfargs+=( --without-pgm ) + autotools-utils_src_configure +} + +src_test() { + autotools-utils_src_test -j1 +} + +src_install() { + autotools-utils_src_install + + doman doc/*.[1-9] +} diff --git a/net-libs/zeromq/zeromq-4.1.6.ebuild b/net-libs/zeromq/zeromq-4.1.6.ebuild new file mode 100644 index 0000000..7501f5d --- /dev/null +++ b/net-libs/zeromq/zeromq-4.1.6.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit autotools eutils + +DESCRIPTION="A brokerless kernel" +HOMEPAGE="http://www.zeromq.org/" +SRC_URI="https://github.com/zeromq/zeromq4-1/releases/download/v${PV}/${P}.tar.gz" + +LICENSE="LGPL-3" +SLOT="0/5" +KEYWORDS="amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 x86 ~amd64-linux ~x86-linux" +IUSE="pgm static-libs test" + +RDEPEND=" + dev-libs/libsodium:= + pgm? ( =net-libs/openpgm-5.2.122 )" +DEPEND="${RDEPEND} + dev-ruby/asciidoctor + app-text/xmlto + sys-apps/util-linux + pgm? ( virtual/pkgconfig )" + +src_prepare() { + sed \ + -e '/libzmq_werror=/s:yes:no:g' \ + -i configure.ac || die + default + eautoreconf +} + +src_configure() { + local myeconfargs=( + --enable-shared + $(use_enable static-libs static) + --with-relaxed + --with-libsodium + $(use_with pgm) + ) + econf "${myeconfargs[@]}" +} + +src_test() { + # Restricting to one job because multiple tests are using the same port. + # Upstream knows the problem and says it doesn't support parallel test + # execution, see ${S}/INSTALL. + emake -j1 check +} + +src_install() { + default + prune_libtool_files +} diff --git a/net-libs/zeromq/zeromq-4.2.0-r1.ebuild b/net-libs/zeromq/zeromq-4.2.0-r1.ebuild new file mode 100644 index 0000000..8ce59a7 --- /dev/null +++ b/net-libs/zeromq/zeromq-4.2.0-r1.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +inherit autotools + +DESCRIPTION="A brokerless kernel" +HOMEPAGE="http://www.zeromq.org/" +SRC_URI="https://github.com/zeromq/libzmq/releases/download/v${PV}/${P}.tar.gz" + +LICENSE="LGPL-3" +SLOT="0/5" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux" +IUSE="pgm +sodium static-libs test" + +RDEPEND=" + sys-libs/libunwind + sodium? ( dev-libs/libsodium:= ) + pgm? ( =net-libs/openpgm-5.2.122 )" +DEPEND="${RDEPEND} + dev-ruby/asciidoctor + app-text/xmlto + sys-apps/util-linux + pgm? ( virtual/pkgconfig )" + +PATCHES=( + "${FILESDIR}"/${P}-dl-backport.patch +) + +src_prepare() { + sed \ + -e '/libzmq_werror=/s:yes:no:g' \ + -i configure.ac || die + default + eautoreconf +} + +src_configure() { + local myeconfargs=( + --enable-shared + $(use_enable static-libs static) + $(use_with sodium libsodium) + $(use_with pgm) + ) + econf "${myeconfargs[@]}" +} + +src_test() { + # Restricting to one job because multiple tests are using the same port. + # Upstream knows the problem and says it doesn't support parallel test + # execution, see ${S}/INSTALL. + emake -j1 check +} + +src_install() { + default + find "${ED}"usr/lib* -name '*.la' -delete || die +} diff --git a/net-libs/zeromq/zeromq-4.2.1.ebuild b/net-libs/zeromq/zeromq-4.2.1.ebuild new file mode 100644 index 0000000..6ee7724 --- /dev/null +++ b/net-libs/zeromq/zeromq-4.2.1.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +inherit autotools + +DESCRIPTION="A brokerless kernel" +HOMEPAGE="http://www.zeromq.org/" +SRC_URI="https://github.com/zeromq/libzmq/releases/download/v${PV}/${P}.tar.gz" + +LICENSE="LGPL-3" +SLOT="0/5" +KEYWORDS="amd64 arm arm64 hppa ia64 ~mips ppc ppc64 x86 ~amd64-linux ~x86-linux" +IUSE="pgm +sodium static-libs test" + +RDEPEND=" + sys-libs/libunwind + sodium? ( dev-libs/libsodium:= ) + pgm? ( =net-libs/openpgm-5.2.122 )" +DEPEND="${RDEPEND} + dev-ruby/asciidoctor + app-text/xmlto + sys-apps/util-linux + pgm? ( virtual/pkgconfig )" + +src_prepare() { + sed \ + -e '/libzmq_werror=/s:yes:no:g' \ + -i configure.ac || die + default + eautoreconf +} + +src_configure() { + local myeconfargs=( + --enable-shared + $(use_enable static-libs static) + $(use_with sodium libsodium) + $(use_with pgm) + ) + econf "${myeconfargs[@]}" +} + +src_test() { + # Restricting to one job because multiple tests are using the same port. + # Upstream knows the problem and says it doesn't support parallel test + # execution, see ${S}/INSTALL. + emake -j1 check +} + +src_install() { + default + find "${ED}"usr/lib* -name '*.la' -delete || die +} diff --git a/net-libs/zeromq/zeromq-4.2.2-r1.ebuild b/net-libs/zeromq/zeromq-4.2.2-r1.ebuild new file mode 100644 index 0000000..98562c3 --- /dev/null +++ b/net-libs/zeromq/zeromq-4.2.2-r1.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +inherit autotools + +DESCRIPTION="A brokerless kernel" +HOMEPAGE="http://www.zeromq.org/" +SRC_URI="https://github.com/zeromq/libzmq/releases/download/v${PV}/${P}.tar.gz" + +LICENSE="LGPL-3" +SLOT="0/5" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos" +IUSE="pgm +sodium static-libs test elibc_Darwin" + +RDEPEND=" + !elibc_Darwin? ( sys-libs/libunwind ) + sodium? ( dev-libs/libsodium:= ) + pgm? ( =net-libs/openpgm-5.2.122 )" +DEPEND="${RDEPEND} + dev-ruby/asciidoctor + app-text/xmlto + !elibc_Darwin? ( sys-apps/util-linux ) + pgm? ( virtual/pkgconfig )" + +PATCHES=( "${FILESDIR}"/${PN}-4.2.1-disable-experimental-zmq_poll-implementation.patch ) + +src_prepare() { + sed \ + -e '/libzmq_werror=/s:yes:no:g' \ + -i configure.ac || die + default + eautoreconf +} + +src_configure() { + local myeconfargs=( + --enable-shared + $(use_enable static-libs static) + $(use_with sodium libsodium) + $(use_with pgm) + ) + econf "${myeconfargs[@]}" +} + +src_test() { + # Restricting to one job because multiple tests are using the same port. + # Upstream knows the problem and says it doesn't support parallel test + # execution, see ${S}/INSTALL. + emake -j1 check +} + +src_install() { + default + find "${ED}"usr/lib* -name '*.la' -delete || die +} diff --git a/net-libs/zeromq/zeromq-4.2.2-r2.ebuild b/net-libs/zeromq/zeromq-4.2.2-r2.ebuild new file mode 100644 index 0000000..23b6ba4 --- /dev/null +++ b/net-libs/zeromq/zeromq-4.2.2-r2.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +inherit autotools + +DESCRIPTION="A brokerless kernel" +HOMEPAGE="http://www.zeromq.org/" +SRC_URI="https://github.com/zeromq/libzmq/releases/download/v${PV}/${P}.tar.gz" + +LICENSE="LGPL-3" +SLOT="0/5" +KEYWORDS="amd64 arm arm64 hppa ia64 ~mips ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos" +IUSE="doc drafts pgm +sodium static-libs test unwind elibc_Darwin" + +RDEPEND=" + !elibc_Darwin? ( unwind? ( sys-libs/libunwind ) ) + sodium? ( dev-libs/libsodium:= ) + pgm? ( =net-libs/openpgm-5.2.122 )" +DEPEND="${RDEPEND} + !elibc_Darwin? ( sys-apps/util-linux ) + doc? ( + dev-ruby/asciidoctor + app-text/xmlto + ) + pgm? ( virtual/pkgconfig )" + +PATCHES=( "${FILESDIR}"/${PN}-4.2.1-disable-experimental-zmq_poll-implementation.patch + "${FILESDIR}"/${PN}-4.2.2-optional-libunwind.patch ) + +src_prepare() { + sed \ + -e '/libzmq_werror=/s:yes:no:g' \ + -i configure.ac || die + default + eautoreconf +} + +src_configure() { + local myeconfargs=( + --enable-shared + $(use_enable drafts) + $(use_enable static-libs static) + $(use_enable unwind libunwind) + $(use_with sodium libsodium) + $(use_with pgm) + $(use_with doc docs) + ) + econf "${myeconfargs[@]}" +} + +src_test() { + # Restricting to one job because multiple tests are using the same port. + # Upstream knows the problem and says it doesn't support parallel test + # execution, see ${S}/INSTALL. + emake -j1 check +} + +src_install() { + default + find "${ED}"usr/lib* -name '*.la' -delete || die +} diff --git a/net-libs/zeromq/zeromq-4.2.2.ebuild b/net-libs/zeromq/zeromq-4.2.2.ebuild new file mode 100644 index 0000000..0202f7f --- /dev/null +++ b/net-libs/zeromq/zeromq-4.2.2.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +inherit autotools + +DESCRIPTION="A brokerless kernel" +HOMEPAGE="http://www.zeromq.org/" +SRC_URI="https://github.com/zeromq/libzmq/releases/download/v${PV}/${P}.tar.gz" + +LICENSE="LGPL-3" +SLOT="0/5" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux" +IUSE="pgm +sodium static-libs test" + +RDEPEND=" + sys-libs/libunwind + sodium? ( dev-libs/libsodium:= ) + pgm? ( =net-libs/openpgm-5.2.122 )" +DEPEND="${RDEPEND} + dev-ruby/asciidoctor + app-text/xmlto + sys-apps/util-linux + pgm? ( virtual/pkgconfig )" + +src_prepare() { + sed \ + -e '/libzmq_werror=/s:yes:no:g' \ + -i configure.ac || die + default + eautoreconf +} + +src_configure() { + local myeconfargs=( + --enable-shared + $(use_enable static-libs static) + $(use_with sodium libsodium) + $(use_with pgm) + ) + econf "${myeconfargs[@]}" +} + +src_test() { + # Restricting to one job because multiple tests are using the same port. + # Upstream knows the problem and says it doesn't support parallel test + # execution, see ${S}/INSTALL. + emake -j1 check +} + +src_install() { + default + find "${ED}"usr/lib* -name '*.la' -delete || die +} diff --git a/net-libs/zeromq/zeromq-4.2.3.ebuild b/net-libs/zeromq/zeromq-4.2.3.ebuild new file mode 100644 index 0000000..33c5853 --- /dev/null +++ b/net-libs/zeromq/zeromq-4.2.3.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +inherit autotools + +DESCRIPTION="A brokerless kernel" +HOMEPAGE="http://www.zeromq.org/" +SRC_URI="https://github.com/zeromq/libzmq/releases/download/v${PV}/${P}.tar.gz" + +LICENSE="LGPL-3" +SLOT="0/5" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos" +IUSE="doc drafts pgm +sodium static-libs test unwind elibc_Darwin" + +RDEPEND=" + !elibc_Darwin? ( unwind? ( sys-libs/libunwind ) ) + sodium? ( dev-libs/libsodium:= ) + pgm? ( =net-libs/openpgm-5.2.122 )" +DEPEND="${RDEPEND} + !elibc_Darwin? ( sys-apps/util-linux ) + doc? ( + dev-ruby/asciidoctor + app-text/xmlto + ) + pgm? ( virtual/pkgconfig )" + +PATCHES=() + +src_prepare() { + sed \ + -e '/libzmq_werror=/s:yes:no:g' \ + -i configure.ac || die + default + eautoreconf +} + +src_configure() { + local myeconfargs=( + --enable-shared + $(use_enable drafts) + $(use_enable static-libs static) + $(use_enable unwind libunwind) + $(use_with sodium libsodium) + $(use_with pgm) + $(use_with doc docs) + ) + econf "${myeconfargs[@]}" +} + +src_test() { + # Restricting to one job because multiple tests are using the same port. + # Upstream knows the problem and says it doesn't support parallel test + # execution, see ${S}/INSTALL. + emake -j1 check +} + +src_install() { + default + find "${ED}"usr/lib* -name '*.la' -delete || die +} diff --git a/net-libs/zeromq/zeromq-4.2.5.ebuild b/net-libs/zeromq/zeromq-4.2.5.ebuild new file mode 100644 index 0000000..33c5853 --- /dev/null +++ b/net-libs/zeromq/zeromq-4.2.5.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +inherit autotools + +DESCRIPTION="A brokerless kernel" +HOMEPAGE="http://www.zeromq.org/" +SRC_URI="https://github.com/zeromq/libzmq/releases/download/v${PV}/${P}.tar.gz" + +LICENSE="LGPL-3" +SLOT="0/5" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos" +IUSE="doc drafts pgm +sodium static-libs test unwind elibc_Darwin" + +RDEPEND=" + !elibc_Darwin? ( unwind? ( sys-libs/libunwind ) ) + sodium? ( dev-libs/libsodium:= ) + pgm? ( =net-libs/openpgm-5.2.122 )" +DEPEND="${RDEPEND} + !elibc_Darwin? ( sys-apps/util-linux ) + doc? ( + dev-ruby/asciidoctor + app-text/xmlto + ) + pgm? ( virtual/pkgconfig )" + +PATCHES=() + +src_prepare() { + sed \ + -e '/libzmq_werror=/s:yes:no:g' \ + -i configure.ac || die + default + eautoreconf +} + +src_configure() { + local myeconfargs=( + --enable-shared + $(use_enable drafts) + $(use_enable static-libs static) + $(use_enable unwind libunwind) + $(use_with sodium libsodium) + $(use_with pgm) + $(use_with doc docs) + ) + econf "${myeconfargs[@]}" +} + +src_test() { + # Restricting to one job because multiple tests are using the same port. + # Upstream knows the problem and says it doesn't support parallel test + # execution, see ${S}/INSTALL. + emake -j1 check +} + +src_install() { + default + find "${ED}"usr/lib* -name '*.la' -delete || die +} -- cgit v1.2.3-65-gdbad