]> git.pld-linux.org Git - packages/perl-Alien-Base.git/commitdiff
- DESTDIR fix
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Wed, 16 Jul 2014 19:22:11 +0000 (21:22 +0200)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Wed, 16 Jul 2014 19:22:11 +0000 (21:22 +0200)
perl-Alien-Base-DESTDIR.patch [new file with mode: 0644]
perl-Alien-Base.spec

diff --git a/perl-Alien-Base-DESTDIR.patch b/perl-Alien-Base-DESTDIR.patch
new file mode 100644 (file)
index 0000000..be78da0
--- /dev/null
@@ -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
index 3da32a609e89ae9e883f311b2cd8145b55006088..2b261ce179e712639b7034361ce3b0d5a020a52f 100644 (file)
@@ -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 \
This page took 0.096018 seconds and 4 git commands to generate.