From 549b9f47effa4cf2c99fdcc5885e62bfa5903311 Mon Sep 17 00:00:00 2001 From: Bertrand Jacquin Date: Mon, 6 Aug 2018 15:16:45 +0100 Subject: www-apps/phabricator-extensions-Sprint: Version bump Package-Manager: Portage-2.3.40, Repoman-2.3.9 --- .../phabricator-extensions-Sprint-20171129.ebuild | 85 ---------------------- .../phabricator-extensions-Sprint-20180725.ebuild | 85 ++++++++++++++++++++++ 2 files changed, 85 insertions(+), 85 deletions(-) delete mode 100644 www-apps/phabricator-extensions-Sprint/phabricator-extensions-Sprint-20171129.ebuild create mode 100644 www-apps/phabricator-extensions-Sprint/phabricator-extensions-Sprint-20180725.ebuild (limited to 'www-apps') diff --git a/www-apps/phabricator-extensions-Sprint/phabricator-extensions-Sprint-20171129.ebuild b/www-apps/phabricator-extensions-Sprint/phabricator-extensions-Sprint-20171129.ebuild deleted file mode 100644 index 6e5bdc21..00000000 --- a/www-apps/phabricator-extensions-Sprint/phabricator-extensions-Sprint-20171129.ebuild +++ /dev/null @@ -1,85 +0,0 @@ -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 -inherit git-r3 - -DESCRIPTION="Manage your tasks with Points in Phabricator" -HOMEPAGE="https://phabricator.wikimedia.org/diffusion/PHSP/" -EGIT_REPO_URI="https://phabricator.wikimedia.org/diffusion/PHSP/phabricator-sprint.git" -EGIT_BRANCH="wmf/stable" -EGIT_COMMIT="9da8f6c3f27282aa10375bb97592cbe86db99d24" - -LICENSE="GPL-3" -SLOT="stable" -KEYWORDS="~amd64" -IUSE="test" - -DEPEND="!${CATEGORY}/${PN}:0" -RDEPEND="dev-php/libphutil:stable - www-apps/phabricator:stable" - -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" - - find -type f -name .gitignore -print0 \ - | xargs -0 --no-run-if-empty -- \ - rm - - # 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() { - arc unit --everything --no-coverage || die "arc unit failed" -} - -src_install() { - insinto "/usr/share/${PN}" - doins GIT_COMMIT_INFO GIT_REMOTE_INFO - - insinto "/usr/share/php/${PN}" - doins -r rsrc scripts src - - # 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 - - dodoc README.md RELEASE_NOTES.md -} - -pkg_postinst () { - elog - elog "After the first installation, you need to run:" - elog " cd /path/to/phabricator/install" - elog " bin/config set load-libraries '{\"sprint\":\"${EROOT}usr/share/php/${PN}/src\"}'" -} diff --git a/www-apps/phabricator-extensions-Sprint/phabricator-extensions-Sprint-20180725.ebuild b/www-apps/phabricator-extensions-Sprint/phabricator-extensions-Sprint-20180725.ebuild new file mode 100644 index 00000000..6e5bdc21 --- /dev/null +++ b/www-apps/phabricator-extensions-Sprint/phabricator-extensions-Sprint-20180725.ebuild @@ -0,0 +1,85 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit git-r3 + +DESCRIPTION="Manage your tasks with Points in Phabricator" +HOMEPAGE="https://phabricator.wikimedia.org/diffusion/PHSP/" +EGIT_REPO_URI="https://phabricator.wikimedia.org/diffusion/PHSP/phabricator-sprint.git" +EGIT_BRANCH="wmf/stable" +EGIT_COMMIT="9da8f6c3f27282aa10375bb97592cbe86db99d24" + +LICENSE="GPL-3" +SLOT="stable" +KEYWORDS="~amd64" +IUSE="test" + +DEPEND="!${CATEGORY}/${PN}:0" +RDEPEND="dev-php/libphutil:stable + www-apps/phabricator:stable" + +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" + + find -type f -name .gitignore -print0 \ + | xargs -0 --no-run-if-empty -- \ + rm + + # 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() { + arc unit --everything --no-coverage || die "arc unit failed" +} + +src_install() { + insinto "/usr/share/${PN}" + doins GIT_COMMIT_INFO GIT_REMOTE_INFO + + insinto "/usr/share/php/${PN}" + doins -r rsrc scripts src + + # 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 + + dodoc README.md RELEASE_NOTES.md +} + +pkg_postinst () { + elog + elog "After the first installation, you need to run:" + elog " cd /path/to/phabricator/install" + elog " bin/config set load-libraries '{\"sprint\":\"${EROOT}usr/share/php/${PN}/src\"}'" +} -- cgit v1.2.3