[med-svn] r18016 - trunk/packages/libsbml/trunk/debian/patches
Andreas Tille
tille at moszumanska.debian.org
Sun Sep 14 12:10:43 UTC 2014
Author: tille
Date: 2014-09-14 12:10:43 +0000 (Sun, 14 Sep 2014)
New Revision: 18016
Added:
trunk/packages/libsbml/trunk/debian/patches/perl-installdirs.patch
Log:
Ivo, please make sure you will submit a complete patch next time. Thanks.
Added: trunk/packages/libsbml/trunk/debian/patches/perl-installdirs.patch
===================================================================
--- trunk/packages/libsbml/trunk/debian/patches/perl-installdirs.patch (rev 0)
+++ trunk/packages/libsbml/trunk/debian/patches/perl-installdirs.patch 2014-09-14 12:10:43 UTC (rev 18016)
@@ -0,0 +1,27 @@
+--- a/src/bindings/perl/Makefile.PL.in
++++ b/src/bindings/perl/Makefile.PL.in
+@@ -58,7 +58,6 @@
+ NAME => "LibSBML",
+ PREFIX => "@prefix@",
+ MAKEFILE => 'Makefile-perl',
+- INSTALLDIRS => "site",
+ LIBS => "@XERCES_LDFLAGS@ @EXPAT_LDFLAGS@ @LIBXML_LDFLAGS@ @XERCES_LIBS@ @EXPAT_LIBS@ @LIBXML_LIBS@ @ZLIB_LIBS@ @BZ2_LIBS@ @LIBS@ -lm",
+ LDDLFLAGS => $lddlflags,
+ CC => "@CXX@",
+--- a/src/bindings/perl/CMakeLists.txt
++++ b/src/bindings/perl/CMakeLists.txt
+@@ -168,7 +168,13 @@
+ string(REPLACE "'" "" PERL_PLATFORM ${PERL_PLATFORM})
+ string(REPLACE ";" "" PERL_PLATFORM ${PERL_PLATFORM})
+ string(REPLACE "archname=" "" PERL_PLATFORM ${PERL_PLATFORM})
+- set(PERL_PACKAGE_INSTALL_DIR ${CMAKE_INSTALL_LIBDIR}/perl5/site_perl/${PERL_VERSION}/${PERL_PLATFORM})
++ execute_process(COMMAND "${PERL_EXECUTABLE}" -V:vendorarch
++ OUTPUT_VARIABLE PERL_VENDORARCH OUTPUT_STRIP_TRAILING_WHITESPACE)
++ string(REPLACE " " "" PERL_VENDORARCH ${PERL_VENDORARCH})
++ string(REPLACE "'" "" PERL_VENDORARCH ${PERL_VENDORARCH})
++ string(REPLACE ";" "" PERL_VENDORARCH ${PERL_VENDORARCH})
++ string(REPLACE "vendorarch=/usr/lib/" "" PERL_VENDORARCH ${PERL_VENDORARCH})
++ set(PERL_PACKAGE_INSTALL_DIR ${CMAKE_INSTALL_LIBDIR}/${PERL_VENDORARCH})
+ set(PERL_PACKAGE_INSTALL_BIN_DIR ${PERL_PACKAGE_INSTALL_DIR}/auto/libSBML)
+ else()
+ set(PERL_PACKAGE_INSTALL_DIR ${MISC_PREFIX}bindings/perl)
More information about the debian-med-commit
mailing list