diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-10-17 16:03:04 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-10-17 16:03:04 +0100 |
commit | 29ef84a753ab20dbbb228238713a3c7443c6520e (patch) | |
tree | ebe889f9f8817c5c6601a6dbfd0b12d537b4e91d /dev-util/ninja | |
parent | cf89ca044e37f79e2329552cda857215f9824e11 (diff) |
gentoo auto-resync : 17:10:2023 - 16:03:04
Diffstat (limited to 'dev-util/ninja')
-rw-r--r-- | dev-util/ninja/Manifest | 3 | ||||
-rw-r--r-- | dev-util/ninja/ninja-1.11.1-r3.ebuild | 128 | ||||
-rw-r--r-- | dev-util/ninja/ninja-9999.ebuild | 3 |
3 files changed, 132 insertions, 2 deletions
diff --git a/dev-util/ninja/Manifest b/dev-util/ninja/Manifest index 38f1b9130488..4a7eb93cbbb4 100644 --- a/dev-util/ninja/Manifest +++ b/dev-util/ninja/Manifest @@ -1,5 +1,6 @@ AUX ninja-cflags.patch 738 BLAKE2B ec025836197d41d96cfcab0a7363ab3bda50cb7fc3f91f096ccfaa16babdc353269738aef92e68a261f43ba617720f677766f7044acb1a01dd7e07d6c9eca13e SHA512 97935accbef92e6eeda7d38bae6978016f4423e3989fcfb13c6de55644133ddef43db49811fc85d2649d68473d8b81e1bfb70f59a5e63d2607741d90152a4f42 DIST ninja-1.11.1.tar.gz 229479 BLAKE2B c96cf7c319b7abd65f644465688d256f8b3a576c4616d0c63852e25dd0dc5f63c66708d429d8dddb6228502eb147211a86a5dd369b80ec2228902b370d2343e5 SHA512 1bca38877c70ee6613f347ffccef5adc02ba0a3947c62ae004ea97f918442b5a3de92378e4f820ae2a7676bc7609d25fbc7d41f6cfb3a61e5e4b26ec3639e403 EBUILD ninja-1.11.1-r2.ebuild 2542 BLAKE2B b97833127e9f27880fd8e8dbf7d9cef4233ebd6a83eb88bf4131d21d12fac8ca076b48252be7909cf346fc416dcb31457ca4bcf63915a916a2f9057a7cb8e3dd SHA512 dfa83ca9aedc01c5a8c5a39843626bfe9b0d7543fc320013695538a1faf163654f54f10176201438fd4b1c9c7198e7fe66fd15e95d83751d5ac14969e5483599 -EBUILD ninja-9999.ebuild 2550 BLAKE2B 760679b15b50c129bb0d0443d6b91b030aa2b405a73db92ea6e8328eaf4eb54d28406bd68ac87ce518c3eceeaa672db67db7b811231f477b55e388664feda358 SHA512 c56ef7107e1c76ee64907b74f3ea0e1d306a623b70d9d1c12a769799ebbccb0d568f2bb43cf5bdb875afda33a98a8762bf33cc4b1ead50c52c512026453fb767 +EBUILD ninja-1.11.1-r3.ebuild 2600 BLAKE2B edd0d1ae46f9eb7f71bbdb1a845e2721a6ee88a9e9c412de210c64812c2a2b2cd4ec9fe2885e1d1ae90dca4d9b87533b3d503e669a47771f3c297642a6fd75d6 SHA512 e49d9af34e6b495896b9dba68f6c6649ac1f7ffce6dcc4949442d316e5392ff1be0482104febb9e05af67dda6a364570d6accad79cb6053b662437a9af8b5eea +EBUILD ninja-9999.ebuild 2600 BLAKE2B edd0d1ae46f9eb7f71bbdb1a845e2721a6ee88a9e9c412de210c64812c2a2b2cd4ec9fe2885e1d1ae90dca4d9b87533b3d503e669a47771f3c297642a6fd75d6 SHA512 e49d9af34e6b495896b9dba68f6c6649ac1f7ffce6dcc4949442d316e5392ff1be0482104febb9e05af67dda6a364570d6accad79cb6053b662437a9af8b5eea MISC metadata.xml 463 BLAKE2B 4094365ee9f5db41a29df26eada46bc42050da4043003bc265733666475d950df0b53cc475585b5d0ad79a1b9cbe83a53076911e564960d21568479e52bc4b33 SHA512 2d08b1e9f5377ba2d1976093fc9a3a9ceec51e80a7473e3d80e536585d1adb21c90d954205b97dd063dc99fe60b7b0c5335a16e05d0a2fa79e951c4833697880 diff --git a/dev-util/ninja/ninja-1.11.1-r3.ebuild b/dev-util/ninja/ninja-1.11.1-r3.ebuild new file mode 100644 index 000000000000..4f8bdfff6267 --- /dev/null +++ b/dev-util/ninja/ninja-1.11.1-r3.ebuild @@ -0,0 +1,128 @@ +# Copyright 2012-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..12} ) + +inherit edo bash-completion-r1 elisp-common flag-o-matic python-any-r1 toolchain-funcs + +if [[ ${PV} == 9999 ]]; then + EGIT_REPO_URI="https://github.com/ninja-build/ninja.git" + inherit git-r3 +else + SRC_URI="https://github.com/ninja-build/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris" +fi + +DESCRIPTION="A small build system similar to make" +HOMEPAGE="https://ninja-build.org/" + +LICENSE="Apache-2.0" +SLOT="0" + +IUSE="doc emacs test" +RESTRICT="!test? ( test )" + +BDEPEND=" + ${PYTHON_DEPS} + dev-util/re2c + doc? ( + app-text/asciidoc + app-doc/doxygen + dev-libs/libxslt + media-gfx/graphviz + ) + test? ( dev-cpp/gtest ) +" +RDEPEND="emacs? ( >=app-editors/emacs-23.1:* )" +PDEPEND="app-alternatives/ninja" + +PATCHES=( + "${FILESDIR}"/ninja-cflags.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= + local -x CXXFLAGS=${BUILD_CXXFLAGS} + local -x LDFLAGS=${BUILD_LDFLAGS} + fi + echo "$@" >&2 + "$@" +} + +src_compile() { + tc-export AR CXX + + # configure.py appends CFLAGS to CXXFLAGS + unset CFLAGS + + append-lfs-flags + + run_for_build ${EPYTHON} configure.py --bootstrap --verbose || die + + if tc-is-cross-compiler; then + mv ninja ninja-build || die + ${EPYTHON} 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 + edo ./ninja -v ninja_test + edo ./ninja_test + fi +} + +src_install() { + dodoc README.md CONTRIBUTING.md + + if use doc; then + docinto html + dodoc -r doc/doxygen/html/. + dodoc doc/manual.html + fi + + newbin ninja ninja-reference + + newbashcomp misc/bash-completion ${PN} + + insinto /usr/share/vim/vimfiles/syntax/ + doins misc/ninja.vim + + echo 'au BufNewFile,BufRead *.ninja set ft=ninja' > "${T}"/ninja.vim || die + insinto /usr/share/vim/vimfiles/ftdetect + doins "${T}"/ninja.vim + + insinto /usr/share/zsh/site-functions + newins misc/zsh-completion _ninja + + if use emacs; then + cd misc || die + elisp-install ninja 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 index 38a59d4a303a..4f8bdfff6267 100644 --- a/dev-util/ninja/ninja-9999.ebuild +++ b/dev-util/ninja/ninja-9999.ebuild @@ -36,6 +36,7 @@ BDEPEND=" test? ( dev-cpp/gtest ) " RDEPEND="emacs? ( >=app-editors/emacs-23.1:* )" +PDEPEND="app-alternatives/ninja" PATCHES=( "${FILESDIR}"/ninja-cflags.patch @@ -98,7 +99,7 @@ src_install() { dodoc doc/manual.html fi - dobin ninja + newbin ninja ninja-reference newbashcomp misc/bash-completion ${PN} |