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 /dev-util/ninja |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-util/ninja')
-rw-r--r-- | dev-util/ninja/Manifest | 9 | ||||
-rw-r--r-- | dev-util/ninja/files/ninja-uclibc.patch | 18 | ||||
-rw-r--r-- | dev-util/ninja/metadata.xml | 11 | ||||
-rw-r--r-- | dev-util/ninja/ninja-1.7.2.ebuild | 131 | ||||
-rw-r--r-- | dev-util/ninja/ninja-1.8.2.ebuild | 127 | ||||
-rw-r--r-- | dev-util/ninja/ninja-9999.ebuild | 127 |
6 files changed, 423 insertions, 0 deletions
diff --git a/dev-util/ninja/Manifest b/dev-util/ninja/Manifest new file mode 100644 index 000000000000..7919601f7f11 --- /dev/null +++ b/dev-util/ninja/Manifest @@ -0,0 +1,9 @@ +AUX ninja-uclibc.patch 526 SHA256 5864494d956310fbc8abf6d7dd7cd8968eb483a1da046870b943ab6ac76af16a SHA512 180c3390001a6bb49deef4f459d42fd7141a5cf68a7077cfe3b5b1384f7b40911f9e4d871ffce07f51b347deb2c2568c266c5a5d1d113010090cd4f65eebeb6e WHIRLPOOL 6a6e849902348ea0714733baf9ad9e729c99408ac9d8f28c4f6ef9227d4a3747d87ff6e2e6b3fa72c2b8a0d94e4e41ac437e8cf558021897fdd59e75fb5a8e46 +DIST ninja-1.7.2.tar.gz 180611 SHA256 2edda0a5421ace3cf428309211270772dd35a91af60c96f93f90df6bc41b16d9 SHA512 29900d07364d87ad8b9614b82bc1b0afda5ca6522563ab73fb228f206ed6b29b70cf034a3caf5a9b2c0b105d1e076c6b425d93b5d14aa3ca3730d75611212a64 WHIRLPOOL 43623778d3f96a87efb4bfd272075b257ebba3760d315c5650fa74493e2193699401c9b6d35d679e7c5235456d48674ac7e913fe1d45b5b98c2542c3b0a72e44 +DIST ninja-1.8.2.tar.gz 185226 SHA256 86b8700c3d0880c2b44c2ff67ce42774aaf8c28cbf57725cb881569288c1c6f4 SHA512 1650bf9e3eddeb0b0fbb415c2b8e0a7c094421e991fa8139fd77fae0f6ee7ee980b7cf5e98d883c3a884f99abcb06fa26e3980af3a3a5bb6dd655124755782c2 WHIRLPOOL 7afc5a6ba34f5c5b464ed47af8e0b5e50bc02a81beb4e5719e19348d60057e6cd3f156ef20f77646fe883b8becc1298d7998d85f1d8bc07ee6b0bd415a58aa2f +EBUILD ninja-1.7.2.ebuild 2654 SHA256 f1e1da387aacfe5e7e20a410fccbe936b6b35ddfd81f6cc20d6e994184be5d04 SHA512 715d1473f7515354f0c3f3d8c7017abbf45509c477b1d66f6c4e7cd3d2dac0d85fe68a35feed89c77be4d1d10540039a9966abe35c453d3bb6965709686e0cd3 WHIRLPOOL 998aaf6b6ed4493b74b01dd74a80dcb85a6b4f656b2ef2835db58c0cf5fee418c61422ec41f9aa0462e3e1253be3c15c13f0bf1fa52c6334313f850a5d8f6666 +EBUILD ninja-1.8.2.ebuild 2617 SHA256 b92033b3a4b37c5f5770e3c1c1fb3b379b8c2dc72d78cba37f7640f80dd60096 SHA512 510034c91bc8be87f2e267e3d38ef86f0fe27dc8d2ca634e302b47a1752cd7caa379055f91c493d248693ae5c472ca4987870f0f126b41be0507dd0872ebcce8 WHIRLPOOL 2e0a8b4949f31056d4262d6937dfec1a7c5693d3e42bf1acc8f6c6ebed53ddb0c796bdc5ae27aac69a787022d5c82728d51abcfcca08eb45376bcf901a1e12cc +EBUILD ninja-9999.ebuild 2617 SHA256 b92033b3a4b37c5f5770e3c1c1fb3b379b8c2dc72d78cba37f7640f80dd60096 SHA512 510034c91bc8be87f2e267e3d38ef86f0fe27dc8d2ca634e302b47a1752cd7caa379055f91c493d248693ae5c472ca4987870f0f126b41be0507dd0872ebcce8 WHIRLPOOL 2e0a8b4949f31056d4262d6937dfec1a7c5693d3e42bf1acc8f6c6ebed53ddb0c796bdc5ae27aac69a787022d5c82728d51abcfcca08eb45376bcf901a1e12cc +MISC ChangeLog 5535 SHA256 06426d51846a9e0a803d92040f79bfde06554f00ff4999f8311e482d5305b62b SHA512 f2fffa79fb37ee24f392afe8a55e9cdcccf3b91a0191ff0573ca05b6b5e737ae16c367ed33e830ba70590829809f89ff45eff90f9d50bcd1a14b59f73bcabdcf WHIRLPOOL f11e09e4eff52d5b0e76e759005b5d2eed7153d679664bea5cd919dc3ad9515d711dde733da6c8ddeaf57476f341844ad1cafe45971bb32d029ed71e99a6bcea +MISC ChangeLog-2015 6583 SHA256 bddeb0e9007198ddea2c83fa3d9fedfeaac320a7bcb78d75c7e272d3705f2d44 SHA512 62420fba29520829755b371c15d3e5abda58e62bbfbfef9c5ef81843fbb4053ad50f68c2919ec54ea9d32a1a7ecfd444ddab92a219ef19b8b95b8ef03e016e1f WHIRLPOOL 7819fc4209a88659bc3c1a202453a8d153a81ff78373924c0baff929689c3f1815fd7b9acfea04692fb747e116b4b77fa50aeb88fd0548057022defd6f04e373 +MISC metadata.xml 340 SHA256 d4ea7033a3239b8c560458035ff44cb72a37f69603c88c3e32704bcd6b84291c SHA512 4b78365b98eb9b8a1ef27115261dbf426942cccb7be03c8264e2728e60dedfec8fa51ee3f43488043be5af21b28a74c1c81f4767bcc58574873c2223172447b2 WHIRLPOOL 6003e6562e4f56c68af6818dc4d9e1b58233fbb30b40d0de8d930498a5687d931be5252a536e775d73ec3a99382d3efa4f8f9e04005bedb0b7c767932a4c6843 diff --git a/dev-util/ninja/files/ninja-uclibc.patch b/dev-util/ninja/files/ninja-uclibc.patch new file mode 100644 index 000000000000..e87eea842722 --- /dev/null +++ b/dev-util/ninja/files/ninja-uclibc.patch @@ -0,0 +1,18 @@ +diff --git a/src/util.cc b/src/util.cc +index e31fd1f..1caa1ce 100644 +--- a/src/util.cc ++++ b/src/util.cc +@@ -585,6 +585,13 @@ double GetLoadAverage() { + // Calculation taken from comment in libperfstats.h + return double(cpu_stats.loadavg[0]) / double(1 << SBITS); + } ++#elif defined(__UCLIBC__) ++double GetLoadAverage() { ++ struct sysinfo si; ++ if (sysinfo(&si) != 0) ++ return -0.0f; ++ return 1.0 / (1 << SI_LOAD_SHIFT) * si.loads[0]; ++} + #else + double GetLoadAverage() { + double loadavg[3] = { 0.0f, 0.0f, 0.0f }; diff --git a/dev-util/ninja/metadata.xml b/dev-util/ninja/metadata.xml new file mode 100644 index 000000000000..723d554b064c --- /dev/null +++ b/dev-util/ninja/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>chromium@gentoo.org</email> + <name>Chromium in Gentoo Project</name> + </maintainer> + <upstream> + <remote-id type="github">martine/ninja</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-util/ninja/ninja-1.7.2.ebuild b/dev-util/ninja/ninja-1.7.2.ebuild new file mode 100644 index 000000000000..00220b01643e --- /dev/null +++ b/dev-util/ninja/ninja-1.7.2.ebuild @@ -0,0 +1,131 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} ) + +inherit bash-completion-r1 elisp-common python-any-r1 toolchain-funcs + +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/ninja-build/ninja.git" +else + SRC_URI="https://github.com/ninja-build/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~m68k ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" +fi + +DESCRIPTION="A small build system similar to make" +HOMEPAGE="https://ninja-build.org/" + +LICENSE="Apache-2.0" +SLOT="0" + +IUSE="doc emacs test vim-syntax zsh-completion" + +DEPEND=" + ${PYTHON_DEPS} + dev-util/re2c + doc? ( + app-text/asciidoc + app-doc/doxygen + dev-libs/libxslt + ) + test? ( dev-cpp/gtest ) +" +RDEPEND=" + emacs? ( virtual/emacs ) + vim-syntax? ( + || ( + app-editors/vim + app-editors/gvim + ) + ) + zsh-completion? ( app-shells/zsh ) + !<net-irc/ninja-1.5.9_pre14-r1" #436804 + +PATCHES=( + "${FILESDIR}/${PN}-uclibc.patch" +) + +run_for_build() { + if tc-is-cross-compiler; then + local -x AR=$(tc-getBUILD_AR) + local -x CXX=$(tc-getBUILD_CXX) + local -x CFLAGS=${BUILD_CXXFLAGS} + local -x LDFLAGS=${BUILD_LDFLAGS} + fi + "$@" +} + +src_compile() { + tc-export AR CXX + + # configure.py uses CFLAGS instead of CXXFLAGS + export CFLAGS=${CXXFLAGS} + + run_for_build "${PYTHON}" configure.py --bootstrap --verbose || die + + if tc-is-cross-compiler; then + mv ninja ninja-build || die + "${PYTHON}" configure.py || die + ./ninja-build -v ninja || die + else + ln ninja ninja-build || die + fi + + if use doc; then + ./ninja-build -v doxygen manual || die + fi + + if use emacs; then + elisp-compile misc/ninja-mode.el || die + fi +} + +src_test() { + if ! tc-is-cross-compiler; then + # Bug 485772 + ulimit -n 2048 + ./ninja-build -v ninja_test || die + ./ninja_test || die + fi +} + +src_install() { + dodoc README HACKING.md + if use doc; then + dohtml -r doc/doxygen/html/* + dohtml doc/manual.html + fi + dobin ninja + + newbashcomp misc/bash-completion "${PN}" + + if use vim-syntax; then + insinto /usr/share/vim/vimfiles/syntax/ + doins misc/"${PN}".vim + + echo 'au BufNewFile,BufRead *.ninja set ft=ninja' > "${T}/${PN}.vim" + insinto /usr/share/vim/vimfiles/ftdetect + doins "${T}/${PN}.vim" + fi + + if use zsh-completion; then + insinto /usr/share/zsh/site-functions + newins misc/zsh-completion _ninja + fi + + if use emacs; then + cd misc || die + elisp-install ${PN} ninja-mode.el* || die + fi +} + +pkg_postinst() { + use emacs && elisp-site-regen +} + +pkg_postrm() { + use emacs && elisp-site-regen +} diff --git a/dev-util/ninja/ninja-1.8.2.ebuild b/dev-util/ninja/ninja-1.8.2.ebuild new file mode 100644 index 000000000000..4dc6e68bbf61 --- /dev/null +++ b/dev-util/ninja/ninja-1.8.2.ebuild @@ -0,0 +1,127 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} ) + +inherit bash-completion-r1 elisp-common python-any-r1 toolchain-funcs + +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/ninja-build/ninja.git" +else + SRC_URI="https://github.com/ninja-build/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" +fi + +DESCRIPTION="A small build system similar to make" +HOMEPAGE="https://ninja-build.org/" + +LICENSE="Apache-2.0" +SLOT="0" + +IUSE="doc emacs test vim-syntax zsh-completion" + +DEPEND=" + ${PYTHON_DEPS} + dev-util/re2c + doc? ( + app-text/asciidoc + app-doc/doxygen + dev-libs/libxslt + ) + test? ( dev-cpp/gtest ) +" +RDEPEND=" + emacs? ( virtual/emacs ) + vim-syntax? ( + || ( + app-editors/vim + app-editors/gvim + ) + ) + zsh-completion? ( app-shells/zsh ) + !<net-irc/ninja-1.5.9_pre14-r1" #436804 + +run_for_build() { + if tc-is-cross-compiler; then + local -x AR=$(tc-getBUILD_AR) + local -x CXX=$(tc-getBUILD_CXX) + local -x CFLAGS=${BUILD_CXXFLAGS} + local -x LDFLAGS=${BUILD_LDFLAGS} + fi + "$@" +} + +src_compile() { + tc-export AR CXX + + # configure.py uses CFLAGS instead of CXXFLAGS + export CFLAGS=${CXXFLAGS} + + run_for_build "${PYTHON}" configure.py --bootstrap --verbose || die + + if tc-is-cross-compiler; then + mv ninja ninja-build || die + "${PYTHON}" configure.py || die + ./ninja-build -v ninja || die + else + ln ninja ninja-build || die + fi + + if use doc; then + ./ninja-build -v doxygen manual || die + fi + + if use emacs; then + elisp-compile misc/ninja-mode.el || die + fi +} + +src_test() { + if ! tc-is-cross-compiler; then + # Bug 485772 + ulimit -n 2048 + ./ninja-build -v ninja_test || die + ./ninja_test || die + fi +} + +src_install() { + dodoc README HACKING.md + if use doc; then + dohtml -r doc/doxygen/html/* + dohtml doc/manual.html + fi + dobin ninja + + newbashcomp misc/bash-completion "${PN}" + + if use vim-syntax; then + insinto /usr/share/vim/vimfiles/syntax/ + doins misc/"${PN}".vim + + echo 'au BufNewFile,BufRead *.ninja set ft=ninja' > "${T}/${PN}.vim" + insinto /usr/share/vim/vimfiles/ftdetect + doins "${T}/${PN}.vim" + fi + + if use zsh-completion; then + insinto /usr/share/zsh/site-functions + newins misc/zsh-completion _ninja + fi + + if use emacs; then + cd misc || die + elisp-install ${PN} ninja-mode.el* || die + fi +} + +pkg_postinst() { + use emacs && elisp-site-regen +} + +pkg_postrm() { + use emacs && elisp-site-regen +} diff --git a/dev-util/ninja/ninja-9999.ebuild b/dev-util/ninja/ninja-9999.ebuild new file mode 100644 index 000000000000..4dc6e68bbf61 --- /dev/null +++ b/dev-util/ninja/ninja-9999.ebuild @@ -0,0 +1,127 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} ) + +inherit bash-completion-r1 elisp-common python-any-r1 toolchain-funcs + +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/ninja-build/ninja.git" +else + SRC_URI="https://github.com/ninja-build/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" +fi + +DESCRIPTION="A small build system similar to make" +HOMEPAGE="https://ninja-build.org/" + +LICENSE="Apache-2.0" +SLOT="0" + +IUSE="doc emacs test vim-syntax zsh-completion" + +DEPEND=" + ${PYTHON_DEPS} + dev-util/re2c + doc? ( + app-text/asciidoc + app-doc/doxygen + dev-libs/libxslt + ) + test? ( dev-cpp/gtest ) +" +RDEPEND=" + emacs? ( virtual/emacs ) + vim-syntax? ( + || ( + app-editors/vim + app-editors/gvim + ) + ) + zsh-completion? ( app-shells/zsh ) + !<net-irc/ninja-1.5.9_pre14-r1" #436804 + +run_for_build() { + if tc-is-cross-compiler; then + local -x AR=$(tc-getBUILD_AR) + local -x CXX=$(tc-getBUILD_CXX) + local -x CFLAGS=${BUILD_CXXFLAGS} + local -x LDFLAGS=${BUILD_LDFLAGS} + fi + "$@" +} + +src_compile() { + tc-export AR CXX + + # configure.py uses CFLAGS instead of CXXFLAGS + export CFLAGS=${CXXFLAGS} + + run_for_build "${PYTHON}" configure.py --bootstrap --verbose || die + + if tc-is-cross-compiler; then + mv ninja ninja-build || die + "${PYTHON}" configure.py || die + ./ninja-build -v ninja || die + else + ln ninja ninja-build || die + fi + + if use doc; then + ./ninja-build -v doxygen manual || die + fi + + if use emacs; then + elisp-compile misc/ninja-mode.el || die + fi +} + +src_test() { + if ! tc-is-cross-compiler; then + # Bug 485772 + ulimit -n 2048 + ./ninja-build -v ninja_test || die + ./ninja_test || die + fi +} + +src_install() { + dodoc README HACKING.md + if use doc; then + dohtml -r doc/doxygen/html/* + dohtml doc/manual.html + fi + dobin ninja + + newbashcomp misc/bash-completion "${PN}" + + if use vim-syntax; then + insinto /usr/share/vim/vimfiles/syntax/ + doins misc/"${PN}".vim + + echo 'au BufNewFile,BufRead *.ninja set ft=ninja' > "${T}/${PN}.vim" + insinto /usr/share/vim/vimfiles/ftdetect + doins "${T}/${PN}.vim" + fi + + if use zsh-completion; then + insinto /usr/share/zsh/site-functions + newins misc/zsh-completion _ninja + fi + + if use emacs; then + cd misc || die + elisp-install ${PN} ninja-mode.el* || die + fi +} + +pkg_postinst() { + use emacs && elisp-site-regen +} + +pkg_postrm() { + use emacs && elisp-site-regen +} |