--- /dev/null
+DIST PHP_CodeSniffer-2.5.1.tar.gz 294006 SHA256 bd38bddea81eb9b13413fb09c382a10bbd3c3d8bf82539ac4cc3f1e6a334e5ca SHA512 20221e45da087bbd4e34817086e67ec87016d24a0f14bafbcd7b2a82d4ead9ecf18f2053685e7eee33b5cb4ae2a6d19588b2ca35908b01b75fa79589bbf46671 WHIRLPOOL 0e3b6fe239a6a6e653bf0478edc3eadd05fad456e69785d6f893890cd0a00c066f3eb186c5081142579e0df1a21d7e89f089c93ba4d9810fa235532c318f6a6a
+EBUILD PHP_CodeSniffer-2.5.1.ebuild 1052 SHA256 3eb8aa79090c7a58ddfd70bc5907d61677205e559e8ab484caed173286800620 SHA512 3ae1cc89a5f9aa5c5e8713d472a93a1667fa87e2dbf8729a849098f0a2c88698d219f75c60349648c9f78ae77a6387f0765ae1623719f06f68ddf5dde7211767 WHIRLPOOL f5ef91424a6521a95cc094c4af688026b15daa4fb3ecdc75bf6441df3015457bddfa539cd2434f220bc85e9f51848f2122992a8266c2835ffa9a6210095bb27c
+MISC metadata.xml 252 SHA256 f12a15b7cc3ce0ff76c3dbbeba9d162cac9771fb6ecc0f965a34e93f73e67d52 SHA512 92f660063c96ac5b3e24e58733006d4a72a7e2f41605988efb575546a2539a92b1ceb3a37e018fcb5c08264a42af26950d6520ea80ba60130ad25ce6092ce742 WHIRLPOOL b7954a2a1cbccce0641aaf3dd273bf6dc64e7b5d39097eefe4d0c06eacc0b5f310db23e93a0a2fff7c8c735193acb1c5c8d4210bf77e78d457d50d05412796e0
--- /dev/null
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+DESCRIPTION="Detect violations of PHP code standards"
+HOMEPAGE="https://github.com/squizlabs/PHP_CodeSniffer"
+SRC_URI="https://github.com/squizlabs/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+
+DEPEND="test? ( >=dev-php/phpunit-4 )"
+RDEPEND="dev-lang/php:*[cli,tokenizer,xmlwriter]"
+
+DOCS=( CONTRIBUTING.md README.md )
+src_install() {
+ insinto "/usr/share/${PN}"
+ doins -r CodeSniffer CodeSniffer.php
+
+ # These load code via relative paths, so they have to be symlinked
+ # and not dobin'd.
+ exeinto "/usr/share/${PN}/scripts"
+ for script in phpcbf phpcs; do
+ doexe "scripts/${script}"
+ dosym "/usr/share/${PN}/scripts/${script}" "/usr/bin/${script}"
+ done
+
+ einstalldocs
+}
+
+# The test suite isn't part of the tarball at the moment, keep an eye on
+# https://github.com/squizlabs/PHP_CodeSniffer/issues/548
+RESTRICT=test
+src_test() {
+ phpunit || die "test suite failed"
+}
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>mjo@gentoo.org</email>
+ <name>Michael Orlitzky</name>
+ </maintainer>
+</pkgmetadata>