Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

New formula: Partio 1.1.0 #15411

Closed
wants to merge 1 commit into from

3 participants

@drakeguan

Partio - A library for particle IO and manipulation.

C++ (with python bindings) library for easily reading/writing/manipulating
common animation particle formats such as PDB, BGEO, PTC.

@drakeguan drakeguan New formula: Partio 1.1.0
Partio - A library for particle IO and manipulation.

C++ (with python bindings) library for easily reading/writing/manipulating
common animation particle formats such as PDB, BGEO, PTC.
8995527
@drakeguan

Any follow-up?

@adamv
Owner

Any word?

@drakeguan

2 things left to handle:

  1. Update CMakeLists.txt for python modules cause it currently installs into ~/lib64 instead of ~/lib.
  2. Lack a git tag for the last workable commit.

I am not sure the right way to handle 1 yet such that I can't provide any good pull request for the author yet. Any idea?

I make an issue for that wdas/partio#33

@drakeguan

What if I just create a symbolic link /usr/local/lib64 pointed to /usr/local/lib? Partio's default CMakeLists.txt just installs into lib64 and I got no response from the author~

@mikemcquaid
Owner

Patch their CMakeLists.txt and send the patch upstream.

@adamv
Owner

Ha, apparently upstream is Disney: http://www.partio.us

@drakeguan

That's the issue. I got no response from Disney for merge request. And they have different policies for announcing a tag version, which is the requirement for homebrew :(

@adamv adamv closed this pull request from a commit
@drakeguan drakeguan Partio 1.1.0
Closes #15411.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
5c81b20
@adamv adamv closed this in 5c81b20
@norioxkimura norioxkimura referenced this pull request from a commit in norioxkimura/homebrew
@drakeguan drakeguan Partio 1.1.0
Closes #15411.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
67f0add
@guyzmo guyzmo referenced this pull request from a commit
Commit has since been removed from the repository and is no longer available.
@guyzmo guyzmo referenced this pull request from a commit
Commit has since been removed from the repository and is no longer available.
@cooljeanius cooljeanius referenced this pull request from a commit
Commit has since been removed from the repository and is no longer available.
@rajeeja rajeeja referenced this pull request from a commit
Commit has since been removed from the repository and is no longer available.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 11, 2012
  1. @drakeguan

    New formula: Partio 1.1.0

    drakeguan authored
    Partio - A library for particle IO and manipulation.
    
    C++ (with python bindings) library for easily reading/writing/manipulating
    common animation particle formats such as PDB, BGEO, PTC.
This page is out of date. Refresh to see the latest.
Showing with 85 additions and 0 deletions.
  1. +85 −0 Library/Formula/partio.rb
View
85 Library/Formula/partio.rb
@@ -0,0 +1,85 @@
+require 'formula'
+
+class Partio < Formula
+ homepage 'http://www.partio.us'
+ url 'http://githubredir.debian.net/github/wdas/partio/v1.1.0.tar.gz'
+ sha1 '4afbc41298e198c8606716474898ad0ae0b858ee'
+
+ depends_on 'cmake' => :build
+ depends_on 'swig' => :build
+ depends_on 'doxygen' => :build
+
+ def patches
+ # cmake: Allow users to specify CMAKE_INSTALL_PREFIX
+ # cmake: Do not hard-code the path to doxygen
+ # cmake: Allow out-of-tree builds
+ DATA
+ end
+
+ def install
+ mkdir 'build' do
+ system "cmake", "..", *std_cmake_args
+ system "make"
+ system "make doc"
+ system "make install"
+ end
+ end
+end
+
+__END__
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index e331c9c..ae11f76 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -75,9 +75,10 @@ IF(NOT CMAKE_BUILD_TYPE)
+ ENDIF(NOT CMAKE_BUILD_TYPE)
+
+ ## Set install location
+-EXECUTE_PROCESS(COMMAND sh -c "echo `uname`-`uname -r | cut -d'-' -f1`-`uname -m`" OUTPUT_VARIABLE VARIANT_DIRECTORY OUTPUT_STRIP_TRAILING_WHITESPACE)
+-#EXECUTE_PROCESS(COMMAND uname OUTPUT_VARIABLE VARIANT_DIRECTORY OUTPUT_STRIP_TRAILING_WHITESPACE)
+-SET(CMAKE_INSTALL_PREFIX "${CMAKE_SOURCE_DIR}/${VARIANT_DIRECTORY}")
++IF (NOT DEFINED CMAKE_INSTALL_PREFIX)
++ EXECUTE_PROCESS(COMMAND sh -c "echo `uname`-`uname -r | cut -d'-' -f1`-`uname -m`" OUTPUT_VARIABLE VARIANT_DIRECTORY OUTPUT_STRIP_TRAILING_WHITESPACE)
++ SET(CMAKE_INSTALL_PREFIX "${CMAKE_SOURCE_DIR}/${VARIANT_DIRECTORY}")
++ENDIF(NOT DEFINED CMAKE_INSTALL_PREFIX)
+
+ ## Search for useful libraries
+ find_package(GLUT REQUIRED)
+diff --git a/src/doc/CMakeLists.txt b/src/doc/CMakeLists.txt
+index 143725a..0db3db6 100644
+--- a/src/doc/CMakeLists.txt
++++ b/src/doc/CMakeLists.txt
+@@ -40,6 +40,6 @@ IF(DOXYGEN_FOUND)
+ COMMENT "Generating API documentation with Doxygen" VERBATIM)
+ add_dependencies(doc DOCUMENTED_FILES)
+
+- ADD_CUSTOM_TARGET(${HTML_TARGET} ALL /usr/bin/doxygen ${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile)
++ ADD_CUSTOM_TARGET(${HTML_TARGET} ALL ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile)
+ INSTALL( DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html/ DESTINATION share/doc/partio )
+ ENDIF(DOXYGEN_FOUND)
+diff --git a/src/py/CMakeLists.txt b/src/py/CMakeLists.txt
+index 7275ca5..dac8556 100644
+--- a/src/py/CMakeLists.txt
++++ b/src/py/CMakeLists.txt
+@@ -40,7 +40,7 @@ IF(PYTHONLIBS_FOUND)
+
+ INCLUDE(${SWIG_USE_FILE})
+
+-EXECUTE_PROCESS( COMMAND python -c "import sys;print"%s.%s"%sys.version_info[0:2]" OUTPUT_VARIABLE PYTHON_VERSION OUTPUT_STRIP_TRAILING_WHITESPACE)
++EXECUTE_PROCESS( COMMAND python -c "import sys;print'%s.%s'%sys.version_info[0:2]" OUTPUT_VARIABLE PYTHON_VERSION OUTPUT_STRIP_TRAILING_WHITESPACE)
+
+
+ INCLUDE_DIRECTORIES(${PYTHON_INCLUDE_PATH})
+@@ -58,9 +58,9 @@ SET_SOURCE_FILES_PROPERTIES(partio.i PROPERTIES SWIG_FLAGS "-includeall")
+ SWIG_ADD_MODULE(partio python partio.i)
+ SWIG_LINK_LIBRARIES(partio ${PYTHON_LIBRARIES} ${ZLIB_LIBRARY} partio)
+
+-SET(PYTHON_DEST "lib64/python${PYTHON_VERSION}/site-packages" )
++SET(PYTHON_DEST "lib/python${PYTHON_VERSION}/site-packages" )
+ INSTALL(TARGETS _partio DESTINATION ${PYTHON_DEST})
+-INSTALL(FILES ${CMAKE_BINARY_DIR}/${outdir}/src/py/partio.py DESTINATION ${PYTHON_DEST})
++INSTALL(FILES ${CMAKE_BINARY_DIR}/${outdir}/py/partio.py DESTINATION ${PYTHON_DEST})
+
+ ENDIF(PYTHONLIBS_FOUND)
+ ENDIF(SWIG_FOUND)
+
Something went wrong with that request. Please try again.