aboutsummaryrefslogtreecommitdiffstats
path: root/finance/openerp-web/Makefile
blob: 9ec90c2852f4ae1dad97a86f1e39747cb96d00e3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Created by: Borja Lopez<borja@pexego.es>
# $FreeBSD$

PORTNAME=   openerp-web
PORTVERSION=    5.0.11
PORTREVISION=   1
CATEGORIES= finance python
MASTER_SITES=   http://openerp.com/download/stable/source/
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}

MAINTAINER= borja@pexego.es
COMMENT=    OpenERP Web Client

BUILD_DEPENDS=  ${PYTHON_PKGNAMEPREFIX}cherrypy>0:${PORTSDIR}/www/py-cherrypy \
        ${PYTHON_PKGNAMEPREFIX}Babel>0:${PORTSDIR}/devel/py-babel \
        ${PYTHON_PKGNAMEPREFIX}beaker>0:${PORTSDIR}/www/py-beaker \
        ${PYTHON_PKGNAMEPREFIX}mako>0:${PORTSDIR}/textproc/py-mako \
        ${PYTHON_PKGNAMEPREFIX}simplejson>0:${PORTSDIR}/devel/py-simplejson \
        ${PYTHON_PKGNAMEPREFIX}formencode>0:${PORTSDIR}/www/py-formencode \
        ${PYTHON_PKGNAMEPREFIX}parsing>0:${PORTSDIR}/devel/py-parsing \
        ${PYTHON_PKGNAMEPREFIX}pytz>0:${PORTSDIR}/devel/py-pytz \
        ${PYTHON_PKGNAMEPREFIX}xlwt>0:${PORTSDIR}/textproc/py-xlwt
RUN_DEPENDS:=   ${BUILD_DEPENDS}

USES=       gettext python
USE_PYTHON= distutils autoplist

USE_RC_SUBR=    openerp-web

WRKSRC=     ${WRKDIR}/openerp-web-${PORTVERSION}

post-install:
    @${INSTALL_DATA} ${FILESDIR}/openerp-web.conf ${STAGEDIR}${PREFIX}/etc/openerp-web.conf.sample
    @${INSTALL_SCRIPT} ${FILESDIR}/openerp-web.wrapper ${STAGEDIR}${PREFIX}/bin/openerp-web
    @${MKDIR} ${STAGEDIR}${PREFIX}/openerp-web
    @${INSTALL_SCRIPT} ${FILESDIR}/openerp-web.py ${STAGEDIR}${PREFIX}/openerp-web/openerp-web.py

.include <bsd.port.mk>