From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- dev-util/mingw64-runtime/Manifest | 25 +++++ .../files/mingw64-runtime-4.0.1-build.patch | 88 ++++++++++++++++ .../files/mingw64-runtime-4.0.1-winpthreads.patch | 86 +++++++++++++++ ...ingw64-runtime-5.0.2-implicit-fallthrough.patch | 41 ++++++++ .../files/mingw64-runtime-5.0.2-locale.patch | 36 +++++++ dev-util/mingw64-runtime/metadata.xml | 22 ++++ .../mingw64-runtime/mingw64-runtime-3.0.0.ebuild | 78 ++++++++++++++ .../mingw64-runtime/mingw64-runtime-3.1.0.ebuild | 78 ++++++++++++++ .../mingw64-runtime-3.2.0-r1.ebuild | 78 ++++++++++++++ .../mingw64-runtime/mingw64-runtime-4.0.1.ebuild | 112 ++++++++++++++++++++ .../mingw64-runtime/mingw64-runtime-4.0.4.ebuild | 112 ++++++++++++++++++++ .../mingw64-runtime/mingw64-runtime-4.0.6.ebuild | 108 +++++++++++++++++++ .../mingw64-runtime/mingw64-runtime-5.0.1.ebuild | 112 ++++++++++++++++++++ .../mingw64-runtime-5.0.2-r1.ebuild | 114 ++++++++++++++++++++ .../mingw64-runtime-5.0.2-r2.ebuild | 115 +++++++++++++++++++++ .../mingw64-runtime/mingw64-runtime-5.0.2.ebuild | 112 ++++++++++++++++++++ 16 files changed, 1317 insertions(+) create mode 100644 dev-util/mingw64-runtime/Manifest create mode 100644 dev-util/mingw64-runtime/files/mingw64-runtime-4.0.1-build.patch create mode 100644 dev-util/mingw64-runtime/files/mingw64-runtime-4.0.1-winpthreads.patch create mode 100644 dev-util/mingw64-runtime/files/mingw64-runtime-5.0.2-implicit-fallthrough.patch create mode 100644 dev-util/mingw64-runtime/files/mingw64-runtime-5.0.2-locale.patch create mode 100644 dev-util/mingw64-runtime/metadata.xml create mode 100644 dev-util/mingw64-runtime/mingw64-runtime-3.0.0.ebuild create mode 100644 dev-util/mingw64-runtime/mingw64-runtime-3.1.0.ebuild create mode 100644 dev-util/mingw64-runtime/mingw64-runtime-3.2.0-r1.ebuild create mode 100644 dev-util/mingw64-runtime/mingw64-runtime-4.0.1.ebuild create mode 100644 dev-util/mingw64-runtime/mingw64-runtime-4.0.4.ebuild create mode 100644 dev-util/mingw64-runtime/mingw64-runtime-4.0.6.ebuild create mode 100644 dev-util/mingw64-runtime/mingw64-runtime-5.0.1.ebuild create mode 100644 dev-util/mingw64-runtime/mingw64-runtime-5.0.2-r1.ebuild create mode 100644 dev-util/mingw64-runtime/mingw64-runtime-5.0.2-r2.ebuild create mode 100644 dev-util/mingw64-runtime/mingw64-runtime-5.0.2.ebuild (limited to 'dev-util/mingw64-runtime') diff --git a/dev-util/mingw64-runtime/Manifest b/dev-util/mingw64-runtime/Manifest new file mode 100644 index 000000000000..7a36a8d2278c --- /dev/null +++ b/dev-util/mingw64-runtime/Manifest @@ -0,0 +1,25 @@ +AUX mingw64-runtime-4.0.1-build.patch 2981 SHA256 35e3dcd14c23241a1eedcaaad25f99f6e345fde5e1d950f697e4e0f0a288ec6c SHA512 6495f898b736188800b1fc02956cfe021c7668a2d38d8acabc2d035e90aa1d72d761ae15141396f8d3dad8ac7111dcaac5fdb0c59c0d34bd2d820e54ab30c89d WHIRLPOOL 97ed9c6d118d75432ef322a7e1234e53cdcca76b4686875e482356cb69ee04f59593e23c74add37ae33bb71326c57e8494f2557e6e375d68303eb4776cb1b268 +AUX mingw64-runtime-4.0.1-winpthreads.patch 3142 SHA256 fd9039cb2ff117a661c15a70868af66c44e38206acd158cffa3ed6767939aad8 SHA512 5a4e34257f0eb9f3f9b51677459111b08b389dbebf3f29d30d99dcccd06e41bf1b82d6d0a1ce01fbfa5c0833bff205679203a0146d77b5416ef277c4c047a492 WHIRLPOOL 4dfdc48f45f122869734f22acd75549af9815e472184cb0cb3f87fc8b0f4389f9799af17702c0add54ef93a50e58e3a37141e6f0636ca29a7ceb78a49bc12df5 +AUX mingw64-runtime-5.0.2-implicit-fallthrough.patch 1329 SHA256 4413a9bb9a1d29523f431afdb2f1e22eb5b51673315391dceef1fe93075106a4 SHA512 9de46f074d42fd7dcc7b9ce01343eae22d803a8f20662b57e309aad5c7f349552048fe2ab39983b5f7e4b7b703617e6e884ef2714c9a67ea47129d4ae6dd1f8b WHIRLPOOL 3bedd399bfe152801133fdebd72c09bad5fc86d1314fce7cc34433479e7df86b01920f5d774ea598170fe2c9e80ecf6efc2591a2ddbd6a6235e27146d5f8e2b9 +AUX mingw64-runtime-5.0.2-locale.patch 595 SHA256 450f0ae42d30a66ae5aaa356227f43467a646d241fd7f3978368ba6b782e5136 SHA512 82d1fc293be628f8e967a108001d0e04c53e6c4581be2aa954e05c07e52473a6ffb4cedffc1f27202ea607316e6d38e64997ccc8d3eaee44125ec795d9a30553 WHIRLPOOL c9d151e39c688ffdc520e218229d3ffb3759f2fdfe718e66680506d2ffc2a4580004cf72a43fe8e50b0956a35f3fd55a9cf2559225019310f80b5da2577b0993 +DIST mingw-w64-v3.0.0.tar.bz2 7012419 SHA256 ffd381a53cb774843667ccdaeb3a23f86be77b0344355e1a5947b3ceb8343c67 SHA512 7fc438908328ae4429f79dfaaae92bc7e88bc0f46517bdebdc3c45b3e8062ff6c27f166eb51103c2d49aae01851d82f33e0b031c8d98198baaeb119e19221989 WHIRLPOOL ea2820ab24dcd6f35fab0404b2bd26273b117731bb25e2e3ef753e9a3a9b6661564605cdae7ed5e6e4f9fc6b3c3d000761fa44afa19f79b5d6deaebca44f709c +DIST mingw-w64-v3.1.0.tar.bz2 7021162 SHA256 ece7a7e7e1ab5e25d5ce469f8e4de7223696146fffa71c16e2a9b017d0e017d2 SHA512 9f418694aa0f072e2f08766fcee8929ac3022187750028781336243e050495b9709bb9ae87b4a83a8e9d3856478c525d8636277a4c219e282421b269dafa68d8 WHIRLPOOL 90a3a7056df7c4da2e605da1578e65b16e0f831370d8b1d399fed48945828604a94f9402b2d53bc4ca26623f1d34e6c45c862bf1f7590ddf9325fd4a053a18fb +DIST mingw-w64-v3.2.0.tar.bz2 7053254 SHA256 78a0de610829a1145ae12c4a29603344963a0b8156ba39a9a31a0e79c3b29142 SHA512 dd483bcf7ba0e698a33a0b02a811b181e601cd344b87dafd0f6c477f68efb9a617a4109046fd06735242623f87833cf97688f057583e1378d6d84e7818927593 WHIRLPOOL 99ba5ddaa99c40309d12d75d3953deaf9cc31280ad2446793d1525702963edd1b33e91053e99bdfd06d37980049d30b7fb4e9f3a5358f8277c2fabe587c56037 +DIST mingw-w64-v4.0.1.tar.bz2 10803072 SHA256 89d2524a071b6337dfd9f3b6e6f46d8002b2633f928c833dc4e873a13e045b17 SHA512 a216a09a460c56c29208aee1e1cdb428e856f9c8d59dd399723ccf6d549368f0a13a6aacb046d211ddec7c0a1f1c227d5dd599e4f0c33ba4b6d9c92bd0a7fa1b WHIRLPOOL e021031e2820e918fe0f291624335fadc08641e811f6cf19d45b1586d2ac96c6bff4fb936bcd154a7b48711db9f5faabd27bfdced3a38073b4a20c8471a91915 +DIST mingw-w64-v4.0.4.tar.bz2 10812375 SHA256 89356a0aa8cf9f8b9dc8d92bc8dd01a131d4750c3acb30c6350a406316c42199 SHA512 06de6b592f776676184a9c50c63eb105c82a912965dee5d8217f9b5b325e0258c188f5d7d5e28aaeacf7bad44ce5d36bd837b9f1cbb91358754787738fb15146 WHIRLPOOL ff557b2aff821c1833ab6d5fdade4f256b71cb37e84a476d3e5a4cfe13f60db68c336d7e72f6e3eb13b3d127e1bac2cbfdde160ea2f7016867f10efa6a02914b +DIST mingw-w64-v4.0.6.tar.bz2 10853871 SHA256 0c407394b0d8635553f4fbca674cdfe446aac223e90b4010603d863e4bdd015c SHA512 c9ec75b10fe40d80e620b569ca8f452b1f78e9e4dd45ad087a2b69297dc661d06aa30255ea310786f28c042256c35a1d3e709ff7ea8bc19e7f4ea914c120f020 WHIRLPOOL 69015094c14f66e1102d343b220eb17cc245f24a66c1a39ffced2f155cae84315eabb9a843bd9aa8e7874a12e34297a4f7cfff06447972a17beecf070bc70b08 +DIST mingw-w64-v5.0.1.tar.bz2 9160780 SHA256 9bb5cd7df78817377841a63555e73596dc0af4acbb71b09bd48de7cf24aeadd2 SHA512 73b746f227930597a97f117cf9f9aa19ddabb6090907cf6850864cf30089e5d6e1cd07e257b3b0b9ae0ac762cb24a6f5acf7336c9be48760c975ac038569dcfa WHIRLPOOL 26f3e52a5fb0a0332861a919d2b913dcb3e8dceb26bb174e85830282229823366918132c5db22a5d294167ba3c54c6fd461b663ff0ab92373f46519149817e98 +DIST mingw-w64-v5.0.2.tar.bz2 9107077 SHA256 5f46e80ff1a9102a37a3453743dae9df98262cba7c45306549ef7432cfd92cfd SHA512 430065a822afb9901219b1f86ea221ae70ef7820ea298f51828bf1689a014115dade967a806388b7ee3ed1ea1d6c53970514ec64d0185b5024523093d9e96060 WHIRLPOOL fdc7b1f647679b2761cdb306f5400fdcdbcdd64de4aeb6d3d3bd4b31aab81ad5f81c7485c377fa8100da0ebe7e0b53a83674443d61c986df27a616694bb512d6 +EBUILD mingw64-runtime-3.0.0.ebuild 1813 SHA256 bc4b91670d4970aa1cd9a5a0feaf9a2b3f34064214d83c44898843fffc3c361c SHA512 731699be6c251ab07e7e9f82ec0d477ae1b186c595eabbc9d9a7766e2fdecb8799475772d5e51fab134ec43f76e8da9b50fd3fdef68d90dda585223275bfb643 WHIRLPOOL e7352f6f9091703a49c6b508dc80112c416e9ba0c0dc5d2ddfa73968eafce510c03fb89f5b719520973e6f60fee00aed129b05f477ed74599e1b5bf5cc503ca3 +EBUILD mingw64-runtime-3.1.0.ebuild 1813 SHA256 bc4b91670d4970aa1cd9a5a0feaf9a2b3f34064214d83c44898843fffc3c361c SHA512 731699be6c251ab07e7e9f82ec0d477ae1b186c595eabbc9d9a7766e2fdecb8799475772d5e51fab134ec43f76e8da9b50fd3fdef68d90dda585223275bfb643 WHIRLPOOL e7352f6f9091703a49c6b508dc80112c416e9ba0c0dc5d2ddfa73968eafce510c03fb89f5b719520973e6f60fee00aed129b05f477ed74599e1b5bf5cc503ca3 +EBUILD mingw64-runtime-3.2.0-r1.ebuild 1813 SHA256 bc4b91670d4970aa1cd9a5a0feaf9a2b3f34064214d83c44898843fffc3c361c SHA512 731699be6c251ab07e7e9f82ec0d477ae1b186c595eabbc9d9a7766e2fdecb8799475772d5e51fab134ec43f76e8da9b50fd3fdef68d90dda585223275bfb643 WHIRLPOOL e7352f6f9091703a49c6b508dc80112c416e9ba0c0dc5d2ddfa73968eafce510c03fb89f5b719520973e6f60fee00aed129b05f477ed74599e1b5bf5cc503ca3 +EBUILD mingw64-runtime-4.0.1.ebuild 2584 SHA256 c05d0a8716707e34922cf62a5afa854b1b4df3e45f05f49689174a2f1b589475 SHA512 018a0bc7b950c7899251ed53cfb6e7e4b8253a4e194868d49720db4be3dfaeb84b8eadadc0bfd3a588258c22b6255a7618a2b138003e04fdf518d06422ea982b WHIRLPOOL a94366439f9641e8975d12be46a5376d292ce651bf9cd5ce3458b70e8077032e3d582a6ced331cd157d52270076dcc2ca65292422d9a4a3b361e3d0edacebe92 +EBUILD mingw64-runtime-4.0.4.ebuild 2598 SHA256 a839964176b77dc469a157d6feff0fb0e029545bb7868535b6735c1296a60218 SHA512 3d5b65cd965e6ac759d3af02369fcdb8dbc50b699bbc9e2e07ece58d230327533deae68d3cd63844a1905d38e3b9df533069a9e1aa4db59141065c288a48ff97 WHIRLPOOL 64f73a7c10e8a67a24ac6b3caf9de01332bc6428dd7af4e09dd6a9862b5b6d58021cfdc28fdc7f1a6f7790ba7f86630df6972c1e47379181e6a96a38b01162ef +EBUILD mingw64-runtime-4.0.6.ebuild 2552 SHA256 f34598229dbd2e33de8d60331870349dc081154a560cf3a3ad26f851d64b4be6 SHA512 b3ea1286a87ea536db49b8acf566286feda5a352a5a71d8d4fa49a630161f6a70fa8fa9776736045c1a202ab1546848b2d3a96fdbdbe0cce46671746f821f1a7 WHIRLPOOL 05f2a0415986d3b5d12d227819ea691d2fc9528ffd1050ea51d3504f3091095716b1b53ebc79acc1a4e4047ae25ee4ee4f752564ff3e1ad0a61ef28cc3dfd65b +EBUILD mingw64-runtime-5.0.1.ebuild 2560 SHA256 c68fc9b2a61683928eba791e8debf438ed4d35d4dd8030e04d86930e281f57fd SHA512 a701ebddba123544e6c1854beac891ec1104d5bc3c5dbf151d0ed3c1be7e05a13a18885d0c9f5f74cb8e5f615cf30d084692e28770a57bc749a8504a36328392 WHIRLPOOL c2ce5b060706a246946517b39dfac4e54812144d9041c84a0789b5e99e2d2d33c5efa33fe7997e354c82240ae57788d5a68fd907d4108a926f6540b30dcb9779 +EBUILD mingw64-runtime-5.0.2-r1.ebuild 2651 SHA256 a9b7e5f223757af9fe5dd6a4c3a99f174a38a60a84ad9568a4ee090e2be55796 SHA512 f8c0fd5cc01431016675bf3831488e5852c29d9a0621216842f72b2bef1bdc57585b98885913d7c859a4aa8de01d1294a65ff1f7bd3224c691db7208d96946fc WHIRLPOOL 4b3f116213d58b19765579ba2e4af1b71448166e03bb9aed9d9916b252af12b5c390855fc58a1955be15aa5b17b525461c92ba5970a89f1b95aa56369cf913ec +EBUILD mingw64-runtime-5.0.2-r2.ebuild 2691 SHA256 08fae1bbb881fda9c284ce4e3644a91d297538f98f92bd48be3df8c3d46543f4 SHA512 33615d4db2e4fe13bc0a63e3b84445392133edbac907514dc41a0bc29f82be0ce54c837bd0dfd6c1872e74f89055cdc3d2b7989f6912f3d8f37e3ffcc72b3106 WHIRLPOOL aede15cb662746ab21535000647aee9f8a7ff66e4fc8c36f550127541e95dd5a2f84fe61dc138c14e65af2521c23838c4cc86b9c67ebe1a724ba8af18505a4a2 +EBUILD mingw64-runtime-5.0.2.ebuild 2560 SHA256 c68fc9b2a61683928eba791e8debf438ed4d35d4dd8030e04d86930e281f57fd SHA512 a701ebddba123544e6c1854beac891ec1104d5bc3c5dbf151d0ed3c1be7e05a13a18885d0c9f5f74cb8e5f615cf30d084692e28770a57bc749a8504a36328392 WHIRLPOOL c2ce5b060706a246946517b39dfac4e54812144d9041c84a0789b5e99e2d2d33c5efa33fe7997e354c82240ae57788d5a68fd907d4108a926f6540b30dcb9779 +MISC ChangeLog 3707 SHA256 9003c6e0efa68c344a559d5f47dde2ec8acd29f05fb70d91dd728fae37295f6b SHA512 3923841966d2653e0ddaec0be18a3f258757f1c2d759049536ec85292ab1e82673448b2633ed97a42e6668f30d589294c7dcd16e2c4d634b0ba933c836dc8f05 WHIRLPOOL 7725b8d74d5ea0ef06c1cb577f56609bdef2a6f8baf287473d753a895ab02642052f056df51a1e3efa9c2cf4f1c15fd70c97a905f6da5cce650f339414b75898 +MISC ChangeLog-2015 3670 SHA256 7cd9976de775f8d4c760e6860af327fd3ebf5e8a0e104d364c3ad62decf7a352 SHA512 d514d50ad706d755be69f4821cc092a8b73f614526d372437b95c34b71ce181e934b10c4d44ee1ad7727c3c68a0067ba2d3b956f66c16f3ae5602a50472181e8 WHIRLPOOL 55cf99587928e8fbba9ee6c79b70ded995b73fdd01174d95bb767c1de3381905da1bf3c344b4f6b583c53be1a512e594ab3a3c51c604137c9be5cee79258b172 +MISC metadata.xml 544 SHA256 f3da93654e01312e7805a426a62337a7bc1baa836f3ca4e2df127bb8e9867ca1 SHA512 297a90e704de81f41a4f29871f96bed47aa00c703e79fd825b3a06ab8850fe67896c66dee2603f86cd6596a0c5cbd533c87cb94c1c674714f65767954341a3c8 WHIRLPOOL 41f2a919c459fc2b7c6d0a3d0823ebb68faa846b69ae776a1aea912eadcc1511601a67d966a01a9dbc52f5ed6e0df7402be696706d0730050e4f93e88a68293c diff --git a/dev-util/mingw64-runtime/files/mingw64-runtime-4.0.1-build.patch b/dev-util/mingw64-runtime/files/mingw64-runtime-4.0.1-build.patch new file mode 100644 index 000000000000..6461b98e5044 --- /dev/null +++ b/dev-util/mingw64-runtime/files/mingw64-runtime-4.0.1-build.patch @@ -0,0 +1,88 @@ +From 67434f57cbb5aba791e9ca973a86859e0736f829 Mon Sep 17 00:00:00 2001 +From: Alon Bar-Lev +Date: Mon, 4 May 2015 21:31:10 +0300 +Subject: [PATCH 2/2] build: autoconf: enable multiple tools and libs + +this somewhat reduces the error checking, but makes code and usage nicer. + +Signed-off-by: Alon Bar-Lev +--- + configure.ac | 55 ++++++++++++------------------------------------------- + 1 file changed, 12 insertions(+), 43 deletions(-) + +diff --git a/configure.ac b/configure.ac +index 468d1b1..1b59821 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -56,32 +56,12 @@ AC_ARG_WITH([libraries], + [Build the extra mingw-w64 libs, where ARG is one of libmangle, pseh, winpthreads, or all])], + [], + [with_libraries=no]) +-AS_CASE([$with_libraries], +- [yes|all],[ +- with_libraries="libmangle,pseh,winpthreads" +- with_libraries_winpthreads=yes +- with_libraries_mangle=yes +- with_libraries_pseh=yes], +- [libmangle],[ +- with_libraries="libmangle" +- with_libraries_winpthreads=no +- with_libraries_mangle=yes +- with_libraries_pseh=no], +- [pseh],[ +- with_libraries="pseh" +- with_libraries_winpthreads=no +- with_libraries_mangle=no +- with_libraries_pseh=yes], +- [winpthreads],[ +- with_libraries="winpthreads" +- with_libraries_winpthreads=yes +- with_libraries_mangle=no +- with_libraries_pseh=no], +- [no],[ +- with_libraries_winpthreads=no +- with_libraries_mangle=no +- with_libraries_pseh=no], +- [MW64_OPTION_ERROR([with-libraries])]) ++for l in winpthreads mangle pseh; do ++ res=`echo "${with_libraries}" | grep $l > /dev/null && echo yes || echo no` ++ AS_CASE([$with_libraries], ++ [all|yes],[res=yes]) ++ AS_VAR_COPY([with_libraries_$l], [res]) ++done + AM_CONDITIONAL([LIBRARIES_MANGLE],[test "x$with_libraries_mangle" = xyes]) + AM_CONDITIONAL([LIBRARIES_PSEH],[test "x$with_libraries_pseh" = xyes]) + AM_CONDITIONAL([LIBRARIES_WINPTHREADS],[test "x$with_libraries_winpthreads" = xyes]) +@@ -96,23 +76,12 @@ AC_ARG_WITH([tools], + [Build the extra mingw-w64 tools, where ARG is one of gendef, genidl, or all])], + [], + [with_tools=no]) +-AS_CASE([$with_tools], +- [yes|all],[ +- with_tools="gendef,genidl" +- with_tools_gendef=yes +- with_tools_genidl=yes], +- [gendef],[ +- with_tools="gendef" +- with_tools_gendef=yes +- with_tools_genidl=no], +- [genidl],[ +- with_tools="genidl" +- with_tools_gendef=no +- with_tools_genidl=yes], +- [no],[ +- with_tools_gendef=no +- with_tools_genidl=no], +- [MW64_OPTION_ERROR([with-tools])]) ++for t in gendef genidl; do ++ res=`echo "${with_tools}" | grep $t > /dev/null && echo yes || echo no` ++ AS_CASE([$with_tools], ++ [all|yes],[res=yes]) ++ AS_VAR_COPY([with_tools_$t], [res]) ++done + AM_CONDITIONAL([TOOLS_GENDEF],[test "x$with_tools_gendef" = xyes]) + AM_CONDITIONAL([TOOLS_GENIDL],[test "x$with_tools_genidl" = xyes]) + AM_COND_IF([TOOLS_GENDEF],[AC_CONFIG_SUBDIRS([mingw-w64-tools/gendef])]) +-- +2.3.6 + diff --git a/dev-util/mingw64-runtime/files/mingw64-runtime-4.0.1-winpthreads.patch b/dev-util/mingw64-runtime/files/mingw64-runtime-4.0.1-winpthreads.patch new file mode 100644 index 000000000000..0d3e59dc9dd5 --- /dev/null +++ b/dev-util/mingw64-runtime/files/mingw64-runtime-4.0.1-winpthreads.patch @@ -0,0 +1,86 @@ +From 0adec5d0e1c65fc4ce4f84f3d4bb6738e923e1de Mon Sep 17 00:00:00 2001 +From: Alon Bar-Lev +Date: Mon, 4 May 2015 20:39:52 +0300 +Subject: [PATCH 1/2] build: autoconf: support winpthreads library + +Signed-off-by: Alon Bar-Lev +--- + Makefile.am | 6 +++++- + configure.ac | 15 +++++++++++++-- + 2 files changed, 18 insertions(+), 3 deletions(-) + +diff --git a/Makefile.am b/Makefile.am +index 26a7606..308b6fd 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -14,6 +14,10 @@ if LIBRARIES_PSEH + MAYBE_LIBRARIES_PSEH = mingw-w64-libraries/pseh + endif + ++if LIBRARIES_WINPTHREADS ++ MAYBE_LIBRARIES_WINPTHREADS = mingw-w64-libraries/winpthreads ++endif ++ + if TOOLS_GENDEF + MAYBE_TOOLS_GENDEF = mingw-w64-tools/gendef + endif +@@ -22,7 +26,7 @@ if TOOLS_GENIDL + MAYBE_TOOLS_GENIDL = mingw-w64-tools/genidl + endif + +-SUBDIRS = $(MAYBE_HEADER) $(MAYBE_CRT) $(MAYBE_LIBRARIES_MANGLE) $(MAYBE_LIBRARIES_PSEH) $(MAYBE_TOOLS_GENDEF) $(MAYBE_TOOLS_GENIDL) ++SUBDIRS = $(MAYBE_HEADER) $(MAYBE_CRT) $(MAYBE_LIBRARIES_MANGLE) $(MAYBE_LIBRARIES_PSEH) $(MAYBE_LIBRARIES_WINPTHREADS) $(MAYBE_TOOLS_GENDEF) $(MAYBE_TOOLS_GENIDL) + + DISTCHECK_CONFIGURE_FLAGS = --with-headers --with-crt --with-libraries=all --with-tools=all + +diff --git a/configure.ac b/configure.ac +index 4bb3926..468d1b1 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -53,30 +53,41 @@ AC_MSG_RESULT([$with_crt]) + AC_MSG_CHECKING([whether to build the optional libraries]) + AC_ARG_WITH([libraries], + [AS_HELP_STRING([--with-libraries=ARG], +- [Build the extra mingw-w64 libs, where ARG is one of libmangle, pseh, or all])], ++ [Build the extra mingw-w64 libs, where ARG is one of libmangle, pseh, winpthreads, or all])], + [], + [with_libraries=no]) + AS_CASE([$with_libraries], + [yes|all],[ +- with_libraries="libmangle,pseh" ++ with_libraries="libmangle,pseh,winpthreads" ++ with_libraries_winpthreads=yes + with_libraries_mangle=yes + with_libraries_pseh=yes], + [libmangle],[ + with_libraries="libmangle" ++ with_libraries_winpthreads=no + with_libraries_mangle=yes + with_libraries_pseh=no], + [pseh],[ + with_libraries="pseh" ++ with_libraries_winpthreads=no + with_libraries_mangle=no + with_libraries_pseh=yes], ++ [winpthreads],[ ++ with_libraries="winpthreads" ++ with_libraries_winpthreads=yes ++ with_libraries_mangle=no ++ with_libraries_pseh=no], + [no],[ ++ with_libraries_winpthreads=no + with_libraries_mangle=no + with_libraries_pseh=no], + [MW64_OPTION_ERROR([with-libraries])]) + AM_CONDITIONAL([LIBRARIES_MANGLE],[test "x$with_libraries_mangle" = xyes]) + AM_CONDITIONAL([LIBRARIES_PSEH],[test "x$with_libraries_pseh" = xyes]) ++AM_CONDITIONAL([LIBRARIES_WINPTHREADS],[test "x$with_libraries_winpthreads" = xyes]) + AM_COND_IF([LIBRARIES_MANGLE],[AC_CONFIG_SUBDIRS([mingw-w64-libraries/libmangle])]) + AM_COND_IF([LIBRARIES_PSEH],[AC_CONFIG_SUBDIRS([mingw-w64-libraries/pseh])]) ++AM_COND_IF([LIBRARIES_WINPTHREADS],[AC_CONFIG_SUBDIRS([mingw-w64-libraries/winpthreads])]) + AC_MSG_RESULT([$with_libraries]) + + AC_MSG_CHECKING([whether to build the optional tools]) +-- +2.3.6 + diff --git a/dev-util/mingw64-runtime/files/mingw64-runtime-5.0.2-implicit-fallthrough.patch b/dev-util/mingw64-runtime/files/mingw64-runtime-5.0.2-implicit-fallthrough.patch new file mode 100644 index 000000000000..859e00243d33 --- /dev/null +++ b/dev-util/mingw64-runtime/files/mingw64-runtime-5.0.2-implicit-fallthrough.patch @@ -0,0 +1,41 @@ +diff --git a/mingw-w64-tools/gendef/src/gendef.c b/mingw-w64-tools/gendef/src/gendef.c +index a935abfe..cefdd8cb 100644 +--- a/mingw-w64-tools/gendef/src/gendef.c ++++ b/mingw-w64-tools/gendef/src/gendef.c +@@ -1031,13 +1031,16 @@ redo_switch: + PRDEBUG(" 0x%x illegal ", (unsigned int) b); + #endif + *aCode=c_ill; return 0; +- case c_4: sz++; +- case c_3: sz++; +- case c_lb: +- case c_2: sz++; +- case c_retn: case c_retf: +- case c_iret: case c_int3: +- case c_ad: case c_op: ++ case c_4: sz++; // fallthrough ++ case c_3: sz++; // fallthrough ++ case c_lb: // fallthrough ++ case c_2: sz++; // fallthrough ++ case c_retn: // fallthrough ++ case c_retf: // fallthrough ++ case c_iret: // fallthrough ++ case c_int3: // fallthrough ++ case c_ad: // fallthrough ++ case c_op: // fallthrough + case c_1: *aCode=tb1; return sz; + case c_lv: + if (oper_mode) sz+=4; +diff --git a/mingw-w64-tools/genpeimg/src/genpeimg.c b/mingw-w64-tools/genpeimg/src/genpeimg.c +index b2430bbc..6a37b1a0 100644 +--- a/mingw-w64-tools/genpeimg/src/genpeimg.c ++++ b/mingw-w64-tools/genpeimg/src/genpeimg.c +@@ -203,7 +203,7 @@ pass_args (int argc, char **argv) + goto error_point; + case 'h': + if (h[2] == 0) +- show_usage (); ++ show_usage (); // fallthrough + default: + error_point: + fprintf (stderr, "Unknown option ,%s'\n", h); diff --git a/dev-util/mingw64-runtime/files/mingw64-runtime-5.0.2-locale.patch b/dev-util/mingw64-runtime/files/mingw64-runtime-5.0.2-locale.patch new file mode 100644 index 000000000000..a7a0a09dc162 --- /dev/null +++ b/dev-util/mingw64-runtime/files/mingw64-runtime-5.0.2-locale.patch @@ -0,0 +1,36 @@ +--- a/mingw-w64-crt/lib32/msvcrt.def.in ++++ b/mingw-w64-crt/lib32/msvcrt.def.in +@@ -138,6 +138,7 @@ _copysign + _cprintf + _cputs + _creat ++_create_locale + _cscanf + _ctype DATA + _cwait +@@ -192,6 +193,7 @@ _fpieee_flt + _fpreset DATA + _fputchar + _fputwchar ++_free_locale + _fsopen + _fstat + _fstat32 == _fstat +--- a/mingw-w64-crt/lib64/msvcrt.def.in ++++ b/mingw-w64-crt/lib64/msvcrt.def.in +@@ -240,6 +240,7 @@ _cprintf_p_l + _cputs + _cputws + _creat ++_create_locale + _cscanf + _cscanf_l + _cscanf_s +@@ -315,6 +316,7 @@ _fputchar + _fputwchar + _fscanf_l + _fscanf_s_l ++_free_locale + _fsopen + _fstat + _fstat64 diff --git a/dev-util/mingw64-runtime/metadata.xml b/dev-util/mingw64-runtime/metadata.xml new file mode 100644 index 000000000000..5d6c0c23c0d6 --- /dev/null +++ b/dev-util/mingw64-runtime/metadata.xml @@ -0,0 +1,22 @@ + + + + + toolchain@gentoo.org + Gentoo Toolchain Project + + + + Install idl files. + + + Build extra libraries. + + + Build extra tools. + + + + mingw-w64 + + diff --git a/dev-util/mingw64-runtime/mingw64-runtime-3.0.0.ebuild b/dev-util/mingw64-runtime/mingw64-runtime-3.0.0.ebuild new file mode 100644 index 000000000000..ce8f87cddc9c --- /dev/null +++ b/dev-util/mingw64-runtime/mingw64-runtime-3.0.0.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +export CBUILD=${CBUILD:-${CHOST}} +export CTARGET=${CTARGET:-${CHOST}} +if [[ ${CTARGET} == ${CHOST} ]] ; then + if [[ ${CATEGORY} == cross-* ]] ; then + export CTARGET=${CATEGORY#cross-} + fi +fi + +inherit flag-o-matic eutils + +DESCRIPTION="Free Win64 runtime and import library definitions" +HOMEPAGE="http://mingw-w64.sourceforge.net/" +SRC_URI="mirror://sourceforge/mingw-w64/mingw-w64/mingw-w64-release/mingw-w64-v${PV}.tar.bz2" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="crosscompile_opts_headers-only idl" +RESTRICT="strip" + +S="${WORKDIR}/mingw-w64-v${PV}" + +is_crosscompile() { + [[ ${CHOST} != ${CTARGET} ]] +} +just_headers() { + use crosscompile_opts_headers-only && [[ ${CHOST} != ${CTARGET} ]] +} + +pkg_setup() { + if [[ ${CBUILD} == ${CHOST} ]] && [[ ${CHOST} == ${CTARGET} ]] ; then + die "Invalid configuration" + fi +} + +src_configure() { + local extra_conf=() + + if just_headers; then + extra_conf+=( --without-crt ) + else + extra_conf+=( --with-crt ) + fi + + case ${CTARGET} in + x86_64*) extra_conf+=( --disable-lib32 --enable-lib64 ) ;; + i?86*) extra_conf+=( --enable-lib32 --disable-lib64 ) ;; + *) die "Unsupported ${CTARGET}" ;; + esac + + CHOST=${CTARGET} strip-unsupported-flags + CHOST=${CTARGET} econf \ + --prefix=/usr/${CTARGET} \ + --includedir=/usr/${CTARGET}/usr/include \ + --with-headers \ + --enable-sdk \ + $(use_enable idl) \ + "${extra_conf[@]}" +} + +src_install() { + default + + if is_crosscompile ; then + # gcc is configured to look at specific hard-coded paths for mingw #419601 + dosym usr /usr/${CTARGET}/mingw + dosym usr /usr/${CTARGET}/${CTARGET} + dosym usr/include /usr/${CTARGET}/sys-include + fi + + env -uRESTRICT CHOST=${CTARGET} prepallstrip + rm -rf "${ED}/usr/share" +} diff --git a/dev-util/mingw64-runtime/mingw64-runtime-3.1.0.ebuild b/dev-util/mingw64-runtime/mingw64-runtime-3.1.0.ebuild new file mode 100644 index 000000000000..ce8f87cddc9c --- /dev/null +++ b/dev-util/mingw64-runtime/mingw64-runtime-3.1.0.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +export CBUILD=${CBUILD:-${CHOST}} +export CTARGET=${CTARGET:-${CHOST}} +if [[ ${CTARGET} == ${CHOST} ]] ; then + if [[ ${CATEGORY} == cross-* ]] ; then + export CTARGET=${CATEGORY#cross-} + fi +fi + +inherit flag-o-matic eutils + +DESCRIPTION="Free Win64 runtime and import library definitions" +HOMEPAGE="http://mingw-w64.sourceforge.net/" +SRC_URI="mirror://sourceforge/mingw-w64/mingw-w64/mingw-w64-release/mingw-w64-v${PV}.tar.bz2" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="crosscompile_opts_headers-only idl" +RESTRICT="strip" + +S="${WORKDIR}/mingw-w64-v${PV}" + +is_crosscompile() { + [[ ${CHOST} != ${CTARGET} ]] +} +just_headers() { + use crosscompile_opts_headers-only && [[ ${CHOST} != ${CTARGET} ]] +} + +pkg_setup() { + if [[ ${CBUILD} == ${CHOST} ]] && [[ ${CHOST} == ${CTARGET} ]] ; then + die "Invalid configuration" + fi +} + +src_configure() { + local extra_conf=() + + if just_headers; then + extra_conf+=( --without-crt ) + else + extra_conf+=( --with-crt ) + fi + + case ${CTARGET} in + x86_64*) extra_conf+=( --disable-lib32 --enable-lib64 ) ;; + i?86*) extra_conf+=( --enable-lib32 --disable-lib64 ) ;; + *) die "Unsupported ${CTARGET}" ;; + esac + + CHOST=${CTARGET} strip-unsupported-flags + CHOST=${CTARGET} econf \ + --prefix=/usr/${CTARGET} \ + --includedir=/usr/${CTARGET}/usr/include \ + --with-headers \ + --enable-sdk \ + $(use_enable idl) \ + "${extra_conf[@]}" +} + +src_install() { + default + + if is_crosscompile ; then + # gcc is configured to look at specific hard-coded paths for mingw #419601 + dosym usr /usr/${CTARGET}/mingw + dosym usr /usr/${CTARGET}/${CTARGET} + dosym usr/include /usr/${CTARGET}/sys-include + fi + + env -uRESTRICT CHOST=${CTARGET} prepallstrip + rm -rf "${ED}/usr/share" +} diff --git a/dev-util/mingw64-runtime/mingw64-runtime-3.2.0-r1.ebuild b/dev-util/mingw64-runtime/mingw64-runtime-3.2.0-r1.ebuild new file mode 100644 index 000000000000..ce8f87cddc9c --- /dev/null +++ b/dev-util/mingw64-runtime/mingw64-runtime-3.2.0-r1.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +export CBUILD=${CBUILD:-${CHOST}} +export CTARGET=${CTARGET:-${CHOST}} +if [[ ${CTARGET} == ${CHOST} ]] ; then + if [[ ${CATEGORY} == cross-* ]] ; then + export CTARGET=${CATEGORY#cross-} + fi +fi + +inherit flag-o-matic eutils + +DESCRIPTION="Free Win64 runtime and import library definitions" +HOMEPAGE="http://mingw-w64.sourceforge.net/" +SRC_URI="mirror://sourceforge/mingw-w64/mingw-w64/mingw-w64-release/mingw-w64-v${PV}.tar.bz2" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="crosscompile_opts_headers-only idl" +RESTRICT="strip" + +S="${WORKDIR}/mingw-w64-v${PV}" + +is_crosscompile() { + [[ ${CHOST} != ${CTARGET} ]] +} +just_headers() { + use crosscompile_opts_headers-only && [[ ${CHOST} != ${CTARGET} ]] +} + +pkg_setup() { + if [[ ${CBUILD} == ${CHOST} ]] && [[ ${CHOST} == ${CTARGET} ]] ; then + die "Invalid configuration" + fi +} + +src_configure() { + local extra_conf=() + + if just_headers; then + extra_conf+=( --without-crt ) + else + extra_conf+=( --with-crt ) + fi + + case ${CTARGET} in + x86_64*) extra_conf+=( --disable-lib32 --enable-lib64 ) ;; + i?86*) extra_conf+=( --enable-lib32 --disable-lib64 ) ;; + *) die "Unsupported ${CTARGET}" ;; + esac + + CHOST=${CTARGET} strip-unsupported-flags + CHOST=${CTARGET} econf \ + --prefix=/usr/${CTARGET} \ + --includedir=/usr/${CTARGET}/usr/include \ + --with-headers \ + --enable-sdk \ + $(use_enable idl) \ + "${extra_conf[@]}" +} + +src_install() { + default + + if is_crosscompile ; then + # gcc is configured to look at specific hard-coded paths for mingw #419601 + dosym usr /usr/${CTARGET}/mingw + dosym usr /usr/${CTARGET}/${CTARGET} + dosym usr/include /usr/${CTARGET}/sys-include + fi + + env -uRESTRICT CHOST=${CTARGET} prepallstrip + rm -rf "${ED}/usr/share" +} diff --git a/dev-util/mingw64-runtime/mingw64-runtime-4.0.1.ebuild b/dev-util/mingw64-runtime/mingw64-runtime-4.0.1.ebuild new file mode 100644 index 000000000000..b298a1a53043 --- /dev/null +++ b/dev-util/mingw64-runtime/mingw64-runtime-4.0.1.ebuild @@ -0,0 +1,112 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +export CBUILD=${CBUILD:-${CHOST}} +export CTARGET=${CTARGET:-${CHOST}} +if [[ ${CTARGET} == ${CHOST} ]] ; then + if [[ ${CATEGORY} == cross-* ]] ; then + export CTARGET=${CATEGORY#cross-} + fi +fi + +WANT_AUTOMAKE="1.15" + +inherit autotools flag-o-matic eutils + +DESCRIPTION="Free Win64 runtime and import library definitions" +HOMEPAGE="http://mingw-w64.sourceforge.net/" +SRC_URI="mirror://sourceforge/mingw-w64/mingw-w64/mingw-w64-release/mingw-w64-v${PV}.tar.bz2" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="crosscompile_opts_headers-only idl libraries tools" +RESTRICT="strip" + +S="${WORKDIR}/mingw-w64-v${PV}" + +is_crosscompile() { + [[ ${CHOST} != ${CTARGET} ]] +} +just_headers() { + use crosscompile_opts_headers-only && [[ ${CHOST} != ${CTARGET} ]] +} +crt_with() { + just_headers && echo --without-$1 || echo --with-$1 +} +crt_use_enable() { + just_headers && echo --without-$2 || use_enable "$@" +} +crt_use_with() { + just_headers && echo --without-$2 || use_with "$@" +} + +pkg_setup() { + if [[ ${CBUILD} == ${CHOST} ]] && [[ ${CHOST} == ${CTARGET} ]] ; then + die "Invalid configuration" + fi +} + +src_prepare() { + epatch "${FILESDIR}/${P}-winpthreads.patch" + epatch "${FILESDIR}/${P}-build.patch" + eautoreconf +} + +src_configure() { + CHOST=${CTARGET} strip-unsupported-flags + + if ! just_headers; then + mkdir "${WORKDIR}/headers" + pushd "${WORKDIR}/headers" > /dev/null + CHOST=${CTARGET} "${S}/configure" \ + --prefix="${T}/tmproot" \ + --with-headers \ + --without-crt \ + || die + popd > /dev/null + append-cppflags "-I${T}/tmproot/include" + fi + + local extra_conf=() + + case ${CTARGET} in + x86_64*) extra_conf+=( --disable-lib32 --enable-lib64 ) ;; + i?86*) extra_conf+=( --enable-lib32 --disable-lib64 ) ;; + *) die "Unsupported ${CTARGET}" ;; + esac + + CHOST=${CTARGET} econf \ + --prefix=/usr/${CTARGET} \ + --includedir=/usr/${CTARGET}/usr/include \ + --with-headers \ + --enable-sdk \ + $(crt_with crt) \ + $(crt_use_enable idl) \ + $(crt_use_with libraries libraries winpthreads,libmangle) \ + $(crt_use_with tools) \ + "${extra_conf[@]}" +} + +src_compile() { + if ! just_headers; then + emake -C "${WORKDIR}/headers" install + fi + default +} + +src_install() { + default + + if is_crosscompile ; then + # gcc is configured to look at specific hard-coded paths for mingw #419601 + dosym usr /usr/${CTARGET}/mingw + dosym usr /usr/${CTARGET}/${CTARGET} + dosym usr/include /usr/${CTARGET}/sys-include + fi + + env -uRESTRICT CHOST=${CTARGET} prepallstrip + rm -rf "${ED}/usr/share" +} diff --git a/dev-util/mingw64-runtime/mingw64-runtime-4.0.4.ebuild b/dev-util/mingw64-runtime/mingw64-runtime-4.0.4.ebuild new file mode 100644 index 000000000000..2fc6dd78d673 --- /dev/null +++ b/dev-util/mingw64-runtime/mingw64-runtime-4.0.4.ebuild @@ -0,0 +1,112 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +export CBUILD=${CBUILD:-${CHOST}} +export CTARGET=${CTARGET:-${CHOST}} +if [[ ${CTARGET} == ${CHOST} ]] ; then + if [[ ${CATEGORY} == cross-* ]] ; then + export CTARGET=${CATEGORY#cross-} + fi +fi + +WANT_AUTOMAKE="1.15" + +inherit autotools flag-o-matic eutils + +DESCRIPTION="Free Win64 runtime and import library definitions" +HOMEPAGE="http://mingw-w64.sourceforge.net/" +SRC_URI="mirror://sourceforge/mingw-w64/mingw-w64/mingw-w64-release/mingw-w64-v${PV}.tar.bz2" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="crosscompile_opts_headers-only idl libraries tools" +RESTRICT="strip" + +S="${WORKDIR}/mingw-w64-v${PV}" + +is_crosscompile() { + [[ ${CHOST} != ${CTARGET} ]] +} +just_headers() { + use crosscompile_opts_headers-only && [[ ${CHOST} != ${CTARGET} ]] +} +crt_with() { + just_headers && echo --without-$1 || echo --with-$1 +} +crt_use_enable() { + just_headers && echo --without-$2 || use_enable "$@" +} +crt_use_with() { + just_headers && echo --without-$2 || use_with "$@" +} + +pkg_setup() { + if [[ ${CBUILD} == ${CHOST} ]] && [[ ${CHOST} == ${CTARGET} ]] ; then + die "Invalid configuration" + fi +} + +src_prepare() { + epatch "${FILESDIR}/${PN}-4.0.1-winpthreads.patch" + epatch "${FILESDIR}/${PN}-4.0.1-build.patch" + eautoreconf +} + +src_configure() { + CHOST=${CTARGET} strip-unsupported-flags + + if ! just_headers; then + mkdir "${WORKDIR}/headers" + pushd "${WORKDIR}/headers" > /dev/null + CHOST=${CTARGET} "${S}/configure" \ + --prefix="${T}/tmproot" \ + --with-headers \ + --without-crt \ + || die + popd > /dev/null + append-cppflags "-I${T}/tmproot/include" + fi + + local extra_conf=() + + case ${CTARGET} in + x86_64*) extra_conf+=( --disable-lib32 --enable-lib64 ) ;; + i?86*) extra_conf+=( --enable-lib32 --disable-lib64 ) ;; + *) die "Unsupported ${CTARGET}" ;; + esac + + CHOST=${CTARGET} econf \ + --prefix=/usr/${CTARGET} \ + --includedir=/usr/${CTARGET}/usr/include \ + --with-headers \ + --enable-sdk \ + $(crt_with crt) \ + $(crt_use_enable idl) \ + $(crt_use_with libraries libraries winpthreads,libmangle) \ + $(crt_use_with tools) \ + "${extra_conf[@]}" +} + +src_compile() { + if ! just_headers; then + emake -C "${WORKDIR}/headers" install + fi + default +} + +src_install() { + default + + if is_crosscompile ; then + # gcc is configured to look at specific hard-coded paths for mingw #419601 + dosym usr /usr/${CTARGET}/mingw + dosym usr /usr/${CTARGET}/${CTARGET} + dosym usr/include /usr/${CTARGET}/sys-include + fi + + env -uRESTRICT CHOST=${CTARGET} prepallstrip + rm -rf "${ED}/usr/share" +} diff --git a/dev-util/mingw64-runtime/mingw64-runtime-4.0.6.ebuild b/dev-util/mingw64-runtime/mingw64-runtime-4.0.6.ebuild new file mode 100644 index 000000000000..8b0d38b204ca --- /dev/null +++ b/dev-util/mingw64-runtime/mingw64-runtime-4.0.6.ebuild @@ -0,0 +1,108 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +export CBUILD=${CBUILD:-${CHOST}} +export CTARGET=${CTARGET:-${CHOST}} +if [[ ${CTARGET} == ${CHOST} ]] ; then + if [[ ${CATEGORY} == cross-* ]] ; then + export CTARGET=${CATEGORY#cross-} + fi +fi + +WANT_AUTOMAKE="1.15" + +inherit autotools flag-o-matic eutils + +DESCRIPTION="Free Win64 runtime and import library definitions" +HOMEPAGE="http://mingw-w64.sourceforge.net/" +SRC_URI="mirror://sourceforge/mingw-w64/mingw-w64/mingw-w64-release/mingw-w64-v${PV}.tar.bz2" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="crosscompile_opts_headers-only idl libraries tools" +RESTRICT="strip" + +S="${WORKDIR}/mingw-w64-v${PV}" + +is_crosscompile() { + [[ ${CHOST} != ${CTARGET} ]] +} +just_headers() { + use crosscompile_opts_headers-only && [[ ${CHOST} != ${CTARGET} ]] +} +crt_with() { + just_headers && echo --without-$1 || echo --with-$1 +} +crt_use_enable() { + just_headers && echo --without-$2 || use_enable "$@" +} +crt_use_with() { + just_headers && echo --without-$2 || use_with "$@" +} + +pkg_setup() { + if [[ ${CBUILD} == ${CHOST} ]] && [[ ${CHOST} == ${CTARGET} ]] ; then + die "Invalid configuration" + fi +} + +src_prepare() { + epatch "${FILESDIR}/${PN}-4.0.1-winpthreads.patch" + epatch "${FILESDIR}/${PN}-4.0.1-build.patch" + eautoreconf +} + +src_configure() { + CHOST=${CTARGET} strip-unsupported-flags + + if ! just_headers; then + mkdir "${WORKDIR}/headers" + pushd "${WORKDIR}/headers" > /dev/null + CHOST=${CTARGET} "${S}/configure" \ + --prefix="${T}/tmproot" \ + --with-headers \ + --without-crt \ + || die + popd > /dev/null + append-cppflags "-I${T}/tmproot/include" + fi + + CHOST=${CTARGET} econf \ + --prefix=/usr/${CTARGET} \ + --includedir=/usr/${CTARGET}/usr/include \ + --with-headers \ + --enable-sdk \ + $(crt_with crt) \ + $(crt_use_enable idl) \ + $(crt_use_with libraries libraries winpthreads,libmangle) \ + $(crt_use_with tools) \ + $( + $(tc-getCPP ${CTARGET}) ${CPPFLAGS} -dM - < /dev/null | grep -q __MINGW64__ \ + && echo --disable-lib32 --enable-lib64 \ + || echo --enable-lib32 --disable-lib64 + ) +} + +src_compile() { + if ! just_headers; then + emake -C "${WORKDIR}/headers" install + fi + default +} + +src_install() { + default + + if is_crosscompile ; then + # gcc is configured to look at specific hard-coded paths for mingw #419601 + dosym usr /usr/${CTARGET}/mingw + dosym usr /usr/${CTARGET}/${CTARGET} + dosym usr/include /usr/${CTARGET}/sys-include + fi + + env -uRESTRICT CHOST=${CTARGET} prepallstrip + rm -rf "${ED}/usr/share" +} diff --git a/dev-util/mingw64-runtime/mingw64-runtime-5.0.1.ebuild b/dev-util/mingw64-runtime/mingw64-runtime-5.0.1.ebuild new file mode 100644 index 000000000000..408aa8d8e7ba --- /dev/null +++ b/dev-util/mingw64-runtime/mingw64-runtime-5.0.1.ebuild @@ -0,0 +1,112 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +export CBUILD=${CBUILD:-${CHOST}} +export CTARGET=${CTARGET:-${CHOST}} +if [[ ${CTARGET} == ${CHOST} ]] ; then + if [[ ${CATEGORY} == cross-* ]] ; then + export CTARGET=${CATEGORY#cross-} + fi +fi + +WANT_AUTOMAKE="1.15" + +inherit autotools flag-o-matic eutils + +DESCRIPTION="Free Win64 runtime and import library definitions" +HOMEPAGE="http://mingw-w64.sourceforge.net/" +SRC_URI="mirror://sourceforge/mingw-w64/mingw-w64/mingw-w64-release/mingw-w64-v${PV}.tar.bz2" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="crosscompile_opts_headers-only idl libraries tools" +RESTRICT="strip" + +S="${WORKDIR}/mingw-w64-v${PV}" + +PATCHES=( + "${FILESDIR}/${PN}-4.0.1-winpthreads.patch" + "${FILESDIR}/${PN}-4.0.1-build.patch" +) + +is_crosscompile() { + [[ ${CHOST} != ${CTARGET} ]] +} +just_headers() { + use crosscompile_opts_headers-only && [[ ${CHOST} != ${CTARGET} ]] +} +crt_with() { + just_headers && echo --without-$1 || echo --with-$1 +} +crt_use_enable() { + just_headers && echo --without-$2 || use_enable "$@" +} +crt_use_with() { + just_headers && echo --without-$2 || use_with "$@" +} + +pkg_setup() { + if [[ ${CBUILD} == ${CHOST} ]] && [[ ${CHOST} == ${CTARGET} ]] ; then + die "Invalid configuration" + fi +} + +src_prepare() { + default + eautoreconf +} + +src_configure() { + CHOST=${CTARGET} strip-unsupported-flags + + if ! just_headers; then + mkdir "${WORKDIR}/headers" + pushd "${WORKDIR}/headers" > /dev/null + CHOST=${CTARGET} "${S}/configure" \ + --prefix="${T}/tmproot" \ + --with-headers \ + --without-crt \ + || die + popd > /dev/null + append-cppflags "-I${T}/tmproot/include" + fi + + CHOST=${CTARGET} econf \ + --prefix=/usr/${CTARGET} \ + --includedir=/usr/${CTARGET}/usr/include \ + --with-headers \ + --enable-sdk \ + $(crt_with crt) \ + $(crt_use_enable idl) \ + $(crt_use_with libraries libraries winpthreads,libmangle) \ + $(crt_use_with tools) \ + $( + $(tc-getCPP ${CTARGET}) ${CPPFLAGS} -dM - < /dev/null | grep -q __MINGW64__ \ + && echo --disable-lib32 --enable-lib64 \ + || echo --enable-lib32 --disable-lib64 + ) +} + +src_compile() { + if ! just_headers; then + emake -C "${WORKDIR}/headers" install + fi + default +} + +src_install() { + default + + if is_crosscompile ; then + # gcc is configured to look at specific hard-coded paths for mingw #419601 + dosym usr /usr/${CTARGET}/mingw + dosym usr /usr/${CTARGET}/${CTARGET} + dosym usr/include /usr/${CTARGET}/sys-include + fi + + env -uRESTRICT CHOST=${CTARGET} prepallstrip + rm -rf "${ED}/usr/share" +} diff --git a/dev-util/mingw64-runtime/mingw64-runtime-5.0.2-r1.ebuild b/dev-util/mingw64-runtime/mingw64-runtime-5.0.2-r1.ebuild new file mode 100644 index 000000000000..534091fe6549 --- /dev/null +++ b/dev-util/mingw64-runtime/mingw64-runtime-5.0.2-r1.ebuild @@ -0,0 +1,114 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +export CBUILD=${CBUILD:-${CHOST}} +export CTARGET=${CTARGET:-${CHOST}} +if [[ ${CTARGET} == ${CHOST} ]] ; then + if [[ ${CATEGORY} == cross-* ]] ; then + export CTARGET=${CATEGORY#cross-} + fi +fi + +WANT_AUTOMAKE="1.15" + +inherit autotools flag-o-matic eutils + +DESCRIPTION="Free Win64 runtime and import library definitions" +HOMEPAGE="http://mingw-w64.sourceforge.net/" +SRC_URI="mirror://sourceforge/mingw-w64/mingw-w64/mingw-w64-release/mingw-w64-v${PV}.tar.bz2" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="crosscompile_opts_headers-only idl libraries tools" +RESTRICT="strip" + +S="${WORKDIR}/mingw-w64-v${PV}" + +PATCHES=( + "${FILESDIR}/${PN}-4.0.1-winpthreads.patch" + "${FILESDIR}/${PN}-4.0.1-build.patch" + "${FILESDIR}/${PN}-5.0.2-implicit-fallthrough.patch" +) + +is_crosscompile() { + [[ ${CHOST} != ${CTARGET} ]] +} +just_headers() { + use crosscompile_opts_headers-only && [[ ${CHOST} != ${CTARGET} ]] +} +crt_with() { + just_headers && echo --without-$1 || echo --with-$1 +} +crt_use_enable() { + just_headers && echo --without-$2 || use_enable "$@" +} +crt_use_with() { + just_headers && echo --without-$2 || use_with "$@" +} + +pkg_setup() { + if [[ ${CBUILD} == ${CHOST} ]] && [[ ${CHOST} == ${CTARGET} ]] ; then + die "Invalid configuration" + fi +} + +src_prepare() { + default + eautoreconf +} + +src_configure() { + CHOST=${CTARGET} strip-unsupported-flags + + if ! just_headers; then + mkdir "${WORKDIR}/headers" + pushd "${WORKDIR}/headers" > /dev/null + CHOST=${CTARGET} "${S}/configure" \ + --prefix="${T}/tmproot" \ + --with-headers \ + --without-crt \ + || die + popd > /dev/null + append-cppflags "-I${T}/tmproot/include" + fi + + CHOST=${CTARGET} econf \ + --prefix=/usr/${CTARGET} \ + --includedir=/usr/${CTARGET}/usr/include \ + --libdir=/usr/${CTARGET}/usr/lib \ + --with-headers \ + --enable-sdk \ + $(crt_with crt) \ + $(crt_use_enable idl) \ + $(crt_use_with libraries libraries winpthreads,libmangle) \ + $(crt_use_with tools) \ + $( + $(tc-getCPP ${CTARGET}) ${CPPFLAGS} -dM - < /dev/null | grep -q __MINGW64__ \ + && echo --disable-lib32 --enable-lib64 \ + || echo --enable-lib32 --disable-lib64 + ) +} + +src_compile() { + if ! just_headers; then + emake -C "${WORKDIR}/headers" install + fi + default +} + +src_install() { + default + + if is_crosscompile ; then + # gcc is configured to look at specific hard-coded paths for mingw #419601 + dosym usr /usr/${CTARGET}/mingw + dosym usr /usr/${CTARGET}/${CTARGET} + dosym usr/include /usr/${CTARGET}/sys-include + fi + + env -uRESTRICT CHOST=${CTARGET} prepallstrip + rm -rf "${ED}/usr/share" +} diff --git a/dev-util/mingw64-runtime/mingw64-runtime-5.0.2-r2.ebuild b/dev-util/mingw64-runtime/mingw64-runtime-5.0.2-r2.ebuild new file mode 100644 index 000000000000..0edd83c00354 --- /dev/null +++ b/dev-util/mingw64-runtime/mingw64-runtime-5.0.2-r2.ebuild @@ -0,0 +1,115 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +export CBUILD=${CBUILD:-${CHOST}} +export CTARGET=${CTARGET:-${CHOST}} +if [[ ${CTARGET} == ${CHOST} ]] ; then + if [[ ${CATEGORY} == cross-* ]] ; then + export CTARGET=${CATEGORY#cross-} + fi +fi + +WANT_AUTOMAKE="1.15" + +inherit autotools flag-o-matic eutils + +DESCRIPTION="Free Win64 runtime and import library definitions" +HOMEPAGE="http://mingw-w64.sourceforge.net/" +SRC_URI="mirror://sourceforge/mingw-w64/mingw-w64/mingw-w64-release/mingw-w64-v${PV}.tar.bz2" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="crosscompile_opts_headers-only idl libraries tools" +RESTRICT="strip" + +S="${WORKDIR}/mingw-w64-v${PV}" + +PATCHES=( + "${FILESDIR}/${PN}-4.0.1-winpthreads.patch" + "${FILESDIR}/${PN}-4.0.1-build.patch" + "${FILESDIR}/${PN}-5.0.2-implicit-fallthrough.patch" + "${FILESDIR}/${PN}-5.0.2-locale.patch" +) + +is_crosscompile() { + [[ ${CHOST} != ${CTARGET} ]] +} +just_headers() { + use crosscompile_opts_headers-only && [[ ${CHOST} != ${CTARGET} ]] +} +crt_with() { + just_headers && echo --without-$1 || echo --with-$1 +} +crt_use_enable() { + just_headers && echo --without-$2 || use_enable "$@" +} +crt_use_with() { + just_headers && echo --without-$2 || use_with "$@" +} + +pkg_setup() { + if [[ ${CBUILD} == ${CHOST} ]] && [[ ${CHOST} == ${CTARGET} ]] ; then + die "Invalid configuration" + fi +} + +src_prepare() { + default + eautoreconf +} + +src_configure() { + CHOST=${CTARGET} strip-unsupported-flags + + if ! just_headers; then + mkdir "${WORKDIR}/headers" + pushd "${WORKDIR}/headers" > /dev/null + CHOST=${CTARGET} "${S}/configure" \ + --prefix="${T}/tmproot" \ + --with-headers \ + --without-crt \ + || die + popd > /dev/null + append-cppflags "-I${T}/tmproot/include" + fi + + CHOST=${CTARGET} econf \ + --prefix=/usr/${CTARGET} \ + --includedir=/usr/${CTARGET}/usr/include \ + --libdir=/usr/${CTARGET}/usr/lib \ + --with-headers \ + --enable-sdk \ + $(crt_with crt) \ + $(crt_use_enable idl) \ + $(crt_use_with libraries libraries winpthreads,libmangle) \ + $(crt_use_with tools) \ + $( + $(tc-getCPP ${CTARGET}) ${CPPFLAGS} -dM - < /dev/null | grep -q __MINGW64__ \ + && echo --disable-lib32 --enable-lib64 \ + || echo --enable-lib32 --disable-lib64 + ) +} + +src_compile() { + if ! just_headers; then + emake -C "${WORKDIR}/headers" install + fi + default +} + +src_install() { + default + + if is_crosscompile ; then + # gcc is configured to look at specific hard-coded paths for mingw #419601 + dosym usr /usr/${CTARGET}/mingw + dosym usr /usr/${CTARGET}/${CTARGET} + dosym usr/include /usr/${CTARGET}/sys-include + fi + + env -uRESTRICT CHOST=${CTARGET} prepallstrip + rm -rf "${ED}/usr/share" +} diff --git a/dev-util/mingw64-runtime/mingw64-runtime-5.0.2.ebuild b/dev-util/mingw64-runtime/mingw64-runtime-5.0.2.ebuild new file mode 100644 index 000000000000..408aa8d8e7ba --- /dev/null +++ b/dev-util/mingw64-runtime/mingw64-runtime-5.0.2.ebuild @@ -0,0 +1,112 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +export CBUILD=${CBUILD:-${CHOST}} +export CTARGET=${CTARGET:-${CHOST}} +if [[ ${CTARGET} == ${CHOST} ]] ; then + if [[ ${CATEGORY} == cross-* ]] ; then + export CTARGET=${CATEGORY#cross-} + fi +fi + +WANT_AUTOMAKE="1.15" + +inherit autotools flag-o-matic eutils + +DESCRIPTION="Free Win64 runtime and import library definitions" +HOMEPAGE="http://mingw-w64.sourceforge.net/" +SRC_URI="mirror://sourceforge/mingw-w64/mingw-w64/mingw-w64-release/mingw-w64-v${PV}.tar.bz2" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="crosscompile_opts_headers-only idl libraries tools" +RESTRICT="strip" + +S="${WORKDIR}/mingw-w64-v${PV}" + +PATCHES=( + "${FILESDIR}/${PN}-4.0.1-winpthreads.patch" + "${FILESDIR}/${PN}-4.0.1-build.patch" +) + +is_crosscompile() { + [[ ${CHOST} != ${CTARGET} ]] +} +just_headers() { + use crosscompile_opts_headers-only && [[ ${CHOST} != ${CTARGET} ]] +} +crt_with() { + just_headers && echo --without-$1 || echo --with-$1 +} +crt_use_enable() { + just_headers && echo --without-$2 || use_enable "$@" +} +crt_use_with() { + just_headers && echo --without-$2 || use_with "$@" +} + +pkg_setup() { + if [[ ${CBUILD} == ${CHOST} ]] && [[ ${CHOST} == ${CTARGET} ]] ; then + die "Invalid configuration" + fi +} + +src_prepare() { + default + eautoreconf +} + +src_configure() { + CHOST=${CTARGET} strip-unsupported-flags + + if ! just_headers; then + mkdir "${WORKDIR}/headers" + pushd "${WORKDIR}/headers" > /dev/null + CHOST=${CTARGET} "${S}/configure" \ + --prefix="${T}/tmproot" \ + --with-headers \ + --without-crt \ + || die + popd > /dev/null + append-cppflags "-I${T}/tmproot/include" + fi + + CHOST=${CTARGET} econf \ + --prefix=/usr/${CTARGET} \ + --includedir=/usr/${CTARGET}/usr/include \ + --with-headers \ + --enable-sdk \ + $(crt_with crt) \ + $(crt_use_enable idl) \ + $(crt_use_with libraries libraries winpthreads,libmangle) \ + $(crt_use_with tools) \ + $( + $(tc-getCPP ${CTARGET}) ${CPPFLAGS} -dM - < /dev/null | grep -q __MINGW64__ \ + && echo --disable-lib32 --enable-lib64 \ + || echo --enable-lib32 --disable-lib64 + ) +} + +src_compile() { + if ! just_headers; then + emake -C "${WORKDIR}/headers" install + fi + default +} + +src_install() { + default + + if is_crosscompile ; then + # gcc is configured to look at specific hard-coded paths for mingw #419601 + dosym usr /usr/${CTARGET}/mingw + dosym usr /usr/${CTARGET}/${CTARGET} + dosym usr/include /usr/${CTARGET}/sys-include + fi + + env -uRESTRICT CHOST=${CTARGET} prepallstrip + rm -rf "${ED}/usr/share" +} -- cgit v1.2.3