Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions dev-util/gn/Manifest
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
DIST gn-0.2222.tar.xz 760920 BLAKE2B de19424e546ae614689781cc244b98ae014030acd54f4cf5ec53397b9440c2db5e41630e1d2e8d32f6c4cd87ea136c2dafeb604ae6b2f6f53164239e8ab91a70 SHA512 c23674505632aa83037f561ba7061fc1759502504c4f8c7b5d0bb62c6269b8063fd789f482cf5a5e052f44db1b8523c866d4e4fcce1a2c4479e1adaff1a1e675
DIST gn-0.2227.tar.xz 764820 BLAKE2B 1503d80ad68da419def0705919313fe75468869b5ea4c629439b7b9de5f1734a03c61888bfbbddb3a0711a4b277ced98553b89fa1f28b06d86b6577cc15a921b SHA512 d31a9183f4f25bc733d1dc4bff33145fcf78183aee56342bd4d1485bda43119e955cad749b3cfc87acb52dee79214d6412f11e2f12ca739f2b44dfdd3115d946
DIST gn-0.2228.tar.xz 761420 BLAKE2B 1535ba4c2c6f535aa168a47ad75e178925694232d432238652324c0fa22694408c9012892fedf7e8332ab357f4ff783ca15717fcd86b15fa896e6d10ec97d6e0 SHA512 3b4d488d4f713938be511355be89f57214edc2460ed576d36db126eebea2335cdccbaba9d0e1178114db6a933fb04281e14d2c24c9a64d02a349a3635cfd4108
DIST gn-0.2239.tar.xz 765660 BLAKE2B c7cdbb633a8c258ecca5f515327c60a16e08f0cfbf9547c0346e22b8f943ab5f8f70f2dc8aaee1a99303ca56409db9f87fdd6ee2576f5613530c1e24cf0e9a42 SHA512 b10ed39417dc2c81ae9d721b32db3bb409bf6e396cc02336980c0299d8ae476eccac69f8ba0ccc46e712e565a41a00f723a5059b86036fb1eb55434266979bf6
47 changes: 47 additions & 0 deletions dev-util/gn/gn-0.2239.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Distributed under the terms of the GNU General Public License v2

EAPI=7
PYTHON_COMPAT=( python3+ )

inherit ninja-utils python-any-r1 toolchain-funcs

DESCRIPTION="GN is a meta-build system that generates build files for Ninja"
HOMEPAGE="https://gn.googlesource.com/"
SRC_URI="https://distfiles.macaronios.org/b1/0e/d3/b10ed39417dc2c81ae9d721b32db3bb409bf6e396cc02336980c0299d8ae476eccac69f8ba0ccc46e712e565a41a00f723a5059b86036fb1eb55434266979bf6 -> gn-0.2239.tar.xz"

LICENSE="BSD"
SLOT="0"
KEYWORDS="*"
S="${WORKDIR}/gn-0.2239"

BDEPEND="
${PYTHON_DEPS}
dev-util/ninja
"

pkg_setup() {
:
}

src_configure() {
python_setup

tc-export AR CC CXX
unset CFLAGS

set -- ${EPYTHON} build/gen.py --no-last-commit-position --no-strip --no-static-libstdc++ --allow-warnings
echo "$@" >&2
"$@" || die
}

src_compile() {
eninja -C out gn
}

src_install() {
dobin out/gn
einstalldocs

insinto /usr/share/vim/vimfiles
doins -r misc/vim/{autoload,ftdetect,ftplugin,syntax}
}