diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /sys-apps/darwin-miscutils |
reinit the tree, so we can have metadata
Diffstat (limited to 'sys-apps/darwin-miscutils')
-rw-r--r-- | sys-apps/darwin-miscutils/Manifest | 27 | ||||
-rw-r--r-- | sys-apps/darwin-miscutils/darwin-miscutils-10.ebuild | 157 | ||||
-rw-r--r-- | sys-apps/darwin-miscutils/darwin-miscutils-11.ebuild | 158 | ||||
-rw-r--r-- | sys-apps/darwin-miscutils/darwin-miscutils-6-r1.ebuild | 139 | ||||
-rw-r--r-- | sys-apps/darwin-miscutils/darwin-miscutils-8.ebuild | 134 | ||||
-rw-r--r-- | sys-apps/darwin-miscutils/darwin-miscutils-9.ebuild | 131 | ||||
-rw-r--r-- | sys-apps/darwin-miscutils/files/darwin-miscutils-5-error.patch | 14 | ||||
-rw-r--r-- | sys-apps/darwin-miscutils/files/darwin-miscutils-5-stdlib.patch | 20 | ||||
-rw-r--r-- | sys-apps/darwin-miscutils/files/darwin-miscutils-5-w.patch | 10 | ||||
-rw-r--r-- | sys-apps/darwin-miscutils/files/darwin-miscutils-6-w64.patch | 17 | ||||
-rw-r--r-- | sys-apps/darwin-miscutils/metadata.xml | 8 |
11 files changed, 815 insertions, 0 deletions
diff --git a/sys-apps/darwin-miscutils/Manifest b/sys-apps/darwin-miscutils/Manifest new file mode 100644 index 000000000000..e85c9e319f38 --- /dev/null +++ b/sys-apps/darwin-miscutils/Manifest @@ -0,0 +1,27 @@ +AUX darwin-miscutils-5-error.patch 269 SHA256 4870dfd866f6b9b7220682cfb2eee223fd13ac561d53fd691aa265c5b06769bd SHA512 169b592c4a1563489d5581fdd5fde1139c9384577b1e8e8d7f221b64835311ff927ec15f166686a6996115d135f7f2d7c35e0207387c203bb8fdc25525605e3a WHIRLPOOL 7e05fb59b108ad045119073ceeb581df3eace4618db1317e8ecc795d989c5b2a010db9105a7a279b9abd8428266a5280af858c43261fe53ad9aca1d6b0d3180a +AUX darwin-miscutils-5-stdlib.patch 540 SHA256 6893425ca05712ad202922c9d183e053d98be3c3debcf491356d5d43bb6309db SHA512 b9ec8b65cc17da06a88fe7570be66682c8dadecd7af1ee6fe95b560340d9bf71516417338fef4ae99fca22069773f5baba499723e78d2b73f5eb5aa5e2eb7463 WHIRLPOOL dc976ac1faeeaef486c3d7e3d318047b5d4bd7f53d3cb4a5e376506af3dc7e8377e6ed361f4cfe3721c610a800e7490a4e8022ce85caefedc2cf75fbb2e517e3 +AUX darwin-miscutils-5-w.patch 201 SHA256 42424190d253de8931bc3cde78aad2bd2fce695dc2998781e156c42121c2ab36 SHA512 5fa14a48c74d6b99b135b3c1c8135756a15f3bde9844f25408cabde9e752caee95e891fbb6ea71bdf428b68be0d41219dcaa660e8a936460fe8ab59fe44f7bc4 WHIRLPOOL 69b736f54598e85ef0db87bace0c3a0b874955ad9e629f9549d56774a6bec58bb13c56216a628908a4acdb1f994871ff560135176ace6d4003ce950901cca30a +AUX darwin-miscutils-6-w64.patch 584 SHA256 a7b5e1e481704fe400fe29bf6d3d71ef8185505a3c20d6afc5f4f12eebc8eeb8 SHA512 590b2af77934a66e1e41b2e22440038991ab258854b690d29527b84a06f0ffe1c19d5ff9022f024796c9cec84fefb80afc098749033dfd60ccda337f0059ce40 WHIRLPOOL d588811786f346f3fc1a3ad9b98e4a56a12a785c9d27ab927b8ccbebb03c548b2dc34c2f632d13bd3d3217f125e8516d593221d06d98c0f505d2a2f85f07ccad +DIST adv_cmds-md-147.1 3623 SHA256 6283a00e52ef6d278afb1fa4d0e8bc7bce8bebff3e6b3da71812fcfdb415592f SHA512 459beb2b7c92b8718c76d744bbabf631bf8c329feb65c9434ce8a023c73ceac2d207c95e39c4b90b095a4724a74096a3d1bed9122883eb54e5311dfc64ffc718 WHIRLPOOL 79ebe5d5a73443665ba8804ff8867f1ad045d8b5df104b1396f00ca8ba4819d1e82ae5b31dffbf26d648748f8bccf5e01be5aba553d7955bbde13cc04be6104b +DIST adv_cmds-md-147.c 25945 SHA256 089a4ad849da2c1a2b23fbc18dbc6860b26a367f528972d99ea361245a06c882 SHA512 93e70f7d8697652b5a3c661975d21b51545d2eb07de64fd40524fcf0d5016dae9ae1dc63c4a85cb5ad455c8d1c246b7f5f2eac38226dcefbf4cab12b0b1c7592 WHIRLPOOL 4299250fe3d0b475798d139fffcb83e17ab88283099a4d6d0669ee86e58b861b3a5409535aa9310d6729f086334a7a0d703df5b5d81b8816933fb67b6152df89 +DIST developer_cmds-49.tar.gz 307753 SHA256 db0f2611c8efb0ec781cb8f03878958c589c8953ba9002e051afa4fc3bb6a762 SHA512 3750374c891f6d681829986291d887cacf2c5b1c7a5de94f12c92ded0b3456157b85e57653c6061526d1f6626a7be8a9e6db9c1df09e2bb3e40c7fa20b9b4103 WHIRLPOOL f167e2a95ab2f8325130fe3f418771d9aee09e268e9649bf6230601586ec41d940c52fb4a02b938a30d5059541eccf20845044ef07bef64afdbd5635c15e2073 +DIST developer_cmds-53.1.tar.gz 139637 SHA256 f3f6cc44336fae506a5c7ca1e71aeaa00da89b4337298fcd4d13953bbfa6edb8 SHA512 ac15b499d0642332e8deae2f498e5ffb0c64502e2d877bbdfe0fac4118e17fe525b169f3b015cfe8c9f40e2688bd30df4b050fe50eaa706b21a2e62ca9dd4b80 WHIRLPOOL ee747b3f8c56091f77735c2a59e0ef3d9486b5af32c44c2ed382324bf71e7f29f7ac9c8426247f7fdfa63a667acca99f6af1fcc29548fdd73b51706ba41e923e +DIST developer_cmds-55.tar.gz 139664 SHA256 1760a430552057304ecc2c20bb0acd3683a3a0325f29a1e27065818d2515e91a SHA512 062e4c4a2b1ba4cffe7e850d07f4351c736988958450735f9f653936d64defa3347c9dac7b5fea3dcd25f8efe076133dc9ac3edb4a3e512387d6842bd177c35e WHIRLPOOL cae216847b8e6075fa8051d6d260cc91fff259f81717d19a988ada30e42c8b9728b6ce3330cbcef403639fbf5c52230d20a2272bc1154f3bcf18e3c3f4123ac7 +DIST developer_cmds-63.tar.gz 110662 SHA256 d4bc4a4b1045377f814da08fba8b7bfcd515ef1faec12bbb694de7defe9a5c0d SHA512 4f672835f0290feaf54c7c268b31774282325448f30c02e4f12ead84c41e15083784fac4c9c4916c098953bc61aa8f29bea24a7b51312428aa87448595be50a1 WHIRLPOOL 0b4835a8d3b97817baed0d78b5f636b6dafdd31874838e792764373a91026bda44241daf3e575db659bf14434654e763832bb85864972e98d19d52c5c89e5b6c +DIST misc_cmds-23.tar.gz 114747 SHA256 150c74e3041db4cb02b1aabddfedb998c152bfba616ed6e24b2b98d025fef785 SHA512 0e02a939c308f4483cf11cb8b21face84f442589e3774b1827ed0ab5064ee2b433a4468ac634051fa0817919f5d39ac1ed56c67b1f5b011b83388a3806ed33c8 WHIRLPOOL 586a091fc6ead5c5398a05e3af1137cf67314e458cb44dc0f60a2099e65f53e4b569dd045c17e0f455f1cc0b4248c94b358cb5b08cf54033dc883f356a058d49 +DIST misc_cmds-27.tar.gz 116351 SHA256 29d1b32dfceaa3364e81d50e10b8ce7721448cb0c8218ecb90491666a00efca4 SHA512 594560b179f7dafc651d3a336d33bcb7075f2199cf4964e95d63164faf19bd50ef3a6095124f0e4f91c50d1bceeb831fcd81ceecf740e2696a8e7445c1a690d2 WHIRLPOOL 6bca894b7ab1c7de9b3453e075060ec4bd35019713641c9527dd562f253eda0cc35f3b9b631bd197c3fc38ffda575701843671e3fae263fa4655455e80e73cd2 +DIST misc_cmds-31.tar.gz 121187 SHA256 1e0cdf2af9b28245af40168fc48e010e260b62fd48ddbcb95e62851d2765f37c SHA512 d49bb8a49c23aa7efaa7db1958676390b4d5ef1b2e57f80b0bea0f10b8b29a6c3ec6d2d7a1248d3af77d382c5113fb3cbf9d3632ca92bb51c01d8c286fd9f25f WHIRLPOOL 1b3d060418ccf353d975696cd7d19354ca2b0b8795f91e185cc467fc2e9fa7683a20e6ce6e70109310e8cfff69b027efbf6e25c159e41102d62bffc36b2754d5 +DIST misc_cmds-33.tar.gz 123114 SHA256 a65ea0149f09640576cafce07f6acac8135391ebf6647ac31cf3c11e211bf58a SHA512 34957adaebe4ce1569464a466e13aaaa6a567c582b784b99dd260c891a417d37a0297bf11acc9eb16dfabed18f42480058ae726e0a56b7d98ed93b59f75a5644 WHIRLPOOL e4fdcebca12844d4e144dc2f4125ac10528d7f1f75150bd5a23659690545713b590fd62a42d7a49fbbf0de2c3b59618482119d6d3bfebefe69d934db2ff3a2c8 +DIST shell_cmds-118.tar.gz 162145 SHA256 c4628a25407d940717f3e062e48e31bf3de2ce07e006bf909d69f927af92adb4 SHA512 efce064b76087451293a6992b7946fb0811856275796efa9e1e30459edf9eb0462929a1f0d28d189bf7e85fdde4d9e80b8637d042497b1e6e9216c8888d0d57b WHIRLPOOL a1d66933d390a305ea0351e2279cb7c2e7c0d3460fd0e66c642caffa730a7becb51cdc1552f7d024df657c14b53a72426373508259fd57a8f30f3f31d4c18df6 +DIST shell_cmds-149.tar.gz 173740 SHA256 87263d7fc8626da3e12f8ebae458293da7c4b12a0ce591dcf93b638e6519ff43 SHA512 e0f87db828c994bad73e4340f1957378ce5c84419172ed1d6b9d63809b90edfa447cce658e715565c5c2a7d2eaf0a9ee75e24fdb6d86080063621e0f83eb2a77 WHIRLPOOL 191e6852f34efe0390348aca7d2276042c68e04f20e2ccf2eb71e230e0d552ffddbb3a49b34b031d0b41aa941bcd0283305c75dc0bab1dc05a3266437f0a5103 +DIST shell_cmds-162.tar.gz 179189 SHA256 42d5ad4fbcaca83620a3ab709a41b21a18224589c844c716223489418e04e3d6 SHA512 784b6b8b3a90967d79f5a60a23e7f31f7bc92712dac9cdb625770f92b58bd6902669aa19bb59997cc654fcc0e27ddd45f60b1990e7da95d0e6c90fd7f2434f95 WHIRLPOOL cd06c734a1f1ba1169ed72ec99f8072dd0e7b608ad0764857873622c6ea0d9a99fdabd6b2ef2fc87f036dbe34e2caebfd5c6927e2440cb35375ea9c77e40c44e +DIST shell_cmds-170.tar.gz 212954 SHA256 3f2849de051ae51e7b6cec56d90443f9168a9f9a7b9002cb4b51ece9a817b81c SHA512 b267a9b5e922c9952451ca05e5f9e328504dc46b5776e1a8405f8e41a604d7f184d70742cb6fa6646875bc1789082097c74eabcc151ac5568ba26ed858269ce7 WHIRLPOOL c036eba542fdf07843cd9ef9e781db379c90e95264918596c71f99cff2547ac877e5c3619b53d25e65e0c67a0fb42a3d32755efc6d9f4235b7d714e90047d8b5 +DIST shell_cmds-198.tar.gz 411088 SHA256 70404d7b51b4de6ed5ec0e02d52bd5a41f17e23a624dad162615625884a5238d SHA512 6e3a43f0cd9b1e3799d1ba79f4fcc4c3bb9be178c35cba2bef9227ecc259ca52c39b4d0e39c71d9af689e07f48dbeee6806bd623286f116f7d3ee3889dc7c71f WHIRLPOOL f84ba1cb0b21897faa5dd3c2674649ea3686c73557b894af478c9460bf29d2f548488a699ec8bbdb8154c031d5067f44d1ebdf87c77e75935e507a1a101a63f7 +EBUILD darwin-miscutils-10.ebuild 4802 SHA256 67bb0b809e115df7dc970dd9dd1f110764370d3b2656856c0e62f2339e852131 SHA512 ee5c9e4938ae770bfb0610b2d5a31ee8d5c0cc3d5bf2f967bdd0ed8579baa0b12d0c99e5ac543ac23b07a7e5364b7eaac03a2b16984a9add99c15b72cf3c7175 WHIRLPOOL d26b9957af034b4383d63b68691ea1f169b4ac29077f0a7e14ec6f16408295342d72357d59720567c3daee6005ebeed4257546690f1f3b36f49f19659f95cbad +EBUILD darwin-miscutils-11.ebuild 4730 SHA256 47e255c24e7c6e30e58017b0dd56f431f360ed99bd4ae74abb5856d606ad58e1 SHA512 c9e04da6422c370b04c8054ac2dcef573630a05d5ba21b39cab100f6dd30a43540fd03c9a3aff0e9aaac53fd1307b8130217925b8160c48527277c83e63e08ee WHIRLPOOL e762cf0bbb8054122f63a75e6b507c9174ff144591eeb413be2d270bf6f64e330aa4d03956c25bed8b798c0828b30e731743de0b4674c6b3ff36acc975888f12 +EBUILD darwin-miscutils-6-r1.ebuild 4255 SHA256 0bd87d1c7f6c60d86158a05a4366e5086abe6bb504a39a160048abde8076e004 SHA512 5bec5032b942963bd5652283c5914e2a6f5e4655951ac90ec680a042cc37576b3a47df969f54d4b5276bc799e1c516298e8a605d64e83e485703305384f75151 WHIRLPOOL 25806ac269a9a689558e34fd6ad3e2629804ad9075b6891c97630d424b49d76074b24c89de6b6a60a057dca6eb504995c25bd81cbf77c37992add1cf0bae70b2 +EBUILD darwin-miscutils-8.ebuild 4095 SHA256 5af638819ef713e3e293386490e7b6cee8923df50507843f05545e42a277c1b1 SHA512 748ca7f62e8f4cfca2ff19668a590b63268628cbbd6299e490b220356c0c854987fcca0ceb3b65b2c1fbc545b07bc275c448ab87a1fb15c2cd591baf6f9d17f7 WHIRLPOOL b223e7cf422308fddbc2c8ac02c17d597c2cc96c2edc214168af31a9bff86e4c1c5948d79d43a7a06e7c98a25ccfcf464ca0bdca0e2a7c7f9977bdf5507133dd +EBUILD darwin-miscutils-9.ebuild 3955 SHA256 de07bd8fd229b180266aa35a915aa64fab21ee3bbec7bc7a5eb6833a8c381ce8 SHA512 de3a869b5880c39d82bfbcaf8b61591324ca10efd0be1e884933ba75b19d61a8670e23c5163389406a1a9c3b6db9b8ee0550a63394dd6c35c5c658295211c60c WHIRLPOOL 68732808f787a89b65c4a52c6f8d77eb4031d4b4b22b65eb92c79051dd8218c343aae7729f4773ca9296fc15e9eb88c0aa4234d907f87a1ea79ee9ceb38671e1 +MISC ChangeLog 2999 SHA256 29437dd488363a51ff5c9a4e574fe02d61548adf838dd8f1ca996c16ab3b37c4 SHA512 9cccfce77a03d4f88869b0dd4b448c057fda4b70e1dbdcf2cf8162aff95385ffcb8ae558c88df344ab749fd89855f9eded41e91ba0a205fb7f6e4c0ca96363ff WHIRLPOOL afea1049809e883d1726cb259f9e4388092f172eb21eeb203b8ca0cdb5d5e67629dc4d903fc2171ee5971b33510406ce2290d3460820d5a91e8d950ef1d5b55d +MISC ChangeLog-2015 3389 SHA256 8537994625d6aebf6142f73f4c263f1b72b9affa4c13c2d24319ced337277672 SHA512 419a9d303bf25b0067909bf453e249873bdfc405357d66d0e812ab93a7ccef7583beb6bf18e02146f6f76f7930b33736034a9421b3f48cf93a2a9aaa94f7a449 WHIRLPOOL b5eaa32132952d39710428154c19782abcef280007657814b5d47cc28c1964e3afb233a6083f95a20f9491a943e2140db30e6ebe5596b002112fbd9b92396ef0 +MISC metadata.xml 247 SHA256 beb9a5395fe6fcde3c82e31b0cde4a75ea911efb59294b0419f76b71e4518366 SHA512 ae91bc559b2380b04af0bacbaf419deb042e9a9235c596c1afdbbb3933e59ba4f895c6e7ebf8fa4884702d5b39febedfdcce109ab912d6ef4f51b3696bc82c18 WHIRLPOOL b82c282b0539e6427a6d6dc1d6742794f922e0b6276dbc7acb805735d6654c79600eb6f650a9c1e36cd727a63d1f1655d728535082154a218c6fb40c01eb8fe0 diff --git a/sys-apps/darwin-miscutils/darwin-miscutils-10.ebuild b/sys-apps/darwin-miscutils/darwin-miscutils-10.ebuild new file mode 100644 index 000000000000..67fe14641673 --- /dev/null +++ b/sys-apps/darwin-miscutils/darwin-miscutils-10.ebuild @@ -0,0 +1,157 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +inherit toolchain-funcs eutils + +# from 10.8 +MISC_VER=31 +SHELL_VER=170 +# from 10.7.4 +DEV_VER=55 +MD_VER=147 # 148 in 10.8 has no md, bug #428530 + +DESCRIPTION="Miscellaneous commands used on Darwin/Mac OS X systems, Mountain +Lion 10.8" +HOMEPAGE="http://www.opensource.apple.com/" +SRC_URI="http://www.opensource.apple.com/darwinsource/tarballs/other/misc_cmds-${MISC_VER}.tar.gz + http://www.opensource.apple.com/darwinsource/tarballs/other/shell_cmds-${SHELL_VER}.tar.gz + http://www.opensource.apple.com/darwinsource/tarballs/other/developer_cmds-${DEV_VER}.tar.gz + http://www.opensource.apple.com/source/adv_cmds/adv_cmds-${MD_VER}/md/md.c?txt -> adv_cmds-md-${MD_VER}.c + http://www.opensource.apple.com/source/adv_cmds/adv_cmds-${MD_VER}/md/md.1?txt -> adv_cmds-md-${MD_VER}.1" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~ppc-macos ~x64-macos ~x86-macos" +IUSE="" + +S=${WORKDIR} + +src_prepare() { + cd "${S}"/shell_cmds-${SHELL_VER} || die + epatch "${FILESDIR}"/${PN}-6-w64.patch + + mkdir -p "${S}"/adv_cmds-${MD_VER}/md || die + cp "${DISTDIR}"/adv_cmds-md-${MD_VER}.c \ + "${S}"/adv_cmds-${MD_VER}/md/md.c || die + cp "${DISTDIR}"/adv_cmds-md-${MD_VER}.1 \ + "${S}"/adv_cmds-${MD_VER}/md/md.1 || die + + eapply_user +} + +src_compile() { + local flags=( + ${CFLAGS} + -I. + -D__FBSDID=__RCSID + -Wsystem-headers + -Du_int=uint32_t + -include stdint.h + ${LDFLAGS} + ) + + local TS=${S}/misc_cmds-${MISC_VER} + # tsort is provided by coreutils + for t in leave units calendar; do + cd "${TS}/${t}" + echo "in ${TS}/${t}:" + echo "$(tc-getCC) ${flags[@]} -o ${t}" *.c + $(tc-getCC) ${flags[@]} -o ${t} *.c || die "failed to compile $t" + done + # compile cal separately + cd "${TS}/ncal" + echo "in ${TS}/ncal:" + echo "$(tc-getCC) ${flags[@]} -c calendar.c" + $(tc-getCC) ${flags[@]} -c calendar.c || die "failed to compile cal" + echo "$(tc-getCC) ${flags[@]} -c easter.c" + $(tc-getCC) ${flags[@]} -c easter.c || die "failed to compile cal" + echo "$(tc-getCC) ${flags[@]} -c ncal.c" + $(tc-getCC) ${flags[@]} -c ncal.c || die "failed to compile cal" + echo "$(tc-getCC) ${flags[@]} -o cal calendar.o easter.o ncal.o" + $(tc-getCC) ${flags[@]} -o cal calendar.o easter.o ncal.o || die "failed to compile cal" + + TS=${S}/shell_cmds-${SHELL_VER} + # only pick those tools not provided by coreutils, findutils + for t in \ + apply getopt hostname jot kill killall \ + lastcomm renice script shlock time whereis; + do + echo "in ${TS}/${t}:" + echo "$(tc-getCC) ${flags[@]} -o ${t} ${t}.c" + cd "${TS}/${t}" + $(tc-getCC) ${flags[@]} -o ${t} ${t}.c || die "failed to compile $t" + done + cd "${TS}/w" + sed -i -e '/#include <libutil.h>/d' w.c || die + echo "in ${TS}/w:" + echo "$(tc-getCC) ${flags[@]} -DHAVE_UTMPX=1 -lresolv -o w w.c pr_time.c proc_compare.c" + $(tc-getCC) ${flags[@]} -DHAVE_UTMPX=1 -lresolv -o w w.c pr_time.c proc_compare.c \ + || die "failed to compile w" + + TS=${S}/developer_cmds-${DEV_VER} + # only pick those tools that do not conflict (no ctags and indent) + # do not install lorder, mkdep and vgrind as they are a non-prefix-aware + # shell scripts + # don't install rpcgen, as it is heavily related to the OS it runs + # on (and this is the Snow Leopard version) + for t in asa hexdump unifdef what ; do + echo "in ${TS}/${t}:" + cd "${TS}/${t}" || die + echo "$(tc-getCC) ${flags[@]} -o ${t}" *.c + $(tc-getCC) ${flags[@]} -o ${t} *.c || die "failed to compile $t" + done + + TS=${S}/adv_cmds-${MD_VER} + for t in md ; do + echo "in ${TS}/${t}:" + cd "${TS}/${t}" || die + echo "$(tc-getCC) ${flags[@]} -o ${t}" *.c + $(tc-getCC) ${flags[@]} -o ${t} *.c || die "failed to compile $t" + done +} + +src_install() { + mkdir -p "${ED}"/bin + mkdir -p "${ED}"/usr/bin + + local TS=${S}/misc_cmds-${MISC_VER} + for t in leave units calendar ; do + cp "${TS}/${t}/${t}" "${ED}"/usr/bin/ + doman "${TS}/${t}/${t}.1" + done + # copy cal separately + cp "${TS}/ncal/cal" "${ED}"/usr/bin/ + dosym /usr/bin/cal /usr/bin/ncal + doman "${TS}/ncal/ncal.1" + dosym /usr/share/man/man1/ncal.1 /usr/share/man/man1/cal.1 + + TS=${S}/shell_cmds-${SHELL_VER} + for t in \ + apply getopt jot killall lastcomm \ + renice script shlock time w whereis; + do + cp "${TS}/${t}/${t}" "${ED}"/usr/bin/ + [[ -f "${TS}/${t}/${t}.1" ]] && doman "${TS}/${t}/${t}.1" + [[ -f "${TS}/${t}/${t}.8" ]] && doman "${TS}/${t}/${t}.8" + done + cp "${TS}/w/w" "${ED}"/usr/bin/uptime + doman "${TS}/w/uptime.1" + for t in hostname kill; do + cp "${TS}/${t}/${t}" "${ED}"/bin/ + doman "${TS}/${t}/${t}.1" + done + + TS=${S}/developer_cmds-${DEV_VER} + for t in asa hexdump unifdef what ; do + cp "${TS}/${t}/${t}" "${ED}"/usr/bin/ + doman "${TS}/${t}/${t}.1" + done + + TS=${S}/adv_cmds-${MD_VER} + for t in md ; do + cp "${TS}/${t}/${t}" "${ED}"/usr/bin/ + doman "${TS}/${t}/${t}.1" + done +} diff --git a/sys-apps/darwin-miscutils/darwin-miscutils-11.ebuild b/sys-apps/darwin-miscutils/darwin-miscutils-11.ebuild new file mode 100644 index 000000000000..82bea18938fe --- /dev/null +++ b/sys-apps/darwin-miscutils/darwin-miscutils-11.ebuild @@ -0,0 +1,158 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +inherit toolchain-funcs + +# from macOS 10.12 +MISC_VER=33 +SHELL_VER=198 +# from DT 8.1 +DEV_VER=63 +# from 10.7.4 +MD_VER=147 # 148 in 10.8 has no md, bug #428530 + +DESCRIPTION="Miscellaneous commands used on macOS, Sierra 10.12" +HOMEPAGE="https://www.opensource.apple.com/" +SRC_URI="https://opensource.apple.com/tarballs/misc_cmds/misc_cmds-${MISC_VER}.tar.gz + https://opensource.apple.com/tarballs/shell_cmds/shell_cmds-${SHELL_VER}.tar.gz + https://opensource.apple.com/tarballs/developer_cmds/developer_cmds-${DEV_VER}.tar.gz + https://opensource.apple.com/source/adv_cmds/adv_cmds-${MD_VER}/md/md.c -> adv_cmds-md-${MD_VER}.c + https://opensource.apple.com/source/adv_cmds/adv_cmds-${MD_VER}/md/md.1 -> adv_cmds-md-${MD_VER}.1" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~ppc-macos ~x64-macos ~x86-macos" +IUSE="" + +S=${WORKDIR} + +src_prepare() { + cd "${S}"/shell_cmds-${SHELL_VER} || die + eapply "${FILESDIR}"/${PN}-6-w64.patch + + mkdir -p "${S}"/adv_cmds-${MD_VER}/md || die + cp "${DISTDIR}"/adv_cmds-md-${MD_VER}.c \ + "${S}"/adv_cmds-${MD_VER}/md/md.c || die + cp "${DISTDIR}"/adv_cmds-md-${MD_VER}.1 \ + "${S}"/adv_cmds-${MD_VER}/md/md.1 || die + + eapply_user +} + +src_compile() { + local flags=( + ${CFLAGS} + -I. + -D__FBSDID=__RCSID + -Wsystem-headers + -Du_int=uint32_t + -include stdint.h + ${LDFLAGS} + ) + + local TS=${S}/misc_cmds-${MISC_VER} + # tsort is provided by coreutils + for t in leave units calendar; do + cd "${TS}/${t}" + echo "in ${TS}/${t}:" + echo "$(tc-getCC) ${flags[@]} -o ${t}" *.c + $(tc-getCC) ${flags[@]} -o ${t} *.c || die "failed to compile $t" + done + # compile cal separately + cd "${TS}/ncal" + echo "in ${TS}/ncal:" + echo "$(tc-getCC) ${flags[@]} -c calendar.c" + $(tc-getCC) ${flags[@]} -c calendar.c || die "failed to compile cal" + echo "$(tc-getCC) ${flags[@]} -c easter.c" + $(tc-getCC) ${flags[@]} -c easter.c || die "failed to compile cal" + echo "$(tc-getCC) ${flags[@]} -c ncal.c" + $(tc-getCC) ${flags[@]} -c ncal.c || die "failed to compile cal" + echo "$(tc-getCC) ${flags[@]} -o cal calendar.o easter.o ncal.o" + $(tc-getCC) ${flags[@]} -o cal calendar.o easter.o ncal.o || die "failed to compile cal" + + TS=${S}/shell_cmds-${SHELL_VER} + # only pick those tools not provided by coreutils, findutils + for t in \ + apply getopt hexdump hostname jot kill killall \ + lastcomm renice script shlock time whereis; + do + echo "in ${TS}/${t}:" + echo "$(tc-getCC) ${flags[@]} -o ${t} *.c" + cd "${TS}/${t}" + $(tc-getCC) ${flags[@]} -o ${t} *.c || die "failed to compile $t" + done + cd "${TS}/w" + sed -i -e '/#include <libutil.h>/d' w.c || die + echo "in ${TS}/w:" + echo "$(tc-getCC) ${flags[@]} -DHAVE_UTMPX=1 -lresolv -o w *.c" + $(tc-getCC) ${flags[@]} -DHAVE_UTMPX=1 -lresolv -o w *.c \ + || die "failed to compile w" + + TS=${S}/developer_cmds-${DEV_VER} + # only pick those tools that do not conflict (no ctags and indent) + # do not install lorder, mkdep and vgrind as they are a non-prefix-aware + # shell scripts + # don't install rpcgen, as it is heavily related to the OS it runs + # on (and this is the Sierra version) + for t in asa unifdef what ; do + echo "in ${TS}/${t}:" + cd "${TS}/${t}" || die + echo "$(tc-getCC) ${flags[@]} -o ${t}" *.c + $(tc-getCC) ${flags[@]} -o ${t} *.c || die "failed to compile $t" + done + + # provide this one for gcc-apple + TS=${S}/adv_cmds-${MD_VER} + for t in md ; do + echo "in ${TS}/${t}:" + cd "${TS}/${t}" || die + echo "$(tc-getCC) ${flags[@]} -o ${t}" *.c + $(tc-getCC) ${flags[@]} -o ${t} *.c || die "failed to compile $t" + done +} + +src_install() { + mkdir -p "${ED}"/bin + mkdir -p "${ED}"/usr/bin + + local TS=${S}/misc_cmds-${MISC_VER} + for t in leave units calendar ; do + cp "${TS}/${t}/${t}" "${ED}"/usr/bin/ + doman "${TS}/${t}/${t}.1" + done + # copy cal separately + cp "${TS}/ncal/cal" "${ED}"/usr/bin/ + dosym /usr/bin/cal /usr/bin/ncal + doman "${TS}/ncal/ncal.1" + dosym /usr/share/man/man1/ncal.1 /usr/share/man/man1/cal.1 + + TS=${S}/shell_cmds-${SHELL_VER} + for t in \ + apply getopt hexdump hostname jot killall lastcomm \ + renice script shlock time w whereis; + do + cp "${TS}/${t}/${t}" "${ED}"/usr/bin/ + [[ -f "${TS}/${t}/${t}.1" ]] && doman "${TS}/${t}/${t}.1" + [[ -f "${TS}/${t}/${t}.8" ]] && doman "${TS}/${t}/${t}.8" + done + cp "${TS}/w/w" "${ED}"/usr/bin/uptime + doman "${TS}/w/uptime.1" + for t in hostname kill; do + cp "${TS}/${t}/${t}" "${ED}"/bin/ + doman "${TS}/${t}/${t}.1" + done + + TS=${S}/developer_cmds-${DEV_VER} + for t in asa unifdef what ; do + cp "${TS}/${t}/${t}" "${ED}"/usr/bin/ + doman "${TS}/${t}/${t}.1" + done + + TS=${S}/adv_cmds-${MD_VER} + for t in md ; do + cp "${TS}/${t}/${t}" "${ED}"/usr/bin/ + doman "${TS}/${t}/${t}.1" + done +} diff --git a/sys-apps/darwin-miscutils/darwin-miscutils-6-r1.ebuild b/sys-apps/darwin-miscutils/darwin-miscutils-6-r1.ebuild new file mode 100644 index 000000000000..b0b7099617b7 --- /dev/null +++ b/sys-apps/darwin-miscutils/darwin-miscutils-6-r1.ebuild @@ -0,0 +1,139 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +inherit toolchain-funcs eutils + +MISC_VER=23 +SHELL_VER=118 +DEV_VER=49 + +DESCRIPTION="Miscellaneous commands used on Darwin/Mac OS X systems, Leopard" +HOMEPAGE="http://www.opensource.apple.com/" +SRC_URI="http://www.opensource.apple.com/darwinsource/tarballs/other/misc_cmds-${MISC_VER}.tar.gz + http://www.opensource.apple.com/darwinsource/tarballs/other/shell_cmds-${SHELL_VER}.tar.gz + http://www.opensource.apple.com/darwinsource/tarballs/other/developer_cmds-${DEV_VER}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~ppc-macos ~x64-macos ~x86-macos" +IUSE="" + +S=${WORKDIR} + +src_prepare() { + epatch "${FILESDIR}"/${PN}-5-w.patch + epatch "${FILESDIR}"/${PN}-5-stdlib.patch + epatch "${FILESDIR}"/${PN}-6-w64.patch + cd "${S}"/developer_cmds-${DEV_VER} + epatch "${FILESDIR}"/${PN}-5-error.patch + # deal with OSX Lion and above + sed -i -e 's/getline/ugetline/g' unifdef/unifdef.c || die + + eapply_user +} + +src_compile() { + local TS=${S}/misc_cmds-${MISC_VER} + # tsort is provided by coreutils + for t in leave units calendar; do + cd "${TS}/${t}" + echo "in ${TS}/${t}:" + echo "$(tc-getCC) -o ${t}" *.c + $(tc-getCC) -o ${t} *.c || die "failed to compile $t" + done + # compile cal separately + cd "${TS}/ncal" + echo "in ${TS}/ncal:" + local flags + flags[0]=-I. + flags[1]=-D__FBSDID=__RCSID + flags[2]=-Wsystem-headers + echo "$(tc-getCC) ${flags[@]} -c calendar.c" + $(tc-getCC) ${flags[@]} -c calendar.c || die "failed to compile cal" + echo "$(tc-getCC) ${flags[@]} -c easter.c" + $(tc-getCC) ${flags[@]} -c easter.c || die "failed to compile cal" + echo "$(tc-getCC) ${flags[@]} -c ncal.c" + $(tc-getCC) ${flags[@]} -c ncal.c || die "failed to compile cal" + echo "$(tc-getCC) ${flags[@]} -o cal calendar.o easter.o ncal.o" + $(tc-getCC) ${flags[@]} -o cal calendar.o easter.o ncal.o || die "failed to compile cal" + + TS=${S}/shell_cmds-${SHELL_VER} + # only pick those tools not provided by coreutils, findutils + for t in \ + alias apply getopt hostname jot kill \ + lastcomm renice shlock time whereis; + do + echo "in ${TS}/${t}:" + echo "$(tc-getCC) -o ${t} ${t}.c" + cd "${TS}/${t}" + $(tc-getCC) -o ${t} ${t}.c || die "failed to compile $t" + done + # script and killall need additonal flags + for t in \ + killall script + do + echo "in ${TS}/${t}:" + echo "$(tc-getCC) -D__FBSDID=__RCSID -o ${t} ${t}.c" + cd "${TS}/${t}" + $(tc-getCC) -D__FBSDID=__RCSID -o ${t} ${t}.c || die "failed to compile $t" + done + cd "${TS}/w" + echo "in ${TS}/w:" + echo "$(tc-getCC) -DHAVE_UTMPX=1 -lresolv -o w w.c pr_time.c proc_compare.c" + $(tc-getCC) -DHAVE_UTMPX=1 -lresolv -o w w.c pr_time.c proc_compare.c \ + || die "failed to compile w" + + TS=${S}/developer_cmds-${DEV_VER} + # only pick those tools that do not conflict (no ctags and indent) + # do not install lorder, mkdep and vgrind as they are a non-prefix-aware + # shell scripts + # don't install rpcgen, as it is heavily related to the OS it runs + # on (and this is the Leopard version) + for t in asa error hexdump unifdef what ; do + echo "in ${TS}/${t}:" + cd "${TS}/${t}" + sed -i -e '/^__FBSDID/d' *.c + echo "$(tc-getCC) -o ${t}" *.c + $(tc-getCC) -o ${t} *.c || die "failed to compile $t" + done +} + +src_install() { + mkdir -p "${ED}"/bin + mkdir -p "${ED}"/usr/bin + + local TS=${S}/misc_cmds-${MISC_VER} + for t in leave units calendar ; do + cp "${TS}/${t}/${t}" "${ED}"/usr/bin/ + doman "${TS}/${t}/${t}.1" + done + # copy cal separately + cp "${TS}/ncal/cal" "${ED}"/usr/bin/ + dosym /usr/bin/cal /usr/bin/ncal + doman "${TS}/ncal/ncal.1" + dosym /usr/share/man/man1/ncal.1 /usr/share/man/man1/cal.1 + + TS=${S}/shell_cmds-${SHELL_VER} + for t in \ + alias apply getopt jot killall lastcomm \ + renice script shlock su time w whereis; + do + cp "${TS}/${t}/${t}" "${ED}"/usr/bin/ + [[ -f "${TS}/${t}/${t}.1" ]] && doman "${TS}/${t}/${t}.1" + [[ -f "${TS}/${t}/${t}.8" ]] && doman "${TS}/${t}/${t}.8" + done + cp "${TS}/w/w" "${ED}"/usr/bin/uptime + doman "${TS}/w/uptime.1" + for t in hostname kill; do + cp "${TS}/${t}/${t}" "${ED}"/bin/ + doman "${TS}/${t}/${t}.1" + done + + TS=${S}/developer_cmds-${DEV_VER} + for t in asa error hexdump unifdef what ; do + cp "${TS}/${t}/${t}" "${ED}"/usr/bin/ + doman "${TS}/${t}/${t}.1" + done +} diff --git a/sys-apps/darwin-miscutils/darwin-miscutils-8.ebuild b/sys-apps/darwin-miscutils/darwin-miscutils-8.ebuild new file mode 100644 index 000000000000..adbde8fb92e2 --- /dev/null +++ b/sys-apps/darwin-miscutils/darwin-miscutils-8.ebuild @@ -0,0 +1,134 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +inherit toolchain-funcs eutils + +MISC_VER=27 +SHELL_VER=149 +DEV_VER=53.1 + +DESCRIPTION="Miscellaneous commands used on Darwin/Mac OS X systems, Snow Leopard 10.6.3" +HOMEPAGE="http://www.opensource.apple.com/" +SRC_URI="http://www.opensource.apple.com/darwinsource/tarballs/other/misc_cmds-${MISC_VER}.tar.gz + http://www.opensource.apple.com/darwinsource/tarballs/other/shell_cmds-${SHELL_VER}.tar.gz + http://www.opensource.apple.com/darwinsource/tarballs/other/developer_cmds-${DEV_VER}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~ppc-macos ~x64-macos ~x86-macos" +IUSE="" + +S=${WORKDIR} + +src_prepare() { + cd "${S}"/shell_cmds-${SHELL_VER} + epatch "${FILESDIR}"/${PN}-6-w64.patch + # deal with OSX Lion and above + cd "${S}"/developer_cmds-${DEV_VER} + sed -i -e 's/getline/ugetline/g' unifdef/unifdef.c || die + + eapply_user +} + +src_compile() { + local flags=( + ${CFLAGS} + -I. + -D__FBSDID=__RCSID + -Wsystem-headers + -Du_int=uint32_t + -include stdint.h + ${LDFLAGS} + ) + + local TS=${S}/misc_cmds-${MISC_VER} + # tsort is provided by coreutils + for t in leave units calendar; do + cd "${TS}/${t}" + echo "in ${TS}/${t}:" + echo "$(tc-getCC) ${flags[@]} -o ${t}" *.c + $(tc-getCC) ${flags[@]} -o ${t} *.c || die "failed to compile $t" + done + # compile cal separately + cd "${TS}/ncal" + echo "in ${TS}/ncal:" + echo "$(tc-getCC) ${flags[@]} -c calendar.c" + $(tc-getCC) ${flags[@]} -c calendar.c || die "failed to compile cal" + echo "$(tc-getCC) ${flags[@]} -c easter.c" + $(tc-getCC) ${flags[@]} -c easter.c || die "failed to compile cal" + echo "$(tc-getCC) ${flags[@]} -c ncal.c" + $(tc-getCC) ${flags[@]} -c ncal.c || die "failed to compile cal" + echo "$(tc-getCC) ${flags[@]} -o cal calendar.o easter.o ncal.o" + $(tc-getCC) ${flags[@]} -o cal calendar.o easter.o ncal.o || die "failed to compile cal" + + TS=${S}/shell_cmds-${SHELL_VER} + # only pick those tools not provided by coreutils, findutils + for t in \ + alias apply getopt hostname jot kill killall \ + lastcomm renice script shlock time whereis; + do + echo "in ${TS}/${t}:" + echo "$(tc-getCC) ${flags[@]} -o ${t} ${t}.c" + cd "${TS}/${t}" + $(tc-getCC) ${flags[@]} -o ${t} ${t}.c || die "failed to compile $t" + done + cd "${TS}/w" + sed -i -e '/#include <libutil.h>/d' w.c || die + echo "in ${TS}/w:" + echo "$(tc-getCC) ${flags[@]} -DHAVE_UTMPX=1 -lresolv -o w w.c pr_time.c proc_compare.c" + $(tc-getCC) ${flags[@]} -DHAVE_UTMPX=1 -lresolv -o w w.c pr_time.c proc_compare.c \ + || die "failed to compile w" + + TS=${S}/developer_cmds-${DEV_VER} + # only pick those tools that do not conflict (no ctags and indent) + # do not install lorder, mkdep and vgrind as they are a non-prefix-aware + # shell scripts + # don't install rpcgen, as it is heavily related to the OS it runs + # on (and this is the Snow Leopard version) + for t in asa hexdump unifdef what ; do + echo "in ${TS}/${t}:" + cd "${TS}/${t}" || die + echo "$(tc-getCC) ${flags[@]} -o ${t}" *.c + $(tc-getCC) ${flags[@]} -o ${t} *.c || die "failed to compile $t" + done +} + +src_install() { + mkdir -p "${ED}"/bin + mkdir -p "${ED}"/usr/bin + + local TS=${S}/misc_cmds-${MISC_VER} + for t in leave units calendar ; do + cp "${TS}/${t}/${t}" "${ED}"/usr/bin/ + doman "${TS}/${t}/${t}.1" + done + # copy cal separately + cp "${TS}/ncal/cal" "${ED}"/usr/bin/ + dosym /usr/bin/cal /usr/bin/ncal + doman "${TS}/ncal/ncal.1" + dosym /usr/share/man/man1/ncal.1 /usr/share/man/man1/cal.1 + + TS=${S}/shell_cmds-${SHELL_VER} + for t in \ + alias apply getopt jot killall lastcomm \ + renice script shlock time w whereis; + do + cp "${TS}/${t}/${t}" "${ED}"/usr/bin/ + [[ -f "${TS}/${t}/${t}.1" ]] && doman "${TS}/${t}/${t}.1" + [[ -f "${TS}/${t}/${t}.8" ]] && doman "${TS}/${t}/${t}.8" + done + cp "${TS}/w/w" "${ED}"/usr/bin/uptime + doman "${TS}/w/uptime.1" + for t in hostname kill; do + cp "${TS}/${t}/${t}" "${ED}"/bin/ + doman "${TS}/${t}/${t}.1" + done + + TS=${S}/developer_cmds-${DEV_VER} + for t in asa hexdump unifdef what ; do + cp "${TS}/${t}/${t}" "${ED}"/usr/bin/ + doman "${TS}/${t}/${t}.1" + done +} diff --git a/sys-apps/darwin-miscutils/darwin-miscutils-9.ebuild b/sys-apps/darwin-miscutils/darwin-miscutils-9.ebuild new file mode 100644 index 000000000000..d0467ed79845 --- /dev/null +++ b/sys-apps/darwin-miscutils/darwin-miscutils-9.ebuild @@ -0,0 +1,131 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +inherit toolchain-funcs eutils + +MISC_VER=31 +SHELL_VER=162 +DEV_VER=55 + +DESCRIPTION="Miscellaneous commands used on Darwin/Mac OS X systems, Lion 10.7" +HOMEPAGE="http://www.opensource.apple.com/" +SRC_URI="http://www.opensource.apple.com/darwinsource/tarballs/other/misc_cmds-${MISC_VER}.tar.gz + http://www.opensource.apple.com/darwinsource/tarballs/other/shell_cmds-${SHELL_VER}.tar.gz + http://www.opensource.apple.com/darwinsource/tarballs/other/developer_cmds-${DEV_VER}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~ppc-macos ~x64-macos ~x86-macos" +IUSE="" + +S=${WORKDIR} + +src_prepare() { + cd "${S}"/shell_cmds-${SHELL_VER} + epatch "${FILESDIR}"/${PN}-6-w64.patch + + eapply_user +} + +src_compile() { + local flags=( + ${CFLAGS} + -I. + -D__FBSDID=__RCSID + -Wsystem-headers + -Du_int=uint32_t + -include stdint.h + ${LDFLAGS} + ) + + local TS=${S}/misc_cmds-${MISC_VER} + # tsort is provided by coreutils + for t in leave units calendar; do + cd "${TS}/${t}" + echo "in ${TS}/${t}:" + echo "$(tc-getCC) ${flags[@]} -o ${t}" *.c + $(tc-getCC) ${flags[@]} -o ${t} *.c || die "failed to compile $t" + done + # compile cal separately + cd "${TS}/ncal" + echo "in ${TS}/ncal:" + echo "$(tc-getCC) ${flags[@]} -c calendar.c" + $(tc-getCC) ${flags[@]} -c calendar.c || die "failed to compile cal" + echo "$(tc-getCC) ${flags[@]} -c easter.c" + $(tc-getCC) ${flags[@]} -c easter.c || die "failed to compile cal" + echo "$(tc-getCC) ${flags[@]} -c ncal.c" + $(tc-getCC) ${flags[@]} -c ncal.c || die "failed to compile cal" + echo "$(tc-getCC) ${flags[@]} -o cal calendar.o easter.o ncal.o" + $(tc-getCC) ${flags[@]} -o cal calendar.o easter.o ncal.o || die "failed to compile cal" + + TS=${S}/shell_cmds-${SHELL_VER} + # only pick those tools not provided by coreutils, findutils + for t in \ + alias apply getopt hostname jot kill killall \ + lastcomm renice script shlock time whereis; + do + echo "in ${TS}/${t}:" + echo "$(tc-getCC) ${flags[@]} -o ${t} ${t}.c" + cd "${TS}/${t}" + $(tc-getCC) ${flags[@]} -o ${t} ${t}.c || die "failed to compile $t" + done + cd "${TS}/w" + sed -i -e '/#include <libutil.h>/d' w.c || die + echo "in ${TS}/w:" + echo "$(tc-getCC) ${flags[@]} -DHAVE_UTMPX=1 -lresolv -o w w.c pr_time.c proc_compare.c" + $(tc-getCC) ${flags[@]} -DHAVE_UTMPX=1 -lresolv -o w w.c pr_time.c proc_compare.c \ + || die "failed to compile w" + + TS=${S}/developer_cmds-${DEV_VER} + # only pick those tools that do not conflict (no ctags and indent) + # do not install lorder, mkdep and vgrind as they are a non-prefix-aware + # shell scripts + # don't install rpcgen, as it is heavily related to the OS it runs + # on (and this is the Snow Leopard version) + for t in asa hexdump unifdef what ; do + echo "in ${TS}/${t}:" + cd "${TS}/${t}" || die + echo "$(tc-getCC) ${flags[@]} -o ${t}" *.c + $(tc-getCC) ${flags[@]} -o ${t} *.c || die "failed to compile $t" + done +} + +src_install() { + mkdir -p "${ED}"/bin + mkdir -p "${ED}"/usr/bin + + local TS=${S}/misc_cmds-${MISC_VER} + for t in leave units calendar ; do + cp "${TS}/${t}/${t}" "${ED}"/usr/bin/ + doman "${TS}/${t}/${t}.1" + done + # copy cal separately + cp "${TS}/ncal/cal" "${ED}"/usr/bin/ + dosym /usr/bin/cal /usr/bin/ncal + doman "${TS}/ncal/ncal.1" + dosym /usr/share/man/man1/ncal.1 /usr/share/man/man1/cal.1 + + TS=${S}/shell_cmds-${SHELL_VER} + for t in \ + alias apply getopt jot killall lastcomm \ + renice script shlock time w whereis; + do + cp "${TS}/${t}/${t}" "${ED}"/usr/bin/ + [[ -f "${TS}/${t}/${t}.1" ]] && doman "${TS}/${t}/${t}.1" + [[ -f "${TS}/${t}/${t}.8" ]] && doman "${TS}/${t}/${t}.8" + done + cp "${TS}/w/w" "${ED}"/usr/bin/uptime + doman "${TS}/w/uptime.1" + for t in hostname kill; do + cp "${TS}/${t}/${t}" "${ED}"/bin/ + doman "${TS}/${t}/${t}.1" + done + + TS=${S}/developer_cmds-${DEV_VER} + for t in asa hexdump unifdef what ; do + cp "${TS}/${t}/${t}" "${ED}"/usr/bin/ + doman "${TS}/${t}/${t}.1" + done +} diff --git a/sys-apps/darwin-miscutils/files/darwin-miscutils-5-error.patch b/sys-apps/darwin-miscutils/files/darwin-miscutils-5-error.patch new file mode 100644 index 000000000000..391dceb39188 --- /dev/null +++ b/sys-apps/darwin-miscutils/files/darwin-miscutils-5-error.patch @@ -0,0 +1,14 @@ +--- developer_cmds-48/error/error.h ++++ developer_cmds-48/error/error.h +@@ -194,11 +194,7 @@ + */ + extern int nerrors; + extern Eptr er_head; +-#ifdef __APPLE__ +-__private_extern__ +-#else + extern +-#endif + Eptr *errors; + /* + * Resources for each of the files mentioned diff --git a/sys-apps/darwin-miscutils/files/darwin-miscutils-5-stdlib.patch b/sys-apps/darwin-miscutils/files/darwin-miscutils-5-stdlib.patch new file mode 100644 index 000000000000..0605310bff42 --- /dev/null +++ b/sys-apps/darwin-miscutils/files/darwin-miscutils-5-stdlib.patch @@ -0,0 +1,20 @@ +--- misc_cmds-23/leave/leave.c ++++ misc_cmds-23/leave/leave.c +@@ -34,6 +34,7 @@ + */ + + #include <sys/cdefs.h> ++#include <stdlib.h> + #ifndef lint + __COPYRIGHT("@(#) Copyright (c) 1980, 1988, 1993\n\ + The Regents of the University of California. All rights reserved.\n"); +--- shell_cmds-118/alias/alias.c ++++ shell_cmds-118/alias/alias.c +@@ -3,6 +3,7 @@ + the shell scripts. It does not lead to any deliverable. Do not remove this + file from this (..../shell_cmds/alias) directory. + */ ++#include <stdlib.h> + int main() + { + exit(0); diff --git a/sys-apps/darwin-miscutils/files/darwin-miscutils-5-w.patch b/sys-apps/darwin-miscutils/files/darwin-miscutils-5-w.patch new file mode 100644 index 000000000000..f6db3753d930 --- /dev/null +++ b/sys-apps/darwin-miscutils/files/darwin-miscutils-5-w.patch @@ -0,0 +1,10 @@ +--- shell_cmds-118/w/w.c ++++ shell_cmds-118/w/w.c +@@ -75,7 +75,6 @@ + #include <kvm.h> + #endif + #include <langinfo.h> +-#include <libutil.h> + #include <limits.h> + #include <locale.h> + #include <netdb.h> diff --git a/sys-apps/darwin-miscutils/files/darwin-miscutils-6-w64.patch b/sys-apps/darwin-miscutils/files/darwin-miscutils-6-w64.patch new file mode 100644 index 000000000000..77c194e6df9b --- /dev/null +++ b/sys-apps/darwin-miscutils/files/darwin-miscutils-6-w64.patch @@ -0,0 +1,17 @@ +grobian@gentoo.org: +The provided libresolv library is faulty for 64-bits, or this call is +doing something wrong. It is highly undocumented, so it feels like +messing around with some pointers is not going to work. Doing this in +64-bits mode, at least results in a nice Bus Error. + +--- shell_cmds-118/w/w.c ++++ shell_cmds-118/w/w.c +@@ -262,7 +262,7 @@ + argc -= optind; + argv += optind; + +-#if !TARGET_OS_EMBEDDED ++#if !defined(TARGET_OS_EMBEDDED) && !defined(__LP64__) + if (!(_res.options & RES_INIT)) + res_init(); + _res.retrans = 2; /* resolver timeout to 2 seconds per try */ diff --git a/sys-apps/darwin-miscutils/metadata.xml b/sys-apps/darwin-miscutils/metadata.xml new file mode 100644 index 000000000000..0c982d881307 --- /dev/null +++ b/sys-apps/darwin-miscutils/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>prefix@gentoo.org</email> + <name>Gentoo Prefix</name> + </maintainer> +</pkgmetadata> |