summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDirkjan Ochtman <djc@gentoo.org>2014-12-22 17:51:13 +0000
committerDirkjan Ochtman <djc@gentoo.org>2014-12-22 17:51:13 +0000
commit4b97b2dd481987ef3d2227f74c77fd218279c0d8 (patch)
treef4e0336f7059c172823d73703e163964d8dc4c54 /dev-lang
parentDropped vulnerable versions (diff)
downloadhistorical-4b97b2dd481987ef3d2227f74c77fd218279c0d8.tar.gz
historical-4b97b2dd481987ef3d2227f74c77fd218279c0d8.tar.bz2
historical-4b97b2dd481987ef3d2227f74c77fd218279c0d8.zip
Version bump erlang to 17.4
Package-Manager: portage-2.2.15/cvs/Linux x86_64 Manifest-Sign-Key: 0x30380381
Diffstat (limited to 'dev-lang')
-rw-r--r--dev-lang/erlang/ChangeLog7
-rw-r--r--dev-lang/erlang/Manifest32
-rw-r--r--dev-lang/erlang/erlang-17.4.ebuild159
3 files changed, 183 insertions, 15 deletions
diff --git a/dev-lang/erlang/ChangeLog b/dev-lang/erlang/ChangeLog
index 9bdaa6198aee..81d432f1e966 100644
--- a/dev-lang/erlang/ChangeLog
+++ b/dev-lang/erlang/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-lang/erlang
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/erlang/ChangeLog,v 1.257 2014/09/23 18:47:17 djc Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/erlang/ChangeLog,v 1.258 2014/12/22 17:50:20 djc Exp $
+
+*erlang-17.4 (22 Dec 2014)
+
+ 22 Dec 2014; Dirkjan Ochtman <djc@gentoo.org> +erlang-17.4.ebuild:
+ Version bump erlang to 17.4
*erlang-17.3 (23 Sep 2014)
diff --git a/dev-lang/erlang/Manifest b/dev-lang/erlang/Manifest
index 3af4d7304f00..8fc0fd2eb909 100644
--- a/dev-lang/erlang/Manifest
+++ b/dev-lang/erlang/Manifest
@@ -9,16 +9,19 @@ AUX epmd.service 138 SHA256 689a50cfe05cf644f62b2308920f8ed7f602e1de94d53a67f5fd
DIST otp_doc_html_17.0.tar.gz 33168721 SHA256 4a9edba2e5b8ca2e35e5080c1c30a2674aafa39b51d7268383b6e326d397f8dd SHA512 f475d88d75009a409d65f0cd45f7bdbc918acd68b99238fd519166d713d4642fbf696efce30a8db8374358ad329bd85fc26b84145af9b9ffc7a2de7dd65edf19 WHIRLPOOL 47c00587d1568f48575abe4814debc8b3b7d8428bc770e3f18f3917a5528491a4f9748f264c8eaed3daf71d87ab3d2982f2901bfe5b59e6583b04242f42485de
DIST otp_doc_html_17.1.tar.gz 33412455 SHA256 1f73751e32c63c86d11e0de9f8525b84287284970a73dcb9581f51e8770735be SHA512 bf218934332ae22a7d77c1493bab84c73a69078c2b24464d3d19466db73b6506555b1ee3508ca288e7d58bb35d3fdfd2a3f759c11fd93946c16faac415bd04dc WHIRLPOOL 4945229cff20e22b2df6f678bd98fd94a01ea64cee85426bc2b8be8c391bae375a68775119fc3cca8e1e6fd56264820100231d1c15e153d235ee8d370f83c260
DIST otp_doc_html_17.3.tar.gz 33444170 SHA256 bd8278b34f610d6025549640d4e03d79d2a69d7129ea230c0d71d7e6b231f5b3 SHA512 4b1f46c4258b7189b3651af8763916d791888bbc2232c9db60cfda019f611d34d215225fadc88dcfc39539a2c00fbe13b0feba59dea334b77522d7777dc55497 WHIRLPOOL 97930374b82609e27e7ea997050efaf7e92817ec5503fa895a9db30faf1a1c293a6582c769a12ab407eb6981d53aeb58d6a1d558a3b97aa8d2b533cab5aa4c3b
+DIST otp_doc_html_17.4.tar.gz 33483554 SHA256 dd42b0104418de18e2247608a337bcd3bb24c59bbc36294deb5fae73ab6c90d6 SHA512 511c2331ce577d232a9d4206da9a87de5074d9bf3fd45f5f1b4d50535cc6eb6ecc54ed7fc249008085a553516e5cc4ec174d1cfacd3b4c9d5a36fb0e46e92806 WHIRLPOOL edc0003f6de6c705b6229f774b61604947988284618a320f1c4478121f39ba4871a6df4d27cb0b7cb1a30d95d4fe827cd269d7db47cea7a3795f7cff41eb61b2
DIST otp_doc_html_R15B03-1.tar.gz 30436303 SHA256 d06f580f11d1303217a5c1cf8d68a98d7e01c535be934dcd430ecdc254f7572e SHA512 8a22ad702d50f40162f7d6051dbbc0226af449f7a1dcfb087e952dd7eb7213257940933441cfb68f055746450e3e5aa2c5ed8107ac67af7c3a940afb195af8c7 WHIRLPOOL ac10f9ce0ffd4cbd98617e4018e5a4729ce83f0ace6a4db219e7beef2f3a626a8c9a419c7f7772c934ca50310f55486df7eb24955ba845a9230c69c93e183d33
DIST otp_doc_html_R16B03-1.tar.gz 33294165 SHA256 5381d4ffe654e3e943f004e2b91870bd83f0e46e261bb405c1cdf7de81bc0507 SHA512 8f13bdda6a6732c5bee292b4f378539e5fc707be8822e660be9f851faff483b1fc06e612a5eaa843d71c22cec45943bd14aa20ad2323b8683861904d78aec403 WHIRLPOOL 163d2f5b7bac6363ad6ae5c1a083d8894a990f056b6cb27f3cc9923965fd2f0202a2de2248a2ed0fe6fc4afb1d6b096d94c2c141573f0c9439a5e19d5abe5dcb
DIST otp_doc_man_17.0.tar.gz 1353215 SHA256 acf72b5876c6f505191a3fb57b7e672733f911141929c4cef050111cf8f8b399 SHA512 a4b0e4503ef0c31636bc6d24cf09f5e61245d1ddf261e1515a6083df8379336335bc003a1e2d89b38049cf7299e1e2e0e7bce8924a1fd3429634f735ed2dd7ff WHIRLPOOL 95eda4570c58a8e6ffc4c4223f28e902a7d154e6ab8f61ffaea326595564cc068e9cc73a64bd48f01942580fcaa2a714bbf7e8783b08ff0a844f6c1ebea442b4
DIST otp_doc_man_17.1.tar.gz 1354653 SHA256 4a230277f135e3730593e7bffdd5ca92596568340f02a5b3134f1d083b34eaab SHA512 32fe1e4f9bab8979e4b38952602c4757daeb6a0bebf8249ee540ed9cad4bdd2d94ccc05c56a93d0dcf5db1c973fe5495f8cb071b95d0ebdbb0750e67514295f1 WHIRLPOOL 7972da093c9d280cf09d9825458caae775e89806b6b11c1abf306c7c0aff384bc1c8b2ecc10aa12a433500f9be9589d0e885f25709074d7b21f044a550ce7c12
DIST otp_doc_man_17.3.tar.gz 1357195 SHA256 3fabdac0b0594432fdd8186fa2c74ff49a629a9bcc4174e3bd605a3d4002dab7 SHA512 2e1c483dae85b84bb15950bb06e765ab47ec10785d1fe9b06dce0310dfd3d194b4690ed19e4b16c79a21c8fd1a701895a21af0ceb3422ceee84498d16d984715 WHIRLPOOL bd86e3ba1df1a73efdcd746e50f941620c0d16595901f8336f5180d1030cd8103c52d2f8c9f550984591ab9f439484ffa73b58fdd30de442ee08a0371119f458
+DIST otp_doc_man_17.4.tar.gz 1360952 SHA256 6c1cdb8e9d367c7b6dc6b20706de9fd0a0f0b7dffd66532663b2a24ed7679a58 SHA512 982e170a0a2db0220c57c9fb554ba0148f67392583a8c0fc8140def897a85a996fc71e68b34d9752ca66f09fd9a95c83278cc65639afb554508e5f74b151692f WHIRLPOOL d06a34dc8b303cba5f6ab2d33294530d1d2bccbb54a3675356349bacfa6b247fcb22f8dcfc03da711354fd0f87844d8bb77998a77d3403562c166d8891bffa13
DIST otp_doc_man_R15B03-1.tar.gz 1305001 SHA256 07980d8014c7cf8194b7078c137353f5083992add4663ced3dcba2ff91f228d8 SHA512 eb07552c83a942c1e7f1960b45edfab97b0628a1e08c7c827a07d77797901b4b60a6719b35d0f92a49eb04ada924e9263df70968a5920efc6ccf8e4e966933c6 WHIRLPOOL 764495a8bb67e2c67493452c83ff890d959aa5cd3bd711fce75b3c756dbacb913e50f7d92aab14dc33d6839daaac5a37dc7bcc11fc6392af11dd506a8d99076c
DIST otp_doc_man_R16B03-1.tar.gz 1322516 SHA256 0f31bc7d7215aa4b6834b1a565cd7d6e3173e3b392fb870254bae5136499c39d SHA512 b54771e853d2580be6303cdf20e17348360b60359e6e2b3d98a109f892088fb0071a245649afaca48dd98fe00ce9bb8bf3030535132db842e9a7d7c11880c155 WHIRLPOOL 53d12fa03905698b027e4df2e2a28b3f0df0adc41d6d98c4389cea8d9bf84f7de54ef2f8f00603141e68e65bf071890fd24e442bacab6790e62356cdedb4ee59
DIST otp_src_17.0.tar.gz 66640875 SHA256 297f2baaa65e5ed1c2492c500fe191bff852217ad57af5da2470a3218c9acadb SHA512 deddadac35ff10b1441c5a96b0ae776b3989b952f1d2ea33796d4c0300f00538ad5effb099750b41ce8111bb15ccab5479a25b105722ed54daf8c2b05759274e WHIRLPOOL fd5ea04779d143a1a51671b7185b8f158bf24107ce81ebe63f083c48dc749a4aa4094b52da4349d5154773fa286fcb8fd974d7ff47b6cb4e0ebe6f93d78f9cb2
DIST otp_src_17.1.tar.gz 66912681 SHA256 b806f5b2b5cc2d0c0d5dd1a65657c21c10dc3a0535ef60adecdac9cd73b9c356 SHA512 5e80d706bec175a955d4497ba17c5c24961e3a0b29eaf43f3f24fd9366066106c1e57119064a2621e55e1b359ddd504219687f2c81e118057c2071a5f60a28e8 WHIRLPOOL 04ae8a263c4a36ad71e5561be7be36a7dcb8e9afde46e34a0e41b1f44eb794466f3ab55b38af10860c592d01edd1ea822c3ec2fedcf0b96391cfad56432dc0d9
DIST otp_src_17.3.tar.gz 67050599 SHA256 d4be03eb346016f4ca95d53eb9437ffaa6106762f153620dd98cd7f7733b76e4 SHA512 89d005fc3fdb4dc76c191b6e6a35e03f66ce01d765ba4f58cdd812d358025c62e032443d7ae73fea5b06bf6f27c9bf4e786f8090627ecb1e1309b88b82892910 WHIRLPOOL ef73ea10df2126c129ddb85c0a2bd72c6a7885b200b4d584577beab7c90b84f81647e017f2814dc4406427d4b22f48626db983636bcd5a8648f861484bfe6eff
+DIST otp_src_17.4.tar.gz 67171182 SHA256 0d82eda6ae7ac6f0f860093324e540fa514497068ec3b4177800284e8c761f56 SHA512 a2626eea451a5e81027072d08eee158856deabd9fec9d648a736d6fcf0797f5009f8cd749dc3fb4f64d8af6f80d505e3709ea4e6cc0183ddbe365e88c27cc201 WHIRLPOOL 171c449dea4af58df4d4a190b8ce05117a9662725111d3a2f89429335658848c333c2747cc6fb41638402f5594811a5c8087a186dd4b0348980ac1076465d404
DIST otp_src_R15B03-1.tar.gz 76123810 SHA256 4bccac86dd76aec050252e44276a0283a0df9218e6470cf042a9b9f9dfc9476c SHA512 baa8f388bd56bbdf1d3818802d011970fb51d38d14434532b1e4f04c1b8203e5a0cd9cc870f93a993cce750cd1af6e4b7df40dffc44e455353bce9d7c46c8e34 WHIRLPOOL ce76d01dfd17e0bc70e3daa7eab218000d1e802f55b0892e2e9654d2ea262f214f3bd006c0988885e787a1cfe782e8b61d5d1ee3a1d05cbced465b5a28e2de2e
DIST otp_src_R16B03-1.tar.gz 66253556 SHA256 17ce53459bc5ceb34fc2da412e15ac8c23835a15fbd84e62c8d1852704747ee7 SHA512 c2d26d6e1ae85abb8195c7171a0693388b507be760710f3afdfbcfa776e31508ab9e2a58010d55a95ba4a5075edc1e7c18fcefa196129fa672ccc40a945f7e44 WHIRLPOOL c6e1e6bfef7249e3350ff0e3c5cbad40cb2ef80fff774ca46871a37943d8f4e92af8a5e0c3eaa3a97c18fc47b87ace9477536cf0a251d325165bea869d26b85f
EBUILD erlang-15.2.3.1.ebuild 5423 SHA256 212dedb4ce233274c9ac98b3a48498a87f42f2b65caaa34547f06401b6e1aeaa SHA512 e8af1f3cb6037bdcff65dff64ec7bf01f3a98006be0d2dda770698128748f47777baf0713f477637121734c7a47f8a6aba66f3465dd0d5217062b6c3de53b216 WHIRLPOOL c0fe8f99cd6e38856e8c22d704e0365ec1b18ce8d489597d1218ca0b0afaf916a90e90d789e6587e3302ad6258456e5bc1caa17657f5e5b3478292ca9616a1d1
@@ -26,22 +29,23 @@ EBUILD erlang-16.3.1.ebuild 5207 SHA256 f98734ed147cb41c6955bdd4bfc8d8a450e9b6e1
EBUILD erlang-17.0-r1.ebuild 4855 SHA256 ff6ba4fab60a65b5bb4eaf0945aaa9e6b601c96e48abf29fb42369c9a721035d SHA512 0414746e9c6ae4e09c62294d60b74279a68498c407a05b2a5574fbe595710e4a711e1dad1fb687bab795c094fa038b7714ef76bb1f1e2fba9355f0f4857f8892 WHIRLPOOL 6e43fce85637a1cb65fecb1580476c0487c9b3b3113386493a825462d420b8ad08747f67ccfc5af8d5ac1dd518adc4436fc2d302bb0915fd726f0d7a2b6584c5
EBUILD erlang-17.1.ebuild 4751 SHA256 42ffcd5dd9a47899e1b8e9bd9d457b3b8d60bcc88ed1a8f4e6f356e8767607dd SHA512 5145c05fdc9844d3ca9b03c6ee4bf5ac266cb323d25f6a3ea8291782125abe95d5e91b7450bc4752af3d3ad0bd511b2d21bd1d2e00510097c5e791cdb0830c16 WHIRLPOOL 57652532df5561c6fbb5c3423ee0259aac1c3d1e6f684b1735d102b8142726de1ae468ca44b1fdbc1f0719cda114fa28b8bf3f7bdaccf821f60784cb6cad5cf5
EBUILD erlang-17.3.ebuild 4751 SHA256 0a57e8f8c17e8782a1b76fdda2fb92c2017275ef33201c6138223926fd548399 SHA512 58fb2de65c34265c5cee23264482c9680cfe96bb5eaa50710ed015e338c46b9d7bc436f2e6fb76e1a6eb0bde9e2341d1e08b402d9f9dc11db92795022d851e6b WHIRLPOOL aa4bd0000088f2d9d3a0797010be1ba5a1bbe7e7793aad11d30b0c225ce762168315015294824a373b9eb0cbe4ff87f1d84a4d4f11e0ecb164b83dce0e37f616
-MISC ChangeLog 40316 SHA256 5033bbd2c940497e0e9e89b0cd50d324e15689097929be7bc4ae4823eb793c8f SHA512 265fe56860c31bc89dcef3028c17301c18d6ae6c79dffd33580247abb5fa7b298c15ae59d51acd1d55e1967875969a6b561c67cca8d949430b4a350aca3498d9 WHIRLPOOL ec136b1dbc7214f1f3091fb653f3edff73bc399cbc4e20826154afd03fc14a3e0611b5c7efb55b95161b15817b5e0dcb2af4a43c4ba7888c8f3b7e46abc26e4f
+EBUILD erlang-17.4.ebuild 4751 SHA256 13bee30147d2b5cf963292110d4bd002dd967d667cd605c00f4147d1e0886760 SHA512 bc89605670bbc3799048317c99e145528ac3557878ac41689a4772534523be857cde3190b0f08074933361c026a17f5ded0f448bf4dcc97a4b4a7d2f9d43e84a WHIRLPOOL 6cabe4a5ab31087fcfd20310a09ec78658439d29639e900a45927dafd01912924c6bdfdc4f559abff136c48bb2cf6f513e3b6b06e34a24506684407d22756f39
+MISC ChangeLog 40444 SHA256 ac8ff6c6d870377ff61a90e10fe40f0441f9feabd56322586a16f8e5dafe9495 SHA512 e40df6b89a6e97a17d199f7244cf49b435eca63384dceb5b457c1d2a0ee3a6be639e47c53c51eaf6da27fa8e31a75c39373772b1efddd4970fb3b12d24160101 WHIRLPOOL 645880d0f945e8029e39f7bc00d2ae0fa095a6e166f8cd842289a4a027011adc5096f4cec3d348e0f3bbc881c06936ae646c64dad467f8dadee56b5a7f94fa8a
MISC metadata.xml 852 SHA256 5782640d216cf818d9088bd5eb963002210d83e9eb47e98edfd3844fe579dc27 SHA512 1b22c6d550e7ca634694408f000bd99827aa86037db59b1bb3ca7a2b4259c38d69caac14b0a0db6611f7888dfcdc7972ee70e57a716eb2ac7684aa043b9d3208 WHIRLPOOL 748a8b4560773d970987880ef457194437024ee0f72b3ae9972f6033a5fc14da8e2835dab385c559ae0fe22e2bd31e8e4da3dc946e504388588d23baa39208bd
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
-iQIcBAEBCAAGBQJUIcCyAAoJEJ+WuSkwOAOBtNMP/i/j/y54am9v6RwpVyelIGNf
-lnjTQzo9UZMKY+QRye/u7A96umEF9jPrB1Tu0RwQMgxQ1frh2hu4Y0/l4hCoTkCb
-riRDmS7fO06XJGzarUVHsMyQ5DLNp0qrfXJWimgH1X6mYROBqxpii15Nxqt9hTQW
-vbZJuHuyKvzRza4yE6Kcn8+MMRJupn7J4Cb8xsGLzvGjM6onS/61e4AYpRuBlXJ6
-O+2yKv/zEXUjfqG53enRuml9PBy61YklUvRGfLzYrFgIWA8cgTNchLW+no19DZsz
-S9RPus9ji+OaRV+rdQeghX5+vBkg98uJsdasNpC5hl0WXwiRqf/iCuraZ4Ub2V+/
-naA+7dSI/k4O6P1ZZlXnXsyz1DPmm9nMyIAT6d9gUzuy2NmzeZrztLhewO8EB4BB
-ESn+sj8I0RlxSaB5RaDOpxgr5Jm6AI/t7fc7R2ZOm/f9mUJzMTsjDaLnjP6lwJU2
-0earVfsK8Me+qgin14JYDjAzGymn2+lyaQsAXv93iBEbOOi1cg3mkFyURAT2BO4m
-g3Tt6dGSYgR15gOv8f9RuL8ucwOwOsqjZBUAhwFqDYoO+Gt/2RUVWbyOfCRxLsUU
-/y50TgMPQaT/q0zXdXqa4w9TaOXjl0ynFSlsDBiY0Iro77bNwTo+1TFwautIwYNK
-KZ7I0NORLV1o06A96rMe
-=fHJR
+iQIcBAEBCAAGBQJUmFtRAAoJEJ+WuSkwOAOB6IsQAKuWFChfR1H+lfMDcgakaRvz
+Ngo7ylv+xv3ARWFPLmSuCFWabtgJFPrg+NsoykGggwFTaXXo/+CA33bc/yGwMYra
+DgYo8n4IMLLhpj4hakORCSWUsaahlBzMYG7yuYSIBed8FwZHwTqWUOsb9RDy0ibY
+rGw1/2EqSJsUAozPKH3VdBx748Yy0eWwboZiVycESwZ5o0n9Js7oRF/emSKbf77y
+6uBHewhQ3YwQ9DOebx/qafRojMF6+P7OdU1cmzIUkhBVnZqdQn0NqJjfEOvtWPZo
+OWzKG16mTX1M08blLxv3NCO2al0FQCa278rtBwf8ND8JzuA7X8kcsLACsPBgOK1f
+pdVvms59lKt9/OASn+HyMUBz95OygUScytN37TuHy4oYYyVDxDYZw+CUiEeE0G/X
+C1ADo7qhdyxpZEirQSa/mZ+3B8/d1msGJhE4MXAWNgnBKbpupZzLJHrvd3pvJWTc
+pCEFd05KR38E1otqqDAlTV0TiTZHuNCBFi526oSUIZyzQMr1YpLaP+VmEN81iXYs
++vutVa1PJl2EYRkkpfBPi0D/7+1P2geqVttLsEinyMHGgMkos8ZQXgaU7VuQvY5Z
+ijI4bcFFFa5hzW0Us4JosjqDvJ/FSPWpWnFLWk0KmLkAJXhasx7J+j9UvDIIDBRd
+lpWoUwcKmYBldlL/r3hj
+=3MfL
-----END PGP SIGNATURE-----
diff --git a/dev-lang/erlang/erlang-17.4.ebuild b/dev-lang/erlang/erlang-17.4.ebuild
new file mode 100644
index 000000000000..3470e08a0322
--- /dev/null
+++ b/dev-lang/erlang/erlang-17.4.ebuild
@@ -0,0 +1,159 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/erlang/erlang-17.4.ebuild,v 1.1 2014/12/22 17:50:20 djc Exp $
+
+EAPI=4
+WX_GTK_VER="2.8"
+
+inherit autotools elisp-common eutils java-pkg-opt-2 multilib systemd versionator wxwidgets
+
+# NOTE: If you need symlinks for binaries please tell maintainers or
+# open up a bug to let it be created.
+
+DESCRIPTION="Erlang programming language, runtime environment, and large collection of libraries"
+HOMEPAGE="http://www.erlang.org/"
+SRC_URI="http://www.erlang.org/download/otp_src_${PV}.tar.gz
+ http://erlang.org/download/otp_doc_man_${PV}.tar.gz
+ doc? ( http://erlang.org/download/otp_doc_html_${PV}.tar.gz )"
+
+LICENSE="ErlPL-1.1"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris"
+IUSE="compat-ethread doc emacs halfword hipe java kpoll odbc smp sctp ssl systemd tk wxwidgets"
+
+RDEPEND=">=dev-lang/perl-5.6.1
+ ssl? ( >=dev-libs/openssl-0.9.7d )
+ emacs? ( virtual/emacs )
+ java? ( >=virtual/jdk-1.2 )
+ odbc? ( dev-db/unixODBC )"
+DEPEND="${RDEPEND}
+ wxwidgets? ( x11-libs/wxGTK:2.8[X,opengl] virtual/glu )
+ sctp? ( net-misc/lksctp-tools )
+ tk? ( dev-lang/tk )"
+
+S="${WORKDIR}/otp_src_${PV}"
+
+SITEFILE=50${PN}-gentoo.el
+
+pkg_setup() {
+ if use halfword ; then
+ use amd64 || die "halfword support is limited to amd64"
+ fi
+}
+
+src_prepare() {
+ use odbc || sed -i 's: odbc : :' lib/Makefile
+
+ # bug 263129, don't ignore LDFLAGS, reported upstream
+ sed -e 's:LDFLAGS = \$(DED_LDFLAGS):LDFLAGS += \$(DED_LDFLAGS):' -i "${S}"/lib/megaco/src/flex/Makefile.in
+
+ # don't ignore LDFLAGS, reported upstream
+ sed -e 's:LDFLAGS = \$(ODBC_LIB) \$(EI_LDFLAGS):LDFLAGS += \$(ODBC_LIB) \$(EI_LDFLAGS):' -i "${S}"/lib/odbc/c_src/Makefile.in
+
+ if ! use wxwidgets; then
+ sed -i 's: wx : :' lib/Makefile
+ rm -rf lib/wx
+ fi
+
+ # Nasty workaround, reported upstream
+ cp "${S}"/lib/configure.in.src "${S}"/lib/configure.in
+
+ # bug 383697
+ sed -i '1i#define OF(x) x' erts/emulator/drivers/common/gzio.c
+ cd erts && eautoreconf
+}
+
+src_configure() {
+ use java || export JAVAC=false
+
+ econf \
+ --enable-threads \
+ $(use_enable sctp) \
+ $(use_enable systemd) \
+ $(use_enable halfword halfword-emulator) \
+ $(use_enable hipe) \
+ $(use_with ssl ssl "${EPREFIX}"/usr) \
+ $(use_enable ssl dynamic-ssl-lib) \
+ $(use_enable kpoll kernel-poll) \
+ $(use_enable smp smp-support) \
+ $(use compat-ethread && echo "--enable-ethread-pre-pentium4-compatibility") \
+ $(use x64-macos && echo "--enable-darwin-64bit")
+}
+
+src_compile() {
+ use java || export JAVAC=false
+ emake
+
+ if use emacs ; then
+ pushd lib/tools/emacs
+ elisp-compile *.el
+ popd
+ fi
+}
+
+extract_version() {
+ sed -n -e "/^$2 = \(.*\)$/s::\1:p" "${S}/$1/vsn.mk"
+}
+
+src_install() {
+ local ERL_LIBDIR=/usr/$(get_libdir)/erlang
+ local ERL_INTERFACE_VER=$(extract_version lib/erl_interface EI_VSN)
+ local ERL_ERTS_VER=$(extract_version erts VSN)
+
+ emake INSTALL_PREFIX="${D}" install
+ dodoc AUTHORS README.md
+
+ dosym "${ERL_LIBDIR}/bin/erl" /usr/bin/erl
+ dosym "${ERL_LIBDIR}/bin/erlc" /usr/bin/erlc
+ dosym "${ERL_LIBDIR}/bin/escript" /usr/bin/escript
+ dosym \
+ "${ERL_LIBDIR}/lib/erl_interface-${ERL_INTERFACE_VER}/bin/erl_call" \
+ /usr/bin/erl_call
+ dosym "${ERL_LIBDIR}/erts-${ERL_ERTS_VER}/bin/beam" /usr/bin/beam
+ use smp && dosym "${ERL_LIBDIR}/erts-${ERL_ERTS_VER}/bin/beam.smp" /usr/bin/beam.smp
+
+ ## Remove ${D} from the following files
+ sed -e "s:${D}::g" -i "${ED}${ERL_LIBDIR}/bin/erl"
+ sed -e "s:${D}::g" -i "${ED}${ERL_LIBDIR}/bin/start"
+ grep -rle "${D}" "${ED}/${ERL_LIBDIR}/erts-${ERL_ERTS_VER}" | xargs sed -i -e "s:${D}::g"
+
+ ## Clean up the no longer needed files
+ rm "${ED}/${ERL_LIBDIR}/Install"
+
+ for i in "${WORKDIR}"/man/man* ; do
+ dodir "${ERL_LIBDIR}/${i##${WORKDIR}}"
+ done
+ for file in "${WORKDIR}"/man/man*/*.[1-9]; do
+ # doman sucks so we can't use it
+ cp ${file} "${ED}/${ERL_LIBDIR}"/man/man${file##*.}/
+ done
+ # extend MANPATH, so the normal man command can find it
+ # see bug 189639
+ dodir /etc/env.d/
+ echo "MANPATH=\"${EPREFIX}${ERL_LIBDIR}/man\"" > "${ED}/etc/env.d/90erlang"
+
+ if use doc ; then
+ dohtml -A README,erl,hrl,c,h,kwc,info -r \
+ "${WORKDIR}"/doc "${WORKDIR}"/lib "${WORKDIR}"/erts-*
+ fi
+
+ if use emacs ; then
+ pushd "${S}"
+ elisp-install erlang lib/tools/emacs/*.{el,elc}
+ sed -e "s:/usr/share:${EPREFIX}/usr/share:g" \
+ "${FILESDIR}"/${SITEFILE} > "${T}"/${SITEFILE}
+ elisp-site-file-install "${T}"/${SITEFILE}
+ popd
+ fi
+
+ newinitd "${FILESDIR}"/epmd.init epmd
+ systemd_dounit "${FILESDIR}"/epmd.service
+}
+
+pkg_postinst() {
+ use emacs && elisp-site-regen
+}
+
+pkg_postrm() {
+ use emacs && elisp-site-regen
+}