Gentoo Archives: gentoo-commits

From: "Manuel Rüger" <mrueg@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] dev/mrueg:master commit in: www-apps/redmine_git_hosting/
Date: Mon, 29 Jun 2015 01:05:01
Message-Id: 1435539873.fb14f2c0cb943eceedfbf62af4dd037661f66d38.mrueg@gentoo
1 commit: fb14f2c0cb943eceedfbf62af4dd037661f66d38
2 Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jun 29 01:04:33 2015 +0000
4 Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
5 CommitDate: Mon Jun 29 01:04:33 2015 +0000
6 URL: https://gitweb.gentoo.org/dev/mrueg.git/commit/?id=fb14f2c0
7
8 [www-apps/redmine_git_hosting] Version bump.
9
10 Package-Manager: portage-2.2.20
11
12 www-apps/redmine_git_hosting/Manifest | 1 +
13 .../redmine_git_hosting-1.1.0.ebuild | 83 ++++++++++++++++++++++
14 2 files changed, 84 insertions(+)
15
16 diff --git a/www-apps/redmine_git_hosting/Manifest b/www-apps/redmine_git_hosting/Manifest
17 index d084190..1665e6a 100644
18 --- a/www-apps/redmine_git_hosting/Manifest
19 +++ b/www-apps/redmine_git_hosting/Manifest
20 @@ -1 +1,2 @@
21 DIST redmine_git_hosting-0.7.10.tar.gz 507430 SHA256 071156f0d453b7d42c17aa760a05a0dc814bd65eaefe22a0f572566f39c4e6a9 SHA512 84f0fda4444f2fc4fd9891ae388b7234fd61e45abf044289bb1667ef143b883b2a2b7c5b9c17862c7d4a5614872fb1c68fe860f1dc017f281ef2f81d6291789d WHIRLPOOL c2e2fdd9e2adeb25d3bce9dc7d179d3dc6e1cc20f01338385244d9f27e77b546a6fe4668791bdc18d60640f25ce8f1c6f578923e1ce9143767e19f7418ebc604
22 +DIST redmine_git_hosting-1.1.0.tar.gz 185993 SHA256 fe08b1ac21d3f5e679f9548fb1429461bde9887728064d952d9e24278558f1d3 SHA512 b5e7abab4517a49de8968b58600a60729726f751327934af6ee8488cbabb996c27f255fbc40a5e82c06a473faf6c49caa6e4b7f9924df7b3acb164f2ada6fe68 WHIRLPOOL 44b107c136cf661b77306cf799841e18566ae3b41e528db41e3451187ceec4143de0db5253b74f15285bac54f95ee2b55c4e7e710aacf3ac7cd9c7ecd769df8d
23
24 diff --git a/www-apps/redmine_git_hosting/redmine_git_hosting-1.1.0.ebuild b/www-apps/redmine_git_hosting/redmine_git_hosting-1.1.0.ebuild
25 new file mode 100644
26 index 0000000..6c59629
27 --- /dev/null
28 +++ b/www-apps/redmine_git_hosting/redmine_git_hosting-1.1.0.ebuild
29 @@ -0,0 +1,83 @@
30 +# Copyright 1999-2015 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +# $Header: $
33 +
34 +EAPI=5
35 +
36 +USE_RUBY="ruby20"
37 +inherit ruby-ng user
38 +
39 +DESCRIPTION="A Redmine plugin which makes configuring your own Git hosting easy"
40 +HOMEPAGE="https://github.com/jbox-web/redmine_git_hosting"
41 +SRC_URI="https://github.com/jbox-web/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
42 +
43 +LICENSE="MIT"
44 +SLOT="0"
45 +KEYWORDS="~amd64"
46 +IUSE=""
47 +
48 +ruby_add_rdepend "dev-ruby/asciidoctor
49 + dev-ruby/creole
50 + dev-ruby/github-markup
51 + >=dev-ruby/gitolite-rugged-1.2.0
52 + dev-ruby/gitlab-grack
53 + dev-ruby/org-ruby
54 + dev-ruby/asciidoctor
55 + >=dev-ruby/redcarpet-3.1.2
56 + dev-ruby/redcloth
57 + dev-ruby/wikicloth
58 + dev-ruby/haml-rails
59 + >=www-apps/redmine-3"
60 +
61 +ruby_add_bdepend ">=www-apps/redmine-3"
62 +
63 +REDMINE_DIR="/var/lib/redmine"
64 +
65 +pkg_setup() {
66 + enewgroup redmine
67 + enewuser redmine -1 -1 "${REDMINE_DIR}" redmine
68 +}
69 +
70 +all_ruby_install() {
71 + dodoc README.md
72 + rm .gitignore README.md LICENSE || die
73 + dodir "${REDMINE_DIR}"/plugins/${PN}
74 + insinto "${REDMINE_DIR}"/plugins/${PN}
75 + doins -r .
76 + fowners -R redmine:redmine "${REDMINE_DIR}"/plugins/${PN}
77 +}
78 +
79 +pkg_postinst() {
80 + einfo
81 + elog "Please run emerge --config =${PF}"
82 + elog "Further information:"
83 + elog "https://github.com/jbox-web/redmine_git_hosting/wiki/Step-by-step-installation-instructions"
84 + einfo
85 +}
86 +
87 +pkg_config() {
88 + local RAILS_ENV=${RAILS_ENV:-production}
89 + if [ ! -L /usr/bin/ruby ]; then
90 + eerror "/usr/bin/ruby is not a valid symlink to any ruby implementation."
91 + eerror "Please update it via `eselect ruby`"
92 + die
93 + fi
94 + if [[ $RUBY_TARGETS != *$( eselect ruby show | awk 'NR==2' | tr -d ' ' )* ]]; then
95 + eerror "/usr/bin/ruby is currently not included in redmine's ruby targets: ${RUBY_TARGETS}."
96 + eerror "Please update it via `eselect ruby`"
97 + die
98 + fi
99 +
100 + local RUBY=${RUBY:-ruby}
101 + einfo "Upgrading the plugin migrations."
102 + cd "${EPREFIX}${REDMINE_DIR}" || die
103 + RAILS_ENV="${RAILS_ENV}" ${RUBY} -S rake redmine:plugins:migrate || die
104 + if [ ! -e "${EPREFIX}${REDMINE_DIR}"/plugins/redmine_git_hosting/ssh_keys/redmine_gitolite_admin_id_rsa ]; then
105 + einfo "Generating SSH-Keypair for Redmine user"
106 + ssh-keygen -N '' -f "${EPREFIX}${REDMINE_DIR}"/plugins/redmine_git_hosting/ssh_keys/redmine_gitolite_admin_id_rsa || die
107 + chown redmine:redmine "${EPREFIX}${REDMINE_DIR}"/plugins/redmine_git_hosting/ssh_keys/redmine_gitolite_admin_id_rsa\
108 + "${EPREFIX}${REDMINE_DIR}"/plugins/redmine_git_hosting/ssh_keys/redmine_gitolite_admin_id_rsa.pub || die
109 + touch "${EPREFIX}${REDMINE_DIR}"/log/git_hosting.log
110 + chown redmine:redmine "${EPREFIX}${REDMINE_DIR}"/log/git_hosting.log || die
111 + fi
112 +}