From 22e31975faab68890f0c3d554773212d855971e5 Mon Sep 17 00:00:00 2001 From: Christian Wiese Date: Wed, 18 May 2011 18:00:37 +0200 Subject: [PATCH] clearsilver: fixed to install perl modules into vendor directory (see note!) Note: According to http://search.cpan.org/dist/perl/INSTALL#Installation_Directories this is the right place for distributions which build binary packages of perl add-on modules. --- ...learsilver-0.10.5-perl-build-options.patch | 31 +++++++++++++++++++ develop/clearsilver/clearsilver.conf | 3 +- 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 develop/clearsilver/clearsilver-0.10.5-perl-build-options.patch diff --git a/develop/clearsilver/clearsilver-0.10.5-perl-build-options.patch b/develop/clearsilver/clearsilver-0.10.5-perl-build-options.patch new file mode 100644 index 000000000..e7e92aec1 --- /dev/null +++ b/develop/clearsilver/clearsilver-0.10.5-perl-build-options.patch @@ -0,0 +1,31 @@ +# --- SDE-COPYRIGHT-NOTE-BEGIN --- +# This copyright note is auto-generated by ./scripts/Create-CopyPatch. +# +# Filename: package/.../clearsilver/clearsilver-0.10.5-perl-build-options.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 --- + +Description: Add PERL_BUILD_OPTIONS variable + +This can be handy to inject custom options for building the perl bindings. + +--- clearsilver-0.10.5/Makefile.orig 2011-05-18 17:50:29.716002345 +0200 ++++ clearsilver-0.10.5/Makefile 2011-05-18 17:52:42.772002343 +0200 +@@ -29,7 +29,7 @@ + @for mdir in $(SUBDIRS); do \ + if test -d $$mdir; then \ + if test -f $$mdir/Makefile.PL -a ! -f $$mdir/Makefile; then \ +- cd $$mdir; $(PERL) Makefile.PL PREFIX=$(prefix); cd ..; \ ++ cd $$mdir; $(PERL) Makefile.PL PREFIX=$(prefix) $(PERL_BUILD_OPTIONS); cd ..; \ + fi; \ + $(MAKE) -C $$mdir PREFIX=$(prefix); \ + fi; \ diff --git a/develop/clearsilver/clearsilver.conf b/develop/clearsilver/clearsilver.conf index 580e04ace..f4719d882 100644 --- a/develop/clearsilver/clearsilver.conf +++ b/develop/clearsilver/clearsilver.conf @@ -2,7 +2,7 @@ # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # # Filename: package/.../clearsilver/clearsilver.conf -# Copyright (C) 2006 - 2007 The OpenSDE Project +# Copyright (C) 2006 - 2011 The OpenSDE Project # Copyright (C) 2004 - 2006 The T2 SDE Project # # More information can be found in the files COPYING and README. @@ -39,6 +39,7 @@ fi # perl module if pkginstalled perl; then var_append extraconfopt " " "--enable-perl" + var_append makeopt " " "PERL_BUILD_OPTIONS='INSTALLDIRS=vendor'" else var_append extraconfopt " " "--disable-perl" fi