[packages/perl-Alien-Base] - DESTDIR fix
arekm
arekm at pld-linux.org
Wed Jul 16 21:22:13 CEST 2014
commit e0c18843d77a88958ba0f5e4be51767031767d87
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Wed Jul 16 21:22:11 2014 +0200
- DESTDIR fix
perl-Alien-Base-DESTDIR.patch | 15 +++++++++++++++
perl-Alien-Base.spec | 2 ++
2 files changed, 17 insertions(+)
---
diff --git a/perl-Alien-Base.spec b/perl-Alien-Base.spec
index 3da32a6..2b261ce 100644
--- a/perl-Alien-Base.spec
+++ b/perl-Alien-Base.spec
@@ -14,6 +14,7 @@ License: GPL v1+ or Artistic
Group: Development/Languages/Perl
Source0: http://www.cpan.org/modules/by-module/Alien/%{pdir}-%{pnam}-%{version}.tar.gz
# Source0-md5: ae8834c3e7361756781d45c44dc1cdab
+Patch0: %{name}-DESTDIR.patch
URL: http://search.cpan.org/dist/Alien-Base/
BuildRequires: perl-Module-Build
BuildRequires: perl-devel >= 1:5.8.0
@@ -37,6 +38,7 @@ modules.
%prep
%setup -q -n %{pdir}-%{pnam}-%{version}
+%patch0 -p1
%build
%{__perl} Build.PL \
diff --git a/perl-Alien-Base-DESTDIR.patch b/perl-Alien-Base-DESTDIR.patch
new file mode 100644
index 0000000..be78da0
--- /dev/null
+++ b/perl-Alien-Base-DESTDIR.patch
@@ -0,0 +1,15 @@
+diff -urN Alien-Base-0.004.org/lib/Alien/Base/ModuleBuild.pm Alien-Base-0.004/lib/Alien/Base/ModuleBuild.pm
+--- Alien-Base-0.004.org/lib/Alien/Base/ModuleBuild.pm 2014-03-06 01:10:46.000000000 +0100
++++ Alien-Base-0.004/lib/Alien/Base/ModuleBuild.pm 2014-07-16 21:20:38.934907259 +0200
+@@ -308,7 +308,10 @@
+ return if $self->config_data( 'install_type' ) eq 'system';
+
+ {
+- my $target = $self->alien_library_destination;
++ my $target = $self->destdir
++ ? File::Spec->catdir($self->destdir, $self->alien_library_destination)
++ : $self->alien_library_destination;
++ $self->alien_library_destination;
+ local $CWD = $target;
+
+ # The only form of introspection that exists is to see that the README file
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/perl-Alien-Base.git/commitdiff/e0c18843d77a88958ba0f5e4be51767031767d87
More information about the pld-cvs-commit
mailing list