[packages/rubymine] new, version 6.0.3

glen glen at pld-linux.org
Sat Feb 15 22:27:54 CET 2014


commit 70196cd0416f7c0c17b8ba3b6f01f55f2eb102ce
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sat Feb 15 23:26:16 2014 +0200

    new, version 6.0.3
    
    based on phpstorm.spec

 pld.patch        | 43 +++++++++++++++++++++++++
 rubymine.desktop |  9 ++++++
 rubymine.spec    | 95 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 147 insertions(+)
---
diff --git a/rubymine.spec b/rubymine.spec
new file mode 100644
index 0000000..2928c17
--- /dev/null
+++ b/rubymine.spec
@@ -0,0 +1,95 @@
+%include	/usr/lib/rpm/macros.java
+Summary:	The Most Intelligent Ruby and Rails IDE
+Name:		rubymine
+Version:	6.0.3
+Release:	0.2
+# TODO: figure out what's the licensing and redistribution
+License:	?
+Group:		Development/Tools
+Source0:	http://download.jetbrains.com/ruby/RubyMine-%{version}.tar.gz
+# NoSource0-md5:	271068d44ad9249e4b3be3533232d336
+NoSource:	0
+Source1:	%{name}.desktop
+Patch0:		pld.patch
+URL:		http://www.jetbrains.com/ruby/
+BuildRequires:	jpackage-utils
+BuildRequires:	rpm-javaprov
+BuildRequires:	rpmbuild(macros) >= 1.300
+Requires:	desktop-file-utils
+Requires:	jre >= 1.6
+Requires:	which
+Suggests:	cvs
+Suggests:	git-core
+Suggests:	subversion
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+# use /usr/lib, 64bit files do not conflict with 32bit files (64 suffix)
+# this allows to install both arch files and to use 32bit jdk on 64bit os
+%define		_appdir		%{_prefix}/lib/%{name}
+
+%description
+
+%prep
+%setup -qn RubyMine-%{version}
+
+# keep only single arch files (don't want to pull 32bit deps by default),
+# if you want to mix, install rpm from both arch
+%ifarch %{ix86}
+rm bin/fsnotifier64
+rm bin/libyjpagent-linux64.so
+rm bin/rubymine64.vmoptions
+rm bin/libbreakgen64.so
+%endif
+%ifarch %{x8664}
+rm bin/fsnotifier
+rm bin/libyjpagent-linux.so
+rm bin/rubymine.vmoptions
+rm bin/libbreakgen.so
+%endif
+%patch0 -p1
+chmod a+rx bin/*.so bin/fsnotifier*
+mv bin/rubymine.png .
+
+# cleanup backups after patching
+find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_appdir},%{_bindir},%{_pixmapsdir},%{_desktopdir}}
+cp -l build.txt $RPM_BUILD_ROOT/cp-test && l=l && rm -f $RPM_BUILD_ROOT/cp-test
+cp -p rubymine.png $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png
+cp -a$l bin help lib license plugins rb rubystubs* $RPM_BUILD_ROOT%{_appdir}
+cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
+ln -s %{_appdir}/bin/rubymine.sh $RPM_BUILD_ROOT%{_bindir}/rubymine
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+%update_desktop_database
+
+%postun
+%update_desktop_database
+
+%files
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/%{name}
+%dir %{_appdir}
+%{_appdir}/help
+%{_appdir}/lib
+%{_appdir}/license
+%{_appdir}/plugins
+%{_appdir}/rb
+%{_appdir}/rubystubs*
+%dir %{_appdir}/bin
+%{_appdir}/bin/rubymine*.vmoptions
+%{_appdir}/bin/idea.properties
+%{_appdir}/bin/log.xml
+%attr(755,root,root) %{_appdir}/bin/rubymine.sh
+%attr(755,root,root) %{_appdir}/bin/rinspect.sh
+%attr(755,root,root) %{_appdir}/bin/fsnotifier*
+%attr(755,root,root) %{_appdir}/bin/libyjpagent-linux*.so
+%{_appdir}/bin/RMlogo.svg
+%attr(755,root,root) %{_appdir}/bin/libbreakgen*.so
+%{_desktopdir}/%{name}.desktop
+%{_pixmapsdir}/%{name}.png
diff --git a/pld.patch b/pld.patch
new file mode 100644
index 0000000..18ce0bc
--- /dev/null
+++ b/pld.patch
@@ -0,0 +1,43 @@
+--- RubyMine-6.0.3/bin/rubymine.sh~	2014-01-17 06:23:31.000000000 +0200
++++ RubyMine-6.0.3/bin/rubymine.sh	2014-02-15 23:17:32.187118877 +0200
+@@ -145,8 +145,11 @@
+   fi
+ fi
+ 
++CONFIG_DIR="${XDG_CONFIG_HOME:-$HOME/.config}/RubyMine"
++CACHE_DIR="${XDG_CACHE_HOME:-$HOME/.cache}/RubyMine"
++
+ COMMON_JVM_ARGS="\"-Xbootclasspath/a:$IDE_HOME/lib/boot.jar\" -Didea.paths.selector=RubyMine60 $IDE_PROPERTIES_PROPERTY"
+-IDE_JVM_ARGS="-Didea.platform.prefix=Ruby -Didea.no.jre.check=true"
++IDE_JVM_ARGS="-Didea.platform.prefix=Ruby -Didea.no.jre.check=true -Didea.config.dir=$WEBIDE_CONFIG_DIR -Didea.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"
+--- RubyMine-6.0.3/bin/idea.properties~	2014-01-17 06:04:22.000000000 +0200
++++ RubyMine-6.0.3/bin/idea.properties	2014-02-15 23:18:48.827181727 +0200
+@@ -6,21 +6,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}/.RubyMine/config
++idea.config.path=${idea.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}/.RubyMine/system
++idea.system.path=${idea.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=${idea.config.path}/plugins
++idea.plugins.path=${idea.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=${idea.system.path}/log
++idea.log.path=${idea.cache.dir}/log
+ 
+ #---------------------------------------------------------------------
+ # Maximum file size (kilobytes) IDE should provide code assistance for.
diff --git a/rubymine.desktop b/rubymine.desktop
new file mode 100644
index 0000000..a7a2c27
--- /dev/null
+++ b/rubymine.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Version=1.0
+Type=Application
+Terminal=false
+Exec=rubymine
+Name=RubyMine
+Comment=The Most Intelligent Ruby and Rails IDE
+Icon=rubymine
+Categories=Development;IDE;
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/rubymine.git/commitdiff/70196cd0416f7c0c17b8ba3b6f01f55f2eb102ce



More information about the pld-cvs-commit mailing list