diff options
author | Mike Frysinger <vapier@gentoo.org> | 2014-11-11 23:58:15 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2014-11-11 23:58:15 +0000 |
commit | 698c5dc8a419ac3c2733ea0d5a518b685bb96f53 (patch) | |
tree | 71a03fe3062cdc049c5cc94c922f663f90d6bafa /sys-libs | |
parent | Stabilize for all. (diff) | |
download | historical-698c5dc8a419ac3c2733ea0d5a518b685bb96f53.tar.gz historical-698c5dc8a419ac3c2733ea0d5a518b685bb96f53.tar.bz2 historical-698c5dc8a419ac3c2733ea0d5a518b685bb96f53.zip |
Version bump.
Package-Manager: portage-2.2.14/cvs/Linux x86_64
Manifest-Sign-Key: 0xD2E96200
Diffstat (limited to 'sys-libs')
-rw-r--r-- | sys-libs/timezone-data/ChangeLog | 7 | ||||
-rw-r--r-- | sys-libs/timezone-data/Manifest | 33 | ||||
-rw-r--r-- | sys-libs/timezone-data/timezone-data-2014j.ebuild | 151 |
3 files changed, 175 insertions, 16 deletions
diff --git a/sys-libs/timezone-data/ChangeLog b/sys-libs/timezone-data/ChangeLog index 3893e9f114dd..402e526690d4 100644 --- a/sys-libs/timezone-data/ChangeLog +++ b/sys-libs/timezone-data/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for sys-libs/timezone-data # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/timezone-data/ChangeLog,v 1.316 2014/11/11 23:57:55 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-libs/timezone-data/ChangeLog,v 1.317 2014/11/11 23:58:13 vapier Exp $ + +*timezone-data-2014j (11 Nov 2014) + + 11 Nov 2014; Mike Frysinger <vapier@gentoo.org> +timezone-data-2014j.ebuild: + Version bump. 11 Nov 2014; Mike Frysinger <vapier@gentoo.org> timezone-data-2014i-r1.ebuild: diff --git a/sys-libs/timezone-data/Manifest b/sys-libs/timezone-data/Manifest index 3ec3a02ba425..5a66f1e175d4 100644 --- a/sys-libs/timezone-data/Manifest +++ b/sys-libs/timezone-data/Manifest @@ -30,6 +30,7 @@ DIST tzcode2014f.tar.gz 173899 SHA256 8c12b56abf614722f0ab7cfc502492063b2c7c5de1 DIST tzcode2014g.tar.gz 178215 SHA256 df555fa4ad57cc7394812941d6d037b8c7ecea55e9916eaf4cd2adcb3403af7a SHA512 7c37356c7c6351a6eb42f545d334f707140c2424ad0ba2a78f42c5c2d5ba7e6d5dc4e23de7adeeda3f1402d7833ec78579c6dfcb69ed87830389d3a88b841220 WHIRLPOOL ca1bc9691e4e6260b4cbae1d7679e8d434f1ecb07792847a341cc8fef1f5d3e2f61b3d19cda2512e9103d113c5940158b3c3b2f94b4e9c5de62386f9617d8ca9 DIST tzcode2014h.tar.gz 180371 SHA256 a4d9788a1bb0aa314eae4986ee991425b83ecc47da0e84f626735846be1dbf44 SHA512 f53bc7613e4557bf537443f54161b064a289ae18a55cf32ae5b168396cf60017943fc55867208bdb77470295005a4d13edf5919cc87ae6acad793a846e71b312 WHIRLPOOL 3fd6ee2f602e337733cbc84bd00b80b6e5671538d8e1829f0ac5194daaf5d27f19aec3d3fc3dd1b2f85d50e0efc81b34a239c794ce4017dac9195750d33b2791 DIST tzcode2014i.tar.gz 181815 SHA256 62591075fb0d47459889b71bac3c8487f09b7417b81dfa541d750b4889e84783 SHA512 ed780815a1e209616c791997f14da56cb9311c6585b70c503b32a11e8ec15e0dc04c37bdeaa5a1a1378ada714935a2d931679d0aa4ab42808d185b600e5d0582 WHIRLPOOL ba5bdf8117b64eda76dc559dd211fa83ee0662792a93004fd696b3d8463da2046d91a0cb45b88656230ac935b528b5cd3e8ce9a460c5e27fdb0b4a19ddadb666 +DIST tzcode2014j.tar.gz 182416 SHA256 7fd46125464856309fc81fe85a67a61de862b8ab884ce8ca82051f5fa308ede2 SHA512 1207670c168a80fe9db86307028efa3af8ca304817ebe36df5b5c2d2b67deba4294f05f4d6afa04220c3b255ad1903e2850bfb0649b2edfb2d754345a4b2490a WHIRLPOOL 87275670bc5eeaa634ea7cc858e0c52e61e69640d89a98119d42bf087f26b65216146749648c1347dca0924776e9f6f914ba85aac19c5a3e581ad329fb85de84 DIST tzdata2011n.tar.gz 204684 SHA256 a343e542486b2b8ebdeca474eed79f1c04f69420ca943c2b9bdea1d2385e38cd SHA512 2081fa44f00ace6539ecc1296f454fb96bb4afa61114ffbc58f46f82ef8ba2cfa22d7e48456a293502433dccca6d921db8f70d6c6e18a074996cfeb74534d2df WHIRLPOOL e7004894829c63baef91fd5fbc14b77a7fbd92ae2a6e001f279c8b1169bd5be009ae07af336ddaca148eadeba3383896b247a19c9e72d894e80ad60fc896f3f3 DIST tzdata2012j.tar.gz 214075 SHA256 4b6a3c2831bdbb68ab1a1bf906bcf11d18ab78009713a0339da6fe96b6afceaa SHA512 98515b92268a2ee49386f6955211c14b9fe47460ba1c3ec5d60681b1a934688c3de4452f8f757ca3a6924e15784585967c768e7c86be730378d0332c249584fe WHIRLPOOL 17af29d05587bea2b05762751d146101a8bcc647346aa22a33e06a095805ecf4feab62693b3216ba5d75cf87f8a63d8cbcee9167be4b6dfe7936e1828bbc4b8a DIST tzdata2013a.tar.gz 217511 SHA256 ed9f273f52d5df9ec09fdcf6684176bbdc86d0fbafcbc27b97e5a9c103024afc SHA512 c5b07246218f5c3c751b7ddc5c4ee127432fc19187019321beeff589596ae91c4d64400a63b6e335cf6a30643a8d9c8b9bd37d31c553424718626d7591aab995 WHIRLPOOL d1bb9d9e0d9e4d3df6f866dcd1b6d35cb07da0f2066e7d92140605f917f52e20f3acfabf65ff9e31f8885a088430cbef141b787088c37bcd8e7bca42d9f3007a @@ -49,6 +50,7 @@ DIST tzdata2014f.tar.gz 231421 SHA256 eed690a72124f380bcb14947d398a7a482acb9ab79 DIST tzdata2014g.tar.gz 284889 SHA256 5547d5b7a982f7f53fffe68cb2a13692553f591a17d58c8ef15b20679d82a270 SHA512 f019f7ba2b558d2ea4857a6a9f86a16baef725e3f0b83d53ec0dc3302d2d1e8ea76957d6f10a5463d4bd03afdceb284811d4e19583b0c2ff813c236f075f258e WHIRLPOOL 5ca35c235ec672203bccb3248b9ed5139db5aad5768fd19e4b7e5d78a3c274601fea08872f61b8863009c0091e1d692e3d10e32c7dcbf607194e4283b5e4602e DIST tzdata2014h.tar.gz 286472 SHA256 e78152f616fb07c1dea124215ffca57d0de66d8897e00896086542e3de30f69e SHA512 b741812bfa7666854073f9aeefa4764e0971a5c935d4cfcaf702146fa13fb009ffe6828b8307996693f7551e35ee3fc4334c3611eb7fec9b5290abedc83783d0 WHIRLPOOL 1dd96d2a46e2182059a3cba6d41fa6677fae6491d1114575baac6d15a2ce1c75f5132b668ab17a4ed59ff259aec5a94be0661c80c1aef0e2a301dded7bbdba45 DIST tzdata2014i.tar.gz 289312 SHA256 2af331bdd2b794ec59b8ded7300fb29dc3573a009ec14183f5c9ad38e3886153 SHA512 d8893703cebfa337254a6cfb26b0c0083533922016d51dcb56c0cbc46ff7fb76d83e4e1359eec3a7728b4ebffd24e912117ac1f7425a150cad4d33e20033c40e WHIRLPOOL ca2fb6f470ff975168124ee30c2f4638ce9f0a68b0d999e451c19d328c0df438f6934b458b48e7d05a724445e7fc5c3e1ca5adbcc97e1998f88983630f132e43 +DIST tzdata2014j.tar.gz 290688 SHA256 a2d870320694d40535df822ac8074dc629a90e92abafa5d3373314f78ddc0e0d SHA512 4c2979be3a96f91f8576304ec905d571b73df0842c8300c1d7317819b45ab3e29948ed911aa265b12a4ad587d5cba44f646dd02e40e4fbf9e68556a2d327142e WHIRLPOOL adf3fc77aae18dccf05e3c990052fc2cb735a2c91bf9e93136cb45862e6f283e706beaa79373354817662a8b17449000a58760cb8f95fa78de88690207014a3e EBUILD timezone-data-2011n.ebuild 3140 SHA256 382ca5ff92759e7fd37355ee30d3ad7fdfebc4290a2c3f9ac38063ec3f2681e1 SHA512 a5a6db9d6ebe425174f83560fed5b949559c9cfadacc2a73adbfd3637d38cffa452453aaa90e29f0424126596c8ac4cee1bf8a8a6dbc66343117d5acd1f0e02c WHIRLPOOL c307ed3e521cddf3a18305c4eb8ecc5badfad6c5b8339402cd3fac3fba3861f59bde65c06b30769a75196bb35ed7dc12227882ca3193ab27aad0e95de9daa5ee EBUILD timezone-data-2012j.ebuild 3226 SHA256 189e893f9a2de810a15d4c36dc060bd488486238eb0b62e3e34b0f94f4580887 SHA512 b421e8f2ac49de3e5c35a429821c3b10a4545c11b03974d9091f088543bfdbb3276893ca08829d1bfc7d8c7eb9bf958c8de9543fece5b511e315bc031d4a5a9a WHIRLPOOL 8972b6e607f11ea8f4564d10213449afdb1c3961a18514f5a4881dd56a80fe24c59ad326899c302ee55f99823445810b18b7e85c2512384dad5bfaba44a30e2f EBUILD timezone-data-2013a.ebuild 3236 SHA256 1fc1cba3d07afaacb31d71942d542deccf0a3e3383e5854519078b501449e30e SHA512 0f21ffa6306a3e4d0ae5df5e0ec5ff464c350e921dfab0330de159b9196b996ea91c6a81623a94896c71875054fb54ea167a696409245e9b916a4da0788430ab WHIRLPOOL ced72ae6c5bf80b0af88b1d2e56f2f68712c17b15463c4543019238999fe33fec032c671eee0d5b68c643926f8bd6ccc608bb5202215cb4ba6426a883214d50b @@ -67,24 +69,25 @@ EBUILD timezone-data-2014e.ebuild 4464 SHA256 be14485512201d7c39332c8fad06145144 EBUILD timezone-data-2014f.ebuild 4451 SHA256 611cfd6edd198648bea8850cac1f0d20a236aed24afe7a0fe90fd70d61bf36b5 SHA512 429bb952d5f9a08f47b07586bd0cb245fcd82c627fbd7f096a9e8aea6b15cd91593cb88d30e5fa31858aab642f227af27b130ffbcfd64d1f8243e8bf71dd1e84 WHIRLPOOL 8d5426a4b9c46f5d5b59a8e753fcda0d58be46f02ba881830ff9dc0ae2d5b53cb66f74f25a0969ecf7ca60c251de4b200c488fd1ed31949ced623641270df014 EBUILD timezone-data-2014g.ebuild 4362 SHA256 fff04f9a3c3c0f2b128693ac60160f2aefd58179704156a5c502ff3ce82b09c5 SHA512 ecc61f09bbdebd487b0b579accb77537414cb7d021341ac4c101f97f19d92fa3880eebca633855bf5b20ff34c0b13faff2065346a2e0f360d437687705d8320d WHIRLPOOL f7efa1ad08577f47389f22ec7c3fd20eaece24ac5508d0aa127f2b7e840f732ee0caf5ca0aac665c50b55453bf3935a75d2a369ed699b5ce55aa518433a46fb5 EBUILD timezone-data-2014h.ebuild 4375 SHA256 b9ab319d9b1c268d7f00f3ecb97f523286910f445500bb80e7659474ab567f7b SHA512 9f56dcc5e488734814ff332cc68c0e4b3fd3763136c45609b088ee598941936af4d80144d606c21965f1efab5a1aef06ffdeffc16397558263899160003668bd WHIRLPOOL 1b6607974ad0cf6fd16e1e248a2a9c0d15ae64e1b4f562a8425f4ca03f158045fcaa3dea2548fe66dc7413421e6fd4d682c5127d77834c3f9d88205f9eb622f8 -EBUILD timezone-data-2014i-r1.ebuild 4400 SHA256 7d288cec2af5d7c6eb0960ae4109f4b7a844860aaf2d753e676eb9e7260b56a0 SHA512 ca1419cd9269054c29d4f806140eeb7066613368f499377d9c7ee0f61127e461fe6dcaef0280dfe8d17fc1332559b86ee779a1eeea2b7f441764aa751d2ed92d WHIRLPOOL 95102c1b44ac84213fb78bbeb42b4393a0cec255b4c8a408aea7793d36c4d0045987438d76e087e73d2c1f3b14437220fac2cf5093bc30581fb6b3b7892ff62c +EBUILD timezone-data-2014i-r1.ebuild 4387 SHA256 9bd6c81988e70db63fa78b58bec3c78f57cbb647009333ba30989948277a133a SHA512 8a2f304411208a5417940fb6d2bd2a83450e6e6f309d9993b5ac352b26ba28c2e878f556bcd52b441978025173013fe6fc6eb58b2e9059d31b0ee49e9d838a25 WHIRLPOOL 695585b9f51f74649e12b20185e0b54a8d4706ac4ddb5fc4f198ef697f5ff5de81758c85c1e6cf9682f5e6e9c050bbc336b031e1199253df88dae7a0eec3fdb9 EBUILD timezone-data-2014i.ebuild 4375 SHA256 80356f5b1cd671c95fc74e0ca1c2524828a4cf0c2ba23e4359982225a70e49a0 SHA512 d87f69c0941c977ec393c4ae19f7422a12d38b94e4f1a868825fe06b3ec7db7516178b7ae94827995fdac1fc5ff990f81ff911028d4c6866f1df51a04a0c2421 WHIRLPOOL 6d1f3447209a199e54e73e8b1110188279763e1a99d58eb44e39dfac44c78ec9e2b98345524c1b4a1caf11789404d0a8fa45b149279ede3a9320e1f8ba214283 -MISC ChangeLog 42606 SHA256 4fcb465c816661aeee8b4de0fe23cd95d91733f6ead9865e5c5a799e3efd5be7 SHA512 2a3240580aa76ba73cf61690d3a2f7e97d0360041e538ded506a3b22e0581d4da2e2f2cceafdef7d2681e9a9eaccc79c0d74e3ccc490a2d4292e6c1743e99857 WHIRLPOOL a91316b0dffebf00cc6135c92888dcbf0126c8e533dde15284a3ad2b6ec861cd405b17c957b20a5e282c55d2e633d3e33d9738eb88138f06e6429bf79a833df6 +EBUILD timezone-data-2014j.ebuild 4397 SHA256 3137fffd137796462c7b0447c7a563f2482495157cc35435df5f7343fa2bfff9 SHA512 38e29e8a9747bdb5c9a024fa7de187367d9fe5da2d0d8361aa0b6956eecad2fd34a4a1ba8438c3ec498c4df29efe7617f1ac568a32108a0a66ee4ad0ee49fcff WHIRLPOOL 8311987125e64e9d564cab0f9242cbef67b7bd623f326be75408074f7d03f506fc75ac64af5409269b8ed38bf8eae31e11bf62a3c4a9b2fcd7e14e8d7c387df3 +MISC ChangeLog 42843 SHA256 73a8bcfae55c07cfbe138e23ef3b5b252ccb9434fc330b1cada79db36c6797f4 SHA512 e439805cde3409634962fb855dc8d0e2136046811ef902e9d8214db7ccda3137c9a7e8b2b5127d7d6fd9f9d59603cb0e8d78f842796bb5cd5ae37956750de9aa WHIRLPOOL e320da83e089b400c3b9020c96937609934eb9596ce020e50dfc2e39a5d1f6d8ef76b1a0078dd6a8b0fec77bbcb92f7d2c8c5d404f4bf10e85c1ee871b3d19e1 MISC metadata.xml 472 SHA256 4ab35a5283c62aa867e05bcfdcaeb90e5ac191347a32735d37290885502a2511 SHA512 f91ce6146a369ddb6ee82c0d6e221ceb1fbe9beb073c2e37c27b07e0684c701328891a51f58ef9fefea6007e0111979af7034787b167735fb6d79c8462d9dfcc WHIRLPOOL ab3bbde9fbc205a887f591b7362034b01081c9a477dab314acfd92b4aa4b7e010532fdee7b2684504044fb3df2e8e8d09466d67765ec9feff3a2223ff7c54a1e -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 -iQIcBAEBCAAGBQJUTGheAAoJEPGu1DbS6WIAkdYP/39p4S8/gEKNpViqbST0dIMB -Lss4mhcHSIo/2eDhKl6xYRP+u26qRNP5Z80bp+hgmMzd25pSIdVH18HDb9GEn3jd -DxV2lEBdUn3cMTQFKoQWbLcAe8CwbjNGLEBCLhsGp12hWURPP8V2+zAignJy38bY -wZHRkwpE4DEWy8Dx1r9tTINRtKoRQY4jNCQzlGASRpzb1A0u+ocgThkIYqNTZBGr -/hAc0E77msloYHJLsKW5FWKzYJu5IK2JmeUdU4w6W6nhkTC6B5lJqzEs6owiCqGW -DLEV/RGxUDAxDgnQtPeKGXt7nbEJn0dBkVbMX9MMVbk1JMcWfeZB++jzjXW9JJxx -FvRKBUgsvSXXEvdUBNIbLTk3n8WQXKNjETh4vKGYe4hZM9rU3LUw4kH7nHVgcM/x -BAZ3tN3VK3NXUWbEU7ph5nxvzaA8Vq99/gZXQdYpKzUKa0H/BX4WLEDphvg2ceN+ -H/SgQZjsPEIGZAmEX2PSDFOH1AKMd4YfzStAZ0sT1Ta0pivdiDEYiZmnto3QHBYT -L2piYGTS0xBqnoOAaF5vhIJuCJds2jtIJhSN2NdxCrch8zAjwf4g9nIYIKh+ZFeh -RSX3+RA+h9gXqaghub1Kg4nvhRRAXhB8RCDWc1qGo0qcu0i7unqh+CxrxeHbo1Y/ -9THmgJEIejpvYWw/l8Lj -=HxXl +iQIcBAEBCAAGBQJUYqKXAAoJEPGu1DbS6WIAqwUQAIRt6i94Z1aoBUNWzB0iFHgR +ytnwg48G9RY7I5aa6pWL5AWXM7KdQpUzj7aj1ONoNGh/PngBPFvLbDIlfn9drRet +0GEZw8BfVN67kx1VoAj899NrwSBq5RK5s76JcFXHJZXJkv+Sa0HAwPyND6SxuPX5 +miAAkO6xNTGI51mHmX8VRCZfzOQ166OnOevUWi6aqyxOOmBP5WJHyZeGTM6VSyeq +b+2YPJbcKw05EMN9ItaLXO4V3ZakNzkHFIsJ/lO+nzBxTNzfOTSQRQ1Cn/QhWlY3 +Rm4SDw5flLjx1MRb0K7tVp8PK0PpaiM/G1sRNiFU6hxvJlSVr2qCpnaKhrMoyDoJ +hSBunajus05KG6uRQkLIOhQafrj0MlRrKvtncrW4sVlcCzVKByPb64RM0KIJB9Py +ZcRCL4qZ69d3tUZZqjDVW6EVeq2nKA3jJHLR1uP+fo1aR2eyQhb8oEHqMEtXFp4r +5YNvPQnFp8iJjGeJwi3fcO4IQ9XPryLLQakS9xSYjALATNcWD9/gMCE9BX9MJ9tF +etto54l05pRiMtTY5wE7xb8l7mBZkzEC/dMKulx5h4CT0AsmYuQqUrLZ9FnH+DFa +5S73GV5rrsTd+YFhAXev7oHeSR4WleMo/uszG8EDfD5lkBGmc7wpmMciUUmLBFGL +qowR2T/n98Jj01Q8HQHR +=+BcP -----END PGP SIGNATURE----- diff --git a/sys-libs/timezone-data/timezone-data-2014j.ebuild b/sys-libs/timezone-data/timezone-data-2014j.ebuild new file mode 100644 index 000000000000..be37aa18b0fc --- /dev/null +++ b/sys-libs/timezone-data/timezone-data-2014j.ebuild @@ -0,0 +1,151 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/timezone-data/timezone-data-2014j.ebuild,v 1.1 2014/11/11 23:58:13 vapier Exp $ + +EAPI="4" + +inherit eutils toolchain-funcs flag-o-matic + +code_ver=${PV} +data_ver=${PV} +DESCRIPTION="Timezone data (/usr/share/zoneinfo) and utilities (tzselect/zic/zdump)" +HOMEPAGE="http://www.iana.org/time-zones http://www.twinsun.com/tz/tz-link.htm" +SRC_URI="http://www.iana.org/time-zones/repository/releases/tzdata${data_ver}.tar.gz + http://www.iana.org/time-zones/repository/releases/tzcode${code_ver}.tar.gz" + +LICENSE="BSD public-domain" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" +IUSE="nls right_timezone elibc_FreeBSD elibc_glibc" + +RDEPEND="!sys-libs/glibc[vanilla(+)]" + +S=${WORKDIR} + +pkg_setup() { + # Deal with the case where older timezone-data installed a + # dir here, but newer one installs symlinks. Portage will + # barf when you try to transition file types. + if cd "${EROOT}"/usr/share/zoneinfo 2>/dev/null ; then + # In case of a failed upgrade, clean up the symlinks #506570 + if [ -L .gentoo-upgrade ] ; then + rm -rf posix .gentoo-upgrade + fi + if [ -d posix ] ; then + rm -rf .gentoo-upgrade #487192 + mv posix .gentoo-upgrade || die + ln -s .gentoo-upgrade posix || die + fi + fi +} + +src_prepare() { + epatch "${FILESDIR}"/${PN}-2014h-makefile.patch + tc-is-cross-compiler && cp -pR "${S}" "${S}"-native +} + +_emake() { + emake \ + TOPDIR="${EPREFIX}/usr" \ + REDO=$(usex right_timezone posix_right posix_only) \ + "$@" +} + +src_compile() { + local LDLIBS + tc-export CC + if use elibc_FreeBSD || use elibc_Darwin ; then + append-cppflags -DSTD_INSPIRED #138251 + fi + export NLS=$(usex nls 1 0) + if use nls && ! use elibc_glibc ; then + LDLIBS+=" -lintl" #154181 + fi + # TOPDIR is used in some utils when compiling. + _emake \ + AR="$(tc-getAR)" \ + CC="$(tc-getCC)" \ + RANLIB="$(tc-getRANLIB)" \ + CFLAGS="${CFLAGS} -std=gnu99" \ + LDFLAGS="${LDFLAGS}" \ + LDLIBS="${LDLIBS}" + if tc-is-cross-compiler ; then + _emake -C "${S}"-native \ + CC="$(tc-getBUILD_CC)" \ + CFLAGS="${BUILD_CFLAGS}" \ + CPPFLAGS="${BUILD_CPPFLAGS}" \ + LDFLAGS="${BUILD_LDFLAGS}" \ + LDLIBS="${LDLIBS}" \ + zic + fi +} + +src_install() { + local zic="" + tc-is-cross-compiler && zic="zic=${S}-native/zic" + _emake install ${zic} DESTDIR="${D}" + dodoc CONTRIBUTING README NEWS Theory + dohtml *.htm + + # install the symlink by hand to not break existing timezones + if ! use right_timezone && [[ ! -e ${ED}/usr/share/zoneinfo/posix ]] ; then + dosym . /usr/share/zoneinfo/posix + fi +} + +get_TIMEZONE() { + local tz src="${EROOT}etc/timezone" + if [[ -e ${src} ]] ; then + tz=$(sed -e 's:#.*::' -e 's:[[:space:]]*::g' -e '/^$/d' "${src}") + else + tz="FOOKABLOIE" + fi + [[ -z ${tz} ]] && return 1 || echo "${tz}" +} + +pkg_preinst() { + local tz=$(get_TIMEZONE) + if ! use right_timezone && [[ ${tz} == right/* ]] ; then + eerror "Your timezone is set to '${tz}' but you have USE=-right_timezone." + die "Please fix your USE or timezone" + fi +} + +pkg_config() { + # make sure the /etc/localtime file does not get stale #127899 + local tz src="${EROOT}etc/timezone" etc_lt="${EROOT}etc/localtime" + + tz=$(get_TIMEZONE) || return 0 + if [[ ${tz} == "FOOKABLOIE" ]] ; then + elog "You do not have TIMEZONE set in ${src}." + + if [[ ! -e ${etc_lt} ]] ; then + # if /etc/localtime is a symlink somewhere, assume they + # know what they're doing and they're managing it themselves + if [[ ! -L ${etc_lt} ]] ; then + cp -f "${EROOT}"/usr/share/zoneinfo/Factory "${etc_lt}" + elog "Setting ${etc_lt} to Factory." + else + elog "Assuming your ${etc_lt} symlink is what you want; skipping update." + fi + else + elog "Skipping auto-update of ${etc_lt}." + fi + return 0 + fi + + if [[ ! -e ${EROOT}/usr/share/zoneinfo/${tz} ]] ; then + elog "You have an invalid TIMEZONE setting in ${src}" + elog "Your ${etc_lt} has been reset to Factory; enjoy!" + tz="Factory" + fi + einfo "Updating ${etc_lt} with ${EROOT}usr/share/zoneinfo/${tz}" + [[ -L ${etc_lt} ]] && rm -f "${etc_lt}" + cp -f "${EROOT}"/usr/share/zoneinfo/"${tz}" "${etc_lt}" +} + +pkg_postinst() { + rm -rf "${EROOT}"/usr/share/zoneinfo/.gentoo-upgrade & + pkg_config + wait +} |