summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Krier <cedk@gentoo.org>2006-12-23 17:07:00 +0000
committerCédric Krier <cedk@gentoo.org>2006-12-23 17:07:00 +0000
commitf13e28217c6b6647e3da4962fa69cf25a0b24b4d (patch)
tree42026f7699c558244a3a8398cfbaeb9b37bcf8ce /app-office/tinyerp-server
parentStable on ppc wrt bug 158858 (diff)
downloadgentoo-2-f13e28217c6b6647e3da4962fa69cf25a0b24b4d.tar.gz
gentoo-2-f13e28217c6b6647e3da4962fa69cf25a0b24b4d.tar.bz2
gentoo-2-f13e28217c6b6647e3da4962fa69cf25a0b24b4d.zip
Version bump
(Portage version: 2.1.1-r2)
Diffstat (limited to 'app-office/tinyerp-server')
-rw-r--r--app-office/tinyerp-server/ChangeLog8
-rw-r--r--app-office/tinyerp-server/files/digest-tinyerp-server-4.0.13
-rw-r--r--app-office/tinyerp-server/files/tinyerp-server-4.0.1-setup.patch14
-rw-r--r--app-office/tinyerp-server/tinyerp-server-4.0.1.ebuild77
4 files changed, 101 insertions, 1 deletions
diff --git a/app-office/tinyerp-server/ChangeLog b/app-office/tinyerp-server/ChangeLog
index 30943420fbb0..a22a13d2c05b 100644
--- a/app-office/tinyerp-server/ChangeLog
+++ b/app-office/tinyerp-server/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for app-office/tinyerp-server
# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-office/tinyerp-server/ChangeLog,v 1.2 2006/12/09 01:24:00 swegener Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-office/tinyerp-server/ChangeLog,v 1.3 2006/12/23 17:07:00 cedk Exp $
+
+*tinyerp-server-4.0.1 (23 Dec 2006)
+
+ 23 Dec 2006; Cedric Krier <cedk@gentoo.org>
+ +files/tinyerp-server-4.0.1-setup.patch, +tinyerp-server-4.0.1.ebuild:
+ Version bump
09 Dec 2006; Sven Wegener <swegener@gentoo.org>
tinyerp-server-4.0.0.ebuild:
diff --git a/app-office/tinyerp-server/files/digest-tinyerp-server-4.0.1 b/app-office/tinyerp-server/files/digest-tinyerp-server-4.0.1
new file mode 100644
index 000000000000..eb1eb3209761
--- /dev/null
+++ b/app-office/tinyerp-server/files/digest-tinyerp-server-4.0.1
@@ -0,0 +1,3 @@
+MD5 2fc7ab2d7b5789eb3f19fda0c1c5567b tinyerp-server-4.0.1.tar.gz 2995164
+RMD160 f1c396b68eb31363f64118551b993930d3c54203 tinyerp-server-4.0.1.tar.gz 2995164
+SHA256 4527f90c06bfca823feb18cf76ec63cd08c86e5fb2775ddada0a2df443b03181 tinyerp-server-4.0.1.tar.gz 2995164
diff --git a/app-office/tinyerp-server/files/tinyerp-server-4.0.1-setup.patch b/app-office/tinyerp-server/files/tinyerp-server-4.0.1-setup.patch
new file mode 100644
index 000000000000..6064f61115ea
--- /dev/null
+++ b/app-office/tinyerp-server/files/tinyerp-server-4.0.1-setup.patch
@@ -0,0 +1,14 @@
+diff -ru tinyerp-server-4.0.1~/setup.py tinyerp-server-4.0.1/setup.py
+--- tinyerp-server-4.0.1~/setup.py 2006-12-23 17:42:08.000000000 +0100
++++ tinyerp-server-4.0.1/setup.py 2006-12-23 17:47:59.000000000 +0100
+@@ -89,6 +89,10 @@
+ ['man/terp_serverrc.5']),
+ (opj('share','doc', 'tinyerp-server-%s' % version),
+ [f for f in glob.glob('doc/*') if os.path.isfile(f)]),
++ (opj('share','doc', 'tinyerp-server-%s' % version, 'migrate', '3.3.0-3.4.0'),
++ [f for f in glob.glob('doc/migrate/3.3.0-3.4.0/*') if os.path.isfile(f)]),
++ (opj('share','doc', 'tinyerp-server-%s' % version, 'migrate', '3.4.0-4.0.0'),
++ [f for f in glob.glob('doc/migrate/3.4.0-4.0.0/*') if os.path.isfile(f)]),
+ (opj('lib','python%s' % py_short_version, 'site-packages', 'tinyerp-server', 'i18n'),
+ glob.glob('bin/i18n/*')),
+ (opj('lib', 'python%s' % py_short_version, 'site-packages', 'tinyerp-server', 'addons', 'custom'),
diff --git a/app-office/tinyerp-server/tinyerp-server-4.0.1.ebuild b/app-office/tinyerp-server/tinyerp-server-4.0.1.ebuild
new file mode 100644
index 000000000000..24563e5828ce
--- /dev/null
+++ b/app-office/tinyerp-server/tinyerp-server-4.0.1.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-office/tinyerp-server/tinyerp-server-4.0.1.ebuild,v 1.1 2006/12/23 17:07:00 cedk Exp $
+
+inherit eutils distutils
+
+DESCRIPTION="Open Source ERP & CRM"
+HOMEPAGE="http://tinyerp.org/"
+SRC_URI="mirro://gentoo/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE=""
+
+DEPEND=">=dev-db/postgresql-7.4
+ dev-python/pypgsql
+ dev-python/reportlab
+ dev-python/pyparsing
+ media-gfx/pydot
+ =dev-python/psycopg-1*
+ dev-libs/libxml2
+ dev-libs/libxslt"
+RDEPEND=${DEPEND}
+
+TINYERP_USER=terp
+TINYERP_GROUP=terp
+
+pkg_setup() {
+ if ! built_with_use dev-libs/libxslt python ; then
+ eerror "dev-libs/libxslt must be built with python"
+ die "${PN} requires dev-libs/libxslt with USE=python"
+ fi
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}-setup.patch
+}
+
+src_install() {
+ distutils_src_install
+
+ newinitd "${FILESDIR}"/tinyerp-init.d tinyerp
+ newconfd "${FILESDIR}"/tinyerp-conf.d tinyerp
+
+ keepdir /var/run/tinyerp
+ keepdir /var/log/tinyerp
+}
+
+pkg_preinst() {
+ enewgroup ${TINYERP_GROUP}
+ enewuser ${TINYERP_USER} -1 -1 -1 ${TINYERP_GROUP}
+
+ fowners ${TINYERP_USER}:${TINYERP_GROUP} /var/run/tinyerp
+ fowners ${TINYERP_USER}:${TINYERP_GROUP} /var/log/tinyerp
+}
+
+pkg_postinst() {
+ elog "In order to setup the initial database, run:"
+ elog " emerge --config =${CATEGORY}/${PF}"
+ elog "Be sure the database is started before"
+}
+
+pquery() {
+ psql -q -At -U postgres -d template1 -c "$@"
+}
+
+pkg_config() {
+ einfo "In the following, the 'postgres' user will be used."
+ if ! pquery "SELECT usename FROM pg_user WHERE usename = '${TINYERP_USER}'" | grep -q ${TINYERP_USER}; then
+ ebegin "Creating database user ${TINYERP_USER}"
+ createuser --quiet --username=postgres --createdb --no-adduser --no-createrole ${TINYERP_USER}
+ eend $? || die "Failed to create database user"
+ fi
+}