From owner-freebsd-ports@FreeBSD.ORG Tue Jun 29 17:04:17 2004 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8ABE816A4CE; Tue, 29 Jun 2004 17:04:17 +0000 (GMT) Received: from miffy.openlook.org (openlook.org [211.236.182.73]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5D41743D1F; Tue, 29 Jun 2004 17:04:17 +0000 (GMT) (envelope-from perky@miffy.openlook.org) Received: by miffy.openlook.org (Postfix, from userid 1000) id 9CB3BA9C8; Wed, 30 Jun 2004 02:04:16 +0900 (KST) Date: Wed, 30 Jun 2004 02:04:16 +0900 From: Hye-Shik Chang To: Michael Nottebrock Message-ID: <20040629170416.GA87430@i18n.org> References: <40E0F356.8030603@earthlink.net> <200406291817.09503.michaelnottebrock@gmx.net> <20040629164141.GA86948@i18n.org> <200406291854.45159.michaelnottebrock@gmx.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200406291854.45159.michaelnottebrock@gmx.net> X-Accept-Language: ko, en User-Agent: Mutt/1.5.6i cc: gnome@freebsd.org cc: Bob Melson cc: freebsd-ports@freebsd.org Subject: Re: A question about dependencies X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Jun 2004 17:04:17 -0000 On Tue, Jun 29, 2004 at 06:54:44PM +0200, Michael Nottebrock wrote: > On Tuesday 29 June 2004 18:41, Hye-Shik Chang wrote: > > > Without runtime depencency, they will need some treatments to remove > > python site packages directory ($PREFIX/lib/python2.3/site-packages). > > I see that splitting python ports out from libxml2 and libxslt port > > would be better than that. > > Perhaps. However, it would still be nice to be able to USE_PYTHON in such a > slave port. Is there no way to add some shimmies to bsd.python.mk so a > buildtime only dependency becomes feasible? > Okay. Please review this patch whether it's enough to resolve the problem. Index: Mk/bsd.python.mk =================================================================== RCS file: /home/pcvs/ports/Mk/bsd.python.mk,v retrieving revision 1.50 diff -u -r1.50 bsd.python.mk --- Mk/bsd.python.mk 21 Jun 2004 01:33:52 -0000 1.50 +++ Mk/bsd.python.mk 29 Jun 2004 17:01:35 -0000 @@ -275,11 +275,17 @@ .endif # dependencies -PYTHON_NO_DEPENDS?= NO +PYTHON_NO_DEPENDS?= NO +PYTHON_NO_BUILD_DEPENDS?= NO +PYTHON_NO_RUN_DEPENDS?= NO .if ${PYTHON_NO_DEPENDS} == "NO" +.if ${PYTHON_NO_BUILD_DEPENDS} == "NO" BUILD_DEPENDS+= ${PYTHON_CMD}:${PYTHON_PORTSDIR} +.endif +.if ${PYTHON_NO_RUN_DEPENDS} == "NO" RUN_DEPENDS+= ${PYTHON_CMD}:${PYTHON_PORTSDIR} +.endif .endif # ${PYTHON_NO_DEPENDS} == "NO" .if defined(USE_ZOPE) Hye-Shik