summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Krier <cedk@gentoo.org>2007-03-17 12:23:16 +0000
committerCédric Krier <cedk@gentoo.org>2007-03-17 12:23:16 +0000
commit79afa79f4902f93cff60a02445dfd9fb7c925818 (patch)
treef046200a91d64fa3716fadb2b3a15f235bed5580 /app-office
parentRemoved unused ebuilds - left only 2.6.1 (which is just pulls in claws-mail) ... (diff)
downloadgentoo-2-79afa79f4902f93cff60a02445dfd9fb7c925818.tar.gz
gentoo-2-79afa79f4902f93cff60a02445dfd9fb7c925818.tar.bz2
gentoo-2-79afa79f4902f93cff60a02445dfd9fb7c925818.zip
app-office/tinyerp-server: Version bump
(Portage version: 2.1.2.2)
Diffstat (limited to 'app-office')
-rw-r--r--app-office/tinyerp-server/ChangeLog10
-rw-r--r--app-office/tinyerp-server/files/digest-tinyerp-server-4.0.33
-rw-r--r--app-office/tinyerp-server/files/tinyerp-server-4.0.0-setup.patch12
-rw-r--r--app-office/tinyerp-server/files/tinyerp-server-4.0.1-setup.patch14
-rw-r--r--app-office/tinyerp-server/files/tinyerp-server-4.0.3-setup.patch11
-rw-r--r--app-office/tinyerp-server/tinyerp-server-4.0.3.ebuild78
6 files changed, 101 insertions, 27 deletions
diff --git a/app-office/tinyerp-server/ChangeLog b/app-office/tinyerp-server/ChangeLog
index 15dd639fa0af..26667cbf4907 100644
--- a/app-office/tinyerp-server/ChangeLog
+++ b/app-office/tinyerp-server/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for app-office/tinyerp-server
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-office/tinyerp-server/ChangeLog,v 1.7 2007/02/03 04:19:20 beandog Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-office/tinyerp-server/ChangeLog,v 1.8 2007/03/17 12:23:16 cedk Exp $
+
+*tinyerp-server-4.0.3 (17 Mar 2007)
+
+ 17 Mar 2007; Cedric Krier <cedk@gentoo.org>
+ -files/tinyerp-server-4.0.0-setup.patch,
+ -files/tinyerp-server-4.0.1-setup.patch,
+ +files/tinyerp-server-4.0.3-setup.patch, +tinyerp-server-4.0.3.ebuild:
+ Version bump
03 Feb 2007; Steve Dibb <beandog@gentoo.org> tinyerp-server-4.0.2.ebuild:
add ~amd64, bug 164086
diff --git a/app-office/tinyerp-server/files/digest-tinyerp-server-4.0.3 b/app-office/tinyerp-server/files/digest-tinyerp-server-4.0.3
new file mode 100644
index 000000000000..7fd8e2be55f5
--- /dev/null
+++ b/app-office/tinyerp-server/files/digest-tinyerp-server-4.0.3
@@ -0,0 +1,3 @@
+MD5 afb7b58d1dde3b70f65cdb9fb9f4a2f1 tinyerp-server-4.0.3.tar.gz 2999409
+RMD160 a3261d3becebdf13e466c1dfa3ac3b4cd3d46c9e tinyerp-server-4.0.3.tar.gz 2999409
+SHA256 a770b5b9caa32b989936a249c754135a1d3b277a902344458446905ae7853251 tinyerp-server-4.0.3.tar.gz 2999409
diff --git a/app-office/tinyerp-server/files/tinyerp-server-4.0.0-setup.patch b/app-office/tinyerp-server/files/tinyerp-server-4.0.0-setup.patch
deleted file mode 100644
index 36af7d225097..000000000000
--- a/app-office/tinyerp-server/files/tinyerp-server-4.0.0-setup.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-diff -ru tinyerp-server-4.0.0~/setup.py tinyerp-server-4.0.0/setup.py
---- tinyerp-server-4.0.0~/setup.py 2006-12-06 19:57:57.000000000 +0100
-+++ tinyerp-server-4.0.0/setup.py 2006-12-06 19:58:13.000000000 +0100
-@@ -89,7 +89,7 @@
- ['man/terp_serverrc.5']),
- (opj('share','doc', 'tinyerp-server-%s' % version),
- [f for f in glob.glob('doc/*') if os.path.isfile(f)]),
-- (opj('lib','python%s' % py_short_version, 'site-package', 'tinyerp-server', 'i18n'),
-+ (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'),
- glob.glob('bin/addons/custom/*xml') +
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
deleted file mode 100644
index 6064f61115ea..000000000000
--- a/app-office/tinyerp-server/files/tinyerp-server-4.0.1-setup.patch
+++ /dev/null
@@ -1,14 +0,0 @@
-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/files/tinyerp-server-4.0.3-setup.patch b/app-office/tinyerp-server/files/tinyerp-server-4.0.3-setup.patch
new file mode 100644
index 000000000000..1b45b58304dc
--- /dev/null
+++ b/app-office/tinyerp-server/files/tinyerp-server-4.0.3-setup.patch
@@ -0,0 +1,11 @@
+diff -ru tinyerp-server-4.0.3~/setup.py tinyerp-server-4.0.3/setup.py
+--- tinyerp-server-4.0.3~/setup.py 2007-03-17 12:33:46.000000000 +0100
++++ tinyerp-server-4.0.3/setup.py 2007-03-17 12:34:02.000000000 +0100
+@@ -159,7 +159,6 @@
+ 'tinyerp-server.osv',
+ 'tinyerp-server.ssl',
+ 'tinyerp-server.service', 'tinyerp-server.tools',
+- 'tinyerp-server.pychart', 'tinyerp-server.pychart.afm',
+ 'tinyerp-server.report',
+ 'tinyerp-server.report.printscreen',
+ 'tinyerp-server.report.render',
diff --git a/app-office/tinyerp-server/tinyerp-server-4.0.3.ebuild b/app-office/tinyerp-server/tinyerp-server-4.0.3.ebuild
new file mode 100644
index 000000000000..011e9b68b3d4
--- /dev/null
+++ b/app-office/tinyerp-server/tinyerp-server-4.0.3.ebuild
@@ -0,0 +1,78 @@
+# Copyright 1999-2007 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.3.ebuild,v 1.1 2007/03/17 12:23:16 cedk Exp $
+
+inherit eutils distutils
+
+DESCRIPTION="Open Source ERP & CRM"
+HOMEPAGE="http://tinyerp.org/"
+SRC_URI="http://www.tinyerp.org/download/old/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~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
+ dev-python/pychart"
+
+TINYERP_USER=terp
+TINYERP_GROUP=terp
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ epatch "${FILESDIR}"/${P}-setup.patch
+}
+
+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_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 ${TINYERP_USER}
+ eend $? || die "Failed to create database user"
+ fi
+}