From owner-freebsd-ports@FreeBSD.ORG Wed Apr 21 22:23:50 2010 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 28326106566B for ; Wed, 21 Apr 2010 22:23:50 +0000 (UTC) (envelope-from glarkin@FreeBSD.org) Received: from mail1.sourcehosting.net (113901-app1.sourcehosting.net [72.32.213.11]) by mx1.freebsd.org (Postfix) with ESMTP id 015F68FC29 for ; Wed, 21 Apr 2010 22:23:49 +0000 (UTC) Received: from 68-189-245-235.dhcp.oxfr.ma.charter.com ([68.189.245.235] helo=cube.entropy.prv) by mail1.sourcehosting.net with esmtp (Exim 4.69 (FreeBSD)) (envelope-from ) id 1O4iKf-000NjF-7P; Wed, 21 Apr 2010 18:23:48 -0400 Received: from [127.0.0.1] (fireball.entropy.prv [192.168.1.12]) by cube.entropy.prv (Postfix) with ESMTP id 8EFE13EBF2A5; Wed, 21 Apr 2010 18:23:44 -0400 (EDT) Message-ID: <4BCF7AF5.5000004@FreeBSD.org> Date: Wed, 21 Apr 2010 18:23:49 -0400 From: Greg Larkin Organization: The FreeBSD Project User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: Ruslan Mahmatkhanov References: <4BCF6A12.5030000@yandex.ru> In-Reply-To: <4BCF6A12.5030000@yandex.ru> X-Enigmail-Version: 0.96.0 OpenPGP: id=1C940290 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Score: -0.4 (/) Cc: FreeBSD Ports Mailing List , python@FreeBSD.org Subject: Re: How to depend on package in EGG? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: glarkin@FreeBSD.org List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Apr 2010 22:23:50 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Ruslan Mahmatkhanov wrote: > Good day! > > I want add option in port's Makefile to depend on textproc/py-enchant. > But how i can do it? It installs as python egg. > > .if defined(WITH_ENCHANT) > RUN_DEPENDS+=${LOCALBASE}/????/enchant/__init__.py:${PORTSDIR}/textproc/py-enchant > > .endif > > What should i wrote instead ???? in left part of this RUN_DEPENDS string? > > Thanks in advance for answer. > Hi Ruslan, You can depend on the installed package name, instead of a file in the port like so: RUN_DEPENDS+= py-enchant>=0:${PORTSDIR}/textproc/py-enchant If you require a specific version, just change ">=0" to the minimum version like ">=1.4". Best regards, Greg - -- Greg Larkin http://www.FreeBSD.org/ - The Power To Serve http://www.sourcehosting.net/ - Ready. Set. Code. http://twitter.com/sourcehosting/ - Follow me, follow you -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iD8DBQFLz3r00sRouByUApARAmwKAJ915F035jUjUSj3Ap33RdyHyA3JJQCbBVa4 vk468ZZmDtRq9/IziUz3CMI= =R13m -----END PGP SIGNATURE-----