How to depend on package in EGG?

Ruslan Mahmatkhanov cvs-src at yandex.ru
Thu Apr 22 04:47:21 UTC 2010


22.04.2010 02:23, Greg Larkin пишет:
> -----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

Thank you much, Greg! It's what i need.

>
> 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-----
>
> _______________________________________________
> freebsd-ports at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to "freebsd-ports-unsubscribe at freebsd.org"
>


-- 
Regards,
Ruslan


More information about the freebsd-ports mailing list