From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- sci-libs/voro++/Manifest | 6 ++ sci-libs/voro++/files/voro++-0.4.6-cmake.patch | 141 +++++++++++++++++++++++++ sci-libs/voro++/metadata.xml | 8 ++ sci-libs/voro++/voro++-0.4.6-r1.ebuild | 25 +++++ 4 files changed, 180 insertions(+) create mode 100644 sci-libs/voro++/Manifest create mode 100644 sci-libs/voro++/files/voro++-0.4.6-cmake.patch create mode 100644 sci-libs/voro++/metadata.xml create mode 100644 sci-libs/voro++/voro++-0.4.6-r1.ebuild (limited to 'sci-libs/voro++') diff --git a/sci-libs/voro++/Manifest b/sci-libs/voro++/Manifest new file mode 100644 index 000000000000..a8273aba6a23 --- /dev/null +++ b/sci-libs/voro++/Manifest @@ -0,0 +1,6 @@ +AUX voro++-0.4.6-cmake.patch 5803 SHA256 55936494100a4d4538795164f26ccaf12e585763bae6cc8f74415acbc76371e4 SHA512 547e63a20f9dacf946a927f932150e61fc4a08e22f605dedaf9a1d7c2a24583119d61daadb7a657f0bbfbea121687e185ebd1f300abc08c9290ee45a342bd3f1 WHIRLPOOL f01eb17544c62c7d35907d22668b9bd05925d012b1ebeb7a0ea0f61d92766b36c59c3ca080022ee4d7f9d844d7777027959f437404589eaaedcb6622e73d4862 +DIST voro++-0.4.6.tar.gz 809124 SHA256 ef7970071ee2ce3800daa8723649ca069dc4c71cc25f0f7d22552387f3ea437e SHA512 aa8c73d7634bb4ec4c0a7d4d18c0df07511ef975338f2517e6f0ec65de56bac10397adccf1c0e13439d29d096b7cb9b4540d7cfc191a1662f15dc0c3c1ff77c1 WHIRLPOOL 120643681c2def042f8446b8da1fa674a4e94354e830f7867a92d3ecdcdf00ede8aacdf8a015717583fdfd3054abcb861cdd12c182a94756000828a514673c79 +EBUILD voro++-0.4.6-r1.ebuild 494 SHA256 e4a9026210f05f8c356a66b75a43c784e309b16d3a4aebe32b48b586ec91a308 SHA512 ad52da9b5e67151d5d1ab8ff3e9fac5c295a51f114a0cd42d88811fb4e5a5ca9bc56b88d093a28dc972b0624f89cc7390ad65ea9cc13020b07302903692ea409 WHIRLPOOL a9c5407ec194229e78a35cfbb9cbb3070e8e8ff9639e5d673b456ae866f79f1d8d050975b173b8e6740593494682fdde9d7c2d4ae1a03d307faac1ca0d1a3a97 +MISC ChangeLog 2463 SHA256 7152875ffd4d0f5827b3e43ab5c06309ff30d4de21976864706e177f6f4c2d1d SHA512 5b6454baf82ca6f0fb839c575b50d7e464b677118ff3148dab013667326dcf706a3ab2c62453e285b93feb8f6ba379a52857b24b530f552798c9befa5c69bb88 WHIRLPOOL 1557a042de02d9c754070828f98ff72161dc29e99ff7a439693ce70679020f698d7f90c9dae3906856db78c082ccea0b5766e4b5d7017db1464c9451c2f6d77d +MISC ChangeLog-2015 875 SHA256 225965a7e4252660b4675e1baeefa28bfd2d099b530f30a8de6159f09719c944 SHA512 a51fe8666ec03446b273fd5115fee590c4032848a3a25eb8257150f71353b0ff6f86e4a5c790f9641b85d35e6846bcb2f4bfa196b848214b7bcba1757f6854e1 WHIRLPOOL 79db61d0c39edc430e754db6ddfe102a4697295a5311241d7b80ad335e05de49ea6938d5f072b45bac4580edf01fd91ed57fb960db2fae040a0d94794c37c1b0 +MISC metadata.xml 259 SHA256 bbfbeb80ffccffa8e7f837d2c93e994bbe024d565ae3a31d30c6646e80a684c8 SHA512 19fb78cf4029c154954a40df40e28fc8d98a8b7e6b42f97259f664d44c29b284feffb9d073cadc7f90b5654a64b2466e186cb677d3a11830206f173eb9057706 WHIRLPOOL 75b8dd1a97dde63f9cc9f73b5951eaf54579460763ef7cbe6f3a9a0739070601d762152ea00df8b476b80e92e5c29b611a494bac5ab747298942530cabe0ee84 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..375d58f6474e --- /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/*.hh) ++install(FILES ${VORO_HEADERS} DESTINATION include/voro++) ++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..8425c0d53cb0 --- /dev/null +++ b/sci-libs/voro++/metadata.xml @@ -0,0 +1,8 @@ + + + + + sci@gentoo.org + Gentoo Science Project + + diff --git a/sci-libs/voro++/voro++-0.4.6-r1.ebuild b/sci-libs/voro++/voro++-0.4.6-r1.ebuild new file mode 100644 index 000000000000..1f1aa5a860ae --- /dev/null +++ b/sci-libs/voro++/voro++-0.4.6-r1.ebuild @@ -0,0 +1,25 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit cmake-utils multilib + +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 x86" +IUSE="" + +DEPEND="" +RDEPEND="${DEPEND}" + +PATCHES=( "${FILESDIR}/${P}-cmake.patch" ) + +src_configure() { + mycmakeargs=( -DLIB=$(get_libdir) ) + cmake-utils_src_configure +} -- cgit v1.2.3