diff options
author | Christoph Junghans <ottxor@gentoo.org> | 2014-02-24 23:37:42 +0000 |
---|---|---|
committer | Christoph Junghans <ottxor@gentoo.org> | 2014-02-24 23:37:42 +0000 |
commit | b70067ee6a661f473354f13fc64f10ccf4afc810 (patch) | |
tree | cf840cae2e2a4407f3dc49c55ddde37a5206f0f3 /sci-libs | |
parent | initial commit (diff) | |
download | historical-b70067ee6a661f473354f13fc64f10ccf4afc810.tar.gz historical-b70067ee6a661f473354f13fc64f10ccf4afc810.tar.bz2 historical-b70067ee6a661f473354f13fc64f10ccf4afc810.zip |
initial commit
Package-Manager: portage-2.2.7/cvs/Linux x86_64
Manifest-Sign-Key: 0xC2000586
Diffstat (limited to 'sci-libs')
-rw-r--r-- | sci-libs/voro++/Manifest | 17 | ||||
-rw-r--r-- | sci-libs/voro++/files/voro++-0.4.6-cmake.patch | 141 | ||||
-rw-r--r-- | sci-libs/voro++/metadata.xml | 5 | ||||
-rw-r--r-- | sci-libs/voro++/voro++-0.4.6.ebuild | 21 |
4 files changed, 183 insertions, 1 deletions
diff --git a/sci-libs/voro++/Manifest b/sci-libs/voro++/Manifest index e5067b07b53f..5d9ed693c78b 100644 --- a/sci-libs/voro++/Manifest +++ b/sci-libs/voro++/Manifest @@ -1,4 +1,19 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA256 + AUX voro++-0.4.6-cmake.patch 5801 SHA256 50561000e3b294a668c97ac52cd29fd6f4f8bd26c70c7f87c9eb54ac831103c4 SHA512 c85ec6db83413b53be79233dd26ec2eab2c96ac07bffaa53b138b2a79a2c071ede8842ab5a5c7746accc19f1c20a3f7231255ea446971f9b3c27b20ce1d2ea4f WHIRLPOOL 27e2ebaf4ad26f95335d1266d408f127a1390a1790fd31664e09b5741528e708b0968fa9873dfeeae6a6eb64a7eedfedbde8bee8ef0f6dccd2646583b6dd8ad3 DIST voro++-0.4.6.tar.gz 809124 SHA256 ef7970071ee2ce3800daa8723649ca069dc4c71cc25f0f7d22552387f3ea437e SHA512 aa8c73d7634bb4ec4c0a7d4d18c0df07511ef975338f2517e6f0ec65de56bac10397adccf1c0e13439d29d096b7cb9b4540d7cfc191a1662f15dc0c3c1ff77c1 WHIRLPOOL 120643681c2def042f8446b8da1fa674a4e94354e830f7867a92d3ecdcdf00ede8aacdf8a015717583fdfd3054abcb861cdd12c182a94756000828a514673c79 -EBUILD voro++-0.4.6.ebuild 410 SHA256 0859da414b979d960cbcd36d3e5844e7e7ea317b88b672ed342e032e892f2751 SHA512 84c54630e2c1803693f4379b7e64232f0779d9fc88e755a5d66a04c92e611b8b8b50209536f2a26f2c0a5699eb29b8c84ad1a6c6c35c377ed19057998458aa20 WHIRLPOOL 7c3a7e26d9865dbd64ac5056f699af45c113ea61efcd5d6c1eeb9c7c03199e907aea6ec76b1240107e7fdfd965e22d83ad4d7f248a0e21530787a50089ad6c64 +EBUILD voro++-0.4.6.ebuild 507 SHA256 daf9ee1405c763c33c1708e8fe42fd6f61b8ca8b34e7964459c6215c01d59efe SHA512 79dda71a30a6a345f4df4da1beb4833ee240a18ca21b14b2ed9bab237a3d603b8ebd755b83a554b1524bf2f18559022001c93f735b06464e30bcd1d9a108df5e WHIRLPOOL 7eba0e326271d2875ebad4236a91385d2e27a1db218114362755b9c5a185c8d493562cfc4262d3e7f54d2664ac7f50b515d0caadcf8fab6668ac60dce9d0c29a +MISC ChangeLog 375 SHA256 324daffcf6e7bae1014758337be177be3543de5d3cb3dced442e3e6bb394fdf3 SHA512 caf3ef73ca88de4370158d2fa60c0329eac7cc75cb2f5d870fc8d1e26c5cc542db9ef47e21dc67ab0f73b98f6b5e9ccf175b077c5f224e27dcd7333f7af75d96 WHIRLPOOL 9b0df0168723383bb0cebf04babe4a52aebb19acabdf7b278c8b6b9abaac10649bdc5ef4906a066ecc112b911760b061241d8da5b09a873147a2d792b0a07be5 MISC metadata.xml 158 SHA256 dae7918daac89b300804812d32584889aa1c4e8b9edeced06006900494457a6d SHA512 e4901a5df84502b46aa85ec01804ce680332cebe6148e4a9c8201a38935ee0d4a753bcdb3f18765b06019926a05bf099c0ed61395aa98211610ab7fdb8d7f895 WHIRLPOOL 2f12466ef66cc7b89ec428cd4b498b20f12ca6dbb219f180ac12985dfc4195882ea95809797828a720fe69a0e560d12de9c271f8aacaa06fba09c9c1ccd589e5 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.22 (GNU/Linux) + +iQEcBAEBCAAGBQJTC9fAAAoJEOeBhlrCAAWGdqMH/jDue2exUIU45rgFV8xnaBUN +lBbf+Ll/iAuqHzZ5wG6CW8ibJvlbzqaMQa2LVz0Gn5fNiRbcJdoHKaprUG00C6Ml +N+1Y9NVq11eHmm1PSwexBlMB6q/u2NygH/0Fa1Gj6HE2tU31Y3iisljLzO9scJxH +gDXxleSsiyTlQHFJEKCgirtglUweAveSbe4eUqj82SBpiW++jwPuzvMeDpLVrqlE +dK+gVR3U2FyXWfYAcuTpDjG5Q8HT477ndNHLo9WKHMfjaiPlwWlMFZg3tI0PT497 +KRk+TDYZN92W60p85dtawVhgkSdk2ME+aDOJ9pbtD8asmoxqR6T64IXngFgp50w= +=voF7 +-----END PGP SIGNATURE----- diff --git a/sci-libs/voro++/files/voro++-0.4.6-cmake.patch b/sci-libs/voro++/files/voro++-0.4.6-cmake.patch new file mode 100644 index 000000000000..da67328c6265 --- /dev/null +++ b/sci-libs/voro++/files/voro++-0.4.6-cmake.patch @@ -0,0 +1,141 @@ +Index: CMakeLists.txt +=================================================================== +--- CMakeLists.txt (revision 0) ++++ CMakeLists.txt (working copy) +@@ -0,0 +1,109 @@ ++cmake_minimum_required(VERSION 2.6) ++ ++project(voro++) ++ ++set(PROJECT_VERSION "0.4.6") ++set(SOVERSION 0) ++ ++# Cmake modules/macros are in a subdirectory to keep this file cleaner ++set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/CMakeModules) ++ ++if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CXX_FLAGS) ++ #release comes with -O3 by default ++ set(CMAKE_BUILD_TYPE Release CACHE STRING "Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel." FORCE) ++endif(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CXX_FLAGS) ++ ++enable_language(CXX) ++ ++###################################################################### ++# compiler tests ++# these need ot be done early (before further tests). ++##################################################################### ++ ++include(CheckCXXCompilerFlag) ++ ++######################################################################## ++# User input options # ++######################################################################## ++option(BUILD_SHARED_LIBS "Build shared libs" ON) ++if (NOT DEFINED LIB) ++ set(LIB "lib") ++endif(NOT DEFINED LIB) ++if (NOT DEFINED MAN) ++ set(MAN "share/man") ++endif(NOT DEFINED MAN) ++if (NOT DEFINED DATA) ++ set(DATA "share/voro++") ++endif(NOT DEFINED DATA) ++ ++######################################################################## ++#Find external packages ++######################################################################## ++find_package(Doxygen) ++ ++######################################################################## ++# Basic system tests (standard libraries, headers, functions, types) # ++######################################################################## ++include(CheckIncludeFileCXX) ++foreach(HEADER cmath cstdio cstdlib cstring ctime fstream iostream queue vector) ++ check_include_file_cxx(${HEADER} FOUND_${HEADER}) ++ if(NOT FOUND_${HEADER}) ++ message(FATAL_ERROR "Could not find needed header - ${HEADER}") ++ endif(NOT FOUND_${HEADER}) ++endforeach(HEADER) ++ ++set(MATH_LIBRARIES "m" CACHE STRING "math library") ++mark_as_advanced( MATH_LIBRARIES ) ++include(CheckLibraryExists) ++foreach(FUNC sqrt) ++ check_library_exists(${MATH_LIBRARIES} ${FUNC} "" FOUND_${FUNC}_${MATH_LIBRARIES}) ++ if(NOT FOUND_${FUNC}_${MATH_LIBRARIES}) ++ message(FATAL_ERROR "Could not find needed math function - ${FUNC}") ++ endif(NOT FOUND_${FUNC}_${MATH_LIBRARIES}) ++endforeach(FUNC) ++ ++###################################### ++# Include the following subdirectory # ++###################################### ++ ++file(GLOB VORO_SOURCES src/*.cc) ++file(GLOB NOT_VORO_SOURCES src/v_base_wl.cc src/cmd_line.cc src/voro++.cc) ++list(REMOVE_ITEM VORO_SOURCES ${NOT_VORO_SOURCES}) ++add_library(voro++ ${VORO_SOURCES}) ++set_target_properties(voro++ PROPERTIES ++ LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/src" ++ SOVERSION ${SOVERSION}) ++install(TARGETS voro++ LIBRARY DESTINATION ${LIB} ARCHIVE DESTINATION ${LIB}) ++ ++add_executable(cmd_line src/cmd_line.cc) ++target_link_libraries(cmd_line voro++) ++#cannot have two target with the same name ++set_target_properties(cmd_line PROPERTIES OUTPUT_NAME voro++ ++ RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/src") ++install(TARGETS cmd_line RUNTIME DESTINATION bin) ++ ++#for voto++.hh ++include_directories(${CMAKE_SOURCE_DIR}/src) ++file(GLOB EXAMPLE_SOURCES examples/*/*.cc) ++foreach(SOURCE ${EXAMPLE_SOURCES}) ++ string(REGEX REPLACE "^.*/([^/]*)\\.cc$" "\\1" PROGNAME "${SOURCE}") ++ if (NOT PROGNAME STREQUAL ellipsoid) #ellipsoid is broken ++ string(REGEX REPLACE "^.*/(examples/.*)/${PROGNAME}\\.cc$" "\\1" DIRNAME "${SOURCE}") ++ add_executable(${PROGNAME} ${SOURCE}) ++ target_link_libraries(${PROGNAME} voro++) ++ set_target_properties(${PROGNAME} PROPERTIES ++ RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/${DIRNAME}" ) ++ endif() ++endforeach(SOURCE) ++ ++file(GLOB_RECURSE VORO_HEADERS src/voro++.hh) ++install(FILES ${VORO_HEADERS} DESTINATION include) ++install(FILES ${CMAKE_SOURCE_DIR}/man/voro++.1 DESTINATION ${MAN}/man1) ++ ++if (DOXYGEN_FOUND) ++ add_custom_target(help COMMAND ${DOXYGEN_EXECUTABLE} src/Doxyfile ++ COMMENT "Build doxygen documentation") ++endif (DOXYGEN_FOUND) ++ ++configure_file(${CMAKE_MODULE_PATH}/cmake_uninstall.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake IMMEDIATE @ONLY) ++add_custom_target(uninstall COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake) +Index: CMakeModules/cmake_uninstall.cmake.in +=================================================================== +--- CMakeModules/cmake_uninstall.cmake.in (revision 0) ++++ CMakeModules/cmake_uninstall.cmake.in (working copy) +@@ -0,0 +1,22 @@ ++IF(NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt") ++ MESSAGE(FATAL_ERROR "Cannot find install manifest: \"@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt\"") ++ENDIF(NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt") ++ ++FILE(READ "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt" files) ++STRING(REGEX REPLACE "\n" ";" files "${files}") ++FOREACH(file ${files}) ++ MESSAGE(STATUS "Uninstalling \"$ENV{DESTDIR}${file}\"") ++ IF(EXISTS "$ENV{DESTDIR}${file}") ++ EXEC_PROGRAM( ++ "@CMAKE_COMMAND@" ARGS "-E remove \"$ENV{DESTDIR}${file}\"" ++ OUTPUT_VARIABLE rm_out ++ RETURN_VALUE rm_retval ++ ) ++ IF(NOT "${rm_retval}" STREQUAL 0) ++ MESSAGE(FATAL_ERROR "Problem when removing \"$ENV{DESTDIR}${file}\"") ++ ENDIF(NOT "${rm_retval}" STREQUAL 0) ++ ELSE(EXISTS "$ENV{DESTDIR}${file}") ++ MESSAGE(STATUS "File \"$ENV{DESTDIR}${file}\" does not exist.") ++ ENDIF(EXISTS "$ENV{DESTDIR}${file}") ++ENDFOREACH(file) ++ diff --git a/sci-libs/voro++/metadata.xml b/sci-libs/voro++/metadata.xml new file mode 100644 index 000000000000..897aa2e6b59a --- /dev/null +++ b/sci-libs/voro++/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>sci</herd> +</pkgmetadata> diff --git a/sci-libs/voro++/voro++-0.4.6.ebuild b/sci-libs/voro++/voro++-0.4.6.ebuild new file mode 100644 index 000000000000..985fb3cfb575 --- /dev/null +++ b/sci-libs/voro++/voro++-0.4.6.ebuild @@ -0,0 +1,21 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/voro++/voro++-0.4.6.ebuild,v 1.1 2014/02/24 23:36:07 ottxor Exp $ + +EAPI=5 + +inherit cmake-utils + +DESCRIPTION="A 3D Voronoi cell software library" +HOMEPAGE="http://math.lbl.gov/voro++/" +SRC_URI="${HOMEPAGE}/download/dir/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +DEPEND="" +RDEPEND="${DEPEND}" + +PATCHES=( "${FILESDIR}/${P}-cmake.patch" ) |