From a0aff6cf7cd9fcf8bd2489bfbc890c45390bee6b Mon Sep 17 00:00:00 2001 From: Bertrand Jacquin Date: Sun, 19 Apr 2015 20:48:30 +0100 Subject: www-client/arcanist: Add snapshot, sync with current repo, update git repo url Package-Manager: portage-2.2.14 RepoMan-Options: --force --- metadata/md5-cache/www-client/arcanist-20150414 | 13 +++ metadata/md5-cache/www-client/arcanist-9999 | 2 +- www-client/arcanist/ChangeLog | 6 + www-client/arcanist/Manifest | 5 +- www-client/arcanist/arcanist-20150414.ebuild | 143 ++++++++++++++++++++++++ www-client/arcanist/arcanist-9999.ebuild | 6 +- 6 files changed, 169 insertions(+), 6 deletions(-) create mode 100644 metadata/md5-cache/www-client/arcanist-20150414 create mode 100644 www-client/arcanist/arcanist-20150414.ebuild diff --git a/metadata/md5-cache/www-client/arcanist-20150414 b/metadata/md5-cache/www-client/arcanist-20150414 new file mode 100644 index 00000000..01305029 --- /dev/null +++ b/metadata/md5-cache/www-client/arcanist-20150414 @@ -0,0 +1,13 @@ +DEFINED_PHASES=install postinst prepare setup test unpack +DEPEND=virtual/awk:0 test? ( >=dev-lang/php-5.2.3[xmlwriter] =dev-php/libphutil-20150414:0[test] ) >=dev-vcs/git-1.8.2.1 +DESCRIPTION=Command-line tool for Phabricator +EAPI=5 +HOMEPAGE=http://www.phabricator.org +IUSE=git lint mercurial subversion ssl test python_targets_python2_7 +KEYWORDS=~amd64 +LICENSE=Apache-2.0 +RDEPEND=>=dev-lang/php-5.2.3[cli,curl,json,ssl?] =dev-php/libphutil-20150414:0[ssl?] git? ( dev-vcs/git:0 ) mercurial? ( dev-vcs/mercurial:0 ) subversion? ( dev-vcs/subversion:0 ) lint? ( app-admin/puppet-lint:0 dev-haskell/hlint:0 dev-php/PEAR-PHP_CodeSniffer:0 dev-python/pylint:0[python_targets_python2_7(-)?,-python_single_target_jython2_5(-),-python_single_target_jython2_7(-),-python_single_target_pypy(-),-python_single_target_pypy3(-),-python_single_target_python3_3(-),-python_single_target_python3_4(-),python_single_target_python2_7(+)] dev-python/flake8:0[python_targets_python2_7(-)?,-python_single_target_jython2_5(-),-python_single_target_jython2_7(-),-python_single_target_pypy(-),-python_single_target_pypy3(-),-python_single_target_python3_3(-),-python_single_target_python3_4(-),python_single_target_python2_7(+)] dev-util/cppcheck:0 dev-util/cpplint:0 net-libs/nodejs:0[npm] ) +REQUIRED_USE=test? ( lint ) +SLOT=0 +_eclasses_=bash-completion-r1 c8399c7c7ecbcf7ed6e5bd3abb3d4af3 eutils 9fb270e417e0e83d64ca52586c4a79de git-r3 3a2bd0ae504c33a50061885480f3def3 multilib 3bf24e6abb9b76d9f6c20600f0b716bf python-single-r1 7a178335dbd6ea7f50ed4e3e1c13c1e4 python-utils-r1 096f8247eae93026af13ab88cf4305cd toolchain-funcs c961250d50160cd37d6b7fd9e8429c92 +_md5_=d20b73c3e2dea3c393812ef003c96550 diff --git a/metadata/md5-cache/www-client/arcanist-9999 b/metadata/md5-cache/www-client/arcanist-9999 index a5984f35..199ca624 100644 --- a/metadata/md5-cache/www-client/arcanist-9999 +++ b/metadata/md5-cache/www-client/arcanist-9999 @@ -9,4 +9,4 @@ RDEPEND=>=dev-lang/php-5.2.3[cli,curl,json,ssl?] =dev-php/libphutil-9999:0[ssl?] REQUIRED_USE=test? ( lint ) SLOT=0 _eclasses_=bash-completion-r1 c8399c7c7ecbcf7ed6e5bd3abb3d4af3 eutils 9fb270e417e0e83d64ca52586c4a79de git-r3 3a2bd0ae504c33a50061885480f3def3 multilib 3bf24e6abb9b76d9f6c20600f0b716bf python-single-r1 7a178335dbd6ea7f50ed4e3e1c13c1e4 python-utils-r1 096f8247eae93026af13ab88cf4305cd toolchain-funcs c961250d50160cd37d6b7fd9e8429c92 -_md5_=22bb72c7b314531d1c304fee90d35040 +_md5_=079c6ed3df64505d3ae4af180f9e4792 diff --git a/www-client/arcanist/ChangeLog b/www-client/arcanist/ChangeLog index 7642ee69..1471d713 100644 --- a/www-client/arcanist/ChangeLog +++ b/www-client/arcanist/ChangeLog @@ -1,3 +1,9 @@ +*arcanist-20150414 (19 Apr 2015) + + 19 Apr 2015; Bertrand Jacquin + +arcanist-20150414.ebuild, arcanist-9999.ebuild: + www-client/arcanist: Add snapshot, sync with current repo, update git repo url + 28 Mar 2015; Bertrand Jacquin arcanist-9999.ebuild: www-client/arcanist: More work diff --git a/www-client/arcanist/Manifest b/www-client/arcanist/Manifest index dccfbfa6..a2427993 100644 --- a/www-client/arcanist/Manifest +++ b/www-client/arcanist/Manifest @@ -1,3 +1,4 @@ -EBUILD arcanist-9999.ebuild 3710 SHA256 39d7e461d70d31fc511fcebda07724fd4d69ddbbd98a59f482249dd796e05204 WHIRLPOOL 950f96bf1d3421c7f8daa562371fc63b54dfe005b9612f86b4c0bdf67585a9cd4fc58cbd246f520f526e4a4d99464424ecb75fdb3c250bf9df690f14a46c0c09 -MISC ChangeLog 2385 SHA256 6d2c05c037d2f27316e553084a4a65c088a66e031c42a64f81bf5aae1c22c9e4 WHIRLPOOL c889120e32fcac29ec6b7bd59c4eeff8be541edcaf154b518043f9ddfdb5e87a482c5bbcb95bbc07eed5eb3ef530b87127291b8c106e074308b4863434cf578c +EBUILD arcanist-20150414.ebuild 3774 SHA256 89e666cfc8f14435c1b8f2766488d4e248f10b8daaeb05193852ad4e015933f8 WHIRLPOOL 148aef2c47d98d4a9818e5da210484f819e16154512b81bb6808947f759455c8964dff7e7134fe685720320691a437b7fdfd84a20e3f27868287db0b383d19b7 +EBUILD arcanist-9999.ebuild 3713 SHA256 c278e9b987f473cc70aba8fe05ed1e476114611043114dee0957377c91faee9b WHIRLPOOL 3d13de7f644ffed0ff207e1e3df172b472abc1f3a25c1f7f758e6fe6d8c2eff790e58cfc8b7c06c12117b4c1a03c81f6e1c452bb33aa54e0a3095ce8a1e707d7 +MISC ChangeLog 2607 SHA256 85c9b5d1fbd86481d6e94e1199df4cd8bd0a438f5550949ce0a66d4ddfdabeac WHIRLPOOL 8b802d7cbe78bd36549eeb69426020c874fbdf64fc56b58c9a7d792c38b0e8aac3742311c4b80377f8c6eaae6601e527083ecb2e9bc9433f82903262fc2f7fb2 MISC metadata.xml 452 SHA256 2e925bb81450c955ffb47c6af0cfccff61d103c2622101ee5fc225eac0407d59 WHIRLPOOL 757211efd5b90e2c231b585b3b06e5399fa5407bddcf80cd457796a09239c88a48313a5d75ea98ad538ed3aa73bfa080676570f42ea92817c2a4183526006045 diff --git a/www-client/arcanist/arcanist-20150414.ebuild b/www-client/arcanist/arcanist-20150414.ebuild new file mode 100644 index 00000000..597159c7 --- /dev/null +++ b/www-client/arcanist/arcanist-20150414.ebuild @@ -0,0 +1,143 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) +PYTHON_REQ_USE="ncurses" + +inherit bash-completion-r1 python-single-r1 git-r3 + +DESCRIPTION="Command-line tool for Phabricator" +HOMEPAGE="http://www.phabricator.org" +EGIT_REPO_URI="git://github.com/phacility/arcanist.git" +EGIT_COMMIT="eb036465dc9b2f83cf302f4cb92c322197b4221b" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64" +IUSE="git lint mercurial subversion ssl test" +REQUIRED_USE="test? ( lint )" + +DEPEND="virtual/awk:0 + test? ( + >=dev-lang/php-5.2.3[xmlwriter] + =dev-php/libphutil-${PV}:0[test] + )" +RDEPEND=">=dev-lang/php-5.2.3[cli,curl,json,ssl?] + =dev-php/libphutil-${PV}:0[ssl?] + git? ( dev-vcs/git:0 ) + mercurial? ( dev-vcs/mercurial:0 ) + subversion? ( dev-vcs/subversion:0 ) + lint? ( + app-admin/puppet-lint:0 + dev-haskell/hlint:0 + dev-php/PEAR-PHP_CodeSniffer:0 + dev-python/pylint:0[${PYTHON_USEDEP}] + dev-python/flake8:0[${PYTHON_USEDEP}] + dev-util/cppcheck:0 + dev-util/cpplint:0 + net-libs/nodejs:0[npm] + )" + +src_test() { + einfo "Note that you need to install some Node JS script manually:" + einfo " npm install -g coffeelint" + einfo " npm install -g csslint" + einfo " npm install -g jscs" + einfo " npm install -g jshint" + einfo " npm install -g jsonlint" + einfo " npm install -g less" + + local GIT_NAME="${FUNCNAME} for ${CATEGORY}/${PF}" + local GIT_EMAIL="portage@localhost" + + export GIT_AUTHOR_NAME="${GIT_NAME}" + export GIT_AUTHOR_EMAIL="${GIT_EMAIL}" + + export GIT_COMMITTER_NAME="${GIT_NAME}" + export GIT_COMMITTER_EMAIL="${GIT_EMAIL}" + + # Unable to locate binary "golint" to run linter ArcanistGoLintLinter. You may need to install the binary, or adjust your linter configuration. + # TO INSTALL: Install Golint using `go get github.com/golang/lint/golint`. + + # Set config in .git/arc/config for ArcanistPyLintLinter + bin/arc set-config --local lint.pylint.codes.advice '^(C|R).*' > /dev/null + bin/arc set-config --local lint.pylint.codes.error '^(E|F).*' > /dev/null + bin/arc set-config --local lint.pylint.codes.warning '^W.*' > /dev/null + + # + https://secure.phabricator.com/T7170 + + bin/arc unit --everything --no-coverage || die "arc unit failed" +} + +src_prepare() { + echo "${EGIT_VERSION}" > "${S}/VERSION" + + find "${S}" -type f -name .gitignore -print0 \ + | xargs -0 --no-run-if-empty -- \ + rm + + # Provided by dev-python/pep8 + rm -r externals/pep8 + + rm bin/*.bat + + # Replace 'env' shebang to files it point to + find "${S}" -type f \ + | sort \ + | xargs -n 1 --no-run-if-empty -- \ + awk 'NR == 1 && /^#!\/usr\/bin\/env/ {print FILENAME}' \ + | while read ; do + set -- $(sed -ne '1 s:^#!\([^ ]*\) ::p;q' ${REPLY}) + cmd="$1" ; shift ; args="$@" + + case "${cmd}" in + bash|php) ;; + *) continue ;; + esac + + path="$(type -p ${cmd})" || continue + [[ -z "${path}" ]] && continue + + einfo "Replace ${REPLY/#${S}\/} shebang to #!${path} ${args}" + sed -i \ + -e "1 s:^#!.*:#!${path} ${args}:" \ + "${REPLY}" + eend $? + done +} + +src_install() { + newbashcomp resources/shell/bash-completion "arc" + + insinto "/usr/share/${PN}" + doins VERSION + + insinto "/usr/share/php/${PN}" + doins -r bin externals resources scripts src + + python_scriptinto "/usr/share/php/${PN}/scripts" + python_doscript scripts/breakout.py + + # Make executable all shebanged files + find "${ED}" -type f \ + | xargs -n 1 --no-run-if-empty -- \ + awk 'NR == 1 && /^#!/ {print FILENAME}' \ + | sed -e "s:${ED}:/:" \ + | xargs --no-run-if-empty -- \ + fperms 755 + + dosym "/usr/share/php/${PN}/bin/arc" /usr/bin/arc + + dodoc NOTICE README.md +} + +pkg_postinst() { + if use lint; then + elog + elog "Some linter need external NodeJS script. To install them, use:" + elog " npm install -g csslint" + fi +} diff --git a/www-client/arcanist/arcanist-9999.ebuild b/www-client/arcanist/arcanist-9999.ebuild index aae25d20..e0053d36 100644 --- a/www-client/arcanist/arcanist-9999.ebuild +++ b/www-client/arcanist/arcanist-9999.ebuild @@ -11,7 +11,7 @@ inherit bash-completion-r1 python-single-r1 git-r3 DESCRIPTION="Command-line tool for Phabricator" HOMEPAGE="http://www.phabricator.org" -EGIT_REPO_URI="git://github.com/facebook/arcanist.git" +EGIT_REPO_URI="git://github.com/phacility/arcanist.git" LICENSE="Apache-2.0" SLOT="0" @@ -100,7 +100,7 @@ src_prepare() { path="$(type -p ${cmd})" || continue [[ -z "${path}" ]] && continue - einfo "Changing ${REPLY/#${S}\/} shebang to #!${path} ${args}" + einfo "Replace ${REPLY/#${S}\/} shebang to #!${path} ${args}" sed -i \ -e "1 s:^#!.*:#!${path} ${args}:" \ "${REPLY}" @@ -130,7 +130,7 @@ src_install() { dosym "/usr/share/php/${PN}/bin/arc" /usr/bin/arc - dodoc NOTICE README + dodoc NOTICE README.md } pkg_postinst() { -- cgit v1.2.3