Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Dec 2011 00:54:16 -0700
From:      Christer Edwards <christer.edwards@gmail.com>
To:        "freebsd-ports@FreeBSD.org" <freebsd-ports@freebsd.org>
Subject:   RUN_DEPENDS for python based port
Message-ID:  <CAH2d3%2BvMF8jM6GHJQ6DR7EywmnY%2Bj=0tSHFEf_5oW1C6QhYD8A@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
I've been working on building my first python based port recently and
I'm running into some issue that I'm hoping the list can provide some
tips for. Currently the Makefile looks like this:

-----

# New ports collection makefile for: salt
# Date created:         17 Dec 2011
# Whom:                 cedwards
#
# $FreeBSD$
#

PORTNAME=       salt
PORTVERSION=    0.9.4
CATEGORIES=     sysutils python
MASTER_SITES=   https://github.com/downloads/saltstack/salt/

MAINTAINER=     christer.edwards@gmail.com
COMMENT=        Central system and configuration manager

LIB_DEPENDS=    zmq.1:${PORTSDIR}/devel/zmq

USE_PYTHON=     yes
USE_PYDISTUTILS=yes

RUN_DEPENDS+=
${PYTHON_SITELIBDIR}/yaml/__init__.py:${PORTSDIR}/devel/py-yaml \

${PYTHON_SITELIBDIR}/zmq/__init__.py}:${PORTSDIR}/devel/py-pyzmq \

${PYTHON_SITELIBDIR}/Crypto/Cipher/__init__.py:${PORTSDIR}/security/py-pycrypto
\

${PYTHON_SITELIBDIR}/${PYEASYINSTALL_EGG}/jinja2/__init__.py:${PORTSDIR}/devel/py-Jinja2
\

${PYTHON_PKGNAMEPREFIX}M2Crypto>=0:${PORTSDIR}/security/py-m2crypto

.include <bsd.port.mk>

-----

I'm not sure if I've done the RUN_DEPENDS properly, because when I try
to 'make' the port, it tries running the salt tool and complains about
missing python modules. The modules are of course provided by the
depends, but they don't get installed if they're missing.

I'd really like whatever feedback the list can offer to getting this
ported properly.

Cheers,
Christer



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAH2d3%2BvMF8jM6GHJQ6DR7EywmnY%2Bj=0tSHFEf_5oW1C6QhYD8A>