Files
chromebrew/packages/pycharm.rb
Satadru Pramanik, DO, MPH, MEng b00dfcc06f Update Firefox and fix more circular deps. (#14353)
* Add unbuilt firefox to updater-firefox-147.0.2

* Adjust firefox deps.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Adjust firefox deps.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Change all sommelier deps to => :logical deps

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Fix circular dependencies of docbook_xml and docbook_xml412.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Cleanup docbook circular deps.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Fix elogind, ffmpeg circular deps.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Cleanup more circular deps.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Mark packages from successful builds as automatically buildable.

* updater-firefox-147.0.2: Package File Update Run on linux/386 container.

* Add filelists and updated packages.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Fix gstreamer deps.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Handle missing dlist, update pipewire filelist

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* lint

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Add rsu_client filelist

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Suggested changes.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Adjust elogind deps.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Adjust docbook heredocs.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

---------

Signed-off-by: Satadru Pramanik <satadru@gmail.com>
Co-authored-by: github-merge-queue <github-merge-queue@users.noreply.github.com>
Co-authored-by: satmandu <satmandu@users.noreply.github.com>
Co-authored-by: chromebrew-actions[bot] <chromebrew-actions[bot]@users.noreply.github.com>
2026-01-29 03:07:42 +00:00

50 lines
1.7 KiB
Ruby

require 'package'
class Pycharm < Package
description 'The Python IDE for Professional Developers'
homepage 'https://www.jetbrains.com/pycharm/'
version '2022.2'
license 'Apache-2.0'
compatibility 'aarch64 armv7l x86_64'
source_url 'https://download.jetbrains.com/python/pycharm-community-2022.2.tar.gz'
source_sha256 '07023b299ed317cbcf34ba89f1e9385281ff971e85407c6f8a0d17447ca74fce'
depends_on 'jdk8'
depends_on 'xdg_base'
depends_on 'sommelier' => :logical
def self.patch
# Fix java.io.IOException: Cannot run program "/home/chronos/user/.PyCharmCE2019.3/system/tmp/ij1055598732.tmp": error=13, Permission denied
FileUtils.mkdir_p CREW_DEST_HOME.to_s
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/bin"
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/.config/.PyCharmCE2022.2"
system "touch #{CREW_DEST_PREFIX}/.config/.PyCharmCE2022.2/test"
FileUtils.ln_s "#{CREW_PREFIX}/.config/.PyCharmCE2022.2", "#{CREW_DEST_HOME}/.PyCharmCE2022.2"
end
def self.install
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/share/PyCharm"
FileUtils.mv Dir['*'], "#{CREW_DEST_PREFIX}/share/PyCharm"
FileUtils.ln_s "#{CREW_PREFIX}/share/PyCharm/bin/pycharm.sh", "#{CREW_DEST_PREFIX}/bin/pycharm"
end
def self.postinstall
puts "\nType 'pycharm' to get started.\n".lightblue
end
def self.postremove
config_dir = "#{CREW_PREFIX}/.config/.PyCharmCE2022.2"
if Dir.exist? config_dir
puts 'WARNING: This will remove all PyCharm config!'.orange
print "Would you like to remove the #{config_dir} directory? [y/N] "
case $stdin.gets.chomp.downcase
when 'y', 'yes'
FileUtils.rm_rf config_dir
puts "#{config_dir} removed.".lightred
else
puts "#{config_dir} saved.".lightgreen
end
end
end
end