diff options
author | Martin Wilke <miwi@FreeBSD.org> | 2009-02-28 20:01:17 +0000 |
---|---|---|
committer | Martin Wilke <miwi@FreeBSD.org> | 2009-02-28 20:01:17 +0000 |
commit | f9bbdd66e488da82eb2ab72423db7973f66b39cb (patch) | |
tree | 63788aba4a027430ee6fb55eb0c05760003cbaa0 /finance/openerp | |
parent | ba127194e9f9130d7c690fa15cbf40406d12b573 (diff) | |
download | ports-f9bbdd66e488da82eb2ab72423db7973f66b39cb.tar.gz ports-f9bbdd66e488da82eb2ab72423db7973f66b39cb.zip |
Notes
Diffstat (limited to 'finance/openerp')
-rw-r--r-- | finance/openerp/Makefile | 55 | ||||
-rw-r--r-- | finance/openerp/distinfo | 3 | ||||
-rw-r--r-- | finance/openerp/files/patch-setup.py | 25 | ||||
-rw-r--r-- | finance/openerp/pkg-descr | 8 |
4 files changed, 91 insertions, 0 deletions
diff --git a/finance/openerp/Makefile b/finance/openerp/Makefile new file mode 100644 index 000000000000..c713048f099d --- /dev/null +++ b/finance/openerp/Makefile @@ -0,0 +1,55 @@ +# New ports collection makefile for: openerp-server +# Date created: 27 February 2009 +# Whom: Wen Heping<wenheping@gmail.com> +# +# $FreeBSD$ +# + +PORTNAME= openerp-server +PORTVERSION= 5.0.0 +CATEGORIES= finance python +MASTER_SITES= http://openerp.com/download/stable/source/ +DISTNAME= ${PORTNAME}-${PORTVERSION}-1 + +MAINTAINER= wenheping@gmail.com +COMMENT= Open source application ERP & CRM in Python using Postgresql + +BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/PIL/__init__.py:${PORTSDIR}/graphics/py-imaging \ + ${PYTHON_SITELIBDIR}/libxml2.py:${PORTSDIR}/textproc/py-libxml2 \ + ${PYTHON_PKGNAMEPREFIX}pytz>0:${PORTSDIR}/devel/py-pytz \ + ${PYTHON_SITELIBDIR}/mx/__init__.py:${PORTSDIR}/lang/py-mx-base \ + ${PYTHON_PKGNAMEPREFIX}psycopg2>0:${PORTSDIR}/databases/py-psycopg2 \ + ${PYTHON_PKGNAMEPREFIX}chart>0:${PORTSDIR}/graphics/py-chart \ + ${PYTHON_PKGNAMEPREFIX}pydot>0:${PORTSDIR}/graphics/py-pydot \ + ${PYTHON_PKGNAMEPREFIX}libxslt>0:${PORTSDIR}/textproc/py-libxslt \ + ${PYTHON_PKGNAMEPREFIX}lxml>0:${PORTSDIR}/devel/py-lxml \ + ${PYTHON_SITELIBDIR}/reportlab/__init__.py:${PORTSDIR}/print/py-reportlab +RUN_DEPENDS= ${BUILD_DEPENDS} + +USE_PYTHON= 2.4+ +USE_PYDISTUTILS= yes +PYDISTUTILS_EGGINFO= openerp_server-5.0.0_1-${PYTHON_VERSION:S/thon//}.egg-info + +MAN1= openerp-server.1 +MAN5= openerp_serverrc.5 + +.include <bsd.port.pre.mk> + +post-install: +.if !defined(NOPORTDOCS) + ${MKDIR} ${DOCSDIR} + @cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${DOCSDIR} + @${FIND} -s -d ${DOCSDIR} -type f | ${SED} 's#/usr/local/##g' >> ${TMPPLIST} + @${FIND} -s -d ${DOCSDIR} -type d | ${SED} 's#/usr/local/#@dirrm #g' >> ${TMPPLIST} +.endif + + ${INSTALL_MAN} ${WRKSRC}/man/openerp-server.1 ${PREFIX}/man/man1 + ${INSTALL_MAN} ${WRKSRC}/man/openerp_serverrc.5 ${PREFIX}/man/man5 + + @${ECHO} bin/openerp-server >> ${TMPPLIST} + @${FIND} -s -d ${PYTHON_SITELIBDIR}/${PORTNAME} \ + -type f | ${SED} 's#/usr/local/##g' >> ${TMPPLIST} + @${FIND} -s -d ${PYTHON_SITELIBDIR}/${PORTNAME} \ + -type d | ${SED} 's#/usr/local/#@dirrm #g' >> ${TMPPLIST} + +.include <bsd.port.post.mk> diff --git a/finance/openerp/distinfo b/finance/openerp/distinfo new file mode 100644 index 000000000000..b51ebc6f8c28 --- /dev/null +++ b/finance/openerp/distinfo @@ -0,0 +1,3 @@ +MD5 (openerp-server-5.0.0-1.tar.gz) = 6d0d790862795b9f2c72324ea70a26e7 +SHA256 (openerp-server-5.0.0-1.tar.gz) = 22f38609f52853a1968bffbee73b4e27c6e7215809eae9cdc832bf4370a9a4ba +SIZE (openerp-server-5.0.0-1.tar.gz) = 6818964 diff --git a/finance/openerp/files/patch-setup.py b/finance/openerp/files/patch-setup.py new file mode 100644 index 000000000000..ad7163265b0c --- /dev/null +++ b/finance/openerp/files/patch-setup.py @@ -0,0 +1,25 @@ +--- setup.py.orig 2009-02-09 20:32:57.000000000 +0800 ++++ setup.py 2009-02-09 20:33:48.000000000 +0800 +@@ -92,14 +92,14 @@ + opj('bin', 'server.pkey'), + opj('bin', 'server.cert')])) + else: +- man_directory = opj('share', 'man') +- files.append((opj(man_directory, 'man1'), ['man/openerp-server.1'])) +- files.append((opj(man_directory, 'man5'), ['man/openerp_serverrc.5'])) +- +- doc_directory = opj('share', 'doc', 'openerp-server-%s' % version) +- files.append((doc_directory, [f for f in glob.glob('doc/*') if os.path.isfile(f)])) +- files.append((opj(doc_directory, '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)])) +- files.append((opj(doc_directory, '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)])) ++# man_directory = opj('share', 'man') ++# files.append((opj(man_directory, 'man1'), ['man/openerp-server.1'])) ++# files.append((opj(man_directory, 'man5'), ['man/openerp_serverrc.5'])) ++ ++# doc_directory = opj('share', 'doc', 'openerp-server-%s' % version) ++# files.append((doc_directory, [f for f in glob.glob('doc/*') if os.path.isfile(f)])) ++# files.append((opj(doc_directory, '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)])) ++# files.append((opj(doc_directory, '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)])) + + openerp_site_packages = opj('lib', 'python%s' % py_short_version, 'site-packages', 'openerp-server') + diff --git a/finance/openerp/pkg-descr b/finance/openerp/pkg-descr new file mode 100644 index 000000000000..b9c6e1d2cc6f --- /dev/null +++ b/finance/openerp/pkg-descr @@ -0,0 +1,8 @@ +OpenERP is a complete ERP and CRM. The main features are accounting +(analytic and financial), stock management, sales and purchases +management, tasks automation, marketing campaigns, help desk, POS, etc. +Technical features include a distributed server, flexible workflows, an +object database, a dynamic GUI, customizable reports, and XML-RPC +interfaces. + +WWW: http://www.openerp.com/ |