diff options
author | Bertrand Jacquin <bertrand@jacquin.bzh> | 2017-02-21 22:45:48 +0000 |
---|---|---|
committer | Bertrand Jacquin <bertrand@jacquin.bzh> | 2017-02-21 22:50:55 +0000 |
commit | 64b7fb75b91655144e99db4cb366a42eb1f89dcd (patch) | |
tree | d12408374ed0f6c3746c23c57c63cd3dcf4f706f | |
parent | www-client/arcanist: Block PHP7.0 (diff) | |
download | portage-64b7fb75b91655144e99db4cb366a42eb1f89dcd.tar.xz |
www-apps/phabricator: Block PHP7.0
Package-Manager: portage-2.3.3
8 files changed, 10 insertions, 663 deletions
diff --git a/www-apps/phabricator/files/20160709-MEDIUM-Get-VERSION-for-files-in-usr-share-PN-GIT_COM.patch b/www-apps/phabricator/files/20160709-MEDIUM-Get-VERSION-for-files-in-usr-share-PN-GIT_COM.patch deleted file mode 100644 index 4e433934..00000000 --- a/www-apps/phabricator/files/20160709-MEDIUM-Get-VERSION-for-files-in-usr-share-PN-GIT_COM.patch +++ /dev/null @@ -1,37 +0,0 @@ -From 2d63da00cb7208e49e209312216ebf3629095410 Mon Sep 17 00:00:00 2001 -From: Bertrand Jacquin <bertrand@jacquin.bzh> -Date: Sat, 22 Feb 2014 18:31:14 +0100 -Subject: [PATCH] MEDIUM: Get VERSION for files in - /usr/share/<PN>/GIT_COMMIT_INFO rather than from git - ---- - .../config/module/PhabricatorConfigVersionsModule.php | 15 ++++++++++++--- - 1 file changed, 12 insertions(+), 3 deletions(-) - -diff --git a/src/applications/config/module/PhabricatorConfigVersionsModule.php b/src/applications/config/module/PhabricatorConfigVersionsModule.php -index 9a6292a..8278881 100644 ---- a/src/applications/config/module/PhabricatorConfigVersionsModule.php -+++ b/src/applications/config/module/PhabricatorConfigVersionsModule.php -@@ -51,10 +51,19 @@ final class PhabricatorConfigVersionsModule - - $futures = array(); - foreach ($specs as $lib) { -- $root = dirname(phutil_get_library_root($lib)); -+ switch ($lib) { -+ case "phutil": -+ $_dir = "libphutil"; -+ break; -+ case "sprint": -+ $_dir = "phabricator-extensions-Sprint"; -+ break; -+ default: -+ $_dir = $lib; -+ } -+ - $futures[$lib] = -- id(new ExecFuture('git log --format=%s -n 1 --', '%H %ct')) -- ->setCWD($root); -+ id(new ExecFuture('cat -- %s', "/usr/share/" . $_dir . "/GIT_COMMIT_INFO")); - } - - $results = array(); diff --git a/www-apps/phabricator/files/20161213-MEDIUM-Get-VERSION-for-files-in-usr-share-PN-GIT_COM.patch b/www-apps/phabricator/files/20161213-MEDIUM-Get-VERSION-for-files-in-usr-share-PN-GIT_COM.patch deleted file mode 100644 index 75675d80..00000000 --- a/www-apps/phabricator/files/20161213-MEDIUM-Get-VERSION-for-files-in-usr-share-PN-GIT_COM.patch +++ /dev/null @@ -1,37 +0,0 @@ -From 9c9d6d9a42c8980de7631211a02b66b7d20ce831 Mon Sep 17 00:00:00 2001 -From: Bertrand Jacquin <bertrand@jacquin.bzh> -Date: Sat, 22 Feb 2014 18:31:14 +0100 -Subject: [PATCH] MEDIUM: Get VERSION for files in - /usr/share/<PN>/GIT_COMMIT_INFO rather than from git - ---- - .../controller/PhabricatorConfigVersionController.php | 15 ++++++++++++--- - 1 file changed, 12 insertions(+), 3 deletions(-) - -diff --git a/src/applications/config/controller/PhabricatorConfigVersionController.php b/src/applications/config/controller/PhabricatorConfigVersionController.php -index 15877ddbd7bb..cd69a8d4e309 100644 ---- a/src/applications/config/controller/PhabricatorConfigVersionController.php -+++ b/src/applications/config/controller/PhabricatorConfigVersionController.php -@@ -69,10 +69,19 @@ final class PhabricatorConfigVersionController - - $futures = array(); - foreach ($specs as $lib) { -- $root = dirname(phutil_get_library_root($lib)); -+ switch ($lib) { -+ case "phutil": -+ $_dir = "libphutil"; -+ break; -+ case "sprint": -+ $_dir = "phabricator-extensions-Sprint"; -+ break; -+ default: -+ $_dir = $lib; -+ } -+ - $futures[$lib] = -- id(new ExecFuture('git log --format=%s -n 1 --', '%H %ct')) -- ->setCWD($root); -+ id(new ExecFuture('cat -- %s', "/usr/share/" . $_dir . "/GIT_COMMIT_INFO")); - } - - $results = array(); diff --git a/www-apps/phabricator/files/20170113-MEDIUM-Get-VERSION-for-files-in-usr-share-PN-GIT_COM.patch b/www-apps/phabricator/files/20170113-MEDIUM-Get-VERSION-for-files-in-usr-share-PN-GIT_COM.patch deleted file mode 100644 index eb60ea63..00000000 --- a/www-apps/phabricator/files/20170113-MEDIUM-Get-VERSION-for-files-in-usr-share-PN-GIT_COM.patch +++ /dev/null @@ -1,50 +0,0 @@ -From 9569934cab0e494c113b8cff239c691f073faafa Mon Sep 17 00:00:00 2001 -From: Bertrand Jacquin <bertrand@jacquin.bzh> -Date: Sat, 22 Feb 2014 18:31:14 +0100 -Subject: [PATCH] MEDIUM: Get VERSION for files in - /usr/share/<PN>/GIT_COMMIT_INFO rather than from git - ---- - .../PhabricatorConfigVersionController.php | 29 +++++++++++----------- - 1 file changed, 15 insertions(+), 14 deletions(-) - -diff --git a/src/applications/config/controller/PhabricatorConfigVersionController.php b/src/applications/config/controller/PhabricatorConfigVersionController.php -index 8f43192b3bcc..f07cf2544cda 100644 ---- a/src/applications/config/controller/PhabricatorConfigVersionController.php -+++ b/src/applications/config/controller/PhabricatorConfigVersionController.php -@@ -83,20 +83,21 @@ final class PhabricatorConfigVersionController - $remote_futures = array(); - - foreach ($specs as $lib) { -- $root = dirname(phutil_get_library_root($lib)); -- -- $log_command = csprintf( -- 'git log --format=%s -n 1 --', -- '%H %ct'); -- -- $remote_command = csprintf( -- 'git remote -v'); -- -- $log_futures[$lib] = id(new ExecFuture('%C', $log_command)) -- ->setCWD($root); -- -- $remote_futures[$lib] = id(new ExecFuture('%C', $remote_command)) -- ->setCWD($root); -+ switch ($lib) { -+ case "phutil": -+ $_dir = "libphutil"; -+ break; -+ case "sprint": -+ $_dir = "phabricator-extensions-Sprint"; -+ break; -+ default: -+ $_dir = $lib; -+ } -+ -+ $log_futures[$lib] = -+ id(new ExecFuture('cat -- %s', "/usr/share/" . $_dir . "/GIT_COMMIT_INFO")); -+ $remote_futures[$lib] = -+ id(new ExecFuture('cat -- %s', "/usr/share/" . $_dir . "/GIT_REMOTE_INFO")); - } - - $all_futures = array_merge($log_futures, $remote_futures); diff --git a/www-apps/phabricator/phabricator-20160709.ebuild b/www-apps/phabricator/phabricator-20160709.ebuild deleted file mode 100644 index 43513faf..00000000 --- a/www-apps/phabricator/phabricator-20160709.ebuild +++ /dev/null @@ -1,178 +0,0 @@ -# Copyright 1999-2016 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI=6 -WEBAPP_NO_AUTO_INSTALL=yes -WEBAPP_MANUAL_SLOT=yes -inherit git-r3 webapp - -DESCRIPTION="Collection of web applications which makes it easier to scale software companies" -HOMEPAGE="https://www.phacility.com" -EGIT_REPO_URI="git://github.com/phacility/phabricator.git" -EGIT_BRANCH="stable" -EGIT_COMMIT="9da15fd7ab7071e3b7361463229abd4e918d9d94" - -LICENSE="Apache-2.0" -SLOT="0" -KEYWORDS="~amd64" -IUSE="extension-sprint git highlight mail mercurial subversion ssl test" -REQUIRED_USE="test? ( git mercurial subversion )" - -DEPEND="virtual/awk:0 - test? ( - =www-client/arcanist-20160701:0[test] - )" -RDEPEND=">=app-admin/webapp-config-1.51-r1:0 - sys-apps/gentoo-functions - || ( - >=www-servers/apache-2.2.7:2[apache2_modules_rewrite] - www-servers/nginx:0 - www-servers/lighttpd:0 - ) - app-misc/jq:0 - >=dev-lang/php-5.2.3:*[cli,curl,gd,iconv,json,mysql,mysqli,pcntl,simplexml,ssl?,unicode] - dev-php/pecl-apcu - virtual/mysql - =dev-php/libphutil-20160709:0 - net-libs/nodejs:0 - =www-client/arcanist-20160701:0[git?,mercurial?,subversion?] - git? ( dev-vcs/git:0 ) - mercurial? ( >dev-vcs/mercurial-2.2:0 ) - subversion? ( >dev-vcs/subversion-1.7.1:0 ) - highlight? ( dev-python/pygments:0 ) - mail? ( dev-php/pecl-mailparse:0 )" -PDEPEND="extension-sprint? ( www-apps/phabricator-extensions-Sprint )" - -pkg_setup() { - webapp_pkg_setup - - if use test ; then - einfo "Environnement variables you can tweak for database tests" - einfo " PHABRICATOR_MYSQL_HOST (default my.cnf[client].host || my.cnf[client].socket)" - einfo " PHABRICATOR_MYSQL_USER (default my.cnf[client].user || current user)" - einfo " PHABRICATOR_MYSQL_PASS (default my.cnf[client].password || empty)" - einfo - einfo "src_test() may fail if such variable are not defined" - fi -} - -src_prepare() { - default - - git log --format='%H %ct' -n 1 > "${S}/GIT_COMMIT_INFO" - - epatch "${FILESDIR}/${PV}-MEDIUM-Get-VERSION-for-files-in-usr-share-PN-GIT_COM.patch" - - find -type f -name .gitignore -print0 \ - | xargs -0 --no-run-if-empty -- \ - rm - - rm -r scripts/install - - # Replace 'env' shebang to files it point to - find -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 "Changing ${REPLY} shebang to #!${path} ${args}" - sed -i \ - -e "1 s:^#!.*:#!${path} ${args}:" \ - "${REPLY}" - eend $? - done -} - -src_test() { - local BASE_URI="http://localhost.localdomain" - - einfo "Setting phabricator.base-uri='${BASE_URI}'" - bin/config set phabricator.base-uri "${BASE_URI}" > /dev/null - eend $? - - if [[ -n "${PHABRICATOR_MYSQL_HOST}" ]] ; then - einfo "Setting mysql.host='${PHABRICATOR_MYSQL_HOST}'" - bin/config set mysql.host "${PHABRICATOR_MYSQL_HOST}" > /dev/null - eend $? - fi - - if [[ -n "${PHABRICATOR_MYSQL_USER}" ]] ; then - einfo "Setting mysql.user='${PHABRICATOR_MYSQL_USER}'" - bin/config set mysql.user "${PHABRICATOR_MYSQL_USER}" > /dev/null - eend $? - fi - - if [[ -n "${PHABRICATOR_MYSQL_PASS}" ]] ; then - einfo "Setting mysql.pass='${PHABRICATOR_MYSQL_PASS}'" - bin/config set mysql.pass "${PHABRICATOR_MYSQL_PASS}" > /dev/null - eend $? - fi - - arc unit --everything --no-coverage || die "arc unit failed" - - # Cleanup tests only config files - rm conf/local/local.json -} - -src_install() { - insinto "/usr/share/${PN}" - doins GIT_COMMIT_INFO - - webapp_src_preinst - - # All directories must be private (ie accessible in hostroot), - # expect webroot that will become htdocs - insinto "${MY_HOSTROOTDIR}" - doins -r bin conf externals resources scripts src support - - # All files and directories present in webroot/ will be - # installed in htdocs - insinto "${MY_HTDOCSDIR}" - doins -r webroot/* - - newins "${FILESDIR}/htaccess" .htaccess - - # 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 - - webapp_configfile "${MY_HTDOCSDIR}/.htaccess" - webapp_hook_script "${FILESDIR}/webapp-hook" - - webapp_src_install - - newinitd "${FILESDIR}/phd.initd" phd - newconfd "${FILESDIR}/phd.confd" phd - - newinitd "${FILESDIR}/aphlict.initd" aphlict - newconfd "${FILESDIR}/aphlict.confd" aphlict - - insinto /etc/logrotate.d - newins "${FILESDIR}/${PN}.logrotate" "${PN}" - - dodoc NOTICE README.md -} - -pkg_postinst() { - webapp_pkg_postinst - - elog - elog "For more info about how to configure, see" - elog " http://www.phabricator.com/docs/phabricator/article/Configuration_Guide.html" -} diff --git a/www-apps/phabricator/phabricator-20161213.ebuild b/www-apps/phabricator/phabricator-20161213.ebuild deleted file mode 100644 index 9e2e70f7..00000000 --- a/www-apps/phabricator/phabricator-20161213.ebuild +++ /dev/null @@ -1,178 +0,0 @@ -# Copyright 1999-2016 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI=6 -WEBAPP_NO_AUTO_INSTALL=yes -WEBAPP_MANUAL_SLOT=yes -inherit git-r3 webapp - -DESCRIPTION="Collection of web applications which makes it easier to scale software companies" -HOMEPAGE="https://www.phacility.com" -EGIT_REPO_URI="git://github.com/phacility/phabricator.git" -EGIT_BRANCH="stable" -EGIT_COMMIT="1cd64f9975d66a5fff516cd064cd076b0eb7b07f" - -LICENSE="Apache-2.0" -SLOT="0" -KEYWORDS="~amd64" -IUSE="extension-sprint git highlight mail mercurial subversion ssl test" -REQUIRED_USE="test? ( git mercurial subversion )" - -DEPEND="virtual/awk:0 - test? ( - =www-client/arcanist-20161021:0[test] - )" -RDEPEND=">=app-admin/webapp-config-1.51-r1:0 - sys-apps/gentoo-functions - || ( - >=www-servers/apache-2.2.7:2[apache2_modules_rewrite] - www-servers/nginx:0 - www-servers/lighttpd:0 - ) - app-misc/jq:0 - >=dev-lang/php-5.2.3:*[cli,curl,gd,iconv,json,mysql,mysqli,pcntl,simplexml,ssl?,unicode] - dev-php/pecl-apcu - virtual/mysql - =dev-php/libphutil-20161209:0 - net-libs/nodejs:0 - =www-client/arcanist-20161021:0[git?,mercurial?,subversion?] - git? ( dev-vcs/git:0 ) - mercurial? ( >dev-vcs/mercurial-2.2:0 ) - subversion? ( >dev-vcs/subversion-1.7.1:0 ) - highlight? ( dev-python/pygments:0 ) - mail? ( dev-php/pecl-mailparse:0 )" -PDEPEND="extension-sprint? ( www-apps/phabricator-extensions-Sprint )" - -pkg_setup() { - webapp_pkg_setup - - if use test ; then - einfo "Environnement variables you can tweak for database tests" - einfo " PHABRICATOR_MYSQL_HOST (default my.cnf[client].host || my.cnf[client].socket)" - einfo " PHABRICATOR_MYSQL_USER (default my.cnf[client].user || current user)" - einfo " PHABRICATOR_MYSQL_PASS (default my.cnf[client].password || empty)" - einfo - einfo "src_test() may fail if such variable are not defined" - fi -} - -src_prepare() { - default - - git log --format='%H %ct' -n 1 > "${S}/GIT_COMMIT_INFO" - - epatch "${FILESDIR}/${PV}-MEDIUM-Get-VERSION-for-files-in-usr-share-PN-GIT_COM.patch" - - find -type f -name .gitignore -print0 \ - | xargs -0 --no-run-if-empty -- \ - rm - - rm -r scripts/install - - # Replace 'env' shebang to files it point to - find -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 "Changing ${REPLY} shebang to #!${path} ${args}" - sed -i \ - -e "1 s:^#!.*:#!${path} ${args}:" \ - "${REPLY}" - eend $? - done -} - -src_test() { - local BASE_URI="http://localhost.localdomain" - - einfo "Setting phabricator.base-uri='${BASE_URI}'" - bin/config set phabricator.base-uri "${BASE_URI}" > /dev/null - eend $? - - if [[ -n "${PHABRICATOR_MYSQL_HOST}" ]] ; then - einfo "Setting mysql.host='${PHABRICATOR_MYSQL_HOST}'" - bin/config set mysql.host "${PHABRICATOR_MYSQL_HOST}" > /dev/null - eend $? - fi - - if [[ -n "${PHABRICATOR_MYSQL_USER}" ]] ; then - einfo "Setting mysql.user='${PHABRICATOR_MYSQL_USER}'" - bin/config set mysql.user "${PHABRICATOR_MYSQL_USER}" > /dev/null - eend $? - fi - - if [[ -n "${PHABRICATOR_MYSQL_PASS}" ]] ; then - einfo "Setting mysql.pass='${PHABRICATOR_MYSQL_PASS}'" - bin/config set mysql.pass "${PHABRICATOR_MYSQL_PASS}" > /dev/null - eend $? - fi - - arc unit --everything --no-coverage || die "arc unit failed" - - # Cleanup tests only config files - rm conf/local/local.json -} - -src_install() { - insinto "/usr/share/${PN}" - doins GIT_COMMIT_INFO - - webapp_src_preinst - - # All directories must be private (ie accessible in hostroot), - # expect webroot that will become htdocs - insinto "${MY_HOSTROOTDIR}" - doins -r bin conf externals resources scripts src support - - # All files and directories present in webroot/ will be - # installed in htdocs - insinto "${MY_HTDOCSDIR}" - doins -r webroot/* - - newins "${FILESDIR}/htaccess" .htaccess - - # 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 - - webapp_configfile "${MY_HTDOCSDIR}/.htaccess" - webapp_hook_script "${FILESDIR}/webapp-hook" - - webapp_src_install - - newinitd "${FILESDIR}/phd.initd" phd - newconfd "${FILESDIR}/phd.confd" phd - - newinitd "${FILESDIR}/aphlict.initd" aphlict - newconfd "${FILESDIR}/aphlict.confd" aphlict - - insinto /etc/logrotate.d - newins "${FILESDIR}/${PN}.logrotate" "${PN}" - - dodoc NOTICE README.md -} - -pkg_postinst() { - webapp_pkg_postinst - - elog - elog "For more info about how to configure, see" - elog " http://www.phabricator.com/docs/phabricator/article/Configuration_Guide.html" -} diff --git a/www-apps/phabricator/phabricator-20170113.ebuild b/www-apps/phabricator/phabricator-20170113.ebuild deleted file mode 100644 index 519c7d75..00000000 --- a/www-apps/phabricator/phabricator-20170113.ebuild +++ /dev/null @@ -1,181 +0,0 @@ -# Copyright 1999-2017 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI=6 -WEBAPP_NO_AUTO_INSTALL=yes -WEBAPP_MANUAL_SLOT=yes -inherit git-r3 webapp - -DESCRIPTION="Collection of web applications which makes it easier to scale software companies" -HOMEPAGE="https://www.phacility.com" -EGIT_REPO_URI="git://github.com/phacility/phabricator.git" -EGIT_BRANCH="stable" -EGIT_COMMIT="0426ce73f0e63f1900f1cc285cfa1465ea72317e" - -LICENSE="Apache-2.0" -SLOT="0" -KEYWORDS="~amd64" -IUSE="extension-sprint git highlight mail mercurial subversion ssl test" -REQUIRED_USE="test? ( git mercurial subversion )" - -DEPEND="virtual/awk:0 - test? ( - =www-client/arcanist-20170106:0[test] - )" -RDEPEND=">=app-admin/webapp-config-1.51-r1:0 - sys-apps/gentoo-functions - || ( - >=www-servers/apache-2.2.7:2[apache2_modules_rewrite] - www-servers/nginx:0 - www-servers/lighttpd:0 - ) - app-misc/jq:0 - >=dev-lang/php-5.2.3:*[cli,curl,gd,iconv,json,mysql,mysqli,pcntl,simplexml,ssl?,unicode] - dev-php/pecl-apcu - dev-php/PHPExcel - virtual/mysql - =dev-php/libphutil-20170113:0 - net-libs/nodejs:0 - =www-client/arcanist-20170106:0[git?,mercurial?,subversion?] - git? ( dev-vcs/git:0 ) - mercurial? ( >dev-vcs/mercurial-2.2:0 ) - subversion? ( >dev-vcs/subversion-1.7.1:0 ) - highlight? ( dev-python/pygments:0 ) - mail? ( dev-php/pecl-mailparse:0 )" -PDEPEND="extension-sprint? ( www-apps/phabricator-extensions-Sprint )" - -pkg_setup() { - webapp_pkg_setup - - if use test ; then - einfo "Environnement variables you can tweak for database tests" - einfo " PHABRICATOR_MYSQL_HOST (default my.cnf[client].host || my.cnf[client].socket)" - einfo " PHABRICATOR_MYSQL_USER (default my.cnf[client].user || current user)" - einfo " PHABRICATOR_MYSQL_PASS (default my.cnf[client].password || empty)" - einfo - einfo "src_test() may fail if such variable are not defined" - fi -} - -src_prepare() { - default - - git log --format='%H %ct' -n 1 > "${S}/GIT_COMMIT_INFO" - git remote add origin "${EGIT_REPO_URI}" - git remote -v > "${S}/GIT_REMOTE_INFO" - - epatch "${FILESDIR}/${PV}-MEDIUM-Get-VERSION-for-files-in-usr-share-PN-GIT_COM.patch" - - find -type f -name .gitignore -print0 \ - | xargs -0 --no-run-if-empty -- \ - rm - - rm -r scripts/install - - # Replace 'env' shebang to files it point to - find -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 "Changing ${REPLY} shebang to #!${path} ${args}" - sed -i \ - -e "1 s:^#!.*:#!${path} ${args}:" \ - "${REPLY}" - eend $? - done -} - -src_test() { - local BASE_URI="http://localhost.localdomain" - - einfo "Setting phabricator.base-uri='${BASE_URI}'" - bin/config set phabricator.base-uri "${BASE_URI}" > /dev/null - eend $? - - if [[ -n "${PHABRICATOR_MYSQL_HOST}" ]] ; then - einfo "Setting mysql.host='${PHABRICATOR_MYSQL_HOST}'" - bin/config set mysql.host "${PHABRICATOR_MYSQL_HOST}" > /dev/null - eend $? - fi - - if [[ -n "${PHABRICATOR_MYSQL_USER}" ]] ; then - einfo "Setting mysql.user='${PHABRICATOR_MYSQL_USER}'" - bin/config set mysql.user "${PHABRICATOR_MYSQL_USER}" > /dev/null - eend $? - fi - - if [[ -n "${PHABRICATOR_MYSQL_PASS}" ]] ; then - einfo "Setting mysql.pass='${PHABRICATOR_MYSQL_PASS}'" - bin/config set mysql.pass "${PHABRICATOR_MYSQL_PASS}" > /dev/null - eend $? - fi - - arc unit --everything --no-coverage || die "arc unit failed" - - # Cleanup tests only config files - rm conf/local/local.json -} - -src_install() { - insinto "/usr/share/${PN}" - doins GIT_COMMIT_INFO GIT_REMOTE_INFO - - webapp_src_preinst - - # All directories must be private (ie accessible in hostroot), - # expect webroot that will become htdocs - insinto "${MY_HOSTROOTDIR}" - doins -r bin conf externals resources scripts src support - - # All files and directories present in webroot/ will be - # installed in htdocs - insinto "${MY_HTDOCSDIR}" - doins -r webroot/* - - newins "${FILESDIR}/htaccess" .htaccess - - # 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 - - webapp_configfile "${MY_HTDOCSDIR}/.htaccess" - webapp_hook_script "${FILESDIR}/webapp-hook" - - webapp_src_install - - newinitd "${FILESDIR}/phd.initd" phd - newconfd "${FILESDIR}/phd.confd" phd - - newinitd "${FILESDIR}/aphlict.initd" aphlict - newconfd "${FILESDIR}/aphlict.confd" aphlict - - insinto /etc/logrotate.d - newins "${FILESDIR}/${PN}.logrotate" "${PN}" - - dodoc NOTICE README.md -} - -pkg_postinst() { - webapp_pkg_postinst - - elog - elog "For more info about how to configure, see" - elog " http://www.phabricator.com/docs/phabricator/article/Configuration_Guide.html" -} diff --git a/www-apps/phabricator/phabricator-20170204.ebuild b/www-apps/phabricator/phabricator-20170204.ebuild index d9c2ee62..1a75c439 100644 --- a/www-apps/phabricator/phabricator-20170204.ebuild +++ b/www-apps/phabricator/phabricator-20170204.ebuild @@ -31,7 +31,11 @@ RDEPEND=">=app-admin/webapp-config-1.51-r1:0 www-servers/lighttpd:0 ) app-misc/jq:0 - >=dev-lang/php-5.2.3:*[cli,curl,gd,iconv,json,mysql,mysqli,pcntl,simplexml,ssl?,unicode] + || ( + dev-lang/php:5.6[cli,curl,gd,iconv,json,mysql,mysqli,pcntl,simplexml,ssl?,unicode] + dev-lang/php:7.1[cli,curl,gd,iconv,json,mysql,mysqli,pcntl,simplexml,ssl?,unicode] + ) + !!dev-lang/php:7.0 dev-php/pecl-apcu dev-php/PHPExcel virtual/mysql diff --git a/www-apps/phabricator/phabricator-9999.ebuild b/www-apps/phabricator/phabricator-9999.ebuild index 43032144..897ad828 100644 --- a/www-apps/phabricator/phabricator-9999.ebuild +++ b/www-apps/phabricator/phabricator-9999.ebuild @@ -29,7 +29,11 @@ RDEPEND=">=app-admin/webapp-config-1.51-r1:0 www-servers/lighttpd:0 ) app-misc/jq:0 - >=dev-lang/php-5.2.3:*[cli,curl,gd,iconv,json,mysql,mysqli,pcntl,simplexml,ssl?,unicode] + || ( + dev-lang/php:5.6[cli,curl,gd,iconv,json,mysql,mysqli,pcntl,simplexml,ssl?,unicode] + dev-lang/php:7.1[cli,curl,gd,iconv,json,mysql,mysqli,pcntl,simplexml,ssl?,unicode] + ) + !!dev-lang/php:7.0 dev-php/pecl-apcu dev-php/PHPExcel virtual/mysql |