Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
eepm
Commits
d05db50b
Commit
d05db50b
authored
Sep 13, 2022
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm play: add pycharm pro
parent
70a839f8
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
107 additions
and
0 deletions
+107
-0
pycharm-pro.sh
play.d/pycharm-pro.sh
+12
-0
pycharm-professional.sh
repack.d/pycharm-professional.sh
+95
-0
No files found.
play.d/pycharm-pro.sh
0 → 100755
View file @
d05db50b
#!/bin/sh
PKGNAME
=
pycharm-professional
SUPPORTEDARCHES
=
"x86_64"
DESCRIPTION
=
"PyCharm Professional — The Python IDE for Professional Developers( Free 30-day trial available)"
.
$(
dirname
$0
)
/common.sh
#URL="https://download.jetbrains.com/python/pycharm-professional-2022.2.1.tar.gz"
URL
=
$(
epm tool eget
-O-
"https://data.services.jetbrains.com/products/releases?code=PCP&latest=true&type=release"
| epm
--inscript
tool json
-b
|
grep
'"PCP",0,"downloads","linux","link"'
|
sed
-e
's|.*[[:space:]]||'
|
sed
-e
's|"||g'
)
epm
install
"
$URL
"
repack.d/pycharm-professional.sh
0 → 100755
View file @
d05db50b
#!/bin/sh -x
# It will be run with two args: buildroot spec
BUILDROOT
=
"
$1
"
SPEC
=
"
$2
"
PRODUCT
=
pycharm-pro
PRODUCTCUR
=
pycharm
PRODUCTDIR
=
/opt/
$PRODUCT
.
$(
dirname
$0
)
/common.sh
subst
"s|^Group:.*|Group: Development/Python|"
$SPEC
#subst "s|^License: unknown$|License: GPLv2|" $SPEC
subst
"s|^URL:.*|URL: https://www.jetbrains.com/pycharm|"
$SPEC
subst
"s|^Summary:.*|Summary: The Python IDE for Professional Developers (Free 30-day trial available)|"
$SPEC
move_to_opt
"/pycharm-*"
add_bin_link_command
$PRODUCT
$PRODUCTDIR
/bin/
$PRODUCT
.sh
# create desktop file
mkdir
-p
$BUILDROOT
/usr/share/applications/
cat
<<
EOF
>
$BUILDROOT
/usr/share/applications/
$PRODUCT
.desktop
[Desktop Entry]
Version=1.0
Type=Application
Name=PyCharm Professional Edition
Comment=Python IDE for Professional Developers (Free 30-day trial available)
Exec=/usr/bin/
$PRODUCT
%f
Icon=pycharm
Terminal=false
StartupNotify=true
StartupWMClass=jetbrains-pycharm-pro
Categories=Development;IDE;Python;
EOF
pack_file /usr/share/applications/
$PRODUCT
.desktop
mkdir
-p
$BUILDROOT
/usr/share/pixmaps/
cp
-a
$BUILDROOT$PRODUCTDIR
/bin/
$PRODUCTCUR
.png
$BUILDROOT
/usr/share/pixmaps/
cp
-a
$BUILDROOT$PRODUCTDIR
/bin/
$PRODUCTCUR
.svg
$BUILDROOT
/usr/share/pixmaps/
pack_file /usr/share/pixmaps/
$PRODUCTCUR
.png
pack_file /usr/share/pixmaps/
$PRODUCTCUR
.svg
# TODO: support other arch
for
i
in
arm aarch64 mips64el ppc64le x86 x86-64
;
do
[
"
$i
"
=
"x86-64"
]
&&
continue
remove_dir
$PRODUCTDIR
/lib/pty4j-native/linux/
$i
/
done
# TODO: support other platforms
for
i
in
darwin-aarch64 darwin-x86-64 linux-aarch64 linux-x86-64 win32-x86-64
;
do
[
"
$i
"
=
"linux-x86-64"
]
&&
continue
remove_dir
$PRODUCTDIR
/plugins/cwm-plugin/quiche-native/
$i
/
done
for
i
in
attach_amd64.dll attach_linux_x86.so attach_linux_amd64.so attach_x86.dll attach_x86.dylib attach_x86_64.dylib
;
do
[
"
$i
"
=
"attach_linux_amd64.so"
]
&&
continue
remove_dir
$PRODUCTDIR
/plugins/python-ce/helpers/pydev/pydevd_attach_to_process/
done
cd
$BUILDROOT
/
||
exit
for
i
in
$PRODUCTDIR
/plugins/python/helpers/pydev/_pydevd_bundle/pydevd_cython_
{
darwin,win32
}
*
;
do
remove_file
$i
done
for
i
in
$PRODUCTDIR
/plugins/python/helpers/pydev/_pydevd_frame_eval/
*
-
{
win32.pyd,win_amd64.pyd,darwin.so
}
;
do
remove_file
$i
done
cd
$BUILDROOT$PRODUCTDIR
/
||
exit
epm assure patchelf
||
exit
for
i
in
jbr/lib/lib
*
.so
;
do
a
=
patchelf
--set-rpath
'$ORIGIN/server:$ORIGIN'
$i
done
for
i
in
plugins/remote-dev-server/selfcontained/lib/lib
*
.so
*
;
do
a
=
patchelf
--set-rpath
'$ORIGIN'
$i
done
subst
's|%dir "'
$PRODUCTDIR
'/"||'
$SPEC
subst
's|%dir "'
$PRODUCTDIR
'/bin/"||'
$SPEC
subst
's|%dir "'
$PRODUCTDIR
'/lib/"||'
$SPEC
subst
's|%dir "'
$PRODUCTDIR
'/plugins/"||'
$SPEC
pack_dir
$PRODUCTDIR
/
pack_dir
$PRODUCTDIR
/bin/
pack_dir
$PRODUCTDIR
/lib/
pack_dir
$PRODUCTDIR
/plugins/
subst
'1iAutoProv:no'
$SPEC
subst
'1iAutoReq:yes,nopython,nopython3,nomono,nomonolib'
$SPEC
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment