From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Mar 11 11:35:20 2013 Return-Path: Delivered-To: freebsd-ports-bugs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id DAFB7CEF for ; Mon, 11 Mar 2013 11:35:20 +0000 (UTC) (envelope-from garga.bsd@gmail.com) Received: from mail-gg0-x22e.google.com (mail-gg0-x22e.google.com [IPv6:2607:f8b0:4002:c02::22e]) by mx1.freebsd.org (Postfix) with ESMTP id 9C747AAD for ; Mon, 11 Mar 2013 11:35:20 +0000 (UTC) Received: by mail-gg0-f174.google.com with SMTP id k5so569218ggd.33 for ; Mon, 11 Mar 2013 04:35:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:date:from:to:cc:subject:message-id:mime-version :content-type:content-disposition:user-agent; bh=SImaQ6uwhGhnhBJpfv7HY3oRBZ4Ms9Bg3TO/WJwdRPo=; b=q6PM7pnFv+8rf/0VlEiiYpmAgTxoAeTOmGChoINgr059CrpjshnoJfkjuMVdXz7Qnz mREvkxO3Kqfs6fe821an0QLMWiem6jkWQ5mI0boCnatkU9DeUtt5345T4TylLRp98eoT WhRUyw2JamKWx/G3fOK5Ivk2GHjAAiMdeNo7MYFCtlvk5hI3wP/M6VbU6ZyEZd0p/a+9 Bq3WjFoN3pMkxqVBfjzaz5OCVOem+3IkdeTlSbFKsh4LsC1QkNm1ryYqfr5INBzXVjLE 8VWUohDsWc5eXPI8U9rzLvvGT5KUfRPtg9yeX1CRdKCI85MP+6mnkDKalM8/WFm4kJDK IKIA== X-Received: by 10.236.115.66 with SMTP id d42mr8706399yhh.156.1363001719687; Mon, 11 Mar 2013 04:35:19 -0700 (PDT) Received: from localhost (cl-1049.udi-01.br.sixxs.net. [2001:1291:200:418::2]) by mx.google.com with ESMTPS id q26sm23203200yhl.22.2013.03.11.04.35.17 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 11 Mar 2013 04:35:18 -0700 (PDT) Sender: Renato Botelho Date: Mon, 11 Mar 2013 08:35:14 -0300 From: Renato Botelho To: Green Dog Subject: Re: ports/176834: [Fix] devel/lua-lgi Message-ID: <20130311113514.GA23747@tp.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-ports-bugs@FreeBSD.org X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Mar 2013 11:35:20 -0000 I would like to propose the following patch that fixes pkg-plist for other lua versions. Regards Index: Makefile =================================================================== --- Makefile (revision 313650) +++ Makefile (working copy) @@ -2,6 +2,7 @@ PORTNAME= lgi PORTVERSION= 0.6.2 +PORTREVISION= 1 CATEGORIES= devel PKGNAMEPREFIX= ${LUA_PKGNAMEPREFIX} @@ -22,4 +23,12 @@ CPPFLAGS+= -I${LOCALBASE}/include/${LUA_SUBDIR} -.include +.include + +post-patch: + @${REINPLACE_CMD} -e '/^LUA_LIBDIR/d; /^LUA_SHAREDIR/d' \ + -e "s,LUA_LIBDIR,LUA_MODLIBDIR,g" \ + -e "s,LUA_SHAREDIR,LUA_MODSHAREDIR,g" \ + ${WRKSRC}/lgi/Makefile + +.include Index: files/patch-lgi_Makefile =================================================================== --- files/patch-lgi_Makefile (revision 313650) +++ files/patch-lgi_Makefile (working copy) @@ -1,16 +0,0 @@ ---- lgi/Makefile.orig 2012-12-15 21:18:35.000000000 +0400 -+++ lgi/Makefile 2012-12-15 21:20:31.000000000 +0400 -@@ -6,8 +6,11 @@ - # - - PREFIX = /usr/local --LUA_LIBDIR = $(PREFIX)/lib/lua/5.1 --LUA_SHAREDIR = $(PREFIX)/share/lua/5.1 -+LUA_LIBDIR ?= $(PREFIX)/lib/lua/5.1 -+LUA_SHAREDIR ?= $(PREFIX)/share/lua/5.1 -+LUA_CFLAGS ?= -I$(LUA_INCDIR) -+LUA_LIBDIR ?= $(LUA_MODLIBDIR) -+LUA_SHAREDIR ?= $(LUA_MODSHAREDIR) - - GINAME = gobject-introspection-1.0 - PKGS = $(GINAME) gmodule-2.0 libffi Index: pkg-plist =================================================================== --- pkg-plist (revision 313650) +++ pkg-plist (working copy) @@ -1,29 +1,29 @@ -lib/lua51/lgi/corelgilua51.so -share/lua/5.1/lgi.lua -share/lua/5.1/lgi/class.lua -share/lua/5.1/lgi/component.lua -share/lua/5.1/lgi/core.lua -share/lua/5.1/lgi/enum.lua -share/lua/5.1/lgi/ffi.lua -share/lua/5.1/lgi/init.lua -share/lua/5.1/lgi/log.lua -share/lua/5.1/lgi/namespace.lua -share/lua/5.1/lgi/override/Clutter.lua -share/lua/5.1/lgi/override/GLib-Variant.lua -share/lua/5.1/lgi/override/GLib.lua -share/lua/5.1/lgi/override/GObject-Closure.lua -share/lua/5.1/lgi/override/GObject-Object.lua -share/lua/5.1/lgi/override/GObject-Type.lua -share/lua/5.1/lgi/override/GObject-Value.lua -share/lua/5.1/lgi/override/Gdk.lua -share/lua/5.1/lgi/override/Gio.lua -share/lua/5.1/lgi/override/Gst.lua -share/lua/5.1/lgi/override/Gtk.lua -share/lua/5.1/lgi/override/Pango.lua -share/lua/5.1/lgi/override/PangoCairo.lua -share/lua/5.1/lgi/override/cairo.lua -share/lua/5.1/lgi/record.lua -share/lua/5.1/lgi/version.lua -@dirrm share/lua/5.1/lgi/override -@dirrm share/lua/5.1/lgi -@dirrm lib/lua51/lgi +%%LUA_MODLIBDIR%%/lgi/corelgilua51.so +%%LUA_MODSHAREDIR%%/lgi.lua +%%LUA_MODSHAREDIR%%/lgi/class.lua +%%LUA_MODSHAREDIR%%/lgi/component.lua +%%LUA_MODSHAREDIR%%/lgi/core.lua +%%LUA_MODSHAREDIR%%/lgi/enum.lua +%%LUA_MODSHAREDIR%%/lgi/ffi.lua +%%LUA_MODSHAREDIR%%/lgi/init.lua +%%LUA_MODSHAREDIR%%/lgi/log.lua +%%LUA_MODSHAREDIR%%/lgi/namespace.lua +%%LUA_MODSHAREDIR%%/lgi/override/Clutter.lua +%%LUA_MODSHAREDIR%%/lgi/override/GLib-Variant.lua +%%LUA_MODSHAREDIR%%/lgi/override/GLib.lua +%%LUA_MODSHAREDIR%%/lgi/override/GObject-Closure.lua +%%LUA_MODSHAREDIR%%/lgi/override/GObject-Object.lua +%%LUA_MODSHAREDIR%%/lgi/override/GObject-Type.lua +%%LUA_MODSHAREDIR%%/lgi/override/GObject-Value.lua +%%LUA_MODSHAREDIR%%/lgi/override/Gdk.lua +%%LUA_MODSHAREDIR%%/lgi/override/Gio.lua +%%LUA_MODSHAREDIR%%/lgi/override/Gst.lua +%%LUA_MODSHAREDIR%%/lgi/override/Gtk.lua +%%LUA_MODSHAREDIR%%/lgi/override/Pango.lua +%%LUA_MODSHAREDIR%%/lgi/override/PangoCairo.lua +%%LUA_MODSHAREDIR%%/lgi/override/cairo.lua +%%LUA_MODSHAREDIR%%/lgi/record.lua +%%LUA_MODSHAREDIR%%/lgi/version.lua +@dirrm %%LUA_MODSHAREDIR%%/lgi/override +@dirrm %%LUA_MODSHAREDIR%%/lgi +@dirrm %%LUA_MODLIBDIR%%/lgi -- Renato Botelho GnuPG Key: http://www.FreeBSD.org/~garga/pubkey.asc