summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--www-apps/redmine/Manifest4
-rw-r--r--www-apps/redmine/redmine-0.8.0_rc1.ebuild83
-rw-r--r--www-apps/redmine/redmine-9999.ebuild32
3 files changed, 105 insertions, 14 deletions
diff --git a/www-apps/redmine/Manifest b/www-apps/redmine/Manifest
index 5308da9..a65d9fc 100644
--- a/www-apps/redmine/Manifest
+++ b/www-apps/redmine/Manifest
@@ -1,4 +1,6 @@
AUX redmine.confd 177 RMD160 8ac3d7c625cc017ee5e5fceac7dbc0e4ba2fb815 SHA1 72971942aed5bd9c890c6174b2f8c88babcce414 SHA256 d683eea51973ce3d959019befcfbea2dd553b1a435957944e34519595dfc3dec
AUX redmine.initd 621 RMD160 b1cd406788b820602ef5487c077e21e440d3134b SHA1 1567397e16216ac123bff2f8fcc5583e94f34894 SHA256 7c52ee1f5a753c88edab5b0314dfa3656774b3a6ddf02bf25471ac2f75855998
-EBUILD redmine-9999.ebuild 2071 RMD160 9635f9228fe9fd0d4d36aebc91cb53fcd4f9280b SHA1 2880e83e6cb498497d181fbbbc9bb53a5cd57eab SHA256 5f1afa25bc6e85735d3b018f62303653b3f40bc7f9e97b4ea6f4b5c369beea49
+DIST redmine-0.8.0_RC1.tar.gz 3155626 RMD160 50e1489907673c4ec4e3ad08d99d948adc27bcaa SHA1 8440c43986edf6103b668237d8858a1a569fa36b SHA256 6f93daffbca501ee2b466acba0efee7a50596bcf0bc59a8f2709814de3e5ddda
+EBUILD redmine-0.8.0_rc1.ebuild 2320 RMD160 b03e34ff1b828c0e53afddca63fbede98bcfc565 SHA1 d662e7af04f5aa058202227dde9acd6625ce11ea SHA256 ce130bf01686cda870a23c77aac4a25fb3580bbe5ec392a78751f3a51495eca7
+EBUILD redmine-9999.ebuild 2320 RMD160 b03e34ff1b828c0e53afddca63fbede98bcfc565 SHA1 d662e7af04f5aa058202227dde9acd6625ce11ea SHA256 ce130bf01686cda870a23c77aac4a25fb3580bbe5ec392a78751f3a51495eca7
MISC metadata.xml 448 RMD160 b06d41abc0a57138e8e7ae9120b2a74e7b8a9770 SHA1 4960fa91fc82cda0d77f5cb67a8f46dcc6bc5969 SHA256 ddaa521432f9e642e78a8d82e898dacc05971a20600164609dbf061d70bff0b5
diff --git a/www-apps/redmine/redmine-0.8.0_rc1.ebuild b/www-apps/redmine/redmine-0.8.0_rc1.ebuild
new file mode 100644
index 0000000..0d85476
--- /dev/null
+++ b/www-apps/redmine/redmine-0.8.0_rc1.ebuild
@@ -0,0 +1,83 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="2"
+inherit eutils confutils
+
+DESCRIPTION="Redmine is a flexible project management web application written using Ruby on Rails framework"
+HOMEPAGE="http://www.redmine.org/"
+if [[ ${PV} = 9999 ]]; then
+ inherit subversion
+ ESVN_REPO_URI="svn://rubyforge.org/var/svn/${PN}/trunk"
+ KEYWORDS=""
+else
+ SRC_URI="mirror://rubyforge/${PN}/${P/rc/RC}.tar.gz"
+ KEYWORDS="" # 0.8.0rc1 is broken. USE SVN VERSION!.
+ S=${WORKDIR}/${P/rc/RC}
+fi
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="cvs darcs git imagemagick +mysql postgres sqlite3 subversion"
+
+# TODO:
+# 1. separate plugins....
+# dev-ruby/actionwebservice (rm vendor/plugins/{actionwebservice)
+# dev-ruby/coderay - coderay-0.7.6.227 is bundled, it's newer then in tree
+DEPEND=">=virtual/ruby-1.8.6_p200
+ >=dev-ruby/rails-2.1.2:2.1
+ mysql? ( dev-ruby/activerecord:2.1[mysql] )
+ postgres? ( dev-ruby/activerecord:2.1[postgres] )
+ sqlite3? ( dev-ruby/activerecord:2.1[sqlite3] )
+ www-servers/mongrel
+ dev-ruby/ruby-net-ldap
+ imagemagick? ( dev-ruby/rmagick )"
+
+RDEPEND="${DEPEND}
+ cvs? ( >=dev-util/cvs-1.12 )
+ darcs? ( dev-util/darcs )
+ git? ( dev-util/git )
+ mercurial? ( dev-util/mercurial )
+ subversion? ( >=dev-util/subversion-1.3 )"
+
+pkg_preinst() {
+ confutils_require_any mysql postgres sqlite3
+
+ enewgroup redmine
+ enewuser redmine -1 -1 -1 redmine
+}
+
+src_install() {
+ dodoc doc/{UPGRADING,INSTALL,CHANGELOG}
+ #rm -fr doc vendor/plugins/{coderay-*,ruby-net-ldap-*}
+ rm -fr doc vendor/plugins/ruby-net-ldap-*
+
+ mv config/database.yml{.example,}
+ mv config/email.yml{.example,}
+ insinto /etc/${PN}
+ doins -r config/*
+ rm -rf config log
+ dosym /etc/${PN}/ /var/lib/${PN}/config
+ keepdir /var/log/${PN}
+ dosym /var/log/${PN} /var/lib/${PN}/log
+
+ rm files/delete.me
+ insinto /var/lib/${PN}
+ doins -r .
+ keepdir /var/lib/${PN}/files
+ fowners -R redmine:redmine /var/lib/${PN}/{files,tmp,public} /var/log/${PN}
+
+ newconfd "${FILESDIR}/redmine.confd" redmine
+ newinitd "${FILESDIR}/redmine.initd" redmine
+}
+
+pkg_postinst() {
+ einfo
+ elog "Installation notes are at official site"
+ elog "http://www.redmine.org/wiki/redmine/RedmineInstall"
+ elog
+ elog "For upgrade instructions take a look at:"
+ elog "http://www.redmine.org/wiki/redmine/RedmineUpgrade"
+ einfo
+}
diff --git a/www-apps/redmine/redmine-9999.ebuild b/www-apps/redmine/redmine-9999.ebuild
index 7ea1236..0d85476 100644
--- a/www-apps/redmine/redmine-9999.ebuild
+++ b/www-apps/redmine/redmine-9999.ebuild
@@ -3,40 +3,45 @@
# $Header: $
EAPI="2"
-inherit eutils subversion confutils
+inherit eutils confutils
DESCRIPTION="Redmine is a flexible project management web application written using Ruby on Rails framework"
HOMEPAGE="http://www.redmine.org/"
-ESVN_REPO_URI="svn://rubyforge.org/var/svn/${PN}/trunk"
+if [[ ${PV} = 9999 ]]; then
+ inherit subversion
+ ESVN_REPO_URI="svn://rubyforge.org/var/svn/${PN}/trunk"
+ KEYWORDS=""
+else
+ SRC_URI="mirror://rubyforge/${PN}/${P/rc/RC}.tar.gz"
+ KEYWORDS="" # 0.8.0rc1 is broken. USE SVN VERSION!.
+ S=${WORKDIR}/${P/rc/RC}
+fi
LICENSE="GPL-2"
SLOT="0"
-KEYWORDS="~amd64 ~x86"
IUSE="cvs darcs git imagemagick +mysql postgres sqlite3 subversion"
# TODO:
# 1. separate plugins....
# dev-ruby/actionwebservice (rm vendor/plugins/{actionwebservice)
+# dev-ruby/coderay - coderay-0.7.6.227 is bundled, it's newer then in tree
DEPEND=">=virtual/ruby-1.8.6_p200
- dev-ruby/rails:2.1
+ >=dev-ruby/rails-2.1.2:2.1
mysql? ( dev-ruby/activerecord:2.1[mysql] )
postgres? ( dev-ruby/activerecord:2.1[postgres] )
sqlite3? ( dev-ruby/activerecord:2.1[sqlite3] )
www-servers/mongrel
- dev-ruby/coderay
dev-ruby/ruby-net-ldap
- imagemagick? ( dev-ruby/rmagick )
-"
+ imagemagick? ( dev-ruby/rmagick )"
RDEPEND="${DEPEND}
cvs? ( >=dev-util/cvs-1.12 )
darcs? ( dev-util/darcs )
git? ( dev-util/git )
mercurial? ( dev-util/mercurial )
- subversion? ( >=dev-util/subversion-1.3 )
-"
+ subversion? ( >=dev-util/subversion-1.3 )"
-pkg_setup() {
+pkg_preinst() {
confutils_require_any mysql postgres sqlite3
enewgroup redmine
@@ -45,7 +50,8 @@ pkg_setup() {
src_install() {
dodoc doc/{UPGRADING,INSTALL,CHANGELOG}
- rm -fr doc vendor/plugins/{coderay-*,ruby-net-ldap-*}
+ #rm -fr doc vendor/plugins/{coderay-*,ruby-net-ldap-*}
+ rm -fr doc vendor/plugins/ruby-net-ldap-*
mv config/database.yml{.example,}
mv config/email.yml{.example,}
@@ -68,10 +74,10 @@ src_install() {
pkg_postinst() {
einfo
- elog "Installation notes can be found on official site"
+ elog "Installation notes are at official site"
elog "http://www.redmine.org/wiki/redmine/RedmineInstall"
elog
- elog "Upgrade from previous version can be found on official site"
+ elog "For upgrade instructions take a look at:"
elog "http://www.redmine.org/wiki/redmine/RedmineUpgrade"
einfo
}