[Lunar-commits] <moonbase-other> openbael: Some fix ups here, adding a couple of depends and optional.

Dennis Veatch dennisveatch at bellsouth.net
Tue Oct 7 11:28:39 CEST 2014


commit 6717d509a8f384bb58236f354dd324191238d469
Author: Dennis Veatch <dennisveatch at bellsouth.net>
Date: Tue, 07 Oct 2014 05:27:57 -0400
URL: https://github.com/lunar-linux/moonbase-other/commit/6717d509a8f384bb58236f354dd324191238d469

openbael: Some fix ups here, adding a couple of depends and optional.
---
  science/openbabel/BUILD   | +15/-11   
  science/openbabel/DEPENDS | +4/-0     
  science/openbabel/DETAILS | +1/-1     
  3 files changed, 20 insertions(+), 12 deletions(-)

--- a/science/openbabel/BUILD
+++ b/science/openbabel/BUILD
@@ -1,4 +1,3 @@
-(
 
 # This is a temp thing until I can identify which file in /doc is causing this error;
 # xargs: unmatched single quote; by default quotes are special to xargs unless you use the -0 option
@@ -6,15 +5,20 @@
   rm -rf doc/guide/ &&
 #
 
-  OOSB_DIR="$SOURCE_DIRECTORY/$MODULE-build"  &&
+  default_cmake_build
 
-  mkdir $OOSB_DIR  &&
-  cd $OOSB_DIR     &&
+  if in_depends $MODULE wxGTK ; then
+    install ../src/GUI/babel*.* /usr/share/pixmaps &&
+ # Desktop menu entry
+  cat > $MODULE.desktop << EOF  &&
+[Desktop Entry]
+Type=Application
+Name=Openbabel
+Comment=A chemical toolbox
+Exec=/usr/bin/obgui
+Icon=/usr/share/pixmaps/babel2.ico
+Categories=Science;
+EOF
 
-  cmake $SOURCE_DIRECTORY/ -DCMAKE_INSTALL_PREFIX=$MODULE_PREFIX  \
-                           -DCMAKE_BUILD_TYPE=RELEASE             \
-                           $OPTS                                 &&
-
-  default_make
-
-) > $C_FIFO 2>&1
+  install -D -m644 $MODULE.desktop /usr/share/applications/$MODULE.desktop
+  fi
--- a/science/openbabel/DEPENDS
+++ b/science/openbabel/DEPENDS
@@ -1 +1,5 @@
 depends cmake
+depends cairo
+depends eigen3
+
+optional_depends "wxGTK" "-DBUILD_GUI=1" "-DBUILD_GUI=0" "Used to provide GUI support"
--- a/science/openbabel/DETAILS
+++ b/science/openbabel/DETAILS
@@ -5,7 +5,7 @@
       SOURCE_VFY=sha1:b8831a308617d1c78a790479523e43524f07d50d
         WEB_SITE=http://openbabel.sourceforge.net/wiki/Main_Page
          ENTERED=20071027
-         UPDATED=20130603
+         UPDATED=20141007
            SHORT="chemical toolbox"
 
 cat << EOF




More information about the Lunar-commits mailing list