sci-physics/geant: update no-examples patch (bug #571754)
authorGuilherme Amadio <amadio@gentoo.org>
Wed, 13 Jan 2016 17:07:20 +0000 (15:07 -0200)
committerGuilherme Amadio <amadio@gentoo.org>
Wed, 13 Jan 2016 17:40:42 +0000 (15:40 -0200)
Package-Manager: portage-2.2.26

sci-physics/geant/files/geant-4.10.2-no-examples.patch [new file with mode: 0644]
sci-physics/geant/geant-4.10.02.ebuild

diff --git a/sci-physics/geant/files/geant-4.10.2-no-examples.patch b/sci-physics/geant/files/geant-4.10.2-no-examples.patch
new file mode 100644 (file)
index 0000000..7675478
--- /dev/null
@@ -0,0 +1,18 @@
+diff -ur geant4.10.02.orig/CMakeLists.txt geant4.10.02/CMakeLists.txt
+--- geant4.10.02.orig/CMakeLists.txt   2016-01-13 15:00:07.009259839 -0200
++++ geant4.10.02/CMakeLists.txt        2016-01-13 15:01:00.369257669 -0200
+@@ -134,14 +134,6 @@
+   add_subdirectory(examples)
+ endif()
+ 
+-# - Install example code to datarootdir
+-install(DIRECTORY examples
+-  DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/Geant4-${Geant4_VERSION}
+-  COMPONENT Examples
+-  PATTERN "CVS" EXCLUDE
+-  PATTERN ".svn" EXCLUDE
+-  )
+-
+ #-----------------------------------------------------------------------
+ # - CPack-aging
+ include(Geant4CPackBase)
index 58e0a762ee225bac00f471587bcf9c676bb5121c..5dd41eeef36ae6d7c4ddc8310f84fcac1edfde9b 100644 (file)
@@ -41,7 +41,7 @@ PDEPEND="
 S="${WORKDIR}/${MYP}"
 
 src_prepare() {
-       use examples || epatch "${FILESDIR}"/${PN}-4.10.0-no-examples.patch
+       use examples || epatch "${FILESDIR}"/${PN}-${PV1}.${PV2}.${SPV3}-no-examples.patch
 }
 
 src_configure() {