2013-05-13 09:34:49 +02:00
|
|
|
# Copyright 1999-2013 Gentoo Foundation
|
2012-05-31 11:41:38 +02:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
2013-05-13 09:34:49 +02:00
|
|
|
# $Header: $
|
2012-05-31 11:41:38 +02:00
|
|
|
|
|
|
|
EAPI="4"
|
|
|
|
|
|
|
|
inherit bash-completion-r1
|
|
|
|
|
2014-03-14 08:56:12 +01:00
|
|
|
GITHUB_USER="drush-ops"
|
2012-05-31 11:41:38 +02:00
|
|
|
DESCRIPTION="Drush is a command line shell and scripting interface for Drupal"
|
2014-03-14 08:56:12 +01:00
|
|
|
HOMEPAGE="https://github.com/drush-ops/drush"
|
|
|
|
GITHUB_TAG="${PV}"
|
|
|
|
SRC_URI="https://github.com/${GITHUB_USER}/${PN}/tarball/${GITHUB_TAG} -> ${GITHUB_USER}-${P}.tar.gz"
|
2012-05-31 11:41:38 +02:00
|
|
|
|
|
|
|
LICENSE="GPL-2"
|
|
|
|
SLOT="0"
|
2013-05-13 09:34:49 +02:00
|
|
|
KEYWORDS="amd64 x86"
|
2012-05-31 11:41:38 +02:00
|
|
|
IUSE="+examples"
|
|
|
|
|
|
|
|
DEPEND="dev-lang/php[cli,simplexml]
|
|
|
|
dev-php/pear
|
|
|
|
dev-php/PEAR-Console_Table
|
|
|
|
dev-php/PEAR-Console_Getopt"
|
|
|
|
RDEPEND="${DEPEND}"
|
2014-08-25 12:48:26 +02:00
|
|
|
S="${WORKDIR}/${GITHUB_USER}-${PN}-b9e6c8c"
|
2012-05-31 11:41:38 +02:00
|
|
|
|
|
|
|
src_prepare() {
|
2014-03-14 08:56:12 +01:00
|
|
|
# sed -i -e
|
|
|
|
# "s!/share/doc/drush!/share/doc/${PF}!" \
|
|
|
|
# -e "s!README\.txt!\0.bz2!g" \
|
|
|
|
# includes/bootstrap.inc || die
|
2012-05-31 11:41:38 +02:00
|
|
|
sed -i \
|
|
|
|
-e "s!\.php'!.php.bz2'!" \
|
|
|
|
-e "s!\.ini'!.ini.bz2'!" \
|
|
|
|
-e "s!\.txt'!.txt.bz2'!" \
|
|
|
|
-e "s!\.bashrc'!.bashrc.bz2'!" \
|
|
|
|
commands/core/docs.drush.inc || die
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
2014-03-14 08:56:12 +01:00
|
|
|
local docs="README.md docs"
|
2012-05-31 11:41:38 +02:00
|
|
|
use examples && docs="${docs} examples"
|
|
|
|
insinto /usr/share/drush
|
|
|
|
doins -r .
|
|
|
|
exeinto /usr/share/drush
|
|
|
|
doexe drush
|
|
|
|
dosym /usr/share/drush/drush /usr/bin/drush
|
|
|
|
dodoc -r ${docs}
|
|
|
|
# cleanup
|
|
|
|
for i in ${docs} LICENSE.txt drush.bat examples includes/.gitignore \
|
|
|
|
.gitignore .travis.yml drush.complete.sh ; do
|
|
|
|
rm -rf "${D}/usr/share/drush/${i}"
|
|
|
|
done
|
|
|
|
keepdir /etc/drush
|
2014-03-14 08:56:12 +01:00
|
|
|
newbashcomp drush.complete.sh drush
|
2012-05-31 11:41:38 +02:00
|
|
|
}
|