summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--metadata/md5-cache/www-apps/phabricator-2015081513
-rw-r--r--www-apps/phabricator/ChangeLog7
-rw-r--r--www-apps/phabricator/Manifest4
-rw-r--r--www-apps/phabricator/files/20150815-MEDIUM-Get-VERSION-for-files-in-usr-share-PN-VERSION.patch49
-rw-r--r--www-apps/phabricator/phabricator-20150815.ebuild174
5 files changed, 246 insertions, 1 deletions
diff --git a/metadata/md5-cache/www-apps/phabricator-20150815 b/metadata/md5-cache/www-apps/phabricator-20150815
new file mode 100644
index 00000000..25125220
--- /dev/null
+++ b/metadata/md5-cache/www-apps/phabricator-20150815
@@ -0,0 +1,13 @@
+DEFINED_PHASES=install postinst prepare prerm setup test unpack
+DEPEND=virtual/awk:0 test? ( =www-client/arcanist-20150815:0[test] ) >=dev-vcs/git-1.8.2.1 >=app-admin/webapp-config-1.50.15
+DESCRIPTION=Collection of web applications which makes it easier to scale software companies
+EAPI=5
+HOMEPAGE=http://phabricator.org
+IUSE=git highlight mail mercurial subversion ssl test abi_x86_x32
+KEYWORDS=~amd64
+LICENSE=Apache-2.0
+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,ssl?,unicode] virtual/mysql =dev-php/libphutil-20150815:0 !abi_x86_x32? ( net-libs/nodejs:0 ) =www-client/arcanist-20150815:0[git?,mercurial?,subversion?] git? ( dev-vcs/git:0 ) mercurial? ( dev-vcs/mercurial:0 ) subversion? ( dev-vcs/subversion:0 ) highlight? ( dev-python/pygments:0 ) mail? ( dev-php/pecl-mailparse:0 ) >=app-admin/webapp-config-1.50.15
+REQUIRED_USE=test? ( git mercurial subversion )
+SLOT=0
+_eclasses_=eutils 351a78113be5b393c09a2c948701ad36 git-r3 1502b9838d043db47700b8120083e637 multilib df4e4d5cfd3d137d0c248e1991c0e4d6 toolchain-funcs 4b8d3388c0a6e798504e20ba30b49361 webapp 2442891c368d310c1d3fe77d9c77fe5b
+_md5_=9194d98e3fea4d8eeb3b863569a150e0
diff --git a/www-apps/phabricator/ChangeLog b/www-apps/phabricator/ChangeLog
index 15d64558..3971f8f4 100644
--- a/www-apps/phabricator/ChangeLog
+++ b/www-apps/phabricator/ChangeLog
@@ -2,6 +2,13 @@
# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+*phabricator-20150815 (15 Aug 2015)
+
+ 15 Aug 2015; Bertrand Jacquin <bertrand@jacquin.bzh>
+ +files/20150815-MEDIUM-Get-VERSION-for-files-in-usr-share-PN-VERSION.patch,
+ +phabricator-20150815.ebuild:
+ www-apps/phabricator: Version bump
+
*phabricator-20150727 (08 Aug 2015)
08 Aug 2015; Bertrand Jacquin <bertrand@jacquin.bzh>
diff --git a/www-apps/phabricator/Manifest b/www-apps/phabricator/Manifest
index 3d245a58..12ffb23d 100644
--- a/www-apps/phabricator/Manifest
+++ b/www-apps/phabricator/Manifest
@@ -1,5 +1,6 @@
AUX 20150414-MEDIUM-Get-VERSION-for-files-in-usr-share-PN-VERSION.patch 1680 SHA256 7d9daf6c1b84c54ed99167b1d2efd2a60472c5e8cb74cf7439f74c48cd9d24bc WHIRLPOOL bfcc2152b974afe2ac879aab48456318107c1a069838dfa7003d45748721e8a5ea61d4c9f17fc4fed49589ccd04e71999966e4b09d741b354281ad444b7b4449
AUX 20150727-MEDIUM-Get-VERSION-for-files-in-usr-share-PN-VERSION.patch 1680 SHA256 7d9daf6c1b84c54ed99167b1d2efd2a60472c5e8cb74cf7439f74c48cd9d24bc WHIRLPOOL bfcc2152b974afe2ac879aab48456318107c1a069838dfa7003d45748721e8a5ea61d4c9f17fc4fed49589ccd04e71999966e4b09d741b354281ad444b7b4449
+AUX 20150815-MEDIUM-Get-VERSION-for-files-in-usr-share-PN-VERSION.patch 1680 SHA256 7d9daf6c1b84c54ed99167b1d2efd2a60472c5e8cb74cf7439f74c48cd9d24bc WHIRLPOOL bfcc2152b974afe2ac879aab48456318107c1a069838dfa7003d45748721e8a5ea61d4c9f17fc4fed49589ccd04e71999966e4b09d741b354281ad444b7b4449
AUX 9999-MEDIUM-Get-VERSION-for-files-in-usr-share-PN-VERSION.patch 1680 SHA256 7d9daf6c1b84c54ed99167b1d2efd2a60472c5e8cb74cf7439f74c48cd9d24bc WHIRLPOOL bfcc2152b974afe2ac879aab48456318107c1a069838dfa7003d45748721e8a5ea61d4c9f17fc4fed49589ccd04e71999966e4b09d741b354281ad444b7b4449
AUX aphlictd.confd 220 SHA256 da99929f9aab168889e4a6d871b61947a3dcad4e12e1ca206967ff09cd20d558 WHIRLPOOL 51db9a92af0acbf2b3ca9ce2b5e64edf625011805312bec5a3cf38d3a491d1dfc8215828b8981eca7b3c8dc6d0297f7b06df365dac9914bdac196f72dc78df53
AUX aphlictd.initd 1618 SHA256 1d02bad1035b511969ffd4ea27b1b4929e87995a773575555e26adbf14d4f877 WHIRLPOOL 2dca73e8986b3ce19902e43f29f0dc86c18764c37afb06d1d85fbff7a60d6e02dad6d784397c80843b7f5f6c0f394fb1337cf358496f68f39498c190e6f51775
@@ -10,6 +11,7 @@ AUX phd.initd 2434 SHA256 1c9e506e805ce4a04e3a5467c590eef5c84b909fa0bee530d9d9b7
AUX webapp-hook 3806 SHA256 59b4bf2543fa35da457476c60ba8c52db0a81de28077ba47e1bef1cf3b12115e WHIRLPOOL cffc4f46504f29cc994447526d5eeb6fd993f999317b7640e931915434894ade2cd70c7a71681e5bed7124410fe8d9fa04eb7a8eb517c29e4aafdc2d5a296ca9
EBUILD phabricator-20150414.ebuild 4687 SHA256 c88888f3c6c8ee829ec5037a78e4f7d252308983e34288764d71aea15308469a WHIRLPOOL cd8d855951cb4f18dea947fb7729070580b1790834485bf34f6158fc6c62cbb75465a6abdc2e12bfb57ed26ece85682a4e4663f0406544dde2ea7b0505da1757
EBUILD phabricator-20150727.ebuild 4687 SHA256 5cbc34460a79f55a60b668c728f97b0b3e0e6cd59b870e6a02355109e6bcc52f WHIRLPOOL 0bf0192947e5479f8a4eba9afea216912a08bd3be50f90e5fd5129a63b52e9c0d48b0ec8e6bfdbe67269d07409d50ea7c1ac3001019e7590ea4b758f34e0d419
+EBUILD phabricator-20150815.ebuild 4687 SHA256 c825ec4bf01911a85f4999c23fbbb4324ae0e15b1a203eb19066e57f93d02d3d WHIRLPOOL cb45b4efa0cf6c4dac86b39fb4213c960e7f6d61f9e07a32733f89579b08b9f4ddf3fc60989c5793c42da3f67a674a663164457c33b77023c8f968917d907461
EBUILD phabricator-9999.ebuild 4566 SHA256 c60d1a1a65aedc9c9360e5970cc85aea525dae2ff89a1cf4abeb4b62b07e337e WHIRLPOOL ec68a83a51f8ef418a66d8a5b11b9d2438e1896e60d4e79e5860fb3db4b9971a82f89ff0c3d94bd9a8967f46c47c86b473821f43864baa1da130e177bf14e016
-MISC ChangeLog 8431 SHA256 220fcaaddc4a622e1c65df4bad9232197c0f8d04f34e66b556f77ac5c17f325e WHIRLPOOL 131ec9731e3402db7ff5bb3f7474c09bdb42a585fc653b8f928b96f38c8257b0a9b3c95b3d0428e6fb9789df43d626e1d9ae8d3a2df4c97071d775c327a0ba4b
+MISC ChangeLog 8671 SHA256 3bab8076a240e5c5a903aadd200b9c1da818f31a617ab1da682adbe9f6ea36fb WHIRLPOOL 1e2d8c4fc715038fe03bc9b9d4bcf3ef1293eeef2e5d8452937a0f64b254008b240b263707e5c025ab6f537e5f2de0f955caaed2d12f9a081d07d0632f7c7775
MISC metadata.xml 655 SHA256 0a90f5e0e963495bd177d96a2c5b04a940a2bab969b6921e02655eb9d959493c WHIRLPOOL e817700577f9691c696b0d4b18df79be591a4fc2318af0ebd0add1fbe323de169b8ff03384883734ac7c2d6c93414e1b6edcadf69ea25a35225945b8bdf118c1
diff --git a/www-apps/phabricator/files/20150815-MEDIUM-Get-VERSION-for-files-in-usr-share-PN-VERSION.patch b/www-apps/phabricator/files/20150815-MEDIUM-Get-VERSION-for-files-in-usr-share-PN-VERSION.patch
new file mode 100644
index 00000000..ba5f2aff
--- /dev/null
+++ b/www-apps/phabricator/files/20150815-MEDIUM-Get-VERSION-for-files-in-usr-share-PN-VERSION.patch
@@ -0,0 +1,49 @@
+From 05deb76445852ee8fbcd804d7cca43c3a2971a5b Mon Sep 17 00:00:00 2001
+From: Bertrand Jacquin <beber@meleeweb.net>
+Date: Sat, 22 Feb 2014 18:31:14 +0100
+Subject: [PATCH] MEDIUM: Get VERSION for files in /usr/share/<PN>/VERSION
+ rather than from git
+
+---
+ .../config/controller/PhabricatorConfigAllController.php | 16 +++++++++-------
+ 1 file changed, 9 insertions(+), 7 deletions(-)
+
+diff --git a/src/applications/config/controller/PhabricatorConfigAllController.php b/src/applications/config/controller/PhabricatorConfigAllController.php
+index d4dd4fe..5233fd1 100644
+--- a/src/applications/config/controller/PhabricatorConfigAllController.php
++++ b/src/applications/config/controller/PhabricatorConfigAllController.php
+@@ -106,22 +106,24 @@ final class PhabricatorConfigAllController
+ ),
+ array(
+ 'name' => pht('libphutil Version'),
+- 'root' => 'phutil',
++ 'root' => 'libphutil',
+ ),
+ );
+
+ $futures = array();
+ foreach ($specs as $key => $spec) {
+- $root = dirname(phutil_get_library_root($spec['root']));
+- $futures[$key] = id(new ExecFuture('git log --format=%%H -n 1 --'))
+- ->setCWD($root);
++ $vfile = "/usr/share/" . $spec['root'] . "/VERSION";
++ if (file_exists($vfile)) {
++ $futures[$key] = file_get_contents($vfile);
++ } else {
++ $futures[$key] = '';
++ }
+ }
+
+ $results = array();
+ foreach ($futures as $key => $future) {
+- list($err, $stdout) = $future->resolve();
+- if (!$err) {
+- $name = trim($stdout);
++ if (!empty($future)) {
++ $name = trim($future);
+ } else {
+ $name = pht('Unknown');
+ }
+--
+2.0.5
+
diff --git a/www-apps/phabricator/phabricator-20150815.ebuild b/www-apps/phabricator/phabricator-20150815.ebuild
new file mode 100644
index 00000000..e39f4de7
--- /dev/null
+++ b/www-apps/phabricator/phabricator-20150815.ebuild
@@ -0,0 +1,174 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+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="http://phabricator.org"
+EGIT_REPO_URI="git://github.com/phacility/phabricator.git"
+EGIT_BRANCH="stable"
+EGIT_COMMIT="de2aa64acfda85fa8dc014bdeed0fb47298d42cf"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="git highlight mail mercurial subversion ssl test abi_x86_x32"
+REQUIRED_USE="test? ( git mercurial subversion )"
+
+DEPEND="virtual/awk:0
+ test? (
+ =www-client/arcanist-20150815: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,ssl?,unicode]
+ virtual/mysql
+ =dev-php/libphutil-20150815:0
+ !abi_x86_x32? ( net-libs/nodejs:0 )
+ =www-client/arcanist-20150815:0[git?,mercurial?,subversion?]
+ git? ( dev-vcs/git:0 )
+ mercurial? ( dev-vcs/mercurial:0 )
+ subversion? ( dev-vcs/subversion:0 )
+ highlight? ( dev-python/pygments:0 )
+ mail? ( dev-php/pecl-mailparse:0 )"
+
+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() {
+ epatch "${FILESDIR}/${PV}-MEDIUM-Get-VERSION-for-files-in-usr-share-PN-VERSION.patch"
+
+ echo "${EGIT_VERSION}" > "${S}/VERSION"
+
+ 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 VERSION
+
+ 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}/aphlictd.initd" aphlictd
+ newconfd "${FILESDIR}/aphlictd.confd" aphlictd
+
+ 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"
+}