Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Jun 2006 07:30:44 +0400 (MSD)
From:      Dmitry Marakasov <amdmi3@mail.ru>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/98998: [PATCH] lang/lua: respect ${LOCALBASE}
Message-ID:  <20060616033044.5BC85488@hades.panopticon>
Resent-Message-ID: <200606160330.k5G3UGp0056853@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         98998
>Category:       ports
>Synopsis:       [PATCH] lang/lua: respect ${LOCALBASE}
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jun 16 03:30:15 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Dmitry Marakasov
>Release:        FreeBSD 6.1-RELEASE i386
>Organization:
>Environment:
System: FreeBSD hades.panopticon 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Thu May 11 15:07:32 MSD 2006 amdmi3@hades.panopticon:/usr/obj/usr/src/sys/HADES i386

>Description:
* make lua respect ${LOCALBASE} as now it always installs only into /usr/local
* bump PORTREVISION
>How-To-Repeat:
# export LOCALBASE=/somewhere/far/beyond
# cd /usr/ports/lang/lua && make install
# find /usr/local | grep lua
>Fix:

--- lua.patch begins here ---
diff -ruN lua.orig/Makefile lua/Makefile
--- lua.orig/Makefile	Fri Jun 16 07:24:59 2006
+++ lua/Makefile	Fri Jun 16 07:26:00 2006
@@ -7,6 +7,7 @@
 
 PORTNAME=	lua
 PORTVERSION=	5.1
+PORTREVISION=	1
 CATEGORIES=	lang
 MASTER_SITES=	http://www.lua.org/ftp/ \
 		ftp://ftp.tecgraf.puc-rio.br/pub/lua/ \
@@ -23,6 +24,9 @@
 MAKE_ARGS=	bsd
 
 CONFLICTS=	lua-4* lua-5.0*
+
+post-patch:
+	@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' ${WRKSRC}/Makefile
 
 post-install:
 .if !defined(NOPORTDOCS)
--- lua.patch ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060616033044.5BC85488>