forked from ros/homebrew-hydro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyassimp.rb
59 lines (51 loc) · 1.55 KB
/
pyassimp.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
require 'formula'
class Pyassimp < Formula
homepage 'http://assimp.sourceforge.net/'
url 'http://sourceforge.net/projects/assimp/files/assimp-2.0/assimp--2.0.863-sdk.zip'
sha1 'eb6938c134e7110a96243570e52a8b860d15d915'
depends_on :python => :recommended
depends_on 'assimp'
def patches
DATA
end
def install
temp_site_packages = lib/python.xy/'site-packages'
args = [
"--verbose",
"install",
"--install-scripts=#{bin}",
"--install-lib=#{temp_site_packages}",
]
# build the pyassimp libraries
system python, "-s", "setup.py", *args
end
test do
system python, "-c", "'import pyassimp'"
end
end
__END__
diff --git a/setup.py b/setup.py
new file mode 100644
index 0000000..35834a2
--- /dev/null
+++ b/setup.py
@@ -0,0 +1,19 @@
+from distutils.core import setup
+
+setup_data = dict(packages=['pyassimp', ],
+ package_dir = {'pyassimp': 'port/PyAssimp/pyassimp'},
+ name='PyAssimp',
+ version='3.0.1264',
+ author='ASSIMP Development Team',
+ author_email='https://sourceforge.net/mailarchive/forum.php?forum_name=assimp-discussions',
+ license='BSD (3-clause)',
+ url='http://assimp.sf.net',
+ description='Wrapper for ASSIMP at '
+ 'http://assimp.sourceforge.net',
+ long_description='''\
+A wrapper for the Open Asset Import Library (ASSIMP).'''
+ )
+
+if __name__ == '__main__':
+ setup(**setup_data)
+