[packages/phpstorm] - system/* dir is cache, move to XDG_CACHE_DIR; use PhpStorm as dirnames

glen glen at pld-linux.org
Thu Nov 22 12:04:57 CET 2012


commit f16ae271acf61425192ce6c63fe9409310a6a61d
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Thu Nov 22 13:03:09 2012 +0200

    - system/* dir is cache, move to XDG_CACHE_DIR; use PhpStorm as dirnames

 pld.patch | 27 ++++++++++++---------------
 1 file changed, 12 insertions(+), 15 deletions(-)
---
diff --git a/pld.patch b/pld.patch
index f323706..d1e2edf 100644
--- a/pld.patch
+++ b/pld.patch
@@ -1,46 +1,43 @@
---- PhpStorm-121.215/bin/phpstorm.sh~	2012-09-12 10:45:30.000000000 +0300
-+++ PhpStorm-121.215/bin/phpstorm.sh	2012-09-13 11:20:32.457844651 +0300
-@@ -149,8 +149,14 @@
+--- PhpStorm-121.215/bin/phpstorm.sh	2012-09-13 11:20:32.457844651 +0300
++++ PhpStorm-121.390/bin/phpstorm.sh	2012-11-22 12:54:54.000000000 +0200
+@@ -149,8 +149,11 @@
    fi
  fi
  
-+WEBIDE_CONFIG_HOME="${XDG_CONFIG_HOME:-$HOME/.config}/WebIde50"
-+# versioned dir does not exist, use unversioned
-+if [ ! -d "$WEBIDE_CONFIG_HOME" ]; then
-+	WEBIDE_CONFIG_HOME="${XDG_CONFIG_HOME:-$HOME/.config}/WebIde"
-+fi
++WEBIDE_CONFIG_DIR="${XDG_CONFIG_HOME:-$HOME/.config}/PhpStorm"
++WEBIDE_CACHE_DIR="${XDG_CACHE_HOME:-$HOME/.cache}/PhpStorm"
 +
  COMMON_JVM_ARGS="\"-Xbootclasspath/a:$IDE_HOME/lib/boot.jar\" -Didea.paths.selector=WebIde50 $IDE_PROPERTIES_PROPERTY"
 -IDE_JVM_ARGS="-Didea.platform.prefix=PhpStorm -Didea.no.jre.check=true"
-+IDE_JVM_ARGS="-Didea.platform.prefix=PhpStorm -Didea.no.jre.check=true -Dwebide.config.home=$WEBIDE_CONFIG_HOME"
++IDE_JVM_ARGS="-Didea.platform.prefix=PhpStorm -Didea.no.jre.check=true -Dwebide.config.dir=$WEBIDE_CONFIG_DIR -Dwebide.cache.dir=$WEBIDE_CACHE_DIR"
  ALL_JVM_ARGS="$VM_OPTIONS $COMMON_JVM_ARGS $IDE_JVM_ARGS $AGENT $REQUIRED_JVM_ARGS"
  
  CLASSPATH="$IDE_HOME/lib/bootstrap.jar"
---- PhpStorm-117.257/bin/idea.properties~	2012-04-22 15:43:53.000000000 +0300
-+++ PhpStorm-117.257/bin/idea.properties	2012-04-26 20:31:24.809350768 +0300
+--- PhpStorm-121.390/bin/idea.properties~	2012-10-30 15:40:58.000000000 +0200
++++ PhpStorm-121.390/bin/idea.properties	2012-11-22 12:54:58.000000000 +0200
 @@ -13,21 +13,25 @@
  # Uncomment this option if you want to customize path to IDE config folder. Make sure you're using forward slashes
  #---------------------------------------------------------------------
  # idea.config.path=${user.home}/.WebIde/config
-+idea.config.path=${webide.config.home}/config
++idea.config.path=${webide.config.dir}
  
  #---------------------------------------------------------------------
  # Uncomment this option if you want to customize path to IDE system folder. Make sure you're using forward slashes
  #---------------------------------------------------------------------
  # idea.system.path=${user.home}/.WebIde/system
-+idea.system.path=${webide.config.home}/system
++idea.system.path=${webide.cache.dir}
  
  #---------------------------------------------------------------------
  # Uncomment this option if you want to customize path to user installed plugins folder. Make sure you're using forward slashes
  #---------------------------------------------------------------------
  # idea.plugins.path=${user.home}/.WebIde/config/plugins
-+idea.plugins.path=${webide.config.home}/config/plugins
++idea.plugins.path=${webide.config.dir}/plugins
  
  #---------------------------------------------------------------------
  # Uncomment this option if you want to customize path to IDE logs folder. Make sure you're using forward slashes.
  #---------------------------------------------------------------------
  # idea.log.path=${user.home}/.WebIde/system/log
-+idea.log.path=${webide.config.home}/system/log
++idea.log.path=${webide.cache.dir}/log
  
  #---------------------------------------------------------------------
  # Maximum file size (kilobytes) IDE should provide code assistance for.
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/phpstorm.git/commitdiff/f16ae271acf61425192ce6c63fe9409310a6a61d



More information about the pld-cvs-commit mailing list