How to depend on package in EGG?

2010-04-21 Thread Ruslan Mahmatkhanov

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.

--
Regards,
Ruslan
___
freebsd-python@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-python
To unsubscribe, send any mail to "freebsd-python-unsubscr...@freebsd.org"


Re: How to depend on package in EGG?

2010-04-21 Thread Garrett Cooper
On Wed, Apr 21, 2010 at 2:11 PM, 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.

Depend on the .egg instead of the __init__.py file?
-Garrett
___
freebsd-python@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-python
To unsubscribe, send any mail to "freebsd-python-unsubscr...@freebsd.org"


Re: How to depend on package in EGG?

2010-04-21 Thread 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

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


RFC: review a patch to lang/python25

2010-04-21 Thread Mark Linimon
This is to (partially) fix the build on powerpc, which currently turns
out to be a 32-bit arch just like i386 :-)

The patch appears to be pretty trivial.  I've tested it on powerpc but
not yet on i386/amd64.

Thanks.

mcl

Index: Makefile
===
RCS file: /home/FreeBSD/pcvs/ports/lang/python25/Makefile,v
retrieving revision 1.159
diff -u -r1.159 Makefile
--- Makefile2 Feb 2010 22:00:24 -   1.159
+++ Makefile4 Apr 2010 05:05:06 -
@@ -89,11 +89,6 @@
 CONFIGURE_ARGS+=   --without-pymalloc
 .endif
 
-.if ${ARCH} == i386
-PLIST_SUB+=X86_ONLY=""
-.else
-PLIST_SUB+=X86_ONLY="@comment "
-.endif
 .if ${ARCH} == amd64 || ${ARCH} == ia64 || ${ARCH} == sparc64 || ${ARCH} == 
alpha
 PLIST_SUB+=32BIT_ONLY="@comment "
 .else
Index: pkg-plist
===
RCS file: /home/FreeBSD/pcvs/ports/lang/python25/pkg-plist,v
retrieving revision 1.75
diff -u -r1.75 pkg-plist
--- pkg-plist   26 Nov 2009 14:04:18 -  1.75
+++ pkg-plist   4 Apr 2010 05:05:29 -
@@ -674,7 +674,7 @@
 %%32BIT_ONLYPYTHON_LIBDIR%%/lib-dynload/dl.so
 %%PYTHON_LIBDIR%%/lib-dynload/fcntl.so
 %%PYTHON_LIBDIR%%/lib-dynload/grp.so
-%%X86_ONLYPYTHON_LIBDIR%%/lib-dynload/imageop.so
+%%32BIT_ONLYPYTHON_LIBDIR%%/lib-dynload/imageop.so
 %%PYTHON_LIBDIR%%/lib-dynload/itertools.so
 %%PYTHON_LIBDIR%%/lib-dynload/math.so
 %%PYTHON_LIBDIR%%/lib-dynload/mmap.so
@@ -685,7 +685,7 @@
 %%PYTHON_LIBDIR%%/lib-dynload/pyexpat.so
 %%PYTHON_LIBDIR%%/lib-dynload/readline.so
 %%PYTHON_LIBDIR%%/lib-dynload/resource.so
-%%X86_ONLYPYTHON_LIBDIR%%/lib-dynload/rgbimg.so
+%%32BIT_ONLYPYTHON_LIBDIR%%/lib-dynload/rgbimg.so
 %%PYTHON_LIBDIR%%/lib-dynload/select.so
 %%PYTHON_LIBDIR%%/lib-dynload/strop.so
 %%PYTHON_LIBDIR%%/lib-dynload/syslog.so
___
freebsd-python@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-python
To unsubscribe, send any mail to "freebsd-python-unsubscr...@freebsd.org"


RFC: review a patch to lang/python26

2010-04-21 Thread Mark Linimon
This is to (partially) fix the build on powerpc.  (FWIW, the powerpc
build claims that 5171 other ports depend on it ...)  It has been tested
on powerpc.  It shouldn't have an effect anywhere else, but I haven't
tinderboxed it yet.

The patch appears to be pretty trivial.  (This is the diff to the existing
entry in the files/ subdirectory).

Thanks.

mcl

Index: patch-Modules-_ctypes-libffi-configure
===
RCS file: 
/home/FreeBSD/pcvs/ports/lang/python26/files/patch-Modules-_ctypes-libffi-configure,v
retrieving revision 1.2
diff -u -r1.2 patch-Modules-_ctypes-libffi-configure
--- patch-Modules-_ctypes-libffi-configure  13 Oct 2008 08:22:58 - 
1.2
+++ patch-Modules-_ctypes-libffi-configure  22 Mar 2010 06:44:33 -
@@ -5,7 +5,7 @@
;;

 -x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
-+amd64-*-freebsd*|x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|
 \
++amd64-*-freebsd*|x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|powerpc-*-freebsd*|
 \
  s390*-*linux*|sparc*-*linux*)
# Find out which ABI we are using.
echo 'int i;' > conftest.$ac_ext

___
freebsd-python@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-python
To unsubscribe, send any mail to "freebsd-python-unsubscr...@freebsd.org"