alpha-quadrant/app-admin/drush/drush-8.4.12.ebuild

35 lines
722 B
Bash
Raw Permalink Normal View History

2016-05-12 09:38:59 +02:00
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
inherit versionator
DESCRIPTION="Drush is a command line shell and scripting interface for Drupal"
HOMEPAGE="https://github.com/drush-ops/drush"
MY_PV=$(replace_version_separator _ -)
SRC_URI="https://github.com/drush-ops/drush/releases/download/${MY_PV}/drush.phar -> ${PN}-${MY_PV}.phar"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE=""
2021-10-15 16:28:03 +02:00
DEPEND=">=dev-lang/php-7.2.0"
2016-05-12 09:38:59 +02:00
RDEPEND="dev-lang/php[zip]"
src_unpack() {
2019-09-05 10:04:47 +02:00
cp "${DISTDIR}/${A}" "${WORKDIR}"
S=${WORKDIR}
2016-05-12 09:38:59 +02:00
}
src_install() {
2019-09-05 10:04:47 +02:00
newbin ${A} drush-${MY_PV}
dosym drush-${MY_PV} /usr/bin/drush
dosym drush-${MY_PV} /usr/bin/drush8
2016-05-12 09:38:59 +02:00
}