summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorrichard <richard>2014-06-25 06:00:39 +0000
committerrichard <richard>2014-06-25 06:00:39 +0000
commit85edce11fd975bcfe12d7482bb3c7366b4a7e8f4 (patch)
treed1cf76b98686156a4ed944a7922554a8811e4b77 /devel
parentdf4551588d70b34c192948ea2ba666e87dc16a46 (diff)
downloadpkgsrc-85edce11fd975bcfe12d7482bb3c7366b4a7e8f4.tar.gz
Add py-trytond/Makefile.common to simplify modules
ok wiz@
Diffstat (limited to 'devel')
-rw-r--r--devel/py-tryton/Makefile7
-rw-r--r--devel/py-trytond/Makefile8
-rw-r--r--devel/py-trytond/Makefile.common35
3 files changed, 43 insertions, 7 deletions
diff --git a/devel/py-tryton/Makefile b/devel/py-tryton/Makefile
index c0155e585c8..4780d42d53e 100644
--- a/devel/py-tryton/Makefile
+++ b/devel/py-tryton/Makefile
@@ -1,6 +1,8 @@
-# $NetBSD: Makefile,v 1.8 2014/05/18 15:08:33 rodent Exp $
+# $NetBSD: Makefile,v 1.9 2014/06/25 06:00:39 richard Exp $
-DISTNAME= tryton-3.2.1
+TRYTON_CLIENT_REVISION=1
+.include "../../devel/py-trytond/Makefile.common"
+DISTNAME= tryton-${TRYTON_VERSION}
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= devel python
MASTER_SITES= http://downloads.tryton.org/3.2/
@@ -12,7 +14,6 @@ LICENSE= gnu-gpl-v3
USE_LANGUAGES= # none
-PYTHON_VERSIONS_INCOMPATIBLE= 26 # XXX Needs weakrefset. No package, though.
PYTHON_VERSIONED_DEPENDENCIES= dateutil
PY_PATCHPLIST= yes
PLIST_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX}
diff --git a/devel/py-trytond/Makefile b/devel/py-trytond/Makefile
index 5991962817e..de6376a0f37 100644
--- a/devel/py-trytond/Makefile
+++ b/devel/py-trytond/Makefile
@@ -1,9 +1,10 @@
-# $NetBSD: Makefile,v 1.7 2014/05/09 07:37:03 wiz Exp $
+# $NetBSD: Makefile,v 1.8 2014/06/25 06:00:39 richard Exp $
-DISTNAME= trytond-3.2.0
+.include "../../devel/py-trytond/Makefile.common"
+DISTNAME= trytond-${TRYTOND_VERSION}
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= devel python
-MASTER_SITES= http://downloads.tryton.org/3.2/
+MASTER_SITES= ${TRYTON_SITES}
MAINTAINER= rodent@NetBSD.org
HOMEPAGE= http://www.tryton.org/
@@ -32,7 +33,6 @@ REPLACE_PYTHON+= trytond/tests/test_trigger.py
REPLACE_PYTHON+= trytond/tests/test_tryton.py
PYTHON_VERSIONED_DEPENDENCIES= dateutil
-PYTHON_VERSIONS_INCOMPATIBLE= 26 33 34 # 26: upstream dropped support; 33: py-gtk2 via py-pycha via py-relatorio
PY_PATCHPLIST= yes
PLIST_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX}
diff --git a/devel/py-trytond/Makefile.common b/devel/py-trytond/Makefile.common
new file mode 100644
index 00000000000..c35899a2945
--- /dev/null
+++ b/devel/py-trytond/Makefile.common
@@ -0,0 +1,35 @@
+# $NetBSD: Makefile.common,v 1.1 2014/06/25 06:00:39 richard Exp $
+
+# used by devel/py-tryton/Makefile
+# used by devel/py-trytond/Makefile
+# used by finance/py-trytond-account-asset/Makefile
+# used by finance/py-trytond-account-fr/Makefile
+# used by finance/py-trytond-account-invoice/Makefile
+# used by finance/py-trytond-account-payment-sepa/Makefile
+# used by finance/py-trytond-account-payment/Makefile
+# used by finance/py-trytond-account-product/Makefile
+# used by finance/py-trytond-account-statement/Makefile
+# used by finance/py-trytond-account/Makefile
+# used by finance/py-trytond-bank/Makefile
+# used by finance/py-trytond-currency/Makefile
+# used by geography/py-trytond-country/Makefile
+# used by misc/py-trytond-company/Makefile
+# used by misc/py-trytond-party-siret/Makefile
+# used by misc/py-trytond-party/Makefile
+# used by misc/py-trytond-product/Makefile
+# used by misc/py-trytond-stock-lot/Makefile
+# used by misc/py-trytond-stock/Makefile
+# used by time/py-trytond-calendar/Makefile
+
+
+TRYTON_BASEVER= 3.2
+
+TRYTON_CLIENT_REVISION?= 0
+TRYTON_VERSION= ${TRYTON_BASEVER}.${TRYTON_CLIENT_REVISION}
+
+TRYTOND_MODULE_REVISION?= 0
+TRYTOND_VERSION= ${TRYTON_BASEVER}.${TRYTOND_MODULE_REVISION}
+
+TRYTON_SITES= http://downloads.tryton.org/${TRYTON_BASEVER}/
+
+PYTHON_VERSIONS_INCOMPATIBLE= 26 33 34 # 26: upstream dropped support; 33: py-gtk2 via py-pycha via py-relatorio