Update hooke install to setup /etc/hooke/hooke.cfg.
authorW. Trevor King <wking@drexel.edu>
Wed, 3 Nov 2010 18:13:29 +0000 (14:13 -0400)
committerW. Trevor King <wking@drexel.edu>
Wed, 3 Nov 2010 18:15:03 +0000 (14:15 -0400)
Also
 * install runtime images in /usr/share/doc/hooke-9999/img/*
 * add a dependency on dev-libs/libxslt for gui_flow.svg generation.

sci-physics/hooke/Manifest
sci-physics/hooke/files/hooke-9999.cfg [new file with mode: 0644]
sci-physics/hooke/hooke-9999.ebuild

index 56375344a41de95e7eda199fe30437f67bc9bbf0..084266f219646329b5f41e9f713eda3661762a93 100644 (file)
@@ -1,3 +1,4 @@
-EBUILD hooke-9999.ebuild 1597 RMD160 4be4031aa6528437b73285bfb5d33f0a5b5718d5 SHA1 b80ec9a60f8ae5e50978a6c9417b9acacaae0ac6 SHA256 a194d3980068d9f1b47475f8a6e6078200a4357587e75cc9669ef7e2dedf776b
+AUX hooke-9999.cfg 517 RMD160 6c7014b76bf0669972d555adc29742f8ca90939e SHA1 8b4aeaf01d640c9a8e3ce670f2103d8f88624638 SHA256 0ba496b57c42c108b2df784bbcd6db108695e0fb189b94d927962fbf4185b9a5
+EBUILD hooke-9999.ebuild 1759 RMD160 af17e778de9b4f5760b3da10f28bdddc81939e26 SHA1 5b6a4a312a91da05267cd16a4f5ff245b3f5c2ce SHA256 ae7ea34f3741d451b6f8292cf5e58b196b26acdf13f970451b9b9d6b6e0b81a5
 MISC ChangeLog 690 RMD160 a220893c5e8b6f13f34d26b1c38e99fd0b228922 SHA1 4b84f0c64cfffc6a5b7575781b5bc96d4a7b2e19 SHA256 1639e8db2d294a032cb035431aa3af7fe100d55281ca2d754dd94ff01711b78c
 MISC metadata.xml 310 RMD160 1568615d45618d4e162f7c4fb583d126347ea803 SHA1 a4a8bd0e07eb2ea484db1df5f38d8a4440cd1a62 SHA256 48dccd47092ba73ed46427ea9db7071fc1fde9753398b0f9c7d8b40a530e6416
diff --git a/sci-physics/hooke/files/hooke-9999.cfg b/sci-physics/hooke/files/hooke-9999.cfg
new file mode 100644 (file)
index 0000000..c048cf5
--- /dev/null
@@ -0,0 +1,13 @@
+# Commands for managing a command stack (similar to macros).
+[command_stack plugin]
+# Directory containing command stack files.
+path = ~/.hooke/resources/command_stack
+
+# wxWindows graphical user interface.
+[gui user interface]
+# Path to the hooke icon image.
+icon image = /usr/share/doc/hooke-9999/img/microscope.ico
+# Path to the Hooke splash screen image.
+splash screen image = /usr/share/doc/hooke-9999/img/hooke.jpg
+# Directory containing perspective files.
+perspective path = ~/.hooke/resources/gui/perspective
index 96059382e7c7ac1ce2e0df11124587c2af0a55db..5a596445399aa2859fac518d707fcd87d892a3f7 100644 (file)
@@ -33,6 +33,7 @@ RDEPEND="dev-python/matplotlib
   X? ( >=dev-python/wxpython-2.8 )"
 DEPEND="${RDEPEND}
        doc? (
+               dev-libs/libxslt
                dev-python/numpydoc
                dev-util/scons
        )"
@@ -67,9 +68,13 @@ src_compile() {
 }
 
 src_install() {
-       dodoc AUTHORS CHANGELOG README
+       distutils_src_install
        if use doc ; then
                dohtml -r doc/build/html/*
        fi
-       distutils_src_install
+       dodoc AUTHORS CHANGELOG README
+       insinto "/usr/share/doc/${PF}/img"
+       doins doc/img/{hooke.jpg,microscope.ico}
+       insinto "/etc/${PN}"
+       newins "${FILESDIR}/${P}.cfg" "${PN}.cfg"
 }