Subject: Re: pkg/20604: Update print/lyx package to use python
To: Soren Jacobsen <soren@blef.org>
From: Miguel Mendez <flynn@energyhq.homeip.net>
List: netbsd-bugs
Date: 03/08/2003 15:24:04
--=.J+qeuwj25GbIfm
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

On Thu, 6 Mar 2003 17:28:48 -0800
Soren Jacobsen <soren@blef.org> wrote:

Howdy,

> Unless these scripts specifically depend on Python 2.2, do not
> hardcode it. Just include lang/python/application.mk. It's also not a
> good idea to patch those scripts to use python22. Set
> PYTHON_PATCH_SCRIPTS appropriately in the Makefile.

But of course. Thanks for pointing it out. I wasn't aware that such
facility existed. How about this patch? 

Cheers,
-- 
        Miguel Mendez - flynn@energyhq.homeip.net
        GPG Public Key :: http://energyhq.homeip.net/files/pubkey.txt
        EnergyHQ :: http://www.energyhq.tk
        Of course it runs NetBSD!
	Tired of Spam? -> http://www.trustic.com


diff -ruN lyx.old/Makefile lyx/Makefile
--- lyx.old/Makefile	2003-03-02 15:57:35.000000000 +0100
+++ lyx/Makefile	2003-03-08 15:21:30.000000000 +0100
@@ -38,6 +38,16 @@
 USE_LIBTOOL=		YES
 LIBTOOL_OVERRIDE=	${WRKSRC}/libtool
 
+PYTHON_PATCH_SCRIPTS=	lib/lyx2lyx/lyx2lyx \
+		      	development/tools/generate_symbols_list.py \
+			lib/scripts/fen2ascii.py \
+			lib/scripts/fig2pstex.py \
+			lib/scripts/general_command_wrapper.py \
+			lib/scripts/listerrors \
+			lib/scripts/pic2ascii.py \
+			lib/scripts/pic2png_eps.py
+			
+
 # IPv6 support
 .if defined(LYX_USE_QT) && !empty(LYX_USE_QT:M[Yy][Ee][Ss])
 .include "../../x11/qt3-tools/buildlink2.mk"
@@ -54,6 +64,7 @@
 
 .include "../../devel/gettext-lib/buildlink2.mk"
 .include "../../lang/gcc/buildlink2.mk"
+.include "../../lang/python/application.mk"
 .include "../../textproc/aiksaurus/buildlink2.mk"
 .include "../../textproc/aspell/buildlink2.mk"
 .include "../../mk/pthread.buildlink2.mk"

--=.J+qeuwj25GbIfm
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (NetBSD)

iD8DBQE+af0HnLctrNyFFPERAjLqAKDN3cgtZRL2Fm34qCIFSidAf3OjuQCgkgc2
o7DrW/FruseVZdHoYQRfwEs=
=XcvI
-----END PGP SIGNATURE-----

--=.J+qeuwj25GbIfm--