diff options
author | Sebastien Fabbro <bicatali@gentoo.org> | 2012-06-28 00:31:06 +0000 |
---|---|---|
committer | Sebastien Fabbro <bicatali@gentoo.org> | 2012-06-28 00:31:06 +0000 |
commit | e60069ca9c83ab81de73696795b1f086ed40d666 (patch) | |
tree | 409d07e20423bc4bde556c7306c0d94ffacd4682 /sci-physics/clhep | |
parent | 2.2.0_alpha114 version bump. This includes all of the fixes in 2.1.11.3. (diff) | |
download | gentoo-2-e60069ca9c83ab81de73696795b1f086ed40d666.tar.gz gentoo-2-e60069ca9c83ab81de73696795b1f086ed40d666.tar.bz2 gentoo-2-e60069ca9c83ab81de73696795b1f086ed40d666.zip |
Version bump. Switch to cmake build, added patch to respect libdir
(Portage version: 2.1.11.1/cvs/Linux x86_64)
Diffstat (limited to 'sci-physics/clhep')
-rw-r--r-- | sci-physics/clhep/ChangeLog | 9 | ||||
-rw-r--r-- | sci-physics/clhep/clhep-2.1.2.3.ebuild | 47 | ||||
-rw-r--r-- | sci-physics/clhep/files/clhep-2.1.2.3-libdir.patch | 93 |
3 files changed, 147 insertions, 2 deletions
diff --git a/sci-physics/clhep/ChangeLog b/sci-physics/clhep/ChangeLog index ca357f12c5b7..2f639efa0534 100644 --- a/sci-physics/clhep/ChangeLog +++ b/sci-physics/clhep/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for sci-physics/clhep # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-physics/clhep/ChangeLog,v 1.40 2012/06/26 06:09:11 jlec Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-physics/clhep/ChangeLog,v 1.41 2012/06/28 00:31:06 bicatali Exp $ + +*clhep-2.1.2.3 (28 Jun 2012) + + 28 Jun 2012; Sébastien Fabbro <bicatali@gentoo.org> +clhep-2.1.2.3.ebuild, + +files/clhep-2.1.2.3-libdir.patch: + Version bump. Switch to cmake build, added patch to respect libdir 26 Jun 2012; Justin Lecher <jlec@gentoo.org> clhep-2.1.2.2.ebuild, +files/clhep-2.1.2.2-automake-1.12.patch, metadata.xml: @@ -161,4 +167,3 @@ 06 Jun 2008; Sébastien Fabbro <bicatali@gentoo.org> +files/clhep-2.0.3.3-gcc43.patch, +metadata.xml, +clhep-2.0.3.3.ebuild: Initial import, closing bug #98233 - diff --git a/sci-physics/clhep/clhep-2.1.2.3.ebuild b/sci-physics/clhep/clhep-2.1.2.3.ebuild new file mode 100644 index 000000000000..9760f1fcd507 --- /dev/null +++ b/sci-physics/clhep/clhep-2.1.2.3.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-physics/clhep/clhep-2.1.2.3.ebuild,v 1.1 2012/06/28 00:31:06 bicatali Exp $ + +EAPI=4 + +inherit cmake-utils multilib + +DESCRIPTION="High Energy Physics C++ library" +HOMEPAGE="http://www.cern.ch/clhep" +SRC_URI="http://proj-clhep.web.cern.ch/proj-clhep/DISTRIBUTION/tarFiles/${P}.tgz" +LICENSE="GPL-3 LGPL-3" +SLOT="2" +KEYWORDS="~amd64 ~hppa ~ppc ~x86 ~amd64-linux ~x86-linux" + +IUSE="doc static-libs test" +RDEPEND="" +DEPEND="${RDEPEND} + doc? ( virtual/latex-base )" + +S="${WORKDIR}/${PV}/CLHEP" + +src_prepare() { + epatch "${FILESDIR}"/${P}-libdir.patch + # respect flags + sed -i -e 's:-O::g' cmake/Modules/ClhepVariables.cmake || die + # dont build test if not asked + if ! use test; then + sed -i \ + -e '/add_subdirectory(test)/d' \ + */CMakeLists.txt || die + fi +} + +src_configure() { + local mycmakeargs=( + $(cmake-utils_use_enable test TESTING) + $(cmake-utils_use doc CLHEP_BUILD_DOCS) + ) + DESTDIR="${ED}" cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + use static-libs || rm "${ED}"/usr/$(get_libdir)/*.a + dodoc README ChangeLog +} diff --git a/sci-physics/clhep/files/clhep-2.1.2.3-libdir.patch b/sci-physics/clhep/files/clhep-2.1.2.3-libdir.patch new file mode 100644 index 000000000000..69e6c24451bb --- /dev/null +++ b/sci-physics/clhep/files/clhep-2.1.2.3-libdir.patch @@ -0,0 +1,93 @@ +diff -Nur 2.1.2.3/CLHEP.orig/cmake/Modules/ClhepBuildLibrary.cmake 2.1.2.3/CLHEP/cmake/Modules/ClhepBuildLibrary.cmake +--- 2.1.2.3/CLHEP.orig/cmake/Modules/ClhepBuildLibrary.cmake 2012-06-27 20:47:44.000000000 +0100 ++++ 2.1.2.3/CLHEP/cmake/Modules/ClhepBuildLibrary.cmake 2012-06-27 23:49:13.000000000 +0100 +@@ -47,8 +47,8 @@ + # Install the libraries + INSTALL (TARGETS ${package} ${package}S + RUNTIME DESTINATION bin +- LIBRARY DESTINATION lib +- ARCHIVE DESTINATION lib ++ LIBRARY DESTINATION lib${LIB_SUFFIX} ++ ARCHIVE DESTINATION lib${LIB_SUFFIX} + ) + endmacro(clhep_build_library) + +@@ -78,22 +78,22 @@ + INSTALL(TARGETS CLHEP CLHEPS + EXPORT CLHEPLibraryDepends + RUNTIME DESTINATION bin +- LIBRARY DESTINATION lib +- ARCHIVE DESTINATION lib ++ LIBRARY DESTINATION lib${LIB_SUFFIX} ++ ARCHIVE DESTINATION lib${LIB_SUFFIX} + ) + + if( ${CMAKE_SYSTEM_NAME} MATCHES "Windows" ) + # copy + file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/clhep_static_symlink +- "exec_program(${CMAKE_COMMAND} ARGS -E chdir ${CMAKE_INSTALL_PREFIX}/lib; ${CMAKE_COMMAND} ARGS -E copy ${CMAKE_STATIC_LIBRARY_PREFIX}CLHEP-${VERSION}${CMAKE_STATIC_LIBRARY_SUFFIX} ${CMAKE_STATIC_LIBRARY_PREFIX}CLHEP${CMAKE_STATIC_LIBRARY_SUFFIX} )" ) ++ "exec_program(${CMAKE_COMMAND} ARGS -E chdir $ENV{CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}; ${CMAKE_COMMAND} ARGS -E copy ${CMAKE_STATIC_LIBRARY_PREFIX}CLHEP-${VERSION}${CMAKE_STATIC_LIBRARY_SUFFIX} ${CMAKE_STATIC_LIBRARY_PREFIX}CLHEP${CMAKE_STATIC_LIBRARY_SUFFIX} )" ) + file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/clhep_shared_symlink +- "exec_program(${CMAKE_COMMAND} ARGS -E chdir ${CMAKE_INSTALL_PREFIX}/bin; ${CMAKE_COMMAND} ARGS -E copy ${CMAKE_SHARED_LIBRARY_PREFIX}CLHEP-${VERSION}${CMAKE_SHARED_LIBRARY_SUFFIX} ${CMAKE_SHARED_LIBRARY_PREFIX}CLHEP${CMAKE_SHARED_LIBRARY_SUFFIX} )" ) ++ "exec_program(${CMAKE_COMMAND} ARGS -E chdir $ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin; ${CMAKE_COMMAND} ARGS -E copy ${CMAKE_SHARED_LIBRARY_PREFIX}CLHEP-${VERSION}${CMAKE_SHARED_LIBRARY_SUFFIX} ${CMAKE_SHARED_LIBRARY_PREFIX}CLHEP${CMAKE_SHARED_LIBRARY_SUFFIX} )" ) + else() + # create the symbolic links + file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/clhep_static_symlink +- "exec_program(${CMAKE_COMMAND} ARGS -E chdir ${CMAKE_INSTALL_PREFIX}/lib; ${CMAKE_COMMAND} ARGS -E create_symlink ${CMAKE_STATIC_LIBRARY_PREFIX}CLHEP-${VERSION}${CMAKE_STATIC_LIBRARY_SUFFIX} ${CMAKE_STATIC_LIBRARY_PREFIX}CLHEP${CMAKE_STATIC_LIBRARY_SUFFIX} )" ) ++ "exec_program(${CMAKE_COMMAND} ARGS -E chdir $ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}; ${CMAKE_COMMAND} ARGS -E create_symlink ${CMAKE_STATIC_LIBRARY_PREFIX}CLHEP-${VERSION}${CMAKE_STATIC_LIBRARY_SUFFIX} ${CMAKE_STATIC_LIBRARY_PREFIX}CLHEP${CMAKE_STATIC_LIBRARY_SUFFIX} )" ) + file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/clhep_shared_symlink +- "exec_program(${CMAKE_COMMAND} ARGS -E chdir ${CMAKE_INSTALL_PREFIX}/lib; ${CMAKE_COMMAND} ARGS -E create_symlink ${CMAKE_SHARED_LIBRARY_PREFIX}CLHEP-${VERSION}${CMAKE_SHARED_LIBRARY_SUFFIX} ${CMAKE_SHARED_LIBRARY_PREFIX}CLHEP${CMAKE_SHARED_LIBRARY_SUFFIX} )" ) ++ "exec_program(${CMAKE_COMMAND} ARGS -E chdir $ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}; ${CMAKE_COMMAND} ARGS -E create_symlink ${CMAKE_SHARED_LIBRARY_PREFIX}CLHEP-${VERSION}${CMAKE_SHARED_LIBRARY_SUFFIX} ${CMAKE_SHARED_LIBRARY_PREFIX}CLHEP${CMAKE_SHARED_LIBRARY_SUFFIX} )" ) + endif() + + INSTALL(SCRIPT ${CMAKE_CURRENT_BINARY_DIR}/clhep_static_symlink ) +diff -Nur 2.1.2.3/CLHEP.orig/cmake/Modules/ClhepToolchain.cmake 2.1.2.3/CLHEP/cmake/Modules/ClhepToolchain.cmake +--- 2.1.2.3/CLHEP.orig/cmake/Modules/ClhepToolchain.cmake 2012-06-27 20:47:44.000000000 +0100 ++++ 2.1.2.3/CLHEP/cmake/Modules/ClhepToolchain.cmake 2012-06-27 23:39:28.000000000 +0100 +@@ -63,7 +63,7 @@ + # + set(CLHEP_PKGCONFIG_PREFIX ${PROJECT_BINARY_DIR}) + set(CLHEP_PKGCONFIG_INCLUDEDIR ${CLHEP_INCLUDE_DIR}) +-set(CLHEP_PKGCONFIG_LIBDIR ${PROJECT_BINARY_DIR}/lib) ++set(CLHEP_PKGCONFIG_LIBDIR ${PROJECT_BINARY_DIR}/lib${LIB_SUFFIX}) + + configure_file(${PROJECT_SOURCE_DIR}/cmake/Templates/clhep.pc.in + ${PROJECT_BINARY_DIR}/clhep.pc +@@ -84,7 +84,7 @@ + # We use a relative path from the directory where the CLHEPConfig.cmake + # file is installed to the actual include dir. + file(RELATIVE_PATH _relincpath +- ${CMAKE_INSTALL_PREFIX}/lib/CLHEP-${VERSION} ++ ${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}/CLHEP-${VERSION} + ${CMAKE_INSTALL_PREFIX}/include + ) + set(CLHEP_INCLUDE_DIR "\${_thisdir}/${_relincpath}") +@@ -111,7 +111,7 @@ + # If you later use GNUInstallDirs.cmake, this would need more work to + # ensure accurate calculation of the relative path. + set(CLHEP_PKGCONFIG_PREFIX "\${pcfiledir}/../..") +-set(CLHEP_PKGCONFIG_LIBDIR "\${prefix}/lib") ++set(CLHEP_PKGCONFIG_LIBDIR "\${prefix}/lib${LIB_SUFFIX}") + set(CLHEP_PKGCONFIG_INCLUDEDIR "\${prefix}/include") + + configure_file(${PROJECT_SOURCE_DIR}/cmake/Templates/clhep.pc.in +@@ -129,16 +129,16 @@ + install(FILES + ${PROJECT_BINARY_DIR}/InstallTreeFiles/CLHEPConfigVersion.cmake + ${PROJECT_BINARY_DIR}/InstallTreeFiles/CLHEPConfig.cmake +- DESTINATION lib/CLHEP-${VERSION} ++ DESTINATION lib${LIB_SUFFIX}/CLHEP-${VERSION} + ) + +-install(EXPORT CLHEPLibraryDepends DESTINATION lib/CLHEP-${VERSION}) ++install(EXPORT CLHEPLibraryDepends DESTINATION lib${LIB_SUFFIX}/CLHEP-${VERSION}) + + # Install the pkg-config file. The choice of 'lib/pkgconfig' for the + # installation seems fairly standard. + install(FILES + ${PROJECT_BINARY_DIR}/InstallTreeFiles/clhep.pc +- DESTINATION lib/pkgconfig ++ DESTINATION lib${LIB_SUFFIX}/pkgconfig + ) + + # - And we should be done... |