Browse Source

lua-codegen: changed destdir.patch to one more inline with the fix done upstream

stable/0.2
Alejandro Mery 14 years ago
parent
commit
17238eb52d
  1. 22
      lua/lua-codegen/Makefile.patch
  2. 45
      lua/lua-codegen/destdir.patch
  3. 2
      lua/lua-codegen/lua-codegen.conf

22
lua/lua-codegen/Makefile.patch

@ -0,0 +1,22 @@
diff --git a/Makefile b/Makefile
index f765ca7..dc1ee2b 100644
--- a/Makefile
+++ b/Makefile
@@ -6,10 +6,13 @@ ifndef REV
REV := 1
endif
-ifndef DESTDIR
- DESTDIR := /usr/local
-endif
-LIBDIR := $(DESTDIR)/share/lua/5.1
+LUAVER := 5.1
+PREFIX := /usr/local
+DPREFIX := $(DESTDIR)$(PREFIX)
+LIBDIR := $(DPREFIX)/share/lua/$(LUAVER)
+
+all:
+ @echo "Nothing to build here"
install:
mkdir -p $(LIBDIR)/CodeGen

45
lua/lua-codegen/destdir.patch

@ -1,45 +0,0 @@
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: package/.../lua-codegen/destdir.patch
# Copyright (C) 2011 The OpenSDE Project
#
# More information can be found in the files COPYING and README.
#
# This patch file is dual-licensed. It is available under the license the
# patched project is licensed under, as long as it is an OpenSource license
# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
# of the GNU General Public License as published by the Free Software
# Foundation; either version 2 of the License, or (at your option) any later
# version.
# --- SDE-COPYRIGHT-NOTE-END ---
--- ./Makefile.orig 2011-06-08 16:36:56.000000000 +0200
+++ ./Makefile 2011-06-08 16:38:28.000000000 +0200
@@ -6,19 +6,17 @@
REV := 1
endif
-ifndef DESTDIR
- DESTDIR := /usr/local
-endif
-LIBDIR := $(DESTDIR)/share/lua/5.1
+prefix = /usr/local
+LIBDIR = $(prefix)/share/lua/5.1
install:
- mkdir -p $(LIBDIR)/CodeGen
- cp src/CodeGen.lua $(LIBDIR)
- cp src/CodeGen/Graph.lua $(LIBDIR)/CodeGen
+ mkdir -p $(DESTDIR)$(LIBDIR)/CodeGen
+ cp src/CodeGen.lua $(DESTDIR)$(LIBDIR)
+ cp src/CodeGen/Graph.lua $(DESTDIR)$(LIBDIR)/CodeGen
uninstall:
- rm -f $(LIBDIR)/CodeGen.lua
- rm -f $(LIBDIR)/CodeGen/Graph.lua
+ rm -f $(DESTDIR)$(LIBDIR)/CodeGen.lua
+ rm -f $(DESTDIR)$(LIBDIR)/CodeGen/Graph.lua
manifest_pl := \
use strict; \

2
lua/lua-codegen/lua-codegen.conf

@ -0,0 +1,2 @@
#var_append makeopt ' ' "PREFIX=/$prefix"
var_append makeinstopt ' ' "PREFIX=/$prefix"
Loading…
Cancel
Save