ports/98998: [PATCH] lang/lua: respect ${LOCALBASE}

Dmitry Marakasov amdmi3 at mail.ru
Fri Jun 16 03:30:21 UTC 2006


>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 at 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:



More information about the freebsd-ports-bugs mailing list