diff options
Diffstat (limited to 'www-client')
-rw-r--r-- | www-client/arcanist/ChangeLog | 7 | ||||
-rw-r--r-- | www-client/arcanist/Manifest | 6 | ||||
-rw-r--r-- | www-client/arcanist/arcanist-9999.ebuild | 69 | ||||
-rw-r--r-- | www-client/arcanist/metadata.xml | 3 |
4 files changed, 56 insertions, 29 deletions
diff --git a/www-client/arcanist/ChangeLog b/www-client/arcanist/ChangeLog index c67ba420..7642ee69 100644 --- a/www-client/arcanist/ChangeLog +++ b/www-client/arcanist/ChangeLog @@ -1,3 +1,10 @@ + 28 Mar 2015; Bertrand Jacquin <bertrand@jacquin.bzh> arcanist-9999.ebuild: + www-client/arcanist: More work + + 05 Feb 2015; Bertrand Jacquin <bertrand@jacquin.bzh> arcanist-9999.ebuild, + metadata.xml: + www-client/arcanist: Sync with upstream + 25 Jan 2015; Bertrand Jacquin <bertrand@jacquin.bzh> metadata.xml: Update email address diff --git a/www-client/arcanist/Manifest b/www-client/arcanist/Manifest index af8eb327..dccfbfa6 100644 --- a/www-client/arcanist/Manifest +++ b/www-client/arcanist/Manifest @@ -1,3 +1,3 @@ -EBUILD arcanist-9999.ebuild 3047 SHA256 9ad5f3fd44d899325a87766a13aff0678920d41ebaa2f7403edc9ec293e2ac43 WHIRLPOOL ede574524137ff19a980885bcf10972821d3e14102e41315d0aeb6bfcbf81bb60aa5344975bdc43e274098b0f5994aacbfa54fd6425924c0429b0b12cd69ef09 -MISC ChangeLog 2138 SHA256 7c793fa2c5929fd99f932c7a93aa1e6f52f29e7bac90a746278552d97d02dd2f WHIRLPOOL 47d9a2e37ef2986fbc13770853c2cb977c0e97516340074a5bf03ea85fb306fbc2904f8656df21f9a4057d2cfb1637983e947c14732c87a1cd13f59f4cf7a229 -MISC metadata.xml 378 SHA256 7651e45ad6ee2a96b3219989b458be47d3034423a07ef764480ba57dadd4b920 WHIRLPOOL 0a747be8287db68404d6b7107b5bd4fa9a2dad2862a30e90cebb1c299f59105eca2a7848ab4e92ab4d4ffdf7e4ec40ac6d2e1133678efc0f8ed7f0f78736f8a1 +EBUILD arcanist-9999.ebuild 3710 SHA256 39d7e461d70d31fc511fcebda07724fd4d69ddbbd98a59f482249dd796e05204 WHIRLPOOL 950f96bf1d3421c7f8daa562371fc63b54dfe005b9612f86b4c0bdf67585a9cd4fc58cbd246f520f526e4a4d99464424ecb75fdb3c250bf9df690f14a46c0c09 +MISC ChangeLog 2385 SHA256 6d2c05c037d2f27316e553084a4a65c088a66e031c42a64f81bf5aae1c22c9e4 WHIRLPOOL c889120e32fcac29ec6b7bd59c4eeff8be541edcaf154b518043f9ddfdb5e87a482c5bbcb95bbc07eed5eb3ef530b87127291b8c106e074308b4863434cf578c +MISC metadata.xml 452 SHA256 2e925bb81450c955ffb47c6af0cfccff61d103c2622101ee5fc225eac0407d59 WHIRLPOOL 757211efd5b90e2c231b585b3b06e5399fa5407bddcf80cd457796a09239c88a48313a5d75ea98ad538ed3aa73bfa080676570f42ea92817c2a4183526006045 diff --git a/www-client/arcanist/arcanist-9999.ebuild b/www-client/arcanist/arcanist-9999.ebuild index 23273fcb..aae25d20 100644 --- a/www-client/arcanist/arcanist-9999.ebuild +++ b/www-client/arcanist/arcanist-9999.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2014 Gentoo Foundation +# Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ @@ -16,32 +16,59 @@ EGIT_REPO_URI="git://github.com/facebook/arcanist.git" LICENSE="Apache-2.0" SLOT="0" KEYWORDS="" -IUSE="css git javascript mercurial php python ruby subversion ssl test" -REQUIRED_USE="test? ( css git javascript php python ruby )" +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] - dev-util/cpplint:0 )" 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 ) - css? ( net-libs/nodejs:0[npm] ) - javascript? ( net-libs/nodejs:0[npm] ) - php? ( dev-php/PEAR-PHP_CodeSniffer:0 ) - python? ( + 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}] - ) - ruby? ( dev-lang/ruby )" + dev-util/cppcheck:0 + dev-util/cpplint:0 + net-libs/nodejs:0[npm] + )" src_test() { - # TODO s/ewarn/die until https://github.com/facebook/arcanist/issues/99 - bin/arc unit --everything --no-coverage || ewarn "arc unit failed" + 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() { @@ -82,7 +109,7 @@ src_prepare() { } src_install() { - newbashcomp resources/shell/bash-completion "${PN}" + newbashcomp resources/shell/bash-completion "arc" insinto "/usr/share/${PN}" doins VERSION @@ -107,19 +134,9 @@ src_install() { } pkg_postinst() { - elog - elog "Linter for different languages are available thrue USE flags" - elog " css javascript php python ruby" - - if use css ; then - elog - elog "To enable javascript linter, you need to manually install CSS lint" - elog " npm install csslint -g" - fi - - if use javascript ; then + if use lint; then elog - elog "To enable javascript linter, you need to manually install JSHint" - elog " npm install jshint -g" + elog "Some linter need external NodeJS script. To install them, use:" + elog " npm install -g csslint" fi } diff --git a/www-client/arcanist/metadata.xml b/www-client/arcanist/metadata.xml index 6755e4ed..ad98f528 100644 --- a/www-client/arcanist/metadata.xml +++ b/www-client/arcanist/metadata.xml @@ -6,6 +6,9 @@ <name>Bertrand Jacquin</name> </maintainer> <use> + <flag name='lint'> + Support for linter + </flag> <flag name='mercurial'> Support for <pkg>dev-vcs/mercurial</pkg> </flag> |